File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -98,14 +98,22 @@ EFI_STATUS efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
9898 gBS = SystemTable -> BootServices ;
9999 gRT = SystemTable -> RuntimeServices ;
100100
101+ printf ("%s" , banner );
102+
103+ for (uintptr_t i = 0 ; i < 0x100000 ; i += EFI_PAGE_SIZE ) {
104+ uintptr_t j = i ;
105+ if (gBS -> AllocatePages (AllocateAddress , EfiLoaderData , 1 , & j ) != EFI_SUCCESS ) {
106+ if (i < 0xa0000 ) {
107+ printf ("warning: Early AllocatePages() failed for address %p\n" , i );
108+ }
109+ }
110+ }
111+
101112 if (gRT -> GetTime (& gTimeAtBoot , NULL ) != EFI_SUCCESS ) {
102113 printf ("Failed to query current time\n" );
103114 return -1 ;
104115 }
105116
106- printf ("%s" , banner );
107-
108- gBS -> RaiseTPL (TPL_NOTIFY );
109117 gBS -> SetWatchdogTimer (0 , 0 , 0 , NULL );
110118
111119 if (unlock_bios_region ()) {
You can’t perform that action at this time.
0 commit comments