Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Tidy up ARM7500 restrictions.
details: https://anonhg.NetBSD.org/src/rev/0b28add71bc6
branches: trunk
changeset: 504328:0b28add71bc6
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Tue Feb 27 17:35:49 2001 +0000
description:
Tidy up ARM7500 restrictions.
Also insist on precisely one of PROG32 and PROG26's being turned on.
diffstat:
sys/arch/arm/include/cpu.h | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r 2f123cbd399c -r 0b28add71bc6 sys/arch/arm/include/cpu.h
--- a/sys/arch/arm/include/cpu.h Tue Feb 27 16:00:27 2001 +0000
+++ b/sys/arch/arm/include/cpu.h Tue Feb 27 17:35:49 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.6 2001/02/27 16:00:27 reinoud Exp $ */
+/* $NetBSD: cpu.h,v 1.7 2001/02/27 17:35:49 bjh21 Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@@ -51,6 +51,7 @@
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_cputypes.h"
#include "opt_lockdebug.h"
+#include "opt_progmode.h"
#endif
#ifndef _LOCORE
@@ -58,13 +59,17 @@
#endif /* !_LOCORE */
#include <machine/psl.h>
-#if defined(CPU_ARM7500) && !defined(CPU_ARM7)
-#error "option CPU_ARM7 is required with CPU_ARM7500"
+#if defined(PROG26) && defined(PROG32)
+#error "26-bit and 32-bit CPU support are not compatible"
+#endif
+#if !defined(PROG26) && !defined(PROG32)
+#error "Support for at least one CPU type must be configured into the kernel"
#endif
-#include <arm/armreg.h>
-
#ifdef CPU_ARM7500
+#ifndef CPU_ARM7
+#error "option CPU_ARM7 is required with CPU_ARM7500"
+#endif
#ifdef CPU_ARM6
#error "CPU options CPU_ARM6 and CPU_ARM7500 are not compatible"
#endif
@@ -76,6 +81,8 @@
#endif
#endif /* CPU_ARM7500 */
+#include <arm/armreg.h>
+
#ifdef _LOCORE
#define IRQdisable \
stmfd sp!, {r0} ; \
Home |
Main Index |
Thread Index |
Old Index