This repository was archived by the owner on Nov 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 14
14
use register:: { cpu:: RegisterReadWrite , register_bitfields} ;
15
15
16
16
register_bitfields ! { u64 ,
17
- SCR_EL3 [
17
+ pub SCR_EL3 [
18
18
/// Execution state control for lower Exception levels:
19
19
///
20
20
/// 0 Lower levels are all AArch32.
@@ -38,6 +38,25 @@ register_bitfields! {u64,
38
38
NextELIsAarch64 = 1
39
39
] ,
40
40
41
+ /// Hypervisor Call Enable
42
+ ///
43
+ /// 0 The HVC instruction is undefined at all exception levels.
44
+ /// 1 The HVC instruction is enabled at EL1, EL2, or EL3
45
+ HCE OFFSET ( 8 ) NUMBITS ( 1 ) [
46
+ HvcDisabled = 0 ,
47
+ HvcEnabled = 1
48
+ ] ,
49
+
50
+ /// Secure Monitor call Disable
51
+ ///
52
+ /// 0 The SMC instruction is enabled at EL1, EL2, and EL3.
53
+ /// 1 The SMC instruction is undefined at all exception levels. At EL1, in the Non-secure
54
+ /// state, the HCR_EL2.TSC bit has priority over this control.
55
+ SMD OFFSET ( 7 ) NUMBITS ( 1 ) [
56
+ SmcEnabled = 0 ,
57
+ SmcDisabled = 1
58
+ ] ,
59
+
41
60
/// Non-secure bit.
42
61
/// * 0b0 Indicates that EL0 and EL1 are in Secure state.
43
62
/// * 0b1 Indicates that Exception levels lower than EL3 are in Non-secure state,
Original file line number Diff line number Diff line change 13
13
use register:: { cpu:: RegisterReadWrite , register_bitfields} ;
14
14
15
15
register_bitfields ! { u64 ,
16
- SPSR_EL3 [
16
+ pub SPSR_EL3 [
17
17
/// Negative condition flag.
18
18
///
19
19
/// Set to the value of the N condition flag on taking an exception to EL3, and copied to
You can’t perform that action at this time.
0 commit comments