Module Name: src
Committed By: thorpej
Date: Sat Jan 20 02:23:15 UTC 2024
Modified Files:
src/sys/arch/m68k/include: cpu.h
Log Message:
What good are comments, really, if you can't have a little color? Add
a note above CLKF_INTR() about why NetBSD will likely never switch to
using the "master" stack for the kernel, and thus why the not-enabled
version of CLKF_INTR() will never be enabled.
(Adding the comment here, rather than just deleting the code, has value,
I think, for future retrocomputing archeologists.)
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/m68k/include/cpu.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/m68k/include/cpu.h
diff -u src/sys/arch/m68k/include/cpu.h:1.22 src/sys/arch/m68k/include/cpu.h:1.23
--- src/sys/arch/m68k/include/cpu.h:1.22 Sat Jan 20 00:15:31 2024
+++ src/sys/arch/m68k/include/cpu.h Sat Jan 20 02:23:15 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.22 2024/01/20 00:15:31 thorpej Exp $ */
+/* $NetBSD: cpu.h,v 1.23 2024/01/20 02:23:15 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -168,6 +168,13 @@ struct clockframe {
*
* XXX Actually, we can't, because we don't use the master stack
* XXX right now.
+ *
+ * (Actually, it's unlikely that we'll ever use the master stack in NetBSD.
+ * It would complicate the spl*() functions considerably and it just doesn't
+ * seem like a good trade-off for what seems like extremely marginal gains.
+ * So, just blissfully run the kernel on the interrupt stack all the time,
+ * and it's been that way for >30 years and no one has really complained
+ * about it.)
*/
#define CLKF_INTR(framep) (((framep)->cf_sr & PSL_M) == 0)
#else