OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
nios2
/
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
958 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
asm-macros.h
6.71 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
asm-offsets.h
813 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cache.h
1.14 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cacheflush.h
1.91 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
checksum.h
2.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cpuinfo.h
1.42 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
delay.h
547 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma-mapping.h
547 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
elf.h
3.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
entry.h
2.6 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
io.h
1.72 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq.h
907 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqflags.h
1.75 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
kgdb.h
1.88 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
linkage.h
809 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu.h
445 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu_context.h
1.69 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
page.h
3.08 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgalloc.h
1.86 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable-bits.h
1.05 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable.h
7.99 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
processor.h
2.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
2.29 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
registers.h
2.15 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
setup.h
1.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
shmparam.h
804 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
string.h
618 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
switch_to.h
866 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscall.h
2.6 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscalls.h
883 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
thread_info.h
3.37 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timex.h
912 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
tlb.h
963 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlbflush.h
1.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
traps.h
514 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
uaccess.h
5.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: thread_info.h
Close
/* * NiosII low-level thread information * * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch> * Copyright (C) 2004 Microtronix Datacom Ltd. * * Based on asm/thread_info_no.h from m68k which is: * * Copyright (C) 2002 David Howells <dhowells@redhat.com> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #ifndef _ASM_NIOS2_THREAD_INFO_H #define _ASM_NIOS2_THREAD_INFO_H #ifdef __KERNEL__ /* * Size of the kernel stack for each process. */ #define THREAD_SIZE_ORDER 1 #define THREAD_SIZE 8192 /* 2 * PAGE_SIZE */ #ifndef __ASSEMBLY__ typedef struct { unsigned long seg; } mm_segment_t; /* * 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 */ struct thread_info { struct task_struct *task; /* main task structure */ unsigned long flags; /* low level flags */ __u32 cpu; /* current CPU */ int preempt_count; /* 0 => preemptable,<0 => BUG */ mm_segment_t addr_limit; /* thread address space: 0-0x7FFFFFFF for user-thead 0-0xFFFFFFFF for kernel-thread */ struct pt_regs *regs; }; /* * macros/functions for gaining access to the thread information structure * * preempt_count needs to be 1 initially, until the scheduler is functional. */ #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) /* how to get the thread information struct from C */ static inline struct thread_info *current_thread_info(void) { register unsigned long sp asm("sp"); return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); } #endif /* !__ASSEMBLY__ */ /* * 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_MEMDIE 4 /* is terminating due to OOM killer */ #define TIF_SECCOMP 5 /* secure computing */ #define TIF_SYSCALL_AUDIT 6 /* syscall auditing active */ #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal() */ #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ #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_SECCOMP (1 << TIF_SECCOMP) #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT) #define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK) #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) /* work to do on interrupt/exception return */ #define _TIF_WORK_MASK 0x0000FFFE /* work to do on any return to u-space */ # define _TIF_ALLWORK_MASK 0x0000FFFF #endif /* __KERNEL__ */ #endif /* _ASM_NIOS2_THREAD_INFO_H */