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
This commit is contained in:
Mitsuru IWASAKI 2000-06-07 17:01:52 +00:00
parent 1a50bd2e37
commit 6b3f7b4cd3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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