Path: blob/master/arch/arm/mach-orion5x/include/mach/entry-macro.S
10820 views
/*1* arch/arm/mach-orion5x/include/mach/entry-macro.S2*3* Low-level IRQ helper macros for Orion platforms4*5* This file is licensed under the terms of the GNU General Public6* License version 2. This program is licensed "as is" without any7* warranty of any kind, whether express or implied.8*/910#include <mach/bridge-regs.h>1112.macro disable_fiq13.endm1415.macro arch_ret_to_user, tmp1, tmp216.endm1718.macro get_irqnr_preamble, base, tmp19ldr \base, =MAIN_IRQ_CAUSE20.endm2122.macro get_irqnr_and_base, irqnr, irqstat, base, tmp23ldr \irqstat, [\base, #0] @ main cause24ldr \tmp, [\base, #(MAIN_IRQ_MASK - MAIN_IRQ_CAUSE)] @ main mask25mov \irqnr, #0 @ default irqnr26@ find cause bits that are unmasked27ands \irqstat, \irqstat, \tmp @ clear Z flag if any28clzne \irqnr, \irqstat @ calc irqnr29rsbne \irqnr, \irqnr, #3130.endm313233