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 When converting an if/panic to a KASSERT ...



details:   https://anonhg.NetBSD.org/src/rev/305d74cb8396
branches:  trunk
changeset: 749251:305d74cb8396
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Nov 23 05:01:12 2009 +0000

description:
When converting an if/panic to a KASSERT it's necessary to reverse the
sense of the test. Makes i386 boot again.

HI RMIND

diffstat:

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

diffs (27 lines):

diff -r ad400db24f69 -r 305d74cb8396 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Mon Nov 23 02:13:44 2009 +0000
+++ b/sys/arch/i386/i386/machdep.c      Mon Nov 23 05:01:12 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.675 2009/11/21 15:38:43 rmind Exp $      */
+/*     $NetBSD: machdep.c,v 1.676 2009/11/23 05:01:12 dholland Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.675 2009/11/21 15:38:43 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.676 2009/11/23 05:01:12 dholland Exp $");
 
 #include "opt_beep.h"
 #include "opt_compat_ibcs2.h"
@@ -1371,7 +1371,7 @@
         * Saving SSE registers won't work if the save area isn't
         * 16-byte aligned.
         */
-       KASSERT(offsetof(struct pcb, pcb_savefpu) & 0xf);
+       KASSERT((offsetof(struct pcb, pcb_savefpu) & 0xf) == 0);
 
        /*
         * Start with 2 color bins -- this is just a guess to get us



Home | Main Index | Thread Index | Old Index