1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00

More bullet-proof UEFI SMP

This commit is contained in:
bzt 2021-01-21 21:37:00 +01:00
parent 2255fb48ad
commit cb57f1c368
4 changed files with 4 additions and 2 deletions

BIN
dist/bootboot.efi vendored

Binary file not shown.

BIN
dist/bootboot.rom vendored

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -380,7 +380,8 @@ EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *Volume;
EFI_FILE_HANDLE RootDir;
EFI_FILE_PROTOCOL *Root;
SIMPLE_INPUT_INTERFACE *CI;
unsigned char *kne, bsp_done=0, nosmp=0;
unsigned char *kne, nosmp=0;
volatile char bsp_done=0;
// default environment variables. M$ states that 1024x768 must be supported
int reqwidth = 1024, reqheight = 768;
@ -2124,6 +2125,7 @@ get_memory_map:
// release AP spinlock
bsp_done = 1;
__asm__ __volatile__ ("pause" : : : "memory"); // memory barrier
bootboot_startcore((VOID*)bsp_num);
}
return report(status,L"Initrd not found");