kern: implement user thread start, el0 code now runs

This commit is contained in:
Michael Scire 2020-02-19 21:21:44 -08:00
parent 560c340c96
commit 80b115ef57
4 changed files with 16 additions and 4 deletions

View file

@ -39,7 +39,7 @@ _ZN3ams4kern4arch5arm6421UserModeThreadStarterEv:
msr sp_el0, x19
msr elr_el1, x20
msr spsr_el1, x21
msr tpidr_el1, x22
msr tpidr_el0, x22
ldp x0, x1, [sp, #(8 * 0)]
ldp x2, x3, [sp, #(8 * 2)]