Path: blob/master/arch/arm/mach-iop32x/include/mach/entry-macro.S
17633 views
/*1* arch/arm/mach-iop32x/include/mach/entry-macro.S2*3* Low-level IRQ helper macros for IOP32x-based 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*/9#include <mach/iop32x.h>1011.macro disable_fiq12.endm1314.macro get_irqnr_preamble, base, tmp15mrc p15, 0, \tmp, c15, c1, 016orr \tmp, \tmp, #(1 << 6)17mcr p15, 0, \tmp, c15, c1, 0 @ Enable cp6 access18mrc p15, 0, \tmp, c15, c1, 019mov \tmp, \tmp20sub pc, pc, #4 @ cp_wait21.endm2223.macro get_irqnr_and_base, irqnr, irqstat, base, tmp24mrc p6, 0, \irqstat, c8, c0, 0 @ Read IINTSRC25cmp \irqstat, #026clzne \irqnr, \irqstat27rsbne \irqnr, \irqnr, #3128.endm2930.macro arch_ret_to_user, tmp1, tmp231mrc p15, 0, \tmp1, c15, c1, 032ands \tmp2, \tmp1, #(1 << 6)33bicne \tmp1, \tmp1, #(1 << 6)34mcrne p15, 0, \tmp1, c15, c1, 0 @ Disable cp6 access35.endm363738