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:
parent
2255fb48ad
commit
cb57f1c368
4 changed files with 4 additions and 2 deletions
BIN
dist/bootboot.efi
vendored
BIN
dist/bootboot.efi
vendored
Binary file not shown.
BIN
dist/bootboot.rom
vendored
BIN
dist/bootboot.rom
vendored
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -380,7 +380,8 @@ EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *Volume;
|
||||||
EFI_FILE_HANDLE RootDir;
|
EFI_FILE_HANDLE RootDir;
|
||||||
EFI_FILE_PROTOCOL *Root;
|
EFI_FILE_PROTOCOL *Root;
|
||||||
SIMPLE_INPUT_INTERFACE *CI;
|
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
|
// default environment variables. M$ states that 1024x768 must be supported
|
||||||
int reqwidth = 1024, reqheight = 768;
|
int reqwidth = 1024, reqheight = 768;
|
||||||
|
@ -2124,6 +2125,7 @@ get_memory_map:
|
||||||
|
|
||||||
// release AP spinlock
|
// release AP spinlock
|
||||||
bsp_done = 1;
|
bsp_done = 1;
|
||||||
|
__asm__ __volatile__ ("pause" : : : "memory"); // memory barrier
|
||||||
bootboot_startcore((VOID*)bsp_num);
|
bootboot_startcore((VOID*)bsp_num);
|
||||||
}
|
}
|
||||||
return report(status,L"Initrd not found");
|
return report(status,L"Initrd not found");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue