2010-04-19 18:16:48 +04:00
|
|
|
/*
|
2022-02-18 19:41:52 +03:00
|
|
|
* Copyright 2022, Haiku Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
2010-04-19 18:16:48 +04:00
|
|
|
* Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _SYSTEM_ARCH_ARM_DEFS_H
|
|
|
|
#define _SYSTEM_ARCH_ARM_DEFS_H
|
|
|
|
|
|
|
|
|
|
|
|
#define SPINLOCK_PAUSE() do {} while (false)
|
|
|
|
|
2022-02-24 22:41:57 +03:00
|
|
|
#define CPSR_MODE_MASK 0x1f
|
|
|
|
#define CPSR_MODE_USR 0x10
|
2022-09-04 20:09:26 +03:00
|
|
|
#define CPSR_MODE_FIQ 0x11
|
|
|
|
#define CPSR_MODE_IRQ 0x12
|
2022-02-28 15:35:08 +03:00
|
|
|
#define CPSR_MODE_SVC 0x13
|
2022-09-04 20:09:26 +03:00
|
|
|
#define CPSR_MODE_ABT 0x17
|
|
|
|
#define CPSR_MODE_UND 0x1b
|
2022-02-28 15:35:08 +03:00
|
|
|
#define CPSR_MODE_SYS 0x1f
|
|
|
|
|
|
|
|
#define CPSR_T 0x20
|
|
|
|
#define CPSR_F 0x40
|
|
|
|
#define CPSR_I 0x80
|
2022-02-24 22:41:57 +03:00
|
|
|
|
2023-05-30 20:21:31 +03:00
|
|
|
#define SCTLR_HIGH_VECTORS 0x00002000
|
|
|
|
|
2022-02-18 19:41:52 +03:00
|
|
|
#define FSR_WNR 0x800
|
2022-09-05 14:44:07 +03:00
|
|
|
#define FSR_LPAE 0x200
|
|
|
|
|
|
|
|
#define FSR_FS_ALIGNMENT_FAULT 0x01
|
2023-05-09 22:40:04 +03:00
|
|
|
#define FSR_FS_ACCESS_FLAG_FAULT 0x06
|
2022-09-05 14:44:07 +03:00
|
|
|
#define FSR_FS_PERMISSION_FAULT_L1 0x0d
|
|
|
|
#define FSR_FS_PERMISSION_FAULT_L2 0x0f
|
2010-04-19 18:16:48 +04:00
|
|
|
|
2023-06-15 16:08:46 +03:00
|
|
|
#define FSR_FS_MASK 0x040f
|
|
|
|
#define FSR_LPAE_MASK 0x0200
|
|
|
|
|
2010-04-19 18:16:48 +04:00
|
|
|
#endif /* _SYSTEM_ARCH_ARM_DEFS_H */
|