Mercurial > hg > Members > taiki > elilo
changeset 15:e4603f44e348
make SetVirtualAddressMap template
author | taira |
---|---|
date | Wed, 04 Sep 2013 21:49:34 -0400 |
parents | 212d1e8ff02b |
children | 296600594bff |
files | x86_64/elilo_kernel.h x86_64/ready_kernel.c x86_64/sysdeps.h |
diffstat | 3 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/x86_64/elilo_kernel.h Thu Jul 25 02:43:29 2013 -0400 +++ b/x86_64/elilo_kernel.h Wed Sep 04 21:49:34 2013 -0400 @@ -2,7 +2,7 @@ #define ELILO_KERNEL extern EFI_STATUS start_elilo_kernel(); -extern VOID init_pgtable_register(); +extern VOID set_virtual_address_map(); #endif /* ELILO_KERNEL */
--- a/x86_64/ready_kernel.c Thu Jul 25 02:43:29 2013 -0400 +++ b/x86_64/ready_kernel.c Wed Sep 04 21:49:34 2013 -0400 @@ -298,3 +298,16 @@ return EFI_SUCCESS; } + +VOID +set_virtual_address_map() +{ + mmap_desc_t *desc = NULL; + + desc->map_size = 0; + desc->desc_size = 0; + desc->desc_version = 0; + desc->md = NULL; + + efi_call_wapper(RT->SetVirtualAddressMap, 4, desc->map_size, desc->desc_size, desc->desc_version, desc->md); +}