summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-07-05 16:55:50 +0000
committermjacob <mjacob@FreeBSD.org>2001-07-05 16:55:50 +0000
commitfcb893ccd5ba7f15c5e4198222a83cecc659c067 (patch)
tree619681a9a9008693160107409bd40108661b185a
parentf36634093c582503927787fa26592eece8db8314 (diff)
downloadFreeBSD-src-fcb893ccd5ba7f15c5e4198222a83cecc659c067.zip
FreeBSD-src-fcb893ccd5ba7f15c5e4198222a83cecc659c067.tar.gz
You cannot require Giant to be locked when you haven't acquired it yet.
-rw-r--r--sys/alpha/alpha/trap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/alpha/alpha/trap.c b/sys/alpha/alpha/trap.c
index fe15204..f2154f7 100644
--- a/sys/alpha/alpha/trap.c
+++ b/sys/alpha/alpha/trap.c
@@ -278,7 +278,10 @@ trap(a0, a1, a2, entry, framep)
critical_exit(s);
#endif
+ /*
GIANT_REQUIRED;
+ * Giant hasn't been acquired yet.
+ */
cnt.v_trap++;
ucode = 0;
@@ -353,8 +356,7 @@ trap(a0, a1, a2, entry, framep)
case ALPHA_KENTRY_IF:
/*
- * These are always fatal in kernel, and should never
- * happen.
+ * These are always fatal in kernel, and should never happen.
*/
if (!user) {
#ifdef DDB
OpenPOWER on IntegriCloud