arm baremetal: svc, get closer but not there yet

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-02-06 00:00:00 +00:00
parent abd61a153a
commit 1e2b7f1e5e
4 changed files with 162 additions and 26 deletions

View File

@@ -19,6 +19,11 @@
SYSREG_READ(name, type) \
SYSREG_WRITE(name, type)
SYSREG_READ_WRITE(uint32_t, daif)
SYSREG_READ_WRITE(uint32_t, spsel)
SYSREG_READ_WRITE(uint64_t, sp_el1)
SYSREG_READ_WRITE(uint64_t, vbar_el1)
#define SVC(immediate) __asm__ __volatile__("svc " #immediate : : : )
#endif