arm64: Save/restore TPIDR_EL0 in _arch_context_swap

It's not used for anything by the OS but userspace might want
to use it for its own purposes.

Change-Id: Icda4bcd6de9d68596555e81293c8bd075f80a2a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7511
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
milek7
2024-03-07 15:53:37 +00:00
committed by waddlesplash
parent ea989da7f1
commit 51edf9322c
2 changed files with 5 additions and 3 deletions
@@ -18,7 +18,7 @@ struct iframe_stack {
struct arch_thread {
uint64 regs[13]; // x19-x30, sp
uint64 regs[14]; // x19-x30, sp, tpidr_el0
uint64 fp_regs[8]; // d8-d15
// used to track interrupts on this thread