Skip to contentSkip to conversation

linux-user/syscall.c: Let tilegx support sigaltstack

PATCH In review [email protected] 2 participants 3 messages Jan 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user/syscall.c: Let tilegx support sigaltstack

From: Chen Gang <[email protected]>

Simply enable it, and notice about 80 columns coding styles.

---
 linux-user/syscall.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
linux-user/syscall.c +2 -1
index 6c64ba6..8d4bcf6 100644
@@ -8294,7 +8294,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
     case TARGET_NR_sigaltstack:
 #if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS) || \
     defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_ALPHA) || \
-    defined(TARGET_M68K) || defined(TARGET_S390X) || defined(TARGET_OPENRISC)
+    defined(TARGET_M68K) || defined(TARGET_S390X) || defined(TARGET_TILEGX) || \
+    defined(TARGET_OPENRISC)
         ret = do_sigaltstack(arg1, arg2, get_sp_from_cpustate((CPUArchState *)cpu_env));
         break;
 #else
Signature · 1 line
1.9.3
#1 lore raw

Michael Tokarev has already enable sigaltstack() for all architecture:

https://patchwork.ozlabs.org/patch/561514/

It is in the "-for-upstream" tree of Riku.

Laurent

Quoted 24 lines · Le 10/01/2016 06:56, [email protected] a écrit :

From: Chen Gang <[email protected]>

Simply enable it, and notice about 80 columns coding styles.

---
 linux-user/syscall.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
linux-user/syscall.c +2 -1
index 6c64ba6..8d4bcf6 100644
@@ -8294,7 +8294,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
     case TARGET_NR_sigaltstack:
 #if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS) || \
     defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_ALPHA) || \
-    defined(TARGET_M68K) || defined(TARGET_S390X) || defined(TARGET_OPENRISC)
+    defined(TARGET_M68K) || defined(TARGET_S390X) || defined(TARGET_TILEGX) || \
+    defined(TARGET_OPENRISC)
         ret = do_sigaltstack(arg1, arg2, get_sp_from_cpustate((CPUArchState *)cpu_env));
         break;
 #else
author
#2 lore raw
Quoted 6 lines · Laurent Vivier

Michael Tokarev has already enable sigaltstack() for all architecture:

https://patchwork.ozlabs.org/patch/561514/

It is in the "-for-upstream" tree of Riku.

OK, thanks. I shall continue solving existing issues for qemu tilegx, during my free time.

Thanks.

Signature · 3 lines
Chen Gang (陈刚)

Open, share, and attitude like air, water, and life which God blessed