Mercurial > hg > Members > taiki > elilo
changeset 16:296600594bff
add struct efi_info
author | taiki |
---|---|
date | Fri, 04 Oct 2013 17:21:19 +0900 |
parents | e4603f44e348 |
children | 5dd44ab62c24 |
files | x86_64/elilo_kernel.o x86_64/ready_kernel.c |
diffstat | 2 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/x86_64/ready_kernel.c Wed Sep 04 21:49:34 2013 -0400 +++ b/x86_64/ready_kernel.c Fri Oct 04 17:21:19 2013 +0900 @@ -3,11 +3,25 @@ #include "elilo.h" #include "pgtable_flags.h" -//#include "sysdeps.h" #include "registers.h" #define ALIGN_4K 12 /* use 4KB aligned */ +/* linux + * arch/x86/include/uapi/asm/bootparam.h + * without loader signature + */ +struct efi_info { + UINT8 efi_loader_signature; + UINT32 efi_systab; + UINT32 efi_memdesc_size; + UINT32 efi_memdesc_version; + UINT32 efi_memmap; + UINT32 efi_memmap_size; + UINT32 efi_systab_hi; + UINT32 efi_memmap_hi; +}; + static void memcpy_for_ready(UINT16 *to, UINT16 *from, UINTN cnt) { UINT16 *t = to;