diff options
author | Kuan-Ying Lee <[email protected]> | 2024-08-14 16:51:19 +0800 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2024-08-30 16:25:02 +0200 |
commit | 92ac55ef550a243dc0fab8b4c44cb217a4cb2524 (patch) | |
tree | 39ed2cf8eba2df8a79a247dcf2096bf84b5f465c | |
parent | c12063d5d04c9b9654fd98ee628a31d599abfbb7 (diff) |
aarch64: Add NT_ARM_PAC_* regset
Add the NT_ARM_PAC_MASK and NT_ARM_PAC_ENABLED_KEYS for aarch64.
Recognize and print the new core item.
Signed-off-by: Kuan-Ying Lee <[email protected]>
-rw-r--r-- | backends/aarch64_corenote.c | 9 | ||||
-rw-r--r-- | libebl/eblcorenotetypename.c | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/backends/aarch64_corenote.c b/backends/aarch64_corenote.c index 38b21de7..9966e427 100644 --- a/backends/aarch64_corenote.c +++ b/backends/aarch64_corenote.c @@ -127,6 +127,14 @@ static const Ebl_Core_Item aarch64_pac_items [] = } }; +static const Ebl_Core_Item aarch64_pac_enabled_items [] = + { + { + .name = "enabled_keys", .type = ELF_T_XWORD, .format = 'x', + .offset = 0, .group = "register" + } + }; + #define AARCH64_HWBP_REG(KIND, N) \ { \ .name = "DBG" KIND "VR" #N "_EL1", .type = ELF_T_XWORD, .format = 'x', \ @@ -189,6 +197,7 @@ AARCH64_BP_WP_GROUP ("W", aarch64_hw_wp_items); EXTRA_ITEMS (NT_ARM_HW_WATCH, 264, aarch64_hw_wp_items) \ EXTRA_ITEMS (NT_ARM_SYSTEM_CALL, 4, aarch64_syscall_items) \ EXTRA_ITEMS (NT_ARM_TAGGED_ADDR_CTRL, 8, aarch64_mte_items) \ + EXTRA_ITEMS (NT_ARM_PAC_ENABLED_KEYS, 8, aarch64_pac_enabled_items) \ EXTRA_ITEMS (NT_ARM_PAC_MASK, 16, aarch64_pac_items) #include "linux-core-note.c" diff --git a/libebl/eblcorenotetypename.c b/libebl/eblcorenotetypename.c index 7bb5333a..eab9a5dc 100644 --- a/libebl/eblcorenotetypename.c +++ b/libebl/eblcorenotetypename.c @@ -96,6 +96,8 @@ ebl_core_note_type_name (Ebl *ebl, uint32_t type, char *buf, size_t len) KNOWNSTYPE (ARM_SVE); KNOWNSTYPE (ARM_SSVE); KNOWNSTYPE (ARM_ZA); + KNOWNSTYPE (ARM_PAC_ENABLED_KEYS); + KNOWNSTYPE (ARM_PAC_MASK); KNOWNSTYPE (SIGINFO); KNOWNSTYPE (FILE); #undef KNOWNSTYPE |