Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jun 2000 02:06:15 +0900
From:      Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
To:        freebsd-current@freebsd.org
Cc:        freebsd-smp@freebsd.org, msmith@freebsd.org, jlemon@flugsvamp.com, sumitani@bd2.hnes.nec.co.jp
Subject:   SMP + APM = panic -> fixed!
Message-ID:  <20000607020615U.iwasaki@jp.FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hi,

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];
 #else
     p_gdt = gdt;
 #endif


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000607020615U.iwasaki>