Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 Pfff, use %ss and not %ds. The latter is ...



details:   https://anonhg.NetBSD.org/src/rev/6c1fc23c3b0d
branches:  trunk
changeset: 826373:6c1fc23c3b0d
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Aug 30 15:34:57 2017 +0000

description:
Pfff, use %ss and not %ds. The latter is controlled by userland, the former
contains the kernel value (flat); FreeBSD fixed this too a few weeks ago.

As I said earlier, this dtrace code is complete bullshit.

diffstat:

 sys/arch/i386/i386/i386_trap.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r de97fbc218d5 -r 6c1fc23c3b0d sys/arch/i386/i386/i386_trap.S
--- a/sys/arch/i386/i386/i386_trap.S    Wed Aug 30 15:20:09 2017 +0000
+++ b/sys/arch/i386/i386/i386_trap.S    Wed Aug 30 15:34:57 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i386_trap.S,v 1.11 2017/08/18 14:52:19 maxv Exp $      */
+/*     $NetBSD: i386_trap.S,v 1.12 2017/08/30 15:34:57 maxv Exp $      */
 
 /*
  * Copyright 2002 (c) Wasabi Systems, Inc.
@@ -66,7 +66,7 @@
 
 #if 0
 #include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: i386_trap.S,v 1.11 2017/08/18 14:52:19 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i386_trap.S,v 1.12 2017/08/30 15:34:57 maxv Exp $");
 #endif
 
 /*
@@ -139,7 +139,7 @@
        SUPERALIGN_TEXT
 IDTVEC(trap06)
        /* Check if there is no DTrace hook registered. */
-       cmpl    $0,dtrace_invop_jump_addr
+       cmpl    $0,%ss:dtrace_invop_jump_addr
        je      norm_ill
 
        /* Check if this is a user fault. */



Home | Main Index | Thread Index | Old Index