[PATCH 03/13] ARM: ensure irqs are disabled

Sascha Hauer s.hauer at pengutronix.de
Mon Oct 8 16:21:43 EDT 2012


On Mon, Oct 08, 2012 at 12:01:17AM +0200, Vicente wrote:
> 
> Signed-off-by: Vicente <vicencb at gmail.com>
> +	/*
> +	 * barebox normally does not use interrupts, but some functionalities
> +	 * (eg. OMAP4_USBBOOT) require them enabled. So be sure interrupts are
> +	 * disabled before exiting.
> +	 */
> +#if __LINUX_ARM_ARCH__ >= 6
> +	__asm__ __volatile__ ("cpsid i\n");
> +#else
> +	__asm__ __volatile__ ("msr cpsr_c, #PSR_I_BIT | SVC_MODE\n");

This does not compile, we are currently lacking a definition of
PSR_I_BIT

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list