OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
frv
/
include
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:15 AM
rwxr-xr-x
📄
Kbuild
290 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.97 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
atomic_defs.h
4.66 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ax88796.h
751 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
barrier.h
720 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bitops.h
7.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bug.h
1.36 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bugs.h
445 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
busctl-regs.h
2.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cache.h
727 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cacheflush.h
3.05 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
checksum.h
4.53 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg.h
4.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cpu-irqs.h
2.59 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
current.h
685 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
delay.h
1.28 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
div64.h
31 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dm9000.h
1.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma-mapping.h
448 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma.h
3.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
elf.h
5.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
emergency-restart.h
149 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
fpu.h
261 bytes
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
416 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
gdb-stub.h
4.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gpio-regs.h
3.64 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hardirq.h
666 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
highmem.h
4.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hw_irq.h
484 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
io.h
9.75 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irc-regs.h
1.78 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq.h
760 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq_regs.h
764 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqflags.h
3.71 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kdebug.h
32 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kmap_types.h
123 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
linkage.h
114 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
local.h
140 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--
📄
math-emu.h
6.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb-regs.h
6.94 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb86943a.h
1.84 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb93091-fpga-irqs.h
1.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb93093-fpga-irqs.h
789 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb93493-irqs.h
1.69 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb93493-regs.h
12.46 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mem-layout.h
2.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu.h
1.26 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu_context.h
1.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
module.h
617 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
page.h
2.08 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pci.h
1.23 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
percpu.h
147 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
perf_event.h
487 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgalloc.h
1.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable.h
16.02 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
processor.h
2.85 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
1.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sections.h
1.1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
segment.h
1.08 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
serial-regs.h
1.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
serial.h
308 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
setup.h
641 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
shmparam.h
183 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
signal.h
141 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
smp.h
139 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
spinlock.h
516 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
spr-regs.h
17.93 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
string.h
1.36 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
switch_to.h
1.07 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscall.h
2.73 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
termios.h
425 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
thread_info.h
3.48 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timer-regs.h
3.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timex.h
720 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlb.h
615 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlbflush.h
1.88 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
topology.h
229 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
types.h
595 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
uaccess.h
6.79 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ucontext.h
281 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
unaligned.h
694 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
unistd.h
928 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
user.h
3.29 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
vga.h
464 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
virtconvert.h
1.09 KB
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: uaccess.h
Close
/* uaccess.h: userspace accessor functions * * Copyright (C) 2004 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 License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #ifndef _ASM_UACCESS_H #define _ASM_UACCESS_H /* * User space memory access functions */ #include <linux/mm.h> #include <asm/segment.h> #include <asm/sections.h> #include <asm/extable.h> #define __ptr(x) ((unsigned long __force *)(x)) /* * check that a range of addresses falls within the current address limit */ static inline int ___range_ok(unsigned long addr, unsigned long size) { #ifdef CONFIG_MMU int flag = -EFAULT, tmp; asm volatile ( " addcc %3,%2,%1,icc0 \n" /* set C-flag if addr+size>4GB */ " subcc.p %1,%4,gr0,icc1 \n" /* jump if addr+size>limit */ " bc icc0,#0,0f \n" " bhi icc1,#0,0f \n" " setlos #0,%0 \n" /* mark okay */ "0: \n" : "=r"(flag), "=&r"(tmp) : "r"(addr), "r"(size), "r"(get_addr_limit()), "0"(flag) ); return flag; #else if (addr < memory_start || addr > memory_end || size > memory_end - memory_start || addr + size > memory_end) return -EFAULT; return 0; #endif } #define __range_ok(addr,size) ___range_ok((unsigned long) (addr), (unsigned long) (size)) #define access_ok(type,addr,size) (__range_ok((void __user *)(addr), (size)) == 0) #define __access_ok(addr,size) (__range_ok((addr), (size)) == 0) /* * These are the main single-value transfer routines. They automatically * use the right size if we just have the right pointer type. */ #define __put_user(x, ptr) \ ({ \ int __pu_err = 0; \ \ typeof(*(ptr)) __pu_val = (x); \ __chk_user_ptr(ptr); \ \ switch (sizeof (*(ptr))) { \ case 1: \ __put_user_asm(__pu_err, __pu_val, ptr, "b", "r"); \ break; \ case 2: \ __put_user_asm(__pu_err, __pu_val, ptr, "h", "r"); \ break; \ case 4: \ __put_user_asm(__pu_err, __pu_val, ptr, "", "r"); \ break; \ case 8: \ __put_user_asm(__pu_err, __pu_val, ptr, "d", "e"); \ break; \ default: \ __pu_err = __put_user_bad(); \ break; \ } \ __pu_err; \ }) #define put_user(x, ptr) \ ({ \ typeof(*(ptr)) __user *_p = (ptr); \ int _e; \ \ _e = __range_ok(_p, sizeof(*_p)); \ if (_e == 0) \ _e = __put_user((x), _p); \ _e; \ }) extern int __put_user_bad(void); /* * Tell gcc we read from memory instead of writing: this is because * we do not write to any memory gcc knows about, so there are no * aliasing issues. */ #ifdef CONFIG_MMU #define __put_user_asm(err,x,ptr,dsize,constraint) \ do { \ asm volatile("1: st"dsize"%I1 %2,%M1 \n" \ "2: \n" \ ".subsection 2 \n" \ "3: setlos %3,%0 \n" \ " bra 2b \n" \ ".previous \n" \ ".section __ex_table,\"a\" \n" \ " .balign 8 \n" \ " .long 1b,3b \n" \ ".previous" \ : "=r" (err) \ : "m" (*__ptr(ptr)), constraint (x), "i"(-EFAULT), "0"(err) \ : "memory"); \ } while (0) #else #define __put_user_asm(err,x,ptr,bwl,con) \ do { \ asm(" st"bwl"%I0 %1,%M0 \n" \ " membar \n" \ : \ : "m" (*__ptr(ptr)), con (x) \ : "memory"); \ } while (0) #endif /*****************************************************************************/ /* * */ #define __get_user(x, ptr) \ ({ \ int __gu_err = 0; \ __chk_user_ptr(ptr); \ \ switch (sizeof(*(ptr))) { \ case 1: { \ unsigned char __gu_val; \ __get_user_asm(__gu_err, __gu_val, ptr, "ub", "=r"); \ (x) = *(__force __typeof__(*(ptr)) *) &__gu_val; \ break; \ } \ case 2: { \ unsigned short __gu_val; \ __get_user_asm(__gu_err, __gu_val, ptr, "uh", "=r"); \ (x) = *(__force __typeof__(*(ptr)) *) &__gu_val; \ break; \ } \ case 4: { \ unsigned int __gu_val; \ __get_user_asm(__gu_err, __gu_val, ptr, "", "=r"); \ (x) = *(__force __typeof__(*(ptr)) *) &__gu_val; \ break; \ } \ case 8: { \ unsigned long long __gu_val; \ __get_user_asm(__gu_err, __gu_val, ptr, "d", "=e"); \ (x) = *(__force __typeof__(*(ptr)) *) &__gu_val; \ break; \ } \ default: \ __gu_err = __get_user_bad(); \ break; \ } \ __gu_err; \ }) #define get_user(x, ptr) \ ({ \ const typeof(*(ptr)) __user *_p = (ptr);\ int _e; \ \ _e = __range_ok(_p, sizeof(*_p)); \ if (likely(_e == 0)) \ _e = __get_user((x), _p); \ else \ (x) = (typeof(x)) 0; \ _e; \ }) extern int __get_user_bad(void); #ifdef CONFIG_MMU #define __get_user_asm(err,x,ptr,dtype,constraint) \ do { \ asm("1: ld"dtype"%I2 %M2,%1 \n" \ "2: \n" \ ".subsection 2 \n" \ "3: setlos %3,%0 \n" \ " setlos #0,%1 \n" \ " bra 2b \n" \ ".previous \n" \ ".section __ex_table,\"a\" \n" \ " .balign 8 \n" \ " .long 1b,3b \n" \ ".previous" \ : "=r" (err), constraint (x) \ : "m" (*__ptr(ptr)), "i"(-EFAULT), "0"(err) \ ); \ } while(0) #else #define __get_user_asm(err,x,ptr,bwl,con) \ asm(" ld"bwl"%I1 %M1,%0 \n" \ " membar \n" \ : con(x) \ : "m" (*__ptr(ptr))) #endif /*****************************************************************************/ /* * */ #define ____force(x) (__force void *)(void __user *)(x) #ifdef CONFIG_MMU extern long __memset_user(void *dst, unsigned long count); extern long __memcpy_user(void *dst, const void *src, unsigned long count); #define __clear_user(dst,count) __memset_user(____force(dst), (count)) #else #define __clear_user(dst,count) (memset(____force(dst), 0, (count)), 0) #endif static inline unsigned long raw_copy_from_user(void *to, const void __user *from, unsigned long n) { #ifdef CONFIG_MMU return __memcpy_user(to, (__force const void *)from, n); #else memcpy(to, (__force const void *)from, n); return 0; #endif } static inline unsigned long raw_copy_to_user(void __user *to, const void *from, unsigned long n) { #ifdef CONFIG_MMU return __memcpy_user((__force void *)to, from, n); #else memcpy((__force void *)to, from, n); return 0; #endif } #define INLINE_COPY_TO_USER #define INLINE_COPY_FROM_USER static inline unsigned long __must_check clear_user(void __user *to, unsigned long n) { if (likely(__access_ok(to, n))) n = __clear_user(to, n); return n; } extern long strncpy_from_user(char *dst, const char __user *src, long count); extern long strnlen_user(const char __user *src, long count); #endif /* _ASM_UACCESS_H */