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:
parent
1a50bd2e37
commit
6b3f7b4cd3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user