mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
amd64: do not touch low memory in AP startup unless we used legacy boot
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D31121
This commit is contained in:
parent
6a3821369f
commit
48216088b1
@ -450,13 +450,16 @@ start_all_aps(void)
|
||||
}
|
||||
|
||||
/* save the current value of the warm-start vector */
|
||||
mpbioswarmvec = *((u_int32_t *) WARMBOOT_OFF);
|
||||
if (!efi_boot)
|
||||
mpbioswarmvec = *((u_int32_t *) WARMBOOT_OFF);
|
||||
outb(CMOS_REG, BIOS_RESET);
|
||||
mpbiosreason = inb(CMOS_DATA);
|
||||
|
||||
/* setup a vector to our boot code */
|
||||
*((volatile u_short *) WARMBOOT_OFF) = WARMBOOT_TARGET;
|
||||
*((volatile u_short *) WARMBOOT_SEG) = (boot_address >> 4);
|
||||
if (!efi_boot) {
|
||||
*((volatile u_short *)WARMBOOT_OFF) = WARMBOOT_TARGET;
|
||||
*((volatile u_short *)WARMBOOT_SEG) = (boot_address >> 4);
|
||||
}
|
||||
outb(CMOS_REG, BIOS_RESET);
|
||||
outb(CMOS_DATA, BIOS_WARM); /* 'warm-start' */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user