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/2be7ead9b974
branches:  trunk
changeset: 973997:2be7ead9b974
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 c78af09dae1c -r 2be7ead9b974 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