Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh5/sh5 Add the critical section types, and cache m...



details:   https://anonhg.NetBSD.org/src/rev/25af5d77b0f5
branches:  trunk
changeset: 536177:25af5d77b0f5
user:      scw <scw%NetBSD.org@localhost>
date:      Tue Sep 10 12:08:49 2002 +0000

description:
Add the critical section types, and cache mode values.
Delete a couple of unused struct cpu_info fields.

diffstat:

 sys/arch/sh5/sh5/genassym.cf |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 67db4bc8388b -r 25af5d77b0f5 sys/arch/sh5/sh5/genassym.cf
--- a/sys/arch/sh5/sh5/genassym.cf      Tue Sep 10 12:06:49 2002 +0000
+++ b/sys/arch/sh5/sh5/genassym.cf      Tue Sep 10 12:08:49 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: genassym.cf,v 1.8 2002/09/04 15:31:06 scw Exp $
+#      $NetBSD: genassym.cf,v 1.9 2002/09/10 12:08:49 scw Exp $
 
 # Copyright 2002 Wasabi Systems, Inc.
 # All rights reserved.
@@ -67,8 +67,6 @@
 
 define SZ_CPU_INFO             sizeof(struct cpu_info)
 define CI_SCHEDSTATE           offsetof(struct cpu_info, ci_schedstate)
-define CI_SPIN_LOCKS           offsetof(struct cpu_info, ci_spin_locks)
-define CI_SIMPLE_LOCKS         offsetof(struct cpu_info, ci_simple_locks)
 define CI_CURPROC              offsetof(struct cpu_info, ci_curproc)
 define CI_CURPCB               offsetof(struct cpu_info, ci_curpcb)
 define CI_CURVSID              offsetof(struct cpu_info, ci_curvsid)
@@ -258,6 +256,12 @@
 define T_WTLBMISS              T_WTLBMISS
 define T_ITLBMISS              T_ITLBMISS
 
+# Critical Section constants
+define CRIT_EXIT               CRIT_EXIT
+define CRIT_SYNC_EXCEPTION     CRIT_SYNC_EXCEPTION
+define CRIT_ASYNC_EXCEPTION    CRIT_ASYNC_EXCEPTION
+define CRIT_TLBMISS_TRAP       CRIT_TLBMISS_TRAP
+
 # Process status constants
 define SONPROC                 SONPROC
 define SRUN                    SRUN
@@ -285,6 +289,8 @@
 define SH5_PTEH_TLBCOOKIE_MASK SH5_PTEH_TLBCOOKIE_MASK
 
 define SH5_PTEL_CB_NOCACHE     SH5_PTEL_CB_NOCACHE
+define SH5_PTEL_CB_WRITETHRU   SH5_PTEL_CB_WRITETHRU
+define SH5_PTEL_CB_WRITEBACK   SH5_PTEL_CB_WRITEBACK
 define SH5_PTEL_SZ_512MB       SH5_PTEL_SZ_512MB
 define SH5_PTEL_PR_R           SH5_PTEL_PR_R
 define SH5_PTEL_PR_W           SH5_PTEL_PR_W



Home | Main Index | Thread Index | Old Index