thermosphere: add CFI where needed, add PANIC macro, etc.

This commit is contained in:
TuxSH
2020-01-02 18:41:52 +00:00
parent 3a13ab2e46
commit ef79908594
7 changed files with 76 additions and 26 deletions

View File

@@ -17,8 +17,10 @@
// Precondition: x1 <= 16
.section .text.loadBreakpointRegs, "ax", %progbits
.type loadBreakpointRegs, %function
.global loadBreakpointRegs
.type loadBreakpointRegs, %function
.func loadBreakpointRegs
.cfi_startproc
loadBreakpointRegs:
// x1 = number
adr x16, 1f
@@ -38,11 +40,15 @@ loadBreakpointRegs:
dsb sy
isb
ret
.endfunc
.cfi_endproc
// Precondition: x1 <= 16
.section .text.loadWatchpointRegs, "ax", %progbits
.type loadWatchpointRegs, %function
.global loadWatchpointRegs
.type loadWatchpointRegs, %function
.func loadWatchpointRegs
.cfi_startproc
loadWatchpointRegs:
// x1 = number
adr x16, 1f
@@ -62,3 +68,5 @@ loadWatchpointRegs:
dsb sy
isb
ret
.endfunc
.cfi_endproc