2 * SHcompact irqflags support
4 * Copyright (C) 2006 - 2009 Paul Mundt
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
10 #include <linux/irqflags.h>
11 #include <linux/module.h>
13 void notrace
arch_local_irq_restore(unsigned long flags
)
15 unsigned long __dummy0
, __dummy1
;
17 if (flags
== ARCH_IRQ_DISABLED
) {
18 __asm__
__volatile__ (
27 __asm__
__volatile__ (
30 #ifdef CONFIG_CPU_HAS_SR_RB
35 : "=&r" (__dummy0
), "=r" (__dummy1
)
36 : "1" (~ARCH_IRQ_DISABLED
)
41 EXPORT_SYMBOL(arch_local_irq_restore
);
43 unsigned long notrace
arch_local_save_flags(void)
47 __asm__
__volatile__ (
57 EXPORT_SYMBOL(arch_local_save_flags
);