Blame SOURCES/0469-util-mkimage-Always-use-grub_host_to_target32-to-ini.patch

9723a8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
9723a8
From: Peter Jones <pjones@redhat.com>
9723a8
Date: Mon, 15 Feb 2021 14:14:24 +0100
9723a8
Subject: [PATCH] util/mkimage: Always use grub_host_to_target32() to
9723a8
 initialize PE stack and heap stuff
9723a8
9723a8
This change does not impact final result of initialization itself.
9723a8
However, it eases PE code unification in subsequent patches.
9723a8
9723a8
Signed-off-by: Peter Jones <pjones@redhat.com>
9723a8
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
9723a8
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
9723a8
---
9723a8
 util/mkimage.c | 8 ++++----
9723a8
 1 file changed, 4 insertions(+), 4 deletions(-)
9723a8
9723a8
diff --git a/util/mkimage.c b/util/mkimage.c
b71686
index 601521d34..d2876cdb5 100644
9723a8
--- a/util/mkimage.c
9723a8
+++ b/util/mkimage.c
3efed6
@@ -1339,10 +1339,10 @@ grub_install_generate_image (const char *dir, const char *prefix,
9723a8
 	    o->subsystem = grub_host_to_target16 (GRUB_PE32_SUBSYSTEM_EFI_APPLICATION);
9723a8
 
9723a8
 	    /* Do these really matter? */
9723a8
-	    o->stack_reserve_size = grub_host_to_target64 (0x10000);
9723a8
-	    o->stack_commit_size = grub_host_to_target64 (0x10000);
9723a8
-	    o->heap_reserve_size = grub_host_to_target64 (0x10000);
9723a8
-	    o->heap_commit_size = grub_host_to_target64 (0x10000);
9723a8
+	    o->stack_reserve_size = grub_host_to_target32 (0x10000);
9723a8
+	    o->stack_commit_size = grub_host_to_target32 (0x10000);
9723a8
+	    o->heap_reserve_size = grub_host_to_target32 (0x10000);
9723a8
+	    o->heap_commit_size = grub_host_to_target32 (0x10000);
9723a8
     
9723a8
 	    o->num_data_directories
9723a8
 	      = grub_host_to_target32 (GRUB_PE32_NUM_DATA_DIRECTORIES);