Subject: Re: Instability in -current
To: Gary Duzan <gary@duzan.org>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 05/21/2007 04:21:42
On Sun, 20 May 2007 22:18:09 -0400
Gary Duzan <gary@duzan.org> wrote:
> I tried the following, but it didn't seem to help. The easiest
> way I've found to crash X is to bring up a bunch of tabs in firefox,
> but parallel kernel builds are dying, too.
I've been using the following patch since yamt-idlelwp was merged in.
With that patch it works rock solid (Frank Van Der Linden is still
trying to find the problem) so it's a temporary workaround:
$ cat
locore.diff Index: locore.S
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/amd64/locore.S,v
retrieving revision 1.23
diff -b -u -r1.23 locore.S
--- locore.S 19 May 2007 20:20:47 -0000 1.23
+++ locore.S 20 May 2007 00:29:36 -0000
@@ -843,6 +843,8 @@
movq CPUVAR(SCRATCH),%r15
subq $32,%rsp
INTR_SAVE_GPRS
+ movw %fs,TF_FS(%rsp)
+ movw %gs,TF_GS(%rsp)
movw %es,TF_ES(%rsp)
movw $(LSEL(LUDATA_SEL, SEL_UPL)),TF_DS(%rsp)
movq %r11, TF_RFLAGS(%rsp) /* old rflags from syscall insn */
@@ -883,6 +885,8 @@
cli
swapgs
movw TF_ES(%rsp),%es
+ movw TF_FS(%rsp),%fs
+ movw TF_GS(%rsp),%gs
INTR_RESTORE_GPRS
movw $(LSEL(LUDATA_SEL, SEL_UPL)),%r11
movw %r11,%ds
$
--
http://plog.xtrarom.org/
Juan RP's blog - NetBSD/pkgsrc news in Spanish