diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2000-06-07 17:01:52 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2000-06-07 17:01:52 +0000 |
commit | 88e918b47416cfebf4458df15357766f184c17cb (patch) | |
tree | c89babea1828a0d9311f7c276d68b79674cec76b /sys/amd64 | |
parent | 3b62c472a01a68a303f7662a362a88f0b624be38 (diff) | |
download | FreeBSD-src-88e918b47416cfebf4458df15357766f184c17cb.zip FreeBSD-src-88e918b47416cfebf4458df15357766f184c17cb.tar.gz |
Fix gdt pointer for the current cpu on SMP.
This will support power-off only. Fix for suspend/resume will come later.
Also, MFC on this is shceduled on next week.
Submitted by: sumitani@bd2.hnes.nec.co.jp
Reviewed by: jlemon
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/bios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/bios.c b/sys/amd64/amd64/bios.c index 541bd3f..687a792 100644 --- a/sys/amd64/amd64/bios.c +++ b/sys/amd64/amd64/bios.c @@ -262,7 +262,7 @@ set_bios_selectors(struct bios_segments *seg, int flags) union descriptor *p_gdt; #ifdef SMP - p_gdt = &gdt[cpuid]; + p_gdt = &gdt[cpuid * NGDT]; #else p_gdt = gdt; #endif |