Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/include Wire CLKF_BASEPRI() to 0 on this platf...



details:   https://anonhg.NetBSD.org/src/rev/361c28faeca3
branches:  trunk
changeset: 526695:361c28faeca3
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed May 08 18:45:49 2002 +0000

description:
Wire CLKF_BASEPRI() to 0 on this platform.  (See tech-kern.)

diffstat:

 sys/arch/i386/include/cpu.h |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 7210ee27e64a -r 361c28faeca3 sys/arch/i386/include/cpu.h
--- a/sys/arch/i386/include/cpu.h       Wed May 08 18:18:55 2002 +0000
+++ b/sys/arch/i386/include/cpu.h       Wed May 08 18:45:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.78 2002/01/31 17:41:38 christos Exp $        */
+/*     $NetBSD: cpu.h,v 1.79 2002/05/08 18:45:49 mycroft Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -103,12 +103,14 @@
  * encapsulate the previous machine state in an opaque
  * clockframe; for now, use generic intrframe.
  *
- * XXX intrframe has a lot of gunk we don't need.
+ * Note: Since spllowersoftclock() does not actually unmask the currently
+ * running (hardclock) interrupt, CLKF_BASEPRI() *must* always be 0; otherwise
+ * we could stall hardclock ticks if another interrupt takes too long.
  */
 #define clockframe intrframe
 
 #define        CLKF_USERMODE(frame)    USERMODE((frame)->if_cs, (frame)->if_eflags)
-#define        CLKF_BASEPRI(frame)     ((frame)->if_ppl == 0)
+#define        CLKF_BASEPRI(frame)     (0)
 #define        CLKF_PC(frame)          ((frame)->if_eip)
 #define        CLKF_INTR(frame)        ((frame)->if_ppl & (1 << IPL_TAGINTR))
 



Home | Main Index | Thread Index | Old Index