Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include change #error to KASSERT



details:   https://anonhg.NetBSD.org/src/rev/35de55dc1368
branches:  trunk
changeset: 337863:35de55dc1368
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 01 18:37:40 2015 +0000

description:
change #error to KASSERT

diffstat:

 sys/arch/mips/include/locore.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 121cfdb5a02e -r 35de55dc1368 sys/arch/mips/include/locore.h
--- a/sys/arch/mips/include/locore.h    Fri May 01 18:26:58 2015 +0000
+++ b/sys/arch/mips/include/locore.h    Fri May 01 18:37:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.h,v 1.95 2015/04/29 08:32:00 hikaru Exp $ */
+/* $NetBSD: locore.h,v 1.96 2015/05/01 18:37:40 christos Exp $ */
 
 /*
  * This file should not be included by MI code!!!
@@ -332,7 +332,7 @@
 #elif defined(_LP64)
        rv = *(volatile uint64_t *)addr;
 #else
-#error unknown ABI
+       KASSERT(0);     // LKM, STANDALONE, MODULE
 #endif
        return (rv);
 }
@@ -345,7 +345,7 @@
 #elif defined(_LP64)
        *(volatile uint64_t *)addr = val;
 #else
-#error unknown ABI
+       KASSERT(0);     // LKM, STANDALONE, MODULE
 #endif
 }
 #endif /* (MIPS64 + MIPS64R2) > 0 */



Home | Main Index | Thread Index | Old Index