github.com/f-secure-foundry/tamago@v0.0.0-20220307101044-d73fcdd7f11b/arm/irq.go (about) 1 // ARM processor support 2 // https://github.com/f-secure-foundry/tamago 3 // 4 // Copyright (c) F-Secure Corporation 5 // https://foundry.f-secure.com 6 // 7 // Use of this source code is governed by the license 8 // that can be found in the LICENSE file. 9 10 package arm 11 12 // defined in irq.s 13 func irq_enable() 14 func irq_disable() 15 16 // EnableInterrupts enables IRQ and FIQ interrupts. 17 func (cpu *CPU) EnableInterrupts() { 18 irq_enable() 19 } 20 21 // DisableInterrupts disables IRQ and FIQ interrupts. 22 func (cpu *CPU) DisableInterrupts() { 23 irq_disable() 24 }