404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.136.11.217: ~ $
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_CRIS_ARCH_IRQFLAGS_H
#define __ASM_CRIS_ARCH_IRQFLAGS_H

#include <linux/types.h>

static inline unsigned long arch_local_save_flags(void)
{
	unsigned long flags;
	asm volatile("move $ccr,%0" : "=rm" (flags) : : "memory");
	return flags;
}

static inline void arch_local_irq_disable(void)
{
	asm volatile("di" : : : "memory");
}

static inline void arch_local_irq_enable(void)
{
	asm volatile("ei" : : : "memory");
}

static inline unsigned long arch_local_irq_save(void)
{
	unsigned long flags = arch_local_save_flags();
	arch_local_irq_disable();
	return flags;
}

static inline void arch_local_irq_restore(unsigned long flags)
{
	asm volatile("move %0,$ccr" : : "rm" (flags) : "memory");
}

static inline bool arch_irqs_disabled_flags(unsigned long flags)
{
	return !(flags & (1 << 5));
}

static inline bool arch_irqs_disabled(void)
{
	return arch_irqs_disabled_flags(arch_local_save_flags());
}

#endif /* __ASM_CRIS_ARCH_IRQFLAGS_H */

Filemanager

Name Type Size Permission Actions
bitops.h File 1.81 KB 0644
bug.h File 2.07 KB 0644
cache.h File 219 B 0644
checksum.h File 726 B 0644
delay.h File 394 B 0644
dma.h File 1.74 KB 0644
io.h File 6.46 KB 0644
io_interface_mux.h File 2.02 KB 0644
irq.h File 5.95 KB 0644
irqflags.h File 994 B 0644
memmap.h File 680 B 0644
mmu.h File 3.4 KB 0644
offset.h File 1.19 KB 0644
page.h File 920 B 0644
pgtable.h File 324 B 0644
processor.h File 2 KB 0644
swab.h File 672 B 0644
system.h File 809 B 0644
thread_info.h File 335 B 0644
timex.h File 982 B 0644
tlb.h File 394 B 0644
uaccess.h File 17.7 KB 0644
unistd.h File 4.38 KB 0644