OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
c6x
/
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
865 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--
📄
bitops.h
2.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bug.h
705 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cache.h
3.1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cacheflush.h
2.05 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
checksum.h
947 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
clock.h
3.51 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg.h
1.57 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
delay.h
1.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma-mapping.h
911 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dscr.h
909 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
elf.h
3.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
flat.h
677 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ftrace.h
97 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
hardirq.h
572 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq.h
1.59 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqflags.h
1.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
linkage.h
497 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
megamod-pic.h
213 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
module.h
639 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
page.h
312 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable.h
2.29 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
processor.h
3.31 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
procinfo.h
673 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
998 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sections.h
287 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
setup.h
914 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
soc.h
929 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
special_insns.h
1.82 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
string.h
616 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
switch_to.h
992 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscall.h
2.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscalls.h
1.73 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
thread_info.h
2.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timer64.h
154 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
timex.h
867 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlb.h
192 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
traps.h
1.29 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
uaccess.h
2.14 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
unaligned.h
4.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: uaccess.h
Close
/* * Copyright (C) 2011 Texas Instruments Incorporated * Author: Mark Salter <msalter@redhat.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _ASM_C6X_UACCESS_H #define _ASM_C6X_UACCESS_H #include <linux/types.h> #include <linux/compiler.h> #include <linux/string.h> /* * C6X supports unaligned 32 and 64 bit loads and stores. */ static inline __must_check unsigned long raw_copy_from_user(void *to, const void __user *from, unsigned long n) { u32 tmp32; u64 tmp64; if (__builtin_constant_p(n)) { switch (n) { case 1: *(u8 *)to = *(u8 __force *)from; return 0; case 4: asm volatile ("ldnw .d1t1 *%2,%0\n" "nop 4\n" "stnw .d1t1 %0,*%1\n" : "=&a"(tmp32) : "A"(to), "a"(from) : "memory"); return 0; case 8: asm volatile ("ldndw .d1t1 *%2,%0\n" "nop 4\n" "stndw .d1t1 %0,*%1\n" : "=&a"(tmp64) : "a"(to), "a"(from) : "memory"); return 0; default: break; } } memcpy(to, (const void __force *)from, n); return 0; } static inline __must_check unsigned long raw_copy_to_user(void __user *to, const void *from, unsigned long n) { u32 tmp32; u64 tmp64; if (__builtin_constant_p(n)) { switch (n) { case 1: *(u8 __force *)to = *(u8 *)from; return 0; case 4: asm volatile ("ldnw .d1t1 *%2,%0\n" "nop 4\n" "stnw .d1t1 %0,*%1\n" : "=&a"(tmp32) : "a"(to), "a"(from) : "memory"); return 0; case 8: asm volatile ("ldndw .d1t1 *%2,%0\n" "nop 4\n" "stndw .d1t1 %0,*%1\n" : "=&a"(tmp64) : "a"(to), "a"(from) : "memory"); return 0; default: break; } } memcpy((void __force *)to, from, n); return 0; } #define INLINE_COPY_FROM_USER #define INLINE_COPY_TO_USER extern int _access_ok(unsigned long addr, unsigned long size); #ifdef CONFIG_ACCESS_CHECK #define __access_ok _access_ok #endif #include <asm-generic/uaccess.h> #endif /* _ASM_C6X_UACCESS_H */