diff options
Diffstat (limited to 'src/cpu.zig')
-rw-r--r-- | src/cpu.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpu.zig b/src/cpu.zig new file mode 100644 index 0000000..58f5f40 --- /dev/null +++ b/src/cpu.zig @@ -0,0 +1,8 @@ +pub fn interrupt_disable() void { + asm volatile("cpsid i"); +} + +pub fn interrupt_enable() void { + asm volatile("cpsie i"); +} + |