This is a mirror of the original site (arm.jonpalmisc.com), which was taken down.
Hosted on IPFS, storage on Filebase.
Guarded Control Stack Control Register (EL3)
Controls the Guarded Control Stack at EL3.
This register is present only when FEAT_GCS is implemented and EL3 is implemented. Otherwise, direct accesses to GCSCR_EL3 are UNDEFINED.
GCSCR_EL3 is a 64-bit register.
| 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 |
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RES0 | |||||||||||||||||||||||||||||||
| RES0 | STREn | PUSHMEn | RES0 | EXLOCKEN | RVCHKEN | RES0 | PCRSEL | ||||||||||||||||||||||||
Reserved, RES0.
Execution of the following instructions are trapped:
| STREn | Meaning |
|---|---|
| 0b0 |
Execution of any of the specified instructions at EL3 cause a GCS exception. |
| 0b1 |
This control does not cause any instructions to be trapped. |
The reset behavior of this field is:
Trap GCSPUSHM instruction.
| PUSHMEn | Meaning |
|---|---|
| 0b0 |
Execution of a GCSPUSHM instruction at EL3 causes a Trap exception. |
| 0b1 |
This control does not cause any instructions to be trapped. |
The reset behavior of this field is:
Reserved, RES0.
Exception state lock.
Prevents MSR instructions from writing to ELR_EL3 or SPSR_EL3.
| EXLOCKEN | Meaning |
|---|---|
| 0b0 |
EL3 exception state locking disabled. |
| 0b1 |
EL3 exception state locking enabled. |
The reset behavior of this field is:
Return value check enable.
| RVCHKEN | Meaning |
|---|---|
| 0b0 |
Return value checking disabled at EL3. |
| 0b1 |
Return value checking enabled at EL3. |
The reset behavior of this field is:
Reserved, RES0.
Guarded Control Stack procedure call return enable selection.
| PCRSEL | Meaning |
|---|---|
| 0b0 |
Guarded Control Stack at EL3 is not PCR Selected. |
| 0b1 |
Guarded Control Stack at EL3 is PCR Selected. |
The reset behavior of this field is:
Accesses to this register use the following encodings in the System register encoding space:
MRS <Xt>, GCSCR_EL3
(op0 = 0b11, op1 = 0b110, CRn = 0b0010, CRm = 0b0101, op2 = 0b000)
if !(IsFeatureImplemented(FEAT_GCS) && HaveEL(EL3)) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then Undefined(); elsif PSTATE.EL == EL2 then Undefined(); elsif PSTATE.EL == EL3 then X{64}(t) = GCSCR_EL3(); end;
MSR GCSCR_EL3, <Xt>
(op0 = 0b11, op1 = 0b110, CRn = 0b0010, CRm = 0b0101, op2 = 0b000)
if !(IsFeatureImplemented(FEAT_GCS) && HaveEL(EL3)) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then Undefined(); elsif PSTATE.EL == EL2 then Undefined(); elsif PSTATE.EL == EL3 then if IsFeatureImplemented(FEAT_FGWTE3) && FGWTE3_EL3().GCSCR_EL3 == '1' then AArch64_SystemAccessTrap(EL3, 0x18); else GCSCR_EL3() = X{64}(t); end; end;
Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.
This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.