search for: efi_physical_address

Displaying 5 results from an estimated 5 matches for "efi_physical_address".

2013 Nov 26
3
[PATCH v3 3/8] OvmfPkg: define EFI_XEN_OVMF_INFO and extend XenInfo
...NFO_H__ +#include <Uefi/UefiBaseType.h> + #define EFI_XEN_INFO_GUID \ { 0xd3b46f3b, 0xd441, 0x1244, {0x9a, 0x12, 0x0, 0x12, 0x27, 0x3f, 0xc1, 0x4d } } @@ -35,6 +37,11 @@ typedef struct { /// Hypervisor minor version. /// UINT16 VersionMinor; + /// + /// E820 map + /// + EFI_PHYSICAL_ADDRESS E820; + UINT32 E820EntriesCount; } EFI_XEN_INFO; extern EFI_GUID gEfiXenInfoGuid; diff --git a/OvmfPkg/PlatformPei/Xen.h b/OvmfPkg/PlatformPei/Xen.h new file mode 100644 index 0000000..1885ede --- /dev/null +++ b/OvmfPkg/PlatformPei/Xen.h @@ -0,0 +1,44 @@ +/** @file + Ovmf info structure pass...
2014 Feb 22
2
[PATCH] efi: off-by-one in gdt allocation
...sc gdt = { 0x7ff, (uint64_t *)0 }; struct dt_desc idt = { 0, 0 }; static inline EFI_MEMORY_DESCRIPTOR * @@ -852,12 +852,12 @@ static int build_gdt(void) EFI_STATUS status; /* Allocate gdt consistent with the alignment for architecture */ - status = emalloc(gdt.limit, __SIZEOF_POINTER__ , (EFI_PHYSICAL_ADDRESS *)&gdt.base); + status = emalloc(gdt.limit + 1, __SIZEOF_POINTER__ , (EFI_PHYSICAL_ADDRESS *)&gdt.base); if (status != EFI_SUCCESS) { printf("Failed to allocate memory for GDT, bailing out\n"); return -1; } - memset(gdt.base, 0x0, gdt.limit); + memset(gdt.base, 0x0, gdt....
2014 Feb 13
5
[PATCH] Potential bug in emalloc
From: Sylvain Gault <sylvain.gault at gmail.com> I found something suspicious while hunting another bug a while ago. The conditions for that bug to occur seems quite hard to meet, but it's still code quality improvement. See the commit message for details. Sylvain Gault (1): efi: Suspicious size reduction in emalloc efi/main.c | 4 +--- 1 file changed, 1 insertion(+), 3
2014 Feb 13
0
[PATCH] efi: Suspicious size reduction in emalloc
...ed-off-by: Sylvain Gault <sylvain.gault at gmail.com> --- efi/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/efi/main.c b/efi/main.c index 0e6b137..94878f9 100644 --- a/efi/main.c +++ b/efi/main.c @@ -691,10 +691,8 @@ EFI_STATUS emalloc(UINTN size, UINTN align, EFI_PHYSICAL_ADDRESS *addr) /* Low-memory is super-precious! */ if (end <= 1 << 20) continue; - if (start < 1 << 20) { - size -= (1 << 20) - start; + if (start < 1 << 20) start = (1 << 20); - } aligned = (start + align -1) & ~(align -1); -- 1.8.5.3
2020 Mar 24
2
[PATCH] efi/main.c: include <efisetjmp.h>
..._error_buf, 1); | ^~~~~~~ syslinux/efi/main.c: In function ?build_gdt?: syslinux/efi/main.c:907:75: warning: taking address of packed member of ?struct dt_desc? may result in an unaligned pointer value [-Waddress-of-packed-member] 907 | status = emalloc(gdt.limit, __SIZEOF_POINTER__ , (EFI_PHYSICAL_ADDRESS *)&gdt.base); | ^~~~~~~~~ syslinux/efi/main.c: In function ?efi_main?: syslinux/efi/main.c:1390:7: warning: implicit declaration of function ?setjmp? [-Wimplicit-function-declaration] 1390 | if (!setjmp(&load_...