mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 10:46:40 +07:00
f80dff9da0
get_irqnr_preamble allows machines to take some action before entering the get_irqnr_and_base loop. On iop we enable cp6 access. arch_ret_to_user is added to the userspace return path to allow individual architectures to take actions, like disabling coprocessor access, before the final return to userspace. Per Nicolas Pitre's note, there is no need to cp_wait on the return to user as the latency to return is sufficient. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
38 lines
791 B
ArmAsm
38 lines
791 B
ArmAsm
/*
|
|
* include/asm-arm/arch-ixp23xx/entry-macro.S
|
|
*/
|
|
|
|
.macro disable_fiq
|
|
.endm
|
|
|
|
.macro get_irqnr_preamble, base, tmp
|
|
.endm
|
|
|
|
.macro arch_ret_to_user, tmp1, tmp2
|
|
.endm
|
|
|
|
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
|
|
ldr \irqnr, =(IXP23XX_INTC_VIRT + IXP23XX_INTR_IRQ_ENC_ST_OFFSET)
|
|
ldr \irqnr, [\irqnr] @ get interrupt number
|
|
cmp \irqnr, #0x0 @ spurious interrupt ?
|
|
movne \irqnr, \irqnr, lsr #2 @ skip unwanted low order bits
|
|
subne \irqnr, \irqnr, #1 @ convert to 0 based
|
|
|
|
#if 0
|
|
cmp \irqnr, #IRQ_IXP23XX_PCI_INT_RPH
|
|
bne 1001f
|
|
mov \irqnr, #IRQ_IXP23XX_INTA
|
|
|
|
ldr \irqnr, =0xf5000030
|
|
|
|
mov \tmp, #(1<<26)
|
|
tst \irqnr, \tmp
|
|
movne \irqnr, #IRQ_IXP23XX_INTB
|
|
|
|
mov \tmp, #(1<<27)
|
|
tst \irqnr, \tmp
|
|
movne \irqnr, #IRQ_IXP23XX_INTA
|
|
1001:
|
|
#endif
|
|
.endm
|