From 6b53c2349a5a3fc70a475de6a66131b615e88e48 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 24 Oct 2013 22:36:58 -0700 Subject: Fix the exit syscall stub's name. I've left the exit_group syscall as _exit because otherwise we'd have to convince the compiler that our _exit (which just calls __exit_group) is actually "noreturn", and it seems like that would be less clean than just cutting out the middleman. We'll just have to trust ourselves not to add anything to SYSCALLS.TXT that ought to be private but that only has a single leading underscore. Hopefully we can manage that. Change-Id: Iac47faea9f516186e1774381846c54cafabc4354 --- libc/arch-mips/syscalls/__exit.S | 23 +++++++++++++++++++++++ libc/arch-mips/syscalls/_exit_thread.S | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 libc/arch-mips/syscalls/__exit.S delete mode 100644 libc/arch-mips/syscalls/_exit_thread.S (limited to 'libc/arch-mips/syscalls') diff --git a/libc/arch-mips/syscalls/__exit.S b/libc/arch-mips/syscalls/__exit.S new file mode 100644 index 0000000..529e49c --- /dev/null +++ b/libc/arch-mips/syscalls/__exit.S @@ -0,0 +1,23 @@ +/* Generated by gensyscalls.py. Do not edit. */ + +#include + .text + .globl __exit + .align 4 + .ent __exit + +__exit: + .set noreorder + .cpload $t9 + li $v0, __NR_exit + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end __exit diff --git a/libc/arch-mips/syscalls/_exit_thread.S b/libc/arch-mips/syscalls/_exit_thread.S deleted file mode 100644 index 1ed8ffc3..0000000 --- a/libc/arch-mips/syscalls/_exit_thread.S +++ /dev/null @@ -1,23 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - .text - .globl _exit_thread - .align 4 - .ent _exit_thread - -_exit_thread: - .set noreorder - .cpload $t9 - li $v0, __NR_exit - syscall - bnez $a3, 1f - move $a0, $v0 - j $ra - nop -1: - la $t9,__set_errno - j $t9 - nop - .set reorder - .end _exit_thread -- cgit v1.1