summaryrefslogtreecommitdiff
path: root/target/linux/uml-2.6/patches
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/uml-2.6/patches')
-rw-r--r--target/linux/uml-2.6/patches/01-no_syscallx71
-rw-r--r--target/linux/uml-2.6/patches/02-missing_definitions.patch37
-rw-r--r--target/linux/uml-2.6/patches/03-missing_include.patch10
3 files changed, 0 insertions, 118 deletions
diff --git a/target/linux/uml-2.6/patches/01-no_syscallx b/target/linux/uml-2.6/patches/01-no_syscallx
deleted file mode 100644
index 6b542d0..0000000
--- a/target/linux/uml-2.6/patches/01-no_syscallx
+++ /dev/null
@@ -1,71 +0,0 @@
-# Since the syscallx macros seem to be under threat, this patch stops
-# using them, using syscall instead.
-
-Index: linux-2.6.17/arch/um/os-Linux/process.c
-===================================================================
---- linux-2.6.17.orig/arch/um/os-Linux/process.c 2006-09-20 11:15:08.000000000 -0400
-+++ linux-2.6.17/arch/um/os-Linux/process.c 2006-09-20 13:35:24.000000000 -0400
-@@ -140,11 +140,9 @@ void os_usr1_process(int pid)
- * syscalls, and also breaks with clone(), which does not unshare the TLS.
- */
-
--inline _syscall0(pid_t, getpid)
--
- int os_getpid(void)
- {
-- return(getpid());
-+ return syscall(__NR_getpid);
- }
-
- int os_getpgrp(void)
-Index: linux-2.6.17/arch/um/os-Linux/sys-i386/tls.c
-===================================================================
---- linux-2.6.17.orig/arch/um/os-Linux/sys-i386/tls.c 2006-06-18 13:49:35.000000000 -0400
-+++ linux-2.6.17/arch/um/os-Linux/sys-i386/tls.c 2006-09-20 13:37:27.000000000 -0400
-@@ -3,8 +3,6 @@
- #include "sysdep/tls.h"
- #include "user_util.h"
-
--static _syscall1(int, get_thread_area, user_desc_t *, u_info);
--
- /* Checks whether host supports TLS, and sets *tls_min according to the value
- * valid on the host.
- * i386 host have it == 6; x86_64 host have it == 12, for i386 emulation. */
-@@ -17,7 +15,7 @@ void check_host_supports_tls(int *suppor
- user_desc_t info;
- info.entry_number = val[i];
-
-- if (get_thread_area(&info) == 0) {
-+ if(syscall(__NR_get_thread_area, &info) == 0){
- *tls_min = val[i];
- *supports_tls = 1;
- return;
-Index: linux-2.6.17/arch/um/os-Linux/tls.c
-===================================================================
---- linux-2.6.17.orig/arch/um/os-Linux/tls.c 2006-08-15 21:59:56.000000000 -0400
-+++ linux-2.6.17/arch/um/os-Linux/tls.c 2006-09-20 13:37:14.000000000 -0400
-@@ -48,14 +48,11 @@ int os_get_thread_area(user_desc_t *info
- #ifdef UML_CONFIG_MODE_TT
- #include "linux/unistd.h"
-
--static _syscall1(int, get_thread_area, user_desc_t *, u_info);
--static _syscall1(int, set_thread_area, user_desc_t *, u_info);
--
- int do_set_thread_area_tt(user_desc_t *info)
- {
- int ret;
-
-- ret = set_thread_area(info);
-+ ret = syscall(__NR_set_thread_area, info);
- if (ret < 0) {
- ret = -errno;
- }
-@@ -66,7 +63,7 @@ int do_get_thread_area_tt(user_desc_t *i
- {
- int ret;
-
-- ret = get_thread_area(info);
-+ ret = syscall(__NR_get_thread_area, info);
- if (ret < 0) {
- ret = -errno;
- }
diff --git a/target/linux/uml-2.6/patches/02-missing_definitions.patch b/target/linux/uml-2.6/patches/02-missing_definitions.patch
deleted file mode 100644
index 7facbff..0000000
--- a/target/linux/uml-2.6/patches/02-missing_definitions.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-# Newer libcs don't define the JB_* jmp_buf access macros. If this is
-# the case, we provide values ourselves.
-Index: linux-2.6.15/arch/um/os-Linux/sys-i386/registers.c
-===================================================================
---- linux-2.6.15.orig/arch/um/os-Linux/sys-i386/registers.c 2006-02-13 13:00:06.000000000 -0500
-+++ linux-2.6.15/arch/um/os-Linux/sys-i386/registers.c 2006-02-13 13:04:07.000000000 -0500
-@@ -130,6 +130,12 @@ void get_safe_registers(unsigned long *r
- HOST_FP_SIZE * sizeof(unsigned long));
- }
-
-+#ifndef JB_PC
-+#define JB_PC 5
-+#define JB_SP 4
-+#define JB_BP 3
-+#endif
-+
- void get_thread_regs(union uml_pt_regs *uml_regs, void *buffer)
- {
- struct __jmp_buf_tag *jmpbuf = buffer;
-Index: linux-2.6.15/arch/um/os-Linux/sys-x86_64/registers.c
-===================================================================
---- linux-2.6.15.orig/arch/um/os-Linux/sys-x86_64/registers.c 2006-02-13 13:00:06.000000000 -0500
-+++ linux-2.6.15/arch/um/os-Linux/sys-x86_64/registers.c 2006-02-13 13:04:07.000000000 -0500
-@@ -78,6 +78,12 @@ void get_safe_registers(unsigned long *r
- HOST_FP_SIZE * sizeof(unsigned long));
- }
-
-+#ifndef JB_PC
-+#define JB_PC 7
-+#define JB_RSP 6
-+#define JB_RBP 1
-+#endif
-+
- void get_thread_regs(union uml_pt_regs *uml_regs, void *buffer)
- {
- struct __jmp_buf_tag *jmpbuf = buffer;
-
diff --git a/target/linux/uml-2.6/patches/03-missing_include.patch b/target/linux/uml-2.6/patches/03-missing_include.patch
deleted file mode 100644
index 1245082..0000000
--- a/target/linux/uml-2.6/patches/03-missing_include.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- linux-2.6.17.orig/arch/um/os-Linux/skas/process.c 2006-06-18 02:49:35.000000000 +0100
-+++ linux-2.6.17/arch/um/os-Linux/skas/process.c 2006-11-13 15:34:43.087105285 +0000
-@@ -16,6 +16,7 @@
- #include <sys/user.h>
- #include <sys/time.h>
- #include <asm/unistd.h>
-+#include <asm/page.h>
- #include <asm/types.h>
- #include "user.h"
- #include "sysdep/ptrace.h"