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
raw_local_irq_restore(unsigned long flags
)
15 unsigned long __dummy0
, __dummy1
;
17 if (flags
== RAW_IRQ_DISABLED
) {
18 __asm__
__volatile__ (
27 __asm__
__volatile__ (
30 #ifdef CONFIG_CPU_HAS_SR_RB
35 : "=&r" (__dummy0
), "=r" (__dummy1
)
36 : "1" (~RAW_IRQ_DISABLED
)
41 EXPORT_SYMBOL(raw_local_irq_restore
);
43 unsigned long notrace
__raw_local_save_flags(void)
47 __asm__
__volatile__ (
57 EXPORT_SYMBOL(__raw_local_save_flags
);