thermosphere: add semihosting support & load a kernel using it when needed

basically host i/o
This commit is contained in:
TuxSH
2019-07-31 02:30:17 +02:00
parent 6cbf5628d4
commit 7f094044b2
8 changed files with 333 additions and 4 deletions

View File

@@ -173,6 +173,12 @@ vector_entry serror_sp0
.cfi_endproc
/* To save space, insert in an unused vector segment. */
.global semihosting_call
.type semihosting_call, %function
semihosting_call:
hlt #0xF000
ret
.global doSmcIndirectCallImpl
//.type doSmcIndirectCallImpl, %function
doSmcIndirectCallImpl: