OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
arch
/
h8300
/
include
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:12 AM
rwxr-xr-x
📄
Kbuild
1.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
atomic.h
2.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bitops.h
4.45 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bug.h
263 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
byteorder.h
148 bytes
06/16/2023 05:32:39 PM
rw-r--r--
📄
cache.h
281 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg.h
1.49 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma-mapping.h
269 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
elf.h
2.66 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
flat.h
1.1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hash.h
1.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
io.h
1.44 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq.h
555 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqflags.h
1.88 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kgdb.h
1.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
page.h
485 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
page_offset.h
37 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pci.h
421 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable.h
1.7 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
processor.h
3.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
1.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
segment.h
886 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
signal.h
520 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
smp.h
32 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
string.h
389 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
switch_to.h
1.72 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscall.h
1.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
thread_info.h
3.26 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlb.h
166 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
traps.h
1.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
uaccess.h
1.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
user.h
3.34 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: irqflags.h
Close
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _H8300_IRQFLAGS_H #define _H8300_IRQFLAGS_H #ifdef CONFIG_CPU_H8300H typedef unsigned char h8300flags; static inline h8300flags arch_local_save_flags(void) { h8300flags flags; __asm__ volatile ("stc ccr,%w0" : "=r" (flags)); return flags; } static inline void arch_local_irq_disable(void) { __asm__ volatile ("orc #0xc0,ccr"); } static inline void arch_local_irq_enable(void) { __asm__ volatile ("andc #0x3f,ccr"); } static inline h8300flags arch_local_irq_save(void) { h8300flags flags; __asm__ volatile ("stc ccr,%w0\n\t" "orc #0xc0,ccr" : "=r" (flags)); return flags; } static inline void arch_local_irq_restore(h8300flags flags) { __asm__ volatile ("ldc %w0,ccr" : : "r" (flags) : "cc"); } static inline int arch_irqs_disabled_flags(unsigned long flags) { return (flags & 0xc0) == 0xc0; } #endif #ifdef CONFIG_CPU_H8S typedef unsigned short h8300flags; static inline h8300flags arch_local_save_flags(void) { h8300flags flags; __asm__ volatile ("stc ccr,%w0\n\tstc exr,%x0" : "=r" (flags)); return flags; } static inline void arch_local_irq_disable(void) { __asm__ volatile ("orc #0x80,ccr\n\t"); } static inline void arch_local_irq_enable(void) { __asm__ volatile ("andc #0x7f,ccr\n\t" "andc #0xf0,exr\n\t"); } static inline h8300flags arch_local_irq_save(void) { h8300flags flags; __asm__ volatile ("stc ccr,%w0\n\t" "stc exr,%x0\n\t" "orc #0x80,ccr\n\t" : "=r" (flags)); return flags; } static inline void arch_local_irq_restore(h8300flags flags) { __asm__ volatile ("ldc %w0,ccr\n\t" "ldc %x0,exr" : : "r" (flags) : "cc"); } static inline int arch_irqs_disabled_flags(h8300flags flags) { return (flags & 0x0080) == 0x0080; } #endif static inline int arch_irqs_disabled(void) { return arch_irqs_disabled_flags(arch_local_save_flags()); } #endif /* _H8300_IRQFLAGS_H */