Without patch:
    LoadPe: new image base 7FE88000
    DxeCore PE image is successed loaded at 0, entry=130000

    EFI Memory Descriptors
    Type = 0 Start = 00130000 NumberOfPages = 00000000
    Type = 0 Start = 00130000 NumberOfPages = 00000000

With patch:
    LoadPe: new image base 7FE88000
    DxeCore PE image is successed loaded at 7FE7F000, entry=7FE88260

    EFI Memory Descriptors
    Type = 7 Start = 00000000 NumberOfPages = 0000009F
    Type = 0 Start = 0009F000 NumberOfPages = 00000001

The cause is discussed here:
https://www.mail-archive.com/edk2-devel@lists.sourceforge.net/msg06340.html

-- 

DuetPkg: Fix incorrect print formatting when built for X64 mode using gcc.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Scott Duplichan <sc...@notabs.org>

--

Index: DuetPkg/DxeIpl/Debug.c
===================================================================
--- DuetPkg/DxeIpl/Debug.c      (revision 16220)
+++ DuetPkg/DxeIpl/Debug.c      (working copy)
@@ -52,6 +52,7 @@
 }
 
 VOID
+EFIAPI
 PrintString (
   IN CONST CHAR8  *FormatString,
   ...
Index: DuetPkg/DxeIpl/Debug.h
===================================================================
--- DuetPkg/DxeIpl/Debug.h      (revision 16220)
+++ DuetPkg/DxeIpl/Debug.h      (working copy)
@@ -27,6 +27,7 @@
   );
 
 VOID
+EFIAPI
 PrintString (
   IN CONST CHAR8  *FormatString,
   ...
Index: DuetPkg/EfiLdr/Debug.c
===================================================================
--- DuetPkg/EfiLdr/Debug.c      (revision 16220)
+++ DuetPkg/EfiLdr/Debug.c      (working copy)
@@ -49,6 +49,7 @@
 }
 
 VOID
+EFIAPI
 PrintString (
   IN CONST CHAR8  *FormatString,
   ...
Index: DuetPkg/EfiLdr/Debug.h
===================================================================
--- DuetPkg/EfiLdr/Debug.h      (revision 16220)
+++ DuetPkg/EfiLdr/Debug.h      (working copy)
@@ -27,6 +27,7 @@
   );
 
 VOID
+EFIAPI
 PrintString (
   IN CONST CHAR8  *FormatString,
   ...

-- 
Thanks,
Scott

Attachment: duet-print-fix.patch
Description: Binary data

------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to