Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
faf7713c
Commit
faf7713c
authored
Aug 18, 2020
by
Alexei Fedorov
Committed by
TrustedFirmware Code Review
Aug 18, 2020
Browse files
Merge "el3_runtime: Rearrange context offset of EL1 sys registers" into integration
parents
e4ded0c6
cb55615c
Changes
2
Show whitespace changes
Inline
Side-by-side
include/lib/el3_runtime/aarch64/context.h
View file @
faf7713c
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
#define CTX_SPSR_EL1 U(0x0)
#define CTX_SPSR_EL1 U(0x0)
#define CTX_ELR_EL1 U(0x8)
#define CTX_ELR_EL1 U(0x8)
#define CTX_SCTLR_EL1 U(0x10)
#define CTX_SCTLR_EL1 U(0x10)
#define CTX_
ACTL
R_EL1 U(0x18)
#define CTX_
TC
R_EL1 U(0x18)
#define CTX_CPACR_EL1 U(0x20)
#define CTX_CPACR_EL1 U(0x20)
#define CTX_CSSELR_EL1 U(0x28)
#define CTX_CSSELR_EL1 U(0x28)
#define CTX_SP_EL1 U(0x30)
#define CTX_SP_EL1 U(0x30)
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
#define CTX_TTBR1_EL1 U(0x48)
#define CTX_TTBR1_EL1 U(0x48)
#define CTX_MAIR_EL1 U(0x50)
#define CTX_MAIR_EL1 U(0x50)
#define CTX_AMAIR_EL1 U(0x58)
#define CTX_AMAIR_EL1 U(0x58)
#define CTX_
TC
R_EL1 U(0x60)
#define CTX_
ACTL
R_EL1 U(0x60)
#define CTX_TPIDR_EL1 U(0x68)
#define CTX_TPIDR_EL1 U(0x68)
#define CTX_TPIDR_EL0 U(0x70)
#define CTX_TPIDR_EL0 U(0x70)
#define CTX_TPIDRRO_EL0 U(0x78)
#define CTX_TPIDRRO_EL0 U(0x78)
...
...
lib/el3_runtime/aarch64/context.S
View file @
faf7713c
...
@@ -421,7 +421,7 @@ func el1_sysregs_context_save
...
@@ -421,7 +421,7 @@ func el1_sysregs_context_save
stp
x9
,
x10
,
[
x0
,
#
CTX_SPSR_EL1
]
stp
x9
,
x10
,
[
x0
,
#
CTX_SPSR_EL1
]
mrs
x15
,
sctlr_el1
mrs
x15
,
sctlr_el1
mrs
x16
,
actl
r_el1
mrs
x16
,
tc
r_el1
stp
x15
,
x16
,
[
x0
,
#
CTX_SCTLR_EL1
]
stp
x15
,
x16
,
[
x0
,
#
CTX_SCTLR_EL1
]
mrs
x17
,
cpacr_el1
mrs
x17
,
cpacr_el1
...
@@ -440,9 +440,9 @@ func el1_sysregs_context_save
...
@@ -440,9 +440,9 @@ func el1_sysregs_context_save
mrs
x15
,
amair_el1
mrs
x15
,
amair_el1
stp
x14
,
x15
,
[
x0
,
#
CTX_MAIR_EL1
]
stp
x14
,
x15
,
[
x0
,
#
CTX_MAIR_EL1
]
mrs
x16
,
tc
r_el1
mrs
x16
,
actl
r_el1
mrs
x17
,
tpidr_el1
mrs
x17
,
tpidr_el1
stp
x16
,
x17
,
[
x0
,
#
CTX_
TC
R_EL1
]
stp
x16
,
x17
,
[
x0
,
#
CTX_
ACTL
R_EL1
]
mrs
x9
,
tpidr_el0
mrs
x9
,
tpidr_el0
mrs
x10
,
tpidrro_el0
mrs
x10
,
tpidrro_el0
...
@@ -519,7 +519,7 @@ func el1_sysregs_context_restore
...
@@ -519,7 +519,7 @@ func el1_sysregs_context_restore
ldp
x15
,
x16
,
[
x0
,
#
CTX_SCTLR_EL1
]
ldp
x15
,
x16
,
[
x0
,
#
CTX_SCTLR_EL1
]
msr
sctlr_el1
,
x15
msr
sctlr_el1
,
x15
msr
actl
r_el1
,
x16
msr
tc
r_el1
,
x16
ldp
x17
,
x9
,
[
x0
,
#
CTX_CPACR_EL1
]
ldp
x17
,
x9
,
[
x0
,
#
CTX_CPACR_EL1
]
msr
cpacr_el1
,
x17
msr
cpacr_el1
,
x17
...
@@ -537,8 +537,8 @@ func el1_sysregs_context_restore
...
@@ -537,8 +537,8 @@ func el1_sysregs_context_restore
msr
mair_el1
,
x14
msr
mair_el1
,
x14
msr
amair_el1
,
x15
msr
amair_el1
,
x15
ldp
x16
,
x17
,
[
x0
,
#
CTX_
TC
R_EL1
]
ldp
x16
,
x17
,
[
x0
,
#
CTX_
ACTL
R_EL1
]
msr
tc
r_el1
,
x16
msr
actl
r_el1
,
x16
msr
tpidr_el1
,
x17
msr
tpidr_el1
,
x17
ldp
x9
,
x10
,
[
x0
,
#
CTX_TPIDR_EL0
]
ldp
x9
,
x10
,
[
x0
,
#
CTX_TPIDR_EL0
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment