diff options
Diffstat (limited to 'arch/um/sys-x86_64/util')
-rw-r--r-- | arch/um/sys-x86_64/util/Makefile | 8 | ||||
-rw-r--r-- | arch/um/sys-x86_64/util/mk_sc.c | 47 | ||||
-rw-r--r-- | arch/um/sys-x86_64/util/mk_thread.c | 20 |
3 files changed, 0 insertions, 75 deletions
diff --git a/arch/um/sys-x86_64/util/Makefile b/arch/um/sys-x86_64/util/Makefile deleted file mode 100644 index 75b052cfc20..00000000000 --- a/arch/um/sys-x86_64/util/Makefile +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | # Copyright 2003 - 2004 Pathscale, Inc | ||
2 | # Released under the GPL | ||
3 | |||
4 | hostprogs-y := mk_sc mk_thread | ||
5 | always := $(hostprogs-y) | ||
6 | |||
7 | HOSTCFLAGS_mk_sc.o := -I$(objtree)/arch/um | ||
8 | HOSTCFLAGS_mk_thread.o := -I$(objtree)/arch/um | ||
diff --git a/arch/um/sys-x86_64/util/mk_sc.c b/arch/um/sys-x86_64/util/mk_sc.c deleted file mode 100644 index 7619bc377c1..00000000000 --- a/arch/um/sys-x86_64/util/mk_sc.c +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | /* Copyright (C) 2003 - 2004 PathScale, Inc | ||
2 | * Released under the GPL | ||
3 | */ | ||
4 | |||
5 | #include <stdio.h> | ||
6 | #include <user-offsets.h> | ||
7 | |||
8 | #define SC_OFFSET(name) \ | ||
9 | printf("#define " #name \ | ||
10 | "(sc) *((unsigned long *) &(((char *) (sc))[%d]))\n",\ | ||
11 | name) | ||
12 | |||
13 | int main(int argc, char **argv) | ||
14 | { | ||
15 | SC_OFFSET(SC_RBX); | ||
16 | SC_OFFSET(SC_RCX); | ||
17 | SC_OFFSET(SC_RDX); | ||
18 | SC_OFFSET(SC_RSI); | ||
19 | SC_OFFSET(SC_RDI); | ||
20 | SC_OFFSET(SC_RBP); | ||
21 | SC_OFFSET(SC_RAX); | ||
22 | SC_OFFSET(SC_R8); | ||
23 | SC_OFFSET(SC_R9); | ||
24 | SC_OFFSET(SC_R10); | ||
25 | SC_OFFSET(SC_R11); | ||
26 | SC_OFFSET(SC_R12); | ||
27 | SC_OFFSET(SC_R13); | ||
28 | SC_OFFSET(SC_R14); | ||
29 | SC_OFFSET(SC_R15); | ||
30 | SC_OFFSET(SC_IP); | ||
31 | SC_OFFSET(SC_SP); | ||
32 | SC_OFFSET(SC_CR2); | ||
33 | SC_OFFSET(SC_ERR); | ||
34 | SC_OFFSET(SC_TRAPNO); | ||
35 | SC_OFFSET(SC_CS); | ||
36 | SC_OFFSET(SC_FS); | ||
37 | SC_OFFSET(SC_GS); | ||
38 | SC_OFFSET(SC_EFLAGS); | ||
39 | SC_OFFSET(SC_SIGMASK); | ||
40 | #if 0 | ||
41 | SC_OFFSET(SC_ORIG_RAX); | ||
42 | SC_OFFSET(SC_DS); | ||
43 | SC_OFFSET(SC_ES); | ||
44 | SC_OFFSET(SC_SS); | ||
45 | #endif | ||
46 | return(0); | ||
47 | } | ||
diff --git a/arch/um/sys-x86_64/util/mk_thread.c b/arch/um/sys-x86_64/util/mk_thread.c deleted file mode 100644 index 15517396e9c..00000000000 --- a/arch/um/sys-x86_64/util/mk_thread.c +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | #include <stdio.h> | ||
2 | #include <kernel-offsets.h> | ||
3 | |||
4 | int main(int argc, char **argv) | ||
5 | { | ||
6 | printf("/*\n"); | ||
7 | printf(" * Generated by mk_thread\n"); | ||
8 | printf(" */\n"); | ||
9 | printf("\n"); | ||
10 | printf("#ifndef __UM_THREAD_H\n"); | ||
11 | printf("#define __UM_THREAD_H\n"); | ||
12 | printf("\n"); | ||
13 | #ifdef TASK_EXTERN_PID | ||
14 | printf("#define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[%d]))\n", | ||
15 | TASK_EXTERN_PID); | ||
16 | #endif | ||
17 | printf("\n"); | ||
18 | printf("#endif\n"); | ||
19 | return(0); | ||
20 | } | ||