mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-25 01:19:20 -04:00

Enable Qemu syscall handling by defining QEMU_SYSCALL instead of QEMU_DEBUG. That way we can select either or.
21 lines
285 B
ArmAsm
21 lines
285 B
ArmAsm
#ifdef QEMU_SYSCALL
|
|
|
|
#define picorv32_maskirq_insn(...)
|
|
|
|
#else
|
|
|
|
#include "../tk1/picorv32/custom_ops.S"
|
|
|
|
#endif
|
|
|
|
.section ".text"
|
|
.globl syscall_enable
|
|
|
|
|
|
syscall_enable:
|
|
/* Enable syscall IRQ */
|
|
li t0, 0x7fffffff // IRQ31 mask
|
|
picorv32_maskirq_insn(zero, t0) // Enable IRQs
|
|
|
|
ret
|