summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2023-01-30 12:00:10 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-08 18:19:48 +0000
commit3611427ce243efe48fcbca573781fa7e9f82b558 (patch)
tree60b9216b50a0d050c72f2961b4b4beb76534426f /Kernel
parent5aba83e6ba05b3e94e85d7f68cd662546e1ad563 (diff)
downloadserenity-3611427ce243efe48fcbca573781fa7e9f82b558.zip
Kernel/aarch64: Return correct values from RegisterState accessors
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Arch/aarch64/RegisterState.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Arch/aarch64/RegisterState.h b/Kernel/Arch/aarch64/RegisterState.h
index 14b0fdaaed..c2fc485963 100644
--- a/Kernel/Arch/aarch64/RegisterState.h
+++ b/Kernel/Arch/aarch64/RegisterState.h
@@ -22,19 +22,19 @@ struct RegisterState {
u64 tpidr_el0; // EL0 thread ID
u64 sp_el0; // EL0 stack pointer
- FlatPtr userspace_sp() const { return 0; }
+ FlatPtr userspace_sp() const { return sp_el0; }
void set_userspace_sp(FlatPtr value)
{
(void)value;
TODO_AARCH64();
}
- FlatPtr ip() const { return 0; }
+ FlatPtr ip() const { return elr_el1; }
void set_ip(FlatPtr value)
{
(void)value;
TODO_AARCH64();
}
- FlatPtr bp() const { TODO_AARCH64(); }
+ FlatPtr bp() const { return x[29]; }
ExecutionMode previous_mode() const
{