Path: blob/master/arch/arm/mach-iop33x/include/mach/entry-macro.S
17633 views
/*1* arch/arm/mach-iop33x/include/mach/entry-macro.S2*3* Low-level IRQ helper macros for IOP33x-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/iop33x.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, c14, c0, 0 @ Read IINTVEC25cmp \irqstat, #026mrceq p6, 0, \irqstat, c14, c0, 0 @ erratum 63 workaround27adds \irqnr, \irqstat, #128movne \irqnr, \irqstat, lsr #229.endm3031.macro arch_ret_to_user, tmp1, tmp232mrc p15, 0, \tmp1, c15, c1, 033ands \tmp2, \tmp1, #(1 << 6)34bicne \tmp1, \tmp1, #(1 << 6)35mcrne p15, 0, \tmp1, c15, c1, 0 @ Disable cp6 access36.endm373839