diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 15:02:59 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 09:14:50 -0400 |
commit | 27f85f12639fe821375a69900d96e0fbcc1450bf (patch) | |
tree | 9ca3ae7471b85059cd2c458569d3fc117c2ca670 /arch/um/sys-x86_64 | |
parent | 3655c4d3c4bc105a36080c665b7294f471b0a1de (diff) |
um: merge arch/um/sys-{i386,x86_64}/asm
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/sys-x86_64')
-rw-r--r-- | arch/um/sys-x86_64/asm/archparam.h | 16 | ||||
-rw-r--r-- | arch/um/sys-x86_64/asm/checksum.h | 144 | ||||
-rw-r--r-- | arch/um/sys-x86_64/asm/elf.h | 132 | ||||
-rw-r--r-- | arch/um/sys-x86_64/asm/module.h | 20 | ||||
-rw-r--r-- | arch/um/sys-x86_64/asm/processor.h | 56 | ||||
-rw-r--r-- | arch/um/sys-x86_64/asm/ptrace.h | 72 | ||||
-rw-r--r-- | arch/um/sys-x86_64/asm/vm-flags.h | 15 |
7 files changed, 0 insertions, 455 deletions
diff --git a/arch/um/sys-x86_64/asm/archparam.h b/arch/um/sys-x86_64/asm/archparam.h deleted file mode 100644 index 6c083663b8d9..000000000000 --- a/arch/um/sys-x86_64/asm/archparam.h +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2003 PathScale, Inc. | ||
3 | * | ||
4 | * Licensed under the GPL | ||
5 | */ | ||
6 | |||
7 | #ifndef __UM_ARCHPARAM_X86_64_H | ||
8 | #define __UM_ARCHPARAM_X86_64_H | ||
9 | |||
10 | |||
11 | /* No user-accessible fixmap addresses, i.e. vsyscall */ | ||
12 | #define FIXADDR_USER_START 0 | ||
13 | #define FIXADDR_USER_END 0 | ||
14 | |||
15 | #endif | ||
16 | |||
diff --git a/arch/um/sys-x86_64/asm/checksum.h b/arch/um/sys-x86_64/asm/checksum.h deleted file mode 100644 index a5be9031ea85..000000000000 --- a/arch/um/sys-x86_64/asm/checksum.h +++ /dev/null | |||
@@ -1,144 +0,0 @@ | |||
1 | /* | ||
2 | * Licensed under the GPL | ||
3 | */ | ||
4 | |||
5 | #ifndef __UM_SYSDEP_CHECKSUM_H | ||
6 | #define __UM_SYSDEP_CHECKSUM_H | ||
7 | |||
8 | #include "linux/string.h" | ||
9 | #include "linux/in6.h" | ||
10 | #include "asm/uaccess.h" | ||
11 | |||
12 | extern __wsum csum_partial(const void *buff, int len, __wsum sum); | ||
13 | |||
14 | /* | ||
15 | * Note: when you get a NULL pointer exception here this means someone | ||
16 | * passed in an incorrect kernel address to one of these functions. | ||
17 | * | ||
18 | * If you use these functions directly please don't forget the | ||
19 | * access_ok(). | ||
20 | */ | ||
21 | |||
22 | static __inline__ | ||
23 | __wsum csum_partial_copy_nocheck(const void *src, void *dst, | ||
24 | int len, __wsum sum) | ||
25 | { | ||
26 | memcpy(dst, src, len); | ||
27 | return(csum_partial(dst, len, sum)); | ||
28 | } | ||
29 | |||
30 | static __inline__ | ||
31 | __wsum csum_partial_copy_from_user(const void __user *src, | ||
32 | void *dst, int len, __wsum sum, | ||
33 | int *err_ptr) | ||
34 | { | ||
35 | if (copy_from_user(dst, src, len)) { | ||
36 | *err_ptr = -EFAULT; | ||
37 | return (__force __wsum)-1; | ||
38 | } | ||
39 | return csum_partial(dst, len, sum); | ||
40 | } | ||
41 | |||
42 | /** | ||
43 | * csum_fold - Fold and invert a 32bit checksum. | ||
44 | * sum: 32bit unfolded sum | ||
45 | * | ||
46 | * Fold a 32bit running checksum to 16bit and invert it. This is usually | ||
47 | * the last step before putting a checksum into a packet. | ||
48 | * Make sure not to mix with 64bit checksums. | ||
49 | */ | ||
50 | static inline __sum16 csum_fold(__wsum sum) | ||
51 | { | ||
52 | __asm__( | ||
53 | " addl %1,%0\n" | ||
54 | " adcl $0xffff,%0" | ||
55 | : "=r" (sum) | ||
56 | : "r" ((__force u32)sum << 16), | ||
57 | "0" ((__force u32)sum & 0xffff0000) | ||
58 | ); | ||
59 | return (__force __sum16)(~(__force u32)sum >> 16); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * csum_tcpup_nofold - Compute an IPv4 pseudo header checksum. | ||
64 | * @saddr: source address | ||
65 | * @daddr: destination address | ||
66 | * @len: length of packet | ||
67 | * @proto: ip protocol of packet | ||
68 | * @sum: initial sum to be added in (32bit unfolded) | ||
69 | * | ||
70 | * Returns the pseudo header checksum the input data. Result is | ||
71 | * 32bit unfolded. | ||
72 | */ | ||
73 | static inline __wsum | ||
74 | csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, | ||
75 | unsigned short proto, __wsum sum) | ||
76 | { | ||
77 | asm(" addl %1, %0\n" | ||
78 | " adcl %2, %0\n" | ||
79 | " adcl %3, %0\n" | ||
80 | " adcl $0, %0\n" | ||
81 | : "=r" (sum) | ||
82 | : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum)); | ||
83 | return sum; | ||
84 | } | ||
85 | |||
86 | /* | ||
87 | * computes the checksum of the TCP/UDP pseudo-header | ||
88 | * returns a 16-bit checksum, already complemented | ||
89 | */ | ||
90 | static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, | ||
91 | unsigned short len, | ||
92 | unsigned short proto, | ||
93 | __wsum sum) | ||
94 | { | ||
95 | return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * ip_fast_csum - Compute the IPv4 header checksum efficiently. | ||
100 | * iph: ipv4 header | ||
101 | * ihl: length of header / 4 | ||
102 | */ | ||
103 | static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) | ||
104 | { | ||
105 | unsigned int sum; | ||
106 | |||
107 | asm( " movl (%1), %0\n" | ||
108 | " subl $4, %2\n" | ||
109 | " jbe 2f\n" | ||
110 | " addl 4(%1), %0\n" | ||
111 | " adcl 8(%1), %0\n" | ||
112 | " adcl 12(%1), %0\n" | ||
113 | "1: adcl 16(%1), %0\n" | ||
114 | " lea 4(%1), %1\n" | ||
115 | " decl %2\n" | ||
116 | " jne 1b\n" | ||
117 | " adcl $0, %0\n" | ||
118 | " movl %0, %2\n" | ||
119 | " shrl $16, %0\n" | ||
120 | " addw %w2, %w0\n" | ||
121 | " adcl $0, %0\n" | ||
122 | " notl %0\n" | ||
123 | "2:" | ||
124 | /* Since the input registers which are loaded with iph and ipl | ||
125 | are modified, we must also specify them as outputs, or gcc | ||
126 | will assume they contain their original values. */ | ||
127 | : "=r" (sum), "=r" (iph), "=r" (ihl) | ||
128 | : "1" (iph), "2" (ihl) | ||
129 | : "memory"); | ||
130 | return (__force __sum16)sum; | ||
131 | } | ||
132 | |||
133 | static inline unsigned add32_with_carry(unsigned a, unsigned b) | ||
134 | { | ||
135 | asm("addl %2,%0\n\t" | ||
136 | "adcl $0,%0" | ||
137 | : "=r" (a) | ||
138 | : "0" (a), "r" (b)); | ||
139 | return a; | ||
140 | } | ||
141 | |||
142 | extern __sum16 ip_compute_csum(const void *buff, int len); | ||
143 | |||
144 | #endif | ||
diff --git a/arch/um/sys-x86_64/asm/elf.h b/arch/um/sys-x86_64/asm/elf.h deleted file mode 100644 index 11a2bfb38859..000000000000 --- a/arch/um/sys-x86_64/asm/elf.h +++ /dev/null | |||
@@ -1,132 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2003 PathScale, Inc. | ||
3 | * Copyright (C) 2003 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) | ||
4 | * | ||
5 | * Licensed under the GPL | ||
6 | */ | ||
7 | #ifndef __UM_ELF_X86_64_H | ||
8 | #define __UM_ELF_X86_64_H | ||
9 | |||
10 | #include <asm/user.h> | ||
11 | #include "skas.h" | ||
12 | |||
13 | /* x86-64 relocation types, taken from asm-x86_64/elf.h */ | ||
14 | #define R_X86_64_NONE 0 /* No reloc */ | ||
15 | #define R_X86_64_64 1 /* Direct 64 bit */ | ||
16 | #define R_X86_64_PC32 2 /* PC relative 32 bit signed */ | ||
17 | #define R_X86_64_GOT32 3 /* 32 bit GOT entry */ | ||
18 | #define R_X86_64_PLT32 4 /* 32 bit PLT address */ | ||
19 | #define R_X86_64_COPY 5 /* Copy symbol at runtime */ | ||
20 | #define R_X86_64_GLOB_DAT 6 /* Create GOT entry */ | ||
21 | #define R_X86_64_JUMP_SLOT 7 /* Create PLT entry */ | ||
22 | #define R_X86_64_RELATIVE 8 /* Adjust by program base */ | ||
23 | #define R_X86_64_GOTPCREL 9 /* 32 bit signed pc relative | ||
24 | offset to GOT */ | ||
25 | #define R_X86_64_32 10 /* Direct 32 bit zero extended */ | ||
26 | #define R_X86_64_32S 11 /* Direct 32 bit sign extended */ | ||
27 | #define R_X86_64_16 12 /* Direct 16 bit zero extended */ | ||
28 | #define R_X86_64_PC16 13 /* 16 bit sign extended pc relative */ | ||
29 | #define R_X86_64_8 14 /* Direct 8 bit sign extended */ | ||
30 | #define R_X86_64_PC8 15 /* 8 bit sign extended pc relative */ | ||
31 | |||
32 | #define R_X86_64_NUM 16 | ||
33 | |||
34 | typedef unsigned long elf_greg_t; | ||
35 | |||
36 | #define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t)) | ||
37 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | ||
38 | |||
39 | typedef struct user_i387_struct elf_fpregset_t; | ||
40 | |||
41 | /* | ||
42 | * This is used to ensure we don't load something for the wrong architecture. | ||
43 | */ | ||
44 | #define elf_check_arch(x) \ | ||
45 | ((x)->e_machine == EM_X86_64) | ||
46 | |||
47 | #define ELF_CLASS ELFCLASS64 | ||
48 | #define ELF_DATA ELFDATA2LSB | ||
49 | #define ELF_ARCH EM_X86_64 | ||
50 | |||
51 | #define ELF_PLAT_INIT(regs, load_addr) do { \ | ||
52 | PT_REGS_RBX(regs) = 0; \ | ||
53 | PT_REGS_RCX(regs) = 0; \ | ||
54 | PT_REGS_RDX(regs) = 0; \ | ||
55 | PT_REGS_RSI(regs) = 0; \ | ||
56 | PT_REGS_RDI(regs) = 0; \ | ||
57 | PT_REGS_RBP(regs) = 0; \ | ||
58 | PT_REGS_RAX(regs) = 0; \ | ||
59 | PT_REGS_R8(regs) = 0; \ | ||
60 | PT_REGS_R9(regs) = 0; \ | ||
61 | PT_REGS_R10(regs) = 0; \ | ||
62 | PT_REGS_R11(regs) = 0; \ | ||
63 | PT_REGS_R12(regs) = 0; \ | ||
64 | PT_REGS_R13(regs) = 0; \ | ||
65 | PT_REGS_R14(regs) = 0; \ | ||
66 | PT_REGS_R15(regs) = 0; \ | ||
67 | } while (0) | ||
68 | |||
69 | #define ELF_CORE_COPY_REGS(pr_reg, _regs) \ | ||
70 | (pr_reg)[0] = (_regs)->regs.gp[0]; \ | ||
71 | (pr_reg)[1] = (_regs)->regs.gp[1]; \ | ||
72 | (pr_reg)[2] = (_regs)->regs.gp[2]; \ | ||
73 | (pr_reg)[3] = (_regs)->regs.gp[3]; \ | ||
74 | (pr_reg)[4] = (_regs)->regs.gp[4]; \ | ||
75 | (pr_reg)[5] = (_regs)->regs.gp[5]; \ | ||
76 | (pr_reg)[6] = (_regs)->regs.gp[6]; \ | ||
77 | (pr_reg)[7] = (_regs)->regs.gp[7]; \ | ||
78 | (pr_reg)[8] = (_regs)->regs.gp[8]; \ | ||
79 | (pr_reg)[9] = (_regs)->regs.gp[9]; \ | ||
80 | (pr_reg)[10] = (_regs)->regs.gp[10]; \ | ||
81 | (pr_reg)[11] = (_regs)->regs.gp[11]; \ | ||
82 | (pr_reg)[12] = (_regs)->regs.gp[12]; \ | ||
83 | (pr_reg)[13] = (_regs)->regs.gp[13]; \ | ||
84 | (pr_reg)[14] = (_regs)->regs.gp[14]; \ | ||
85 | (pr_reg)[15] = (_regs)->regs.gp[15]; \ | ||
86 | (pr_reg)[16] = (_regs)->regs.gp[16]; \ | ||
87 | (pr_reg)[17] = (_regs)->regs.gp[17]; \ | ||
88 | (pr_reg)[18] = (_regs)->regs.gp[18]; \ | ||
89 | (pr_reg)[19] = (_regs)->regs.gp[19]; \ | ||
90 | (pr_reg)[20] = (_regs)->regs.gp[20]; \ | ||
91 | (pr_reg)[21] = current->thread.arch.fs; \ | ||
92 | (pr_reg)[22] = 0; \ | ||
93 | (pr_reg)[23] = 0; \ | ||
94 | (pr_reg)[24] = 0; \ | ||
95 | (pr_reg)[25] = 0; \ | ||
96 | (pr_reg)[26] = 0; | ||
97 | |||
98 | #define task_pt_regs(t) (&(t)->thread.regs) | ||
99 | |||
100 | struct task_struct; | ||
101 | |||
102 | extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu); | ||
103 | |||
104 | #define ELF_CORE_COPY_FPREGS(t, fpu) elf_core_copy_fpregs(t, fpu) | ||
105 | |||
106 | #ifdef TIF_IA32 /* XXX */ | ||
107 | #error XXX, indeed | ||
108 | clear_thread_flag(TIF_IA32); | ||
109 | #endif | ||
110 | |||
111 | #define ELF_EXEC_PAGESIZE 4096 | ||
112 | |||
113 | #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3) | ||
114 | |||
115 | extern long elf_aux_hwcap; | ||
116 | #define ELF_HWCAP (elf_aux_hwcap) | ||
117 | |||
118 | #define ELF_PLATFORM "x86_64" | ||
119 | |||
120 | #define SET_PERSONALITY(ex) do ; while(0) | ||
121 | |||
122 | #define __HAVE_ARCH_GATE_AREA 1 | ||
123 | #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1 | ||
124 | struct linux_binprm; | ||
125 | extern int arch_setup_additional_pages(struct linux_binprm *bprm, | ||
126 | int uses_interp); | ||
127 | |||
128 | extern unsigned long um_vdso_addr; | ||
129 | #define AT_SYSINFO_EHDR 33 | ||
130 | #define ARCH_DLINFO NEW_AUX_ENT(AT_SYSINFO_EHDR, um_vdso_addr) | ||
131 | |||
132 | #endif | ||
diff --git a/arch/um/sys-x86_64/asm/module.h b/arch/um/sys-x86_64/asm/module.h deleted file mode 100644 index 8eb79c2d07d5..000000000000 --- a/arch/um/sys-x86_64/asm/module.h +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2003 PathScale, Inc. | ||
3 | * | ||
4 | * Licensed under the GPL | ||
5 | */ | ||
6 | |||
7 | #ifndef __UM_MODULE_X86_64_H | ||
8 | #define __UM_MODULE_X86_64_H | ||
9 | |||
10 | /* UML is simple */ | ||
11 | struct mod_arch_specific | ||
12 | { | ||
13 | }; | ||
14 | |||
15 | #define Elf_Shdr Elf64_Shdr | ||
16 | #define Elf_Sym Elf64_Sym | ||
17 | #define Elf_Ehdr Elf64_Ehdr | ||
18 | |||
19 | #endif | ||
20 | |||
diff --git a/arch/um/sys-x86_64/asm/processor.h b/arch/um/sys-x86_64/asm/processor.h deleted file mode 100644 index 875a26a62614..000000000000 --- a/arch/um/sys-x86_64/asm/processor.h +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2003 PathScale, Inc. | ||
3 | * | ||
4 | * Licensed under the GPL | ||
5 | */ | ||
6 | |||
7 | #ifndef __UM_PROCESSOR_X86_64_H | ||
8 | #define __UM_PROCESSOR_X86_64_H | ||
9 | |||
10 | /* include faultinfo structure */ | ||
11 | #include "sysdep/faultinfo.h" | ||
12 | |||
13 | struct arch_thread { | ||
14 | unsigned long debugregs[8]; | ||
15 | int debugregs_seq; | ||
16 | unsigned long fs; | ||
17 | struct faultinfo faultinfo; | ||
18 | }; | ||
19 | |||
20 | /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ | ||
21 | static inline void rep_nop(void) | ||
22 | { | ||
23 | __asm__ __volatile__("rep;nop": : :"memory"); | ||
24 | } | ||
25 | |||
26 | #define cpu_relax() rep_nop() | ||
27 | |||
28 | #define INIT_ARCH_THREAD { .debugregs = { [ 0 ... 7 ] = 0 }, \ | ||
29 | .debugregs_seq = 0, \ | ||
30 | .fs = 0, \ | ||
31 | .faultinfo = { 0, 0, 0 } } | ||
32 | |||
33 | static inline void arch_flush_thread(struct arch_thread *thread) | ||
34 | { | ||
35 | } | ||
36 | |||
37 | static inline void arch_copy_thread(struct arch_thread *from, | ||
38 | struct arch_thread *to) | ||
39 | { | ||
40 | to->fs = from->fs; | ||
41 | } | ||
42 | |||
43 | #include <asm/user.h> | ||
44 | |||
45 | #define current_text_addr() \ | ||
46 | ({ void *pc; __asm__("movq $1f,%0\n1:":"=g" (pc)); pc; }) | ||
47 | |||
48 | #define ARCH_IS_STACKGROW(address) \ | ||
49 | (address + 128 >= UPT_SP(¤t->thread.regs.regs)) | ||
50 | |||
51 | #define KSTK_EIP(tsk) KSTK_REG(tsk, RIP) | ||
52 | #define KSTK_ESP(tsk) KSTK_REG(tsk, RSP) | ||
53 | |||
54 | #include "asm/processor-generic.h" | ||
55 | |||
56 | #endif | ||
diff --git a/arch/um/sys-x86_64/asm/ptrace.h b/arch/um/sys-x86_64/asm/ptrace.h deleted file mode 100644 index 83d8c473b905..000000000000 --- a/arch/um/sys-x86_64/asm/ptrace.h +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2003 PathScale, Inc. | ||
3 | * | ||
4 | * Licensed under the GPL | ||
5 | */ | ||
6 | |||
7 | #ifndef __UM_PTRACE_X86_64_H | ||
8 | #define __UM_PTRACE_X86_64_H | ||
9 | |||
10 | #include "linux/compiler.h" | ||
11 | #include "asm/errno.h" | ||
12 | |||
13 | #define __FRAME_OFFSETS /* Needed to get the R* macros */ | ||
14 | #include "asm/ptrace-generic.h" | ||
15 | |||
16 | #define HOST_AUDIT_ARCH AUDIT_ARCH_X86_64 | ||
17 | |||
18 | #define PT_REGS_RBX(r) UPT_RBX(&(r)->regs) | ||
19 | #define PT_REGS_RCX(r) UPT_RCX(&(r)->regs) | ||
20 | #define PT_REGS_RDX(r) UPT_RDX(&(r)->regs) | ||
21 | #define PT_REGS_RSI(r) UPT_RSI(&(r)->regs) | ||
22 | #define PT_REGS_RDI(r) UPT_RDI(&(r)->regs) | ||
23 | #define PT_REGS_RBP(r) UPT_RBP(&(r)->regs) | ||
24 | #define PT_REGS_RAX(r) UPT_RAX(&(r)->regs) | ||
25 | #define PT_REGS_R8(r) UPT_R8(&(r)->regs) | ||
26 | #define PT_REGS_R9(r) UPT_R9(&(r)->regs) | ||
27 | #define PT_REGS_R10(r) UPT_R10(&(r)->regs) | ||
28 | #define PT_REGS_R11(r) UPT_R11(&(r)->regs) | ||
29 | #define PT_REGS_R12(r) UPT_R12(&(r)->regs) | ||
30 | #define PT_REGS_R13(r) UPT_R13(&(r)->regs) | ||
31 | #define PT_REGS_R14(r) UPT_R14(&(r)->regs) | ||
32 | #define PT_REGS_R15(r) UPT_R15(&(r)->regs) | ||
33 | |||
34 | #define PT_REGS_FS(r) UPT_FS(&(r)->regs) | ||
35 | #define PT_REGS_GS(r) UPT_GS(&(r)->regs) | ||
36 | #define PT_REGS_DS(r) UPT_DS(&(r)->regs) | ||
37 | #define PT_REGS_ES(r) UPT_ES(&(r)->regs) | ||
38 | #define PT_REGS_SS(r) UPT_SS(&(r)->regs) | ||
39 | #define PT_REGS_CS(r) UPT_CS(&(r)->regs) | ||
40 | |||
41 | #define PT_REGS_ORIG_RAX(r) UPT_ORIG_RAX(&(r)->regs) | ||
42 | #define PT_REGS_RIP(r) UPT_IP(&(r)->regs) | ||
43 | #define PT_REGS_RSP(r) UPT_SP(&(r)->regs) | ||
44 | |||
45 | #define PT_REGS_EFLAGS(r) UPT_EFLAGS(&(r)->regs) | ||
46 | |||
47 | /* XXX */ | ||
48 | #define user_mode(r) UPT_IS_USER(&(r)->regs) | ||
49 | #define PT_REGS_ORIG_SYSCALL(r) PT_REGS_RAX(r) | ||
50 | #define PT_REGS_SYSCALL_RET(r) PT_REGS_RAX(r) | ||
51 | |||
52 | #define PT_FIX_EXEC_STACK(sp) do ; while(0) | ||
53 | |||
54 | #define profile_pc(regs) PT_REGS_IP(regs) | ||
55 | |||
56 | struct user_desc; | ||
57 | |||
58 | static inline int ptrace_get_thread_area(struct task_struct *child, int idx, | ||
59 | struct user_desc __user *user_desc) | ||
60 | { | ||
61 | return -ENOSYS; | ||
62 | } | ||
63 | |||
64 | static inline int ptrace_set_thread_area(struct task_struct *child, int idx, | ||
65 | struct user_desc __user *user_desc) | ||
66 | { | ||
67 | return -ENOSYS; | ||
68 | } | ||
69 | |||
70 | extern long arch_prctl(struct task_struct *task, int code, | ||
71 | unsigned long __user *addr); | ||
72 | #endif | ||
diff --git a/arch/um/sys-x86_64/asm/vm-flags.h b/arch/um/sys-x86_64/asm/vm-flags.h deleted file mode 100644 index 3978e55132d2..000000000000 --- a/arch/um/sys-x86_64/asm/vm-flags.h +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004 Jeff Dike (jdike@addtoit.com) | ||
3 | * Copyright 2003 PathScale, Inc. | ||
4 | * Licensed under the GPL | ||
5 | */ | ||
6 | |||
7 | #ifndef __VM_FLAGS_X86_64_H | ||
8 | #define __VM_FLAGS_X86_64_H | ||
9 | |||
10 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ | ||
11 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | ||
12 | #define VM_STACK_DEFAULT_FLAGS (VM_GROWSDOWN | VM_READ | VM_WRITE | \ | ||
13 | VM_EXEC | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | ||
14 | |||
15 | #endif | ||