We're having this problem for long time (from the old 4.0-CURRENT
days), but Mr. SUMITANI discovered a bug and fixed it.
The problem was that we got worng gdt pointer for the current cpu,
then panic...
The followings is a patch to fix the problem.  Thanks a lot, SUMITANI-san!
Please test this and I'll commit & MFC this if we have no problem with
this fix.
I love to have APM enabled SMP system with 4.1-RELEASE.

Index: bios.c
RCS file: /home/ncvs/src/sys/i386/i386/bios.c,v
retrieving revision 1.32
diff -u -r1.32 bios.c
--- bios.c      2000/05/17 19:44:16     1.32
+++ bios.c      2000/06/06 16:47:46
@@ -262,7 +262,7 @@
     union descriptor *p_gdt;
 #ifdef SMP
-    p_gdt = &gdt[cpuid];
+    p_gdt = &gdt[cpuid * NGDT];
     p_gdt = gdt;

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to