view src/cs/system/main/gcc/irq_twiddle.S @ 85:332bff2bd3b4

rm src/ui/bmi/mmiBtips* This code came from LoCosto version of BMI, but it is not compiled in our TCS2/TCS3 hybrid, and it is an area of functionality (Bluetooth) which we principally Do Not Want in FreeCalypso - so remove it.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 08 Nov 2020 00:38:23 +0000
parents 4e78acac3d88
children
line wrap: on
line source

/*
 * TI's L1 code (and possibly other parts of the software suite) calls
 * functions named INT_DisableIRQ() and INT_EnableIRQ(); in TI's original
 * fw they are implemented (in a very ugly manner, as usual) in the
 * int.s entry point assembly module.  Here we implement the same
 * functions in a cleaner way.
 */

#include "asm_defs.h"

	.code 32
	.text

	.globl	INT_DisableIRQ
INT_DisableIRQ:
	mrs	r0, CPSR
	orr	r0, r0, #LOCKOUT
	msr	CPSR, r0
	bx	lr

	.globl	INT_EnableIRQ
INT_EnableIRQ:
	mrs	r0, CPSR
	bic	r0, r0, #LOCKOUT
	msr	CPSR, r0
	bx	lr