tidying
parent
ea497f414e
commit
95bf131d28
@ -1,24 +0,0 @@
|
||||
// ARM processor support
|
||||
// https://github.com/usbarmory/tamago
|
||||
//
|
||||
// Copyright (c) WithSecure Corporation
|
||||
// https://foundry.withsecure.com
|
||||
//
|
||||
// Use of this source code is governed by the license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
package arm
|
||||
|
||||
// defined in irq.s
|
||||
func irq_enable()
|
||||
func irq_disable()
|
||||
|
||||
// EnableInterrupts enables IRQ and FIQ interrupts.
|
||||
func (cpu *CPU) EnableInterrupts() {
|
||||
irq_enable()
|
||||
}
|
||||
|
||||
// DisableInterrupts disables IRQ and FIQ interrupts.
|
||||
func (cpu *CPU) DisableInterrupts() {
|
||||
irq_disable()
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
// ARM processor support
|
||||
// https://github.com/usbarmory/tamago
|
||||
//
|
||||
// Copyright (c) WithSecure Corporation
|
||||
// https://foundry.withsecure.com
|
||||
//
|
||||
// Use of this source code is governed by the license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
// func irq_enable()
|
||||
TEXT ·irq_enable(SB),$0
|
||||
WORD $0xf1080180 // cpsie ai
|
||||
RET
|
||||
|
||||
// func irq_disable()
|
||||
TEXT ·irq_disable(SB),$0
|
||||
WORD $0xf10c0180 // cpsid ai
|
||||
RET
|
Loading…
Reference in New Issue