Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/include Change CASMAGIC to 0xFEDABABE so that i...
details: https://anonhg.NetBSD.org/src/rev/5c24fa639b98
branches: trunk
changeset: 374032:5c24fa639b98
user: ragge <ragge%NetBSD.org@localhost>
date: Sun Mar 26 12:23:42 2023 +0000
description:
Change CASMAGIC to 0xFEDABABE so that it cannot accidentally end up in
valid kernel memory. Due to the VARM accesses above S0 should always
give a ptelen trap.
Bug found by Kalvis Duckmanton.
diffstat:
sys/arch/vax/include/trap.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 6349fa2ea50d -r 5c24fa639b98 sys/arch/vax/include/trap.h
--- a/sys/arch/vax/include/trap.h Sun Mar 26 12:21:09 2023 +0000
+++ b/sys/arch/vax/include/trap.h Sun Mar 26 12:23:42 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.h,v 1.24 2011/07/03 02:18:20 matt Exp $ */
+/* $NetBSD: trap.h,v 1.25 2023/03/26 12:23:42 ragge Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -74,7 +74,7 @@
#define AFLT_FLTUND 0xa /* floating underflow */
/* Used by RAS to detect an interrupted CAS */
-#define CASMAGIC 0xBEDABABE /* high end of S0 space */
+#define CASMAGIC 0xFEDABABE /* always invalid space */
/* Trap's coming from user mode */
#define T_USER 0x100
Home |
Main Index |
Thread Index |
Old Index