Remove hacks for old kernels for architectures which require new kernels
* util.c (change_syscall): For MICROBLAZE, replace code with dummy "return 0" and a comment explaining why that is ok for this architecture. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
ab2f402242
commit
a86696ba64
4
util.c
4
util.c
@ -1293,8 +1293,8 @@ change_syscall(struct tcb *tcp, arg_setup_state *state, int new)
|
||||
/* Tilera CPUs are only supported since about linux-2.6.34 */
|
||||
return 0;
|
||||
#elif defined(MICROBLAZE)
|
||||
if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_GPR(0)), new) < 0)
|
||||
return -1;
|
||||
/* setbpt/clearbpt never used: */
|
||||
/* microblaze is only supported since about linux-2.6.30 */
|
||||
return 0;
|
||||
#else
|
||||
#warning Do not know how to handle change_syscall for this architecture
|
||||
|
Loading…
Reference in New Issue
Block a user