From effaa7824da1af4db5cef50c78079d4c4e1717a7 Mon Sep 17 00:00:00 2001 From: Chris Dearman Date: Wed, 13 Nov 2013 14:15:31 -0800 Subject: [MIPS] Reimplement syscall to invoke the system call directly Some MIPS kernels do not correctly restart interrupted system calls that have been invoked using the indirect syscall (NR_syscall). The simplest workaround is to handle the indirection in userland and then call the required system call directly. Change-Id: I8385399621529db9a52b463c96925f6decaaca30 --- libc/arch-mips/syscalls/syscall.S | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 libc/arch-mips/syscalls/syscall.S (limited to 'libc/arch-mips/syscalls') diff --git a/libc/arch-mips/syscalls/syscall.S b/libc/arch-mips/syscalls/syscall.S deleted file mode 100644 index 2b2b707..0000000 --- a/libc/arch-mips/syscalls/syscall.S +++ /dev/null @@ -1,23 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - .text - .globl syscall - .align 4 - .ent syscall - -syscall: - .set noreorder - .cpload $t9 - li $v0, __NR_syscall - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno - j $t9 - nop - .set reorder - .end syscall -- cgit v1.1