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.
This commit is contained in:
parent
866780f714
commit
4344b95d5c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue