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 Expose the width of the MIPS_EBASE_CPU...



details:   https://anonhg.NetBSD.org/src/rev/8549a278bbaf
branches:  trunk
changeset: 936149:8549a278bbaf
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Jul 20 03:17:44 2020 +0000

description:
Expose the width of the MIPS_EBASE_CPUNUM bitfield for asm code.

diffstat:

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

diffs (17 lines):

diff -r 1234bd5a09d8 -r 8549a278bbaf sys/arch/mips/include/cpuregs.h
--- a/sys/arch/mips/include/cpuregs.h   Mon Jul 20 02:04:43 2020 +0000
+++ b/sys/arch/mips/include/cpuregs.h   Mon Jul 20 03:17:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpuregs.h,v 1.101 2020/07/20 01:10:38 simonb Exp $     */
+/*     $NetBSD: cpuregs.h,v 1.102 2020/07/20 03:17:44 simonb Exp $     */
 
 /*
  * Copyright (c) 2009 Miodrag Vallat.
@@ -836,6 +836,7 @@
 #define        MIPS_EBASE_EXC_BASE_SHIFT       12
 #define        MIPS_EBASE_EXC_BASE             __BITS(29, MIPS_EBASE_EXC_BASE_SHIFT)
 #define        MIPS_EBASE_CPUNUM               __BITS(9, 0)
+#define        MIPS_EBASE_CPUNUM_WIDTH         10      /* used by asm code */
 
 /*
  * Hints for the prefetch instruction



Home | Main Index | Thread Index | Old Index