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 Add CPU_ID_CPU_MASK. Different, but (I...
details: https://anonhg.NetBSD.org/src/rev/4c36b773f261
branches: trunk
changeset: 504097:4c36b773f261
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Wed Feb 21 17:41:58 2001 +0000
description:
Add CPU_ID_CPU_MASK. Different, but (I hope) more useful definition than
arm32 currently uses.
diffstat:
sys/arch/arm/include/armreg.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 7724d6860d7a -r 4c36b773f261 sys/arch/arm/include/armreg.h
--- a/sys/arch/arm/include/armreg.h Wed Feb 21 17:23:09 2001 +0000
+++ b/sys/arch/arm/include/armreg.h Wed Feb 21 17:41:58 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: armreg.h,v 1.1 2001/01/22 22:10:40 bjh21 Exp $ */
+/* $NetBSD: armreg.h,v 1.2 2001/02/21 17:41:58 bjh21 Exp $ */
/*
* Copyright (c) 1998, 2001 Ben Harris
@@ -139,11 +139,13 @@
/* Next three nybbles are part number */
#define CPU_ID_PARTNO_MASK 0x0000fff0
-#define CPU_ID_CPU_MASK CPU_ID_PARTNO_MASK
/* And finally, the revision number. */
#define CPU_ID_REVISION_MASK 0x0000000f
+/* Individual CPUs are probably best IDed by everything but the revision. */
+#define CPU_ID_CPU_MASK 0xfffffff0
+
/* Fake CPU IDs for ARMs without CP15 */
#define CPU_ID_ARM2 0x41560200
#define CPU_ID_ARM250 0x41560250
Home |
Main Index |
Thread Index |
Old Index