Path: blob/master/arch/arm/mach-netx/include/mach/entry-macro.S
10820 views
/*1* arch/arm/mach-netx/include/mach/entry-macro.S2*3* Low-level IRQ helper macros for Hilscher netX based platforms4*5* Copyright (C) 2005 Sascha Hauer <[email protected]>, Pengutronix6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 29* as published by the Free Software Foundation.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19*/20#include <mach/hardware.h>2122.macro disable_fiq23.endm2425.macro get_irqnr_preamble, base, tmp26ldr \base, =io_p2v(0x001ff000)27.endm2829.macro arch_ret_to_user, tmp1, tmp230.endm3132.macro get_irqnr_and_base, irqnr, irqstat, base, tmp33ldr \irqstat, [\base, #0]34clz \irqnr, \irqstat35rsb \irqnr, \irqnr, #3136cmp \irqstat, #037.endm38394041