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)
98
98
gBS = SystemTable -> BootServices ;
99
99
gRT = SystemTable -> RuntimeServices ;
100
100
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
+
101
112
if (gRT -> GetTime (& gTimeAtBoot , NULL ) != EFI_SUCCESS ) {
102
113
printf ("Failed to query current time\n" );
103
114
return -1 ;
104
115
}
105
116
106
- printf ("%s" , banner );
107
-
108
- gBS -> RaiseTPL (TPL_NOTIFY );
109
117
gBS -> SetWatchdogTimer (0 , 0 , 0 , NULL );
110
118
111
119
if (unlock_bios_region ()) {
You can’t perform that action at this time.
0 commit comments