mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-11-26 02:16:24 -05:00
This was announced on the Tillitis Blog the 2nd of October 2024, for more info visit https://tillitis.se
23 lines
382 B
ArmAsm
23 lines
382 B
ArmAsm
// SPDX-FileCopyrightText: 2025 Tillitis AB <tillitis.se>
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
#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
|