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
cc686492
Unverified
Commit
cc686492
authored
Mar 18, 2019
by
Soby Mathew
Committed by
GitHub
Mar 18, 2019
Browse files
Merge pull request #1892 from sandrine-bailleux-arm/sb/pauth
Pointer authentication fixes
parents
73050e69
47102b35
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/el3_runtime/aarch64/context.S
View file @
cc686492
...
@@ -356,7 +356,7 @@ func pauth_context_restore
...
@@ -356,7 +356,7 @@ func pauth_context_restore
msr
APIAKeyLo_EL1
,
x9
msr
APIAKeyLo_EL1
,
x9
msr
APIAKeyHi_EL1
,
x10
msr
APIAKeyHi_EL1
,
x10
ldp
x9
,
x10
,
[
x11
,
#
CTX_PACI
A
KEY_LO
]
ldp
x9
,
x10
,
[
x11
,
#
CTX_PACI
B
KEY_LO
]
msr
APIBKeyLo_EL1
,
x9
msr
APIBKeyLo_EL1
,
x9
msr
APIBKeyHi_EL1
,
x10
msr
APIBKeyHi_EL1
,
x10
...
...
plat/arm/common/aarch64/arm_pauth.c
View file @
cc686492
...
@@ -9,11 +9,9 @@
...
@@ -9,11 +9,9 @@
/*
/*
* Instruction pointer authentication key A. The low 64-bit are at [0], and the
* Instruction pointer authentication key A. The low 64-bit are at [0], and the
* high bits at [1]. They are run-time constants so they are placed in the
* high bits at [1].
* rodata section. They are written before MMU is turned on and the permissions
* are effective.
*/
*/
uint64_t
plat_apiakey
[
2
]
__section
(
"rodata.apiakey"
)
;
uint64_t
plat_apiakey
[
2
];
/*
/*
* This is only a toy implementation to generate a seemingly random 128-bit key
* This is only a toy implementation to generate a seemingly random 128-bit key
...
...
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