kernel/arm: detect read/write access in data abort handler

Use Data Fault Status Register's bit 11 to initialize isWrite.

see: ARMv7 Architecture Reference Manual,section B3.9.5
Distinguishing read and write accesses on Data Abort exceptions

Change-Id: I7da6702fc0e9579e5cb09cba3c5c89f004ec268a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4972
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
David Karoly
2022-02-23 22:42:02 +00:00
committed by waddlesplash
parent 24b174f4f9
commit 4ddef6e701
2 changed files with 9 additions and 3 deletions
@@ -1,4 +1,7 @@
/*
* Copyright 2022, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Copyright 2010, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
@@ -8,5 +11,6 @@
#define SPINLOCK_PAUSE() do {} while (false)
#define FSR_WNR 0x800
#endif /* _SYSTEM_ARCH_ARM_DEFS_H */