1 // SPDX-License-Identifier: GPL-2.0
3 * SHcompact irqflags support
5 * Copyright (C) 2006 - 2009 Paul Mundt
7 #include <linux/irqflags.h>
8 #include <linux/module.h>
10 void notrace
arch_local_irq_restore(unsigned long flags
)
12 unsigned long __dummy0
, __dummy1
;
14 if (flags
== ARCH_IRQ_DISABLED
) {
15 __asm__
__volatile__ (
24 __asm__
__volatile__ (
27 #ifdef CONFIG_CPU_HAS_SR_RB
32 : "=&r" (__dummy0
), "=r" (__dummy1
)
33 : "1" (~ARCH_IRQ_DISABLED
)
38 EXPORT_SYMBOL(arch_local_irq_restore
);
40 unsigned long notrace
arch_local_save_flags(void)
44 __asm__
__volatile__ (
54 EXPORT_SYMBOL(arch_local_save_flags
);