From 3611427ce243efe48fcbca573781fa7e9f82b558 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Mon, 30 Jan 2023 12:00:10 +0100 Subject: Kernel/aarch64: Return correct values from RegisterState accessors --- Kernel/Arch/aarch64/RegisterState.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Kernel') 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 { -- cgit v1.2.3