feat(scheduler): working scheduler
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
.macro ventry type
|
||||
.align 7
|
||||
sub sp, sp, #272 // save 272 bytes of stack
|
||||
sub sp, sp, #288 // save 288 bytes of stack
|
||||
stp x0, x1, [sp, #0] // move stack
|
||||
mov x1, #\type // move type to x1
|
||||
b ExceptionsTrapEntry
|
||||
@@ -50,12 +50,17 @@ ExceptionsTrapEntry:
|
||||
mrs x21, elr_el1
|
||||
mrs x22, spsr_el1
|
||||
mrs x23, esr_el1
|
||||
mrs x24, sp_el0
|
||||
|
||||
stp x30, x21, [sp, #16 * 15]
|
||||
stp x22, x23, [sp, #16 * 16]
|
||||
|
||||
mov x0, sp
|
||||
bl ExceptionsHandler
|
||||
mov sp, x0
|
||||
|
||||
ldp x24, xzr, [sp, #16 * 17]
|
||||
msr sp_el0, x24
|
||||
|
||||
ldp x22, x23, [sp, #16 * 16]
|
||||
msr spsr_el1, x22
|
||||
@@ -79,7 +84,7 @@ ExceptionsTrapEntry:
|
||||
ldp x2, x3, [sp, #16 * 1]
|
||||
ldp x0, x1, [sp, #0]
|
||||
|
||||
add sp, sp, #272
|
||||
add sp, sp, #288
|
||||
eret
|
||||
|
||||
.global ExceptionsVectorsInit
|
||||
|
||||
Reference in New Issue
Block a user