OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
mn10300
/
include
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:16 AM
rwxr-xr-x
📄
Kbuild
314 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
asm-offsets.h
35 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
atomic.h
4.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bitops.h
5.42 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bug.h
864 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bugs.h
561 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
busctl-regs.h
7.8 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cache.h
2.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cacheflush.h
7.6 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
checksum.h
2.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg.h
2.65 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cpu-regs.h
16.61 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
current.h
922 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
debugger.h
1.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
delay.h
597 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
div64.h
3.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma-mapping.h
636 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma.h
3.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dmactl-regs.h
532 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
elf.h
4.49 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
emergency-restart.h
43 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
exceptions.h
4.74 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
fpu.h
3.57 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
frame.inc
2.37 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ftrace.h
12 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
futex.h
31 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
gdb-stub.h
5.42 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hardirq.h
1.68 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
highmem.h
3.01 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hw_irq.h
483 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
intctl-regs.h
2.26 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
io.h
7.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq.h
1.11 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq_regs.h
751 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqflags.h
4.05 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kdebug.h
561 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kgdb.h
1.7 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kmap_types.h
160 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kprobes.h
1.59 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
linkage.h
593 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
local.h
31 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
local64.h
33 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mc146818rtc.h
26 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu.h
434 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu_context.h
4.44 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
module.h
677 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
nmi.h
500 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
page.h
3.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
page_offset.h
302 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pci.h
2.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
percpu.h
32 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgalloc.h
1.49 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable.h
15.68 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pio-regs.h
7.53 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
processor.h
4.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
805 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
reset-regs.h
1.8 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
rtc-regs.h
3.57 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
rtc.h
692 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
rwlock.h
2.98 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
serial-regs.h
8.85 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
serial.h
1.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
setup.h
574 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
shmparam.h
182 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
signal.h
888 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
smp.h
3.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
smsc911x.h
27 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
spinlock.h
3.84 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
spinlock_types.h
445 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
string.h
1.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
switch_to.h
1.49 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscall.h
2.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
termios.h
387 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
thread_info.h
4.36 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timer-regs.h
20.72 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timex.h
843 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlb.h
941 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlbflush.h
3.45 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
topology.h
34 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
types.h
620 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
uaccess.h
7.78 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ucontext.h
673 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
unaligned.h
678 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
unistd.h
1.34 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
user.h
1.91 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
vga.h
471 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
xor.h
29 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: thread_info.h
Close
/* MN10300 Low-level thread information * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as published by the Free Software Foundation; either version * 2 of the Licence, or (at your option) any later version. */ #ifndef _ASM_THREAD_INFO_H #define _ASM_THREAD_INFO_H #ifdef __KERNEL__ #include <asm/page.h> #ifdef CONFIG_4KSTACKS #define THREAD_SIZE (4096) #define THREAD_SIZE_ORDER (0) #else #define THREAD_SIZE (8192) #define THREAD_SIZE_ORDER (1) #endif #define STACK_WARN (THREAD_SIZE / 8) /* * low level task data that entry.S needs immediate access to * - this struct should fit entirely inside of one cache line * - this struct shares the supervisor stack pages * - if the contents of this structure are changed, the assembly constants * must also be changed */ #ifndef __ASSEMBLY__ typedef struct { unsigned long seg; } mm_segment_t; struct thread_info { struct task_struct *task; /* main task structure */ struct pt_regs *frame; /* current exception frame */ unsigned long flags; /* low level flags */ __u32 cpu; /* current CPU */ __s32 preempt_count; /* 0 => preemptable, <0 => BUG */ mm_segment_t addr_limit; /* thread address space: 0-0xBFFFFFFF for user-thead 0-0xFFFFFFFF for kernel-thread */ __u8 supervisor_stack[0]; }; #define thread_info_to_uregs(ti) \ ((struct pt_regs *) \ ((unsigned long)ti + THREAD_SIZE - sizeof(struct pt_regs))) #else /* !__ASSEMBLY__ */ #ifndef __ASM_OFFSETS_H__ #include <asm/asm-offsets.h> #endif #endif /* * macros/functions for gaining access to the thread information structure */ #ifndef __ASSEMBLY__ #define INIT_THREAD_INFO(tsk) \ { \ .task = &tsk, \ .flags = 0, \ .cpu = 0, \ .preempt_count = INIT_PREEMPT_COUNT, \ .addr_limit = KERNEL_DS, \ } #define init_thread_info (init_thread_union.thread_info) #define init_stack (init_thread_union.stack) #define init_uregs \ ((struct pt_regs *) \ ((unsigned long) init_stack + THREAD_SIZE - sizeof(struct pt_regs))) extern struct thread_info *__current_ti; /* how to get the thread information struct from C */ static inline __attribute__((const)) struct thread_info *current_thread_info(void) { struct thread_info *ti; asm("mov sp,%0\n" "and %1,%0\n" : "=d" (ti) : "i" (~(THREAD_SIZE - 1)) : "cc"); return ti; } static inline __attribute__((const)) struct pt_regs *current_frame(void) { return current_thread_info()->frame; } /* how to get the current stack pointer from C */ static inline unsigned long current_stack_pointer(void) { unsigned long sp; asm("mov sp,%0; ":"=r" (sp)); return sp; } #ifndef CONFIG_KGDB void arch_release_thread_stack(unsigned long *stack); #endif #define get_thread_info(ti) get_task_struct((ti)->task) #define put_thread_info(ti) put_task_struct((ti)->task) #else /* !__ASSEMBLY__ */ #ifndef __VMLINUX_LDS__ /* how to get the thread information struct from ASM */ .macro GET_THREAD_INFO reg mov sp,\reg and -THREAD_SIZE,\reg .endm #endif #endif /* * thread information flags * - these are process state flags that various assembly files may need to * access * - pending work-to-be-done flags are in LSW * - other flags in MSW */ #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ #define TIF_SIGPENDING 2 /* signal pending */ #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */ #define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */ #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ #define TIF_MEMDIE 17 /* is terminating due to OOM killer */ #define _TIF_SYSCALL_TRACE +(1 << TIF_SYSCALL_TRACE) #define _TIF_NOTIFY_RESUME +(1 << TIF_NOTIFY_RESUME) #define _TIF_SIGPENDING +(1 << TIF_SIGPENDING) #define _TIF_NEED_RESCHED +(1 << TIF_NEED_RESCHED) #define _TIF_SINGLESTEP +(1 << TIF_SINGLESTEP) #define _TIF_POLLING_NRFLAG +(1 << TIF_POLLING_NRFLAG) #define _TIF_WORK_MASK 0x0000FFFE /* work to do on interrupt/exception return */ #define _TIF_ALLWORK_MASK 0x0000FFFF /* work to do on any return to u-space */ #endif /* __KERNEL__ */ #endif /* _ASM_THREAD_INFO_H */