Linux-libre 5.4.48-gnu
[librecmc/linux-libre.git] / arch / arm / mach-rpc / include / mach / entry-macro.S
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <mach/hardware.h>
3 #include <asm/hardware/entry-macro-iomd.S>
4
5         .equ    ioc_base_high, IOC_BASE & 0xff000000
6         .equ    ioc_base_low, IOC_BASE & 0x00ff0000
7
8         .macro  get_irqnr_preamble, base, tmp
9         mov     \base, #ioc_base_high           @ point at IOC
10         .if     ioc_base_low
11         orr     \base, \base, #ioc_base_low
12         .endif
13         .endm