mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 14:43:08 +00:00
exception.c: fix sp calculation in print_regs
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
74d3575369
commit
31b6af14b2
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ void exception_initialize(void)
|
|||
|
||||
void print_regs(u64 *regs)
|
||||
{
|
||||
u64 sp = ((u64)(regs)) - (8 * 31);
|
||||
u64 sp = ((u64)(regs)) + 256;
|
||||
|
||||
printf("Running in EL%d\n", mrs(CurrentEL) >> 2);
|
||||
printf("Registers: (@%p)\n", regs);
|
||||
|
|
Loading…
Reference in a new issue