Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/arch/mips/include Pull up revision 1.25 (requested ...
details: https://anonhg.NetBSD.org/src/rev/a14f59735504
branches: netbsd-1-5
changeset: 491848:a14f59735504
user: he <he%NetBSD.org@localhost>
date: Thu Jun 07 15:58:51 2001 +0000
description:
Pull up revision 1.25 (requested by hubertf, reviewed by thorpej):
Implement power saving for RM5200 and RM7000 CPUs, as used in
e.g. Cobalt RaQ2.
diffstat:
sys/arch/mips/include/asm.h | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r aded8f4547bb -r a14f59735504 sys/arch/mips/include/asm.h
--- a/sys/arch/mips/include/asm.h Thu Jun 07 15:58:29 2001 +0000
+++ b/sys/arch/mips/include/asm.h Thu Jun 07 15:58:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.23.2.1 2000/07/25 08:33:48 kleink Exp $ */
+/* $NetBSD: asm.h,v 1.23.2.2 2001/06/07 15:58:51 he Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -293,4 +293,22 @@
#define SZREG 8
#endif /* _MIPS_BSD_API */
+/*
+ * The DYNAMIC_STATUS_MASK option adds an additional masking operation
+ * when updating the hardware interrupt mask in the status register.
+ *
+ * This is useful for platforms that need to at run-time mask
+ * interrupts based on motherboard configuration or to handle
+ * slowly clearing interrupts.
+ *
+ * XXX this is only currently implemented for mips3.
+ */
+#ifdef MIPS_DYNAMIC_STATUS_MASK
+#define DYNAMIC_STATUS_MASK(sr,scratch) \
+ lw scratch, mips_dynamic_status_mask; \
+ and sr, sr, scratch
+#else
+#define DYNAMIC_STATUS_MASK(sr,scratch)
+#endif
+
#endif /* _MIPS_ASM_H */
Home |
Main Index |
Thread Index |
Old Index