Path: blob/master/arch/arm/mach-mxs/include/mach/entry-macro.S
10820 views
/*1* Low-level IRQ helper macros for Freescale MXS-based2*3* Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License along16* with this program; if not, write to the Free Software Foundation, Inc.,17* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.18*/1920#include <mach/mxs.h>2122#define MXS_ICOLL_VBASE MXS_IO_ADDRESS(MXS_ICOLL_BASE_ADDR)23#define HW_ICOLL_STAT_OFFSET 0x702425.macro disable_fiq26.endm2728.macro get_irqnr_and_base, irqnr, irqstat, base, tmp29ldr \irqnr, [\base, #HW_ICOLL_STAT_OFFSET]30cmp \irqnr, #0x7F31strne \irqnr, [\base]32moveqs \irqnr, #033.endm3435.macro get_irqnr_preamble, base, tmp36ldr \base, =MXS_ICOLL_VBASE37.endm3839.macro arch_ret_to_user, tmp1, tmp240.endm414243