From 15bc2812698431b17b414fa98b972146102cb8c0 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 9 Apr 2014 13:14:44 +0000 Subject: mips: enable decoding of set_thread_area * linux/dummy.h [MIPS]: Do not redirect sys_set_thread_area to printargs. * mem.c [MIPS] (sys_set_thread_area): Define. --- linux/dummy.h | 4 +++- mem.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/linux/dummy.h b/linux/dummy.h index 95efa8a..2fc3498 100644 --- a/linux/dummy.h +++ b/linux/dummy.h @@ -47,7 +47,9 @@ # define sys_modify_ldt printargs # ifndef M68K # define sys_get_thread_area printargs -# define sys_set_thread_area printargs +# ifndef MIPS +# define sys_set_thread_area printargs +# endif # endif #endif diff --git a/mem.c b/mem.c index 9207fb2..4b6bc18 100644 --- a/mem.c +++ b/mem.c @@ -637,7 +637,7 @@ sys_get_thread_area(struct tcb *tcp) } #endif /* I386 || X86_64 || X32 */ -#if defined(M68K) +#if defined(M68K) || defined(MIPS) int sys_set_thread_area(struct tcb *tcp) { @@ -646,7 +646,9 @@ sys_set_thread_area(struct tcb *tcp) return 0; } +#endif +#if defined(M68K) int sys_get_thread_area(struct tcb *tcp) { -- cgit v1.2.3