Unified sysroot: kill arch-specific include dirs.
<machine/asm.h> was internal use only.
<machine/fenv.h> is quite large, but can live in <bits/...>.
<machine/regdef.h> is trivially replaced by saying $x instead of x in
our assembler.
<machine/setjmp.h> is trivially inlined into <setjmp.h>.
<sgidefs.h> is unused.
Bug: N/A
Test: builds
Change-Id: Id05dbab43a2f9537486efb8f27a5ef167b055815
diff --git a/libc/Android.bp b/libc/Android.bp
index cd01efd..87291d4 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -1962,27 +1962,6 @@
no_default_compiler_flags: true,
cflags: ["-Wno-gcc-compat", "-Werror"],
-
- arch: {
- arm: {
- local_include_dirs: ["arch-arm/include"],
- },
- arm64: {
- local_include_dirs: ["arch-arm64/include"],
- },
- mips: {
- local_include_dirs: ["arch-mips/include"],
- },
- mips64: {
- local_include_dirs: ["arch-mips64/include"],
- },
- x86: {
- local_include_dirs: ["arch-x86/include"],
- },
- x86_64: {
- local_include_dirs: ["arch-x86_64/include"],
- },
- },
}
cc_defaults {
@@ -2241,54 +2220,6 @@
license: "NOTICE",
}
-ndk_headers {
- name: "libc_machine_arm",
- from: "arch-arm/include",
- to: "arm-linux-androideabi",
- srcs: ["arch-arm/include/**/*.h"],
- license: "NOTICE",
-}
-
-ndk_headers {
- name: "libc_machine_arm64",
- from: "arch-arm64/include",
- to: "aarch64-linux-android",
- srcs: ["arch-arm64/include/**/*.h"],
- license: "NOTICE",
-}
-
-ndk_headers {
- name: "libc_machine_mips",
- from: "arch-mips/include",
- to: "mipsel-linux-android",
- srcs: ["arch-mips/include/**/*.h"],
- license: "NOTICE",
-}
-
-ndk_headers {
- name: "libc_machine_mips64",
- from: "arch-mips/include",
- to: "mips64el-linux-android",
- srcs: ["arch-mips/include/**/*.h"],
- license: "NOTICE",
-}
-
-ndk_headers {
- name: "libc_machine_x86",
- from: "arch-x86/include",
- to: "i686-linux-android",
- srcs: ["arch-x86/include/**/*.h"],
- license: "NOTICE",
-}
-
-ndk_headers {
- name: "libc_machine_x86_64",
- from: "arch-x86_64/include",
- to: "x86_64-linux-android",
- srcs: ["arch-x86_64/include/**/*.h"],
- license: "NOTICE",
-}
-
ndk_library {
name: "libc",
symbol_file: "libc.map.txt",
@@ -2303,7 +2234,6 @@
arch: {
arm: {
export_include_dirs: [
- "arch-arm/include",
"kernel/uapi",
"kernel/uapi/asm-arm",
"kernel/android/uapi",
@@ -2311,7 +2241,6 @@
},
arm64: {
export_include_dirs: [
- "arch-arm64/include",
"kernel/uapi",
"kernel/uapi/asm-arm64",
"kernel/android/uapi",
@@ -2319,7 +2248,6 @@
},
mips: {
export_include_dirs: [
- "arch-mips/include",
"kernel/uapi",
"kernel/uapi/asm-mips",
"kernel/android/uapi",
@@ -2327,7 +2255,6 @@
},
mips64: {
export_include_dirs: [
- "arch-mips64/include",
"kernel/uapi",
"kernel/uapi/asm-mips",
"kernel/android/uapi",
@@ -2335,7 +2262,6 @@
},
x86: {
export_include_dirs: [
- "arch-x86/include",
"kernel/uapi",
"kernel/uapi/asm-x86",
"kernel/android/uapi",
@@ -2343,7 +2269,6 @@
},
x86_64: {
export_include_dirs: [
- "arch-x86_64/include",
"kernel/uapi",
"kernel/uapi/asm-x86",
"kernel/android/uapi",
diff --git a/libc/NOTICE b/libc/NOTICE
index 32980b7..9b461ee 100644
--- a/libc/NOTICE
+++ b/libc/NOTICE
@@ -2708,39 +2708,6 @@
Copyright (c) 1992, 1993
The Regents of the University of California. All rights reserved.
-This code is derived from software contributed to Berkeley by
-Ralph Campbell. This file is derived from the MIPS RISC
-Architecture book by Gerry Kane.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-3. Neither the name of the University nor the names of its contributors
- may be used to endorse or promote products derived from this software
- without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGE.
-
--------------------------------------------------------------------
-
-Copyright (c) 1992, 1993
- The Regents of the University of California. All rights reserved.
-
This software was developed by the Computer Systems Engineering group
at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
contributed to Berkeley.
diff --git a/libc/arch-arm/include/machine/setjmp.h b/libc/arch-arm/include/machine/setjmp.h
deleted file mode 100644
index cc9c347..0000000
--- a/libc/arch-arm/include/machine/setjmp.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright (C) 2010 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-/* _JBLEN is the size of a jmp_buf in longs.
- * Do not modify this value or you will break the ABI !
- *
- * This value comes from the original OpenBSD ARM-specific header
- * that was replaced by this one.
- */
-#define _JBLEN 64
diff --git a/libc/arch-arm/krait/bionic/memcpy_base.S b/libc/arch-arm/krait/bionic/memcpy_base.S
index 7368e63..dc8ad2c 100644
--- a/libc/arch-arm/krait/bionic/memcpy_base.S
+++ b/libc/arch-arm/krait/bionic/memcpy_base.S
@@ -27,8 +27,6 @@
/* Assumes neon instructions and a cache line size of 64 bytes. */
-#include <machine/asm.h>
-
#define PLDOFFS (10)
#define PLDTHRESH (PLDOFFS)
#define BBTHRESH (4096/64)
diff --git a/libc/arch-arm64/include/machine/setjmp.h b/libc/arch-arm64/include/machine/setjmp.h
deleted file mode 100644
index 27c2fe5..0000000
--- a/libc/arch-arm64/include/machine/setjmp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2013 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-/* _JBLEN is the size of a jmp_buf in longs (64bit on AArch64) */
-#define _JBLEN 32
diff --git a/libc/arch-mips/bionic/__bionic_clone.S b/libc/arch-mips/bionic/__bionic_clone.S
index a3cacd1..b6056f2 100644
--- a/libc/arch-mips/bionic/__bionic_clone.S
+++ b/libc/arch-mips/bionic/__bionic_clone.S
@@ -33,39 +33,39 @@
// pid_t __bionic_clone(int flags, void* child_stack, pid_t* parent_tid, void* tls, pid_t* child_tid, int (*fn)(void*), void* arg);
ENTRY_PRIVATE(__bionic_clone)
.set noreorder
- .cpload t9
+ .cpload $t9
.set reorder
# set up child stack
- subu a1,16
- lw t0,20(sp) # fn
- lw t1,24(sp) # arg
- sw t0,0(a1) # fn
- sw t1,4(a1) # arg
+ subu $a1,16
+ lw $t0,20($sp) # fn
+ lw $t1,24($sp) # arg
+ sw $t0,0($a1) # fn
+ sw $t1,4($a1) # arg
# remainder of arguments are correct for clone system call
- li v0,__NR_clone
+ li $v0,__NR_clone
syscall
- bnez a3,.L__error_bc
+ bnez $a3,.L__error_bc
- beqz v0,.L__thread_start_bc
+ beqz $v0,.L__thread_start_bc
- j ra
+ j $ra
.L__thread_start_bc:
# Clear return address in child so we don't unwind further.
- li ra,0
+ li $ra,0
- lw a0,0(sp) # fn
- lw a1,4(sp) # arg
+ lw $a0,0($sp) # fn
+ lw $a1,4($sp) # arg
# void __start_thread(int (*func)(void*), void *arg)
- la t9,__start_thread
- j t9
+ la $t9,__start_thread
+ j $t9
.L__error_bc:
- move a0,v0
- la t9,__set_errno_internal
- j t9
+ move $a0,$v0
+ la $t9,__set_errno_internal
+ j $t9
END(__bionic_clone)
diff --git a/libc/arch-mips/bionic/_exit_with_stack_teardown.S b/libc/arch-mips/bionic/_exit_with_stack_teardown.S
index 7d47160..566b1c8 100644
--- a/libc/arch-mips/bionic/_exit_with_stack_teardown.S
+++ b/libc/arch-mips/bionic/_exit_with_stack_teardown.S
@@ -30,12 +30,12 @@
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
ENTRY_PRIVATE(_exit_with_stack_teardown)
- li v0, __NR_munmap
+ li $v0, __NR_munmap
syscall
// If munmap failed, we ignore the failure and exit anyway.
- li a0, 0
- li v0, __NR_exit
+ li $a0, 0
+ li $v0, __NR_exit
syscall
// The exit syscall does not return.
END(_exit_with_stack_teardown)
diff --git a/libc/arch-mips/bionic/setjmp.S b/libc/arch-mips/bionic/setjmp.S
index 3b4ff55..1728054 100644
--- a/libc/arch-mips/bionic/setjmp.S
+++ b/libc/arch-mips/bionic/setjmp.S
@@ -119,7 +119,6 @@
*/
#include <private/bionic_asm.h>
-#include <machine/setjmp.h>
/* jmpbuf is declared to users as an array of longs, which is only
* 4-byte aligned in 32-bit builds. The Mips jmpbuf begins with a
@@ -161,10 +160,6 @@
#define SC_TOTAL_BYTES (SC_FPREGS_OFFSET + SC_FPREGS_BYTES)
#define SC_TOTAL_LONGS (SC_TOTAL_BYTES/REGSZ)
-#if SC_TOTAL_LONGS > _JBLEN
-#error _JBLEN is too small
-#endif
-
#define USE_CHECKSUM 1
.macro m_mangle_reg_and_store reg, cookie, temp, offset
@@ -203,138 +198,138 @@
GPOFF= FRAMESZ-2*REGSZ
RAOFF= FRAMESZ-1*REGSZ
-NON_LEAF(sigsetjmp, FRAMESZ, ra)
+NON_LEAF(sigsetjmp, FRAMESZ, $ra)
.mask 0x80000000, RAOFF
- PTR_SUBU sp, FRAMESZ # allocate stack frame
+ PTR_SUBU $sp, FRAMESZ # allocate stack frame
SETUP_GP64(GPOFF, sigsetjmp)
SAVE_GP(GPOFF)
.set reorder
setjmp_common:
#ifndef __LP64__
- li t0, ~7
- and a0, t0 # round jmpbuf addr DOWN to 8-byte boundary
+ li $t0, ~7
+ and $a0, $t0 # round jmpbuf addr DOWN to 8-byte boundary
#endif
- REG_S ra, RAOFF(sp) # spill state
- REG_S a0, A0OFF(sp)
+ REG_S $ra, RAOFF($sp) # spill state
+ REG_S $a0, A0OFF($sp)
# get the cookie and store it along with the signal flag.
- move a0, a1
+ move $a0, $a1
jal __bionic_setjmp_cookie_get
- REG_L a0, A0OFF(sp)
+ REG_L $a0, A0OFF($sp)
- REG_S v0, SC_FLAG_OFFSET(a0) # save cookie and savesigs flag
- andi t0, v0, 1 # extract savesigs flag
+ REG_S $v0, SC_FLAG_OFFSET($a0) # save cookie and savesigs flag
+ andi $t0, $v0, 1 # extract savesigs flag
- beqz t0, 1f # do saving of signal mask?
+ beqz $t0, 1f # do saving of signal mask?
# call sigprocmask(int how ignored, sigset_t* null, sigset_t* SC_MASK(a0)):
- LA a2, SC_MASK_OFFSET(a0) # gets current signal mask
- li a0, 0 # how; ignored when new mask is null
- li a1, 0 # null new mask
+ LA $a2, SC_MASK_OFFSET($a0) # gets current signal mask
+ li $a0, 0 # how; ignored when new mask is null
+ li $a1, 0 # null new mask
jal sigprocmask # get current signal mask
- REG_L a0, A0OFF(sp)
+ REG_L $a0, A0OFF($sp)
1:
- REG_L gp, GPOFF(sp) # restore spills
- REG_L ra, RAOFF(sp)
- REG_L t0, SC_FLAG_OFFSET(a0) # move cookie to temp reg
+ REG_L $gp, GPOFF($sp) # restore spills
+ REG_L $ra, RAOFF($sp)
+ REG_L $t0, SC_FLAG_OFFSET($a0) # move cookie to temp reg
# callee-saved long-sized regs:
- PTR_ADDU v1, sp, FRAMESZ # save orig sp
+ PTR_ADDU $v1, $sp, FRAMESZ # save orig sp
# m_mangle_reg_and_store reg, cookie, temp, offset
- m_mangle_reg_and_store ra, t0, t1, SC_REGS+0*REGSZ(a0)
- m_mangle_reg_and_store s0, t0, t2, SC_REGS+1*REGSZ(a0)
- m_mangle_reg_and_store s1, t0, t3, SC_REGS+2*REGSZ(a0)
- m_mangle_reg_and_store s2, t0, t1, SC_REGS+3*REGSZ(a0)
- m_mangle_reg_and_store s3, t0, t2, SC_REGS+4*REGSZ(a0)
- m_mangle_reg_and_store s4, t0, t3, SC_REGS+5*REGSZ(a0)
- m_mangle_reg_and_store s5, t0, t1, SC_REGS+6*REGSZ(a0)
- m_mangle_reg_and_store s6, t0, t2, SC_REGS+7*REGSZ(a0)
- m_mangle_reg_and_store s7, t0, t3, SC_REGS+8*REGSZ(a0)
- m_mangle_reg_and_store s8, t0, t1, SC_REGS+9*REGSZ(a0)
- m_mangle_reg_and_store gp, t0, t2, SC_REGS+10*REGSZ(a0)
- m_mangle_reg_and_store v1, t0, t3, SC_REGS+11*REGSZ(a0)
+ m_mangle_reg_and_store $ra, $t0, $t1, SC_REGS+0*REGSZ($a0)
+ m_mangle_reg_and_store $s0, $t0, $t2, SC_REGS+1*REGSZ($a0)
+ m_mangle_reg_and_store $s1, $t0, $t3, SC_REGS+2*REGSZ($a0)
+ m_mangle_reg_and_store $s2, $t0, $t1, SC_REGS+3*REGSZ($a0)
+ m_mangle_reg_and_store $s3, $t0, $t2, SC_REGS+4*REGSZ($a0)
+ m_mangle_reg_and_store $s4, $t0, $t3, SC_REGS+5*REGSZ($a0)
+ m_mangle_reg_and_store $s5, $t0, $t1, SC_REGS+6*REGSZ($a0)
+ m_mangle_reg_and_store $s6, $t0, $t2, SC_REGS+7*REGSZ($a0)
+ m_mangle_reg_and_store $s7, $t0, $t3, SC_REGS+8*REGSZ($a0)
+ m_mangle_reg_and_store $s8, $t0, $t1, SC_REGS+9*REGSZ($a0)
+ m_mangle_reg_and_store $gp, $t0, $t2, SC_REGS+10*REGSZ($a0)
+ m_mangle_reg_and_store $v1, $t0, $t3, SC_REGS+11*REGSZ($a0)
- cfc1 v0, $31
+ cfc1 $v0, $31
#ifdef __LP64__
# callee-saved fp regs on mips n64 ABI are $f24..$f31
- s.d $f24, SC_FPREGS+0*REGSZ_FP(a0)
- s.d $f25, SC_FPREGS+1*REGSZ_FP(a0)
- s.d $f26, SC_FPREGS+2*REGSZ_FP(a0)
- s.d $f27, SC_FPREGS+3*REGSZ_FP(a0)
- s.d $f28, SC_FPREGS+4*REGSZ_FP(a0)
- s.d $f29, SC_FPREGS+5*REGSZ_FP(a0)
- s.d $f30, SC_FPREGS+6*REGSZ_FP(a0)
- s.d $f31, SC_FPREGS+7*REGSZ_FP(a0)
+ s.d $f24, SC_FPREGS+0*REGSZ_FP($a0)
+ s.d $f25, SC_FPREGS+1*REGSZ_FP($a0)
+ s.d $f26, SC_FPREGS+2*REGSZ_FP($a0)
+ s.d $f27, SC_FPREGS+3*REGSZ_FP($a0)
+ s.d $f28, SC_FPREGS+4*REGSZ_FP($a0)
+ s.d $f29, SC_FPREGS+5*REGSZ_FP($a0)
+ s.d $f30, SC_FPREGS+6*REGSZ_FP($a0)
+ s.d $f31, SC_FPREGS+7*REGSZ_FP($a0)
#else
# callee-saved fp regs on mips o32 ABI are
# the even-numbered double fp regs $f20,$f22,...$f30
- s.d $f20, SC_FPREGS+0*REGSZ_FP(a0)
- s.d $f22, SC_FPREGS+1*REGSZ_FP(a0)
- s.d $f24, SC_FPREGS+2*REGSZ_FP(a0)
- s.d $f26, SC_FPREGS+3*REGSZ_FP(a0)
- s.d $f28, SC_FPREGS+4*REGSZ_FP(a0)
- s.d $f30, SC_FPREGS+5*REGSZ_FP(a0)
+ s.d $f20, SC_FPREGS+0*REGSZ_FP($a0)
+ s.d $f22, SC_FPREGS+1*REGSZ_FP($a0)
+ s.d $f24, SC_FPREGS+2*REGSZ_FP($a0)
+ s.d $f26, SC_FPREGS+3*REGSZ_FP($a0)
+ s.d $f28, SC_FPREGS+4*REGSZ_FP($a0)
+ s.d $f30, SC_FPREGS+5*REGSZ_FP($a0)
#endif
- sw v0, SC_FPSR_OFFSET(a0)
+ sw $v0, SC_FPSR_OFFSET($a0)
#if USE_CHECKSUM
- m_calculate_checksum t0, a0, t1
- REG_S t0, SC_CKSUM_OFFSET(a0)
+ m_calculate_checksum $t0, $a0, $t1
+ REG_S $t0, SC_CKSUM_OFFSET($a0)
#endif
- move v0, zero
+ move $v0, $zero
RESTORE_GP64
- PTR_ADDU sp, FRAMESZ
- j ra
+ PTR_ADDU $sp, FRAMESZ
+ j $ra
END(sigsetjmp)
# Alternate entry points:
-NON_LEAF(setjmp, FRAMESZ, ra)
+NON_LEAF(setjmp, FRAMESZ, $ra)
.mask 0x80000000, RAOFF
- PTR_SUBU sp, FRAMESZ
+ PTR_SUBU $sp, FRAMESZ
SETUP_GP64(GPOFF, setjmp) # can't share sigsetjmp's gp code
SAVE_GP(GPOFF)
.set reorder
- li a1, 1 # save/restore signals state
+ li $a1, 1 # save/restore signals state
b setjmp_common # tail call
END(setjmp)
-NON_LEAF(_setjmp, FRAMESZ, ra)
+NON_LEAF(_setjmp, FRAMESZ, $ra)
.mask 0x80000000, RAOFF
- PTR_SUBU sp, FRAMESZ
+ PTR_SUBU $sp, FRAMESZ
SETUP_GP64(GPOFF, _setjmp) # can't share sigsetjmp's gp code
SAVE_GP(GPOFF)
.set reorder
- li a1, 0 # don't save/restore signals
+ li $a1, 0 # don't save/restore signals
b setjmp_common # tail call
END(_setjmp)
-NON_LEAF(siglongjmp, FRAMESZ, ra)
+NON_LEAF(siglongjmp, FRAMESZ, $ra)
.mask 0x80000000, RAOFF
- PTR_SUBU sp, FRAMESZ
+ PTR_SUBU $sp, FRAMESZ
SETUP_GP64(GPOFF, siglongjmp)
SAVE_GP(GPOFF)
.set reorder
#ifndef __LP64__
- li t0, ~7
- and a0, t0 # round jmpbuf addr DOWN to 8-byte boundary
+ li $t0, ~7
+ and $a0, $t0 # round jmpbuf addr DOWN to 8-byte boundary
#endif
- move s1, a1 # temp spill
- move s0, a0
+ move $s1, $a1 # temp spill
+ move $s0, $a0
#if USE_CHECKSUM
- m_calculate_checksum t0, s0, s2
- REG_L s2, SC_CKSUM_OFFSET(s0)
- beq t0, s2, 0f
+ m_calculate_checksum $t0, $s0, $s2
+ REG_L $s2, SC_CKSUM_OFFSET($s0)
+ beq $t0, $s2, 0f
nop
jal __bionic_setjmp_checksum_mismatch
nop
@@ -342,75 +337,75 @@
#endif
# extract savesigs flag
- REG_L s2, SC_FLAG_OFFSET(s0)
- andi t0, s2, 1
- beqz t0, 1f # restore signal mask?
+ REG_L $s2, SC_FLAG_OFFSET($s0)
+ andi $t0, $s2, 1
+ beqz $t0, 1f # restore signal mask?
# call sigprocmask(int how SIG_SETMASK, sigset_t* SC_MASK(a0), sigset_t* null):
- LA a1, SC_MASK_OFFSET(s0) # signals being restored
- li a0, 3 # mips SIG_SETMASK
- li a2, 0 # null
+ LA $a1, SC_MASK_OFFSET($s0) # signals being restored
+ li $a0, 3 # mips SIG_SETMASK
+ li $a2, 0 # null
jal sigprocmask # restore signal mask
1:
- move t0, s2 # get cookie to temp reg
- move a1, s1
- move a0, s0
+ move $t0, $s2 # get cookie to temp reg
+ move $a1, $s1
+ move $a0, $s0
# callee-saved long-sized regs:
# m_unmangle_reg_and_load reg, cookie, temp, offset
# don't restore gp yet, old value is needed for cookie_check call
- m_unmangle_reg_and_load ra, t0, t1, SC_REGS+0*REGSZ(a0)
- m_unmangle_reg_and_load s0, t0, t2, SC_REGS+1*REGSZ(a0)
- m_unmangle_reg_and_load s1, t0, t3, SC_REGS+2*REGSZ(a0)
- m_unmangle_reg_and_load s2, t0, t1, SC_REGS+3*REGSZ(a0)
- m_unmangle_reg_and_load s3, t0, t2, SC_REGS+4*REGSZ(a0)
- m_unmangle_reg_and_load s4, t0, t3, SC_REGS+5*REGSZ(a0)
- m_unmangle_reg_and_load s5, t0, t1, SC_REGS+6*REGSZ(a0)
- m_unmangle_reg_and_load s6, t0, t2, SC_REGS+7*REGSZ(a0)
- m_unmangle_reg_and_load s7, t0, t3, SC_REGS+8*REGSZ(a0)
- m_unmangle_reg_and_load s8, t0, t1, SC_REGS+9*REGSZ(a0)
- m_unmangle_reg_and_load v1, t0, t2, SC_REGS+10*REGSZ(a0)
- m_unmangle_reg_and_load sp, t0, t3, SC_REGS+11*REGSZ(a0)
+ m_unmangle_reg_and_load $ra, $t0, $t1, SC_REGS+0*REGSZ($a0)
+ m_unmangle_reg_and_load $s0, $t0, $t2, SC_REGS+1*REGSZ($a0)
+ m_unmangle_reg_and_load $s1, $t0, $t3, SC_REGS+2*REGSZ($a0)
+ m_unmangle_reg_and_load $s2, $t0, $t1, SC_REGS+3*REGSZ($a0)
+ m_unmangle_reg_and_load $s3, $t0, $t2, SC_REGS+4*REGSZ($a0)
+ m_unmangle_reg_and_load $s4, $t0, $t3, SC_REGS+5*REGSZ($a0)
+ m_unmangle_reg_and_load $s5, $t0, $t1, SC_REGS+6*REGSZ($a0)
+ m_unmangle_reg_and_load $s6, $t0, $t2, SC_REGS+7*REGSZ($a0)
+ m_unmangle_reg_and_load $s7, $t0, $t3, SC_REGS+8*REGSZ($a0)
+ m_unmangle_reg_and_load $s8, $t0, $t1, SC_REGS+9*REGSZ($a0)
+ m_unmangle_reg_and_load $v1, $t0, $t2, SC_REGS+10*REGSZ($a0)
+ m_unmangle_reg_and_load $sp, $t0, $t3, SC_REGS+11*REGSZ($a0)
- lw v0, SC_FPSR_OFFSET(a0)
- ctc1 v0, $31 # restore old fr mode before fp values
+ lw $v0, SC_FPSR_OFFSET($a0)
+ ctc1 $v0, $31 # restore old fr mode before fp values
#ifdef __LP64__
# callee-saved fp regs on mips n64 ABI are $f24..$f31
- l.d $f24, SC_FPREGS+0*REGSZ_FP(a0)
- l.d $f25, SC_FPREGS+1*REGSZ_FP(a0)
- l.d $f26, SC_FPREGS+2*REGSZ_FP(a0)
- l.d $f27, SC_FPREGS+3*REGSZ_FP(a0)
- l.d $f28, SC_FPREGS+4*REGSZ_FP(a0)
- l.d $f29, SC_FPREGS+5*REGSZ_FP(a0)
- l.d $f30, SC_FPREGS+6*REGSZ_FP(a0)
- l.d $f31, SC_FPREGS+7*REGSZ_FP(a0)
+ l.d $f24, SC_FPREGS+0*REGSZ_FP($a0)
+ l.d $f25, SC_FPREGS+1*REGSZ_FP($a0)
+ l.d $f26, SC_FPREGS+2*REGSZ_FP($a0)
+ l.d $f27, SC_FPREGS+3*REGSZ_FP($a0)
+ l.d $f28, SC_FPREGS+4*REGSZ_FP($a0)
+ l.d $f29, SC_FPREGS+5*REGSZ_FP($a0)
+ l.d $f30, SC_FPREGS+6*REGSZ_FP($a0)
+ l.d $f31, SC_FPREGS+7*REGSZ_FP($a0)
#else
# callee-saved fp regs on mips o32 ABI are
# the even-numbered double fp regs $f20,$f22,...$f30
- l.d $f20, SC_FPREGS+0*REGSZ_FP(a0)
- l.d $f22, SC_FPREGS+1*REGSZ_FP(a0)
- l.d $f24, SC_FPREGS+2*REGSZ_FP(a0)
- l.d $f26, SC_FPREGS+3*REGSZ_FP(a0)
- l.d $f28, SC_FPREGS+4*REGSZ_FP(a0)
- l.d $f30, SC_FPREGS+5*REGSZ_FP(a0)
+ l.d $f20, SC_FPREGS+0*REGSZ_FP($a0)
+ l.d $f22, SC_FPREGS+1*REGSZ_FP($a0)
+ l.d $f24, SC_FPREGS+2*REGSZ_FP($a0)
+ l.d $f26, SC_FPREGS+3*REGSZ_FP($a0)
+ l.d $f28, SC_FPREGS+4*REGSZ_FP($a0)
+ l.d $f30, SC_FPREGS+5*REGSZ_FP($a0)
#endif
# check cookie
- PTR_SUBU sp, FRAMESZ
- REG_S v1, GPOFF(sp)
- REG_S ra, RAOFF(sp)
- REG_S a1, A1OFF(sp)
- move a0, t0
+ PTR_SUBU $sp, FRAMESZ
+ REG_S $v1, GPOFF($sp)
+ REG_S $ra, RAOFF($sp)
+ REG_S $a1, A1OFF($sp)
+ move $a0, $t0
jal __bionic_setjmp_cookie_check
- REG_L gp, GPOFF(sp)
- REG_L ra, RAOFF(sp)
- REG_L a1, A1OFF(sp)
- PTR_ADDU sp, FRAMESZ
+ REG_L $gp, GPOFF($sp)
+ REG_L $ra, RAOFF($sp)
+ REG_L $a1, A1OFF($sp)
+ PTR_ADDU $sp, FRAMESZ
- sltiu t0, a1, 1 # never return 0!
- xor v0, a1, t0
- j ra # return to setjmp call site
+ sltiu $t0, $a1, 1 # never return 0!
+ xor $v0, $a1, $t0
+ j $ra # return to setjmp call site
END(siglongjmp)
ALIAS_SYMBOL(longjmp, siglongjmp)
diff --git a/libc/arch-mips/bionic/syscall.S b/libc/arch-mips/bionic/syscall.S
index 5fed0ac..857bbab 100644
--- a/libc/arch-mips/bionic/syscall.S
+++ b/libc/arch-mips/bionic/syscall.S
@@ -36,26 +36,26 @@
ENTRY(syscall)
.set noreorder
- .cpload t9
- move v0, a0
- move a0, a1
- move a1, a2
- move a2, a3
- lw a3, 16(sp)
- lw t0, 20(sp)
- lw t1, 24(sp)
- subu sp, STACKSIZE
- sw t0, 16(sp)
- sw t1, 20(sp)
+ .cpload $t9
+ move $v0, $a0
+ move $a0, $a1
+ move $a1, $a2
+ move $a2, $a3
+ lw $a3, 16($sp)
+ lw $t0, 20($sp)
+ lw $t1, 24($sp)
+ subu $sp, STACKSIZE
+ sw $t0, 16($sp)
+ sw $t1, 20($sp)
syscall
- addu sp, STACKSIZE
- bnez a3, 1f
- move a0, v0
- j ra
+ addu $sp, STACKSIZE
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9, __set_errno_internal
+ j $t9
nop
.set reorder
END(syscall)
diff --git a/libc/arch-mips/bionic/vfork.S b/libc/arch-mips/bionic/vfork.S
index 7ccf70b..fdd6a69 100644
--- a/libc/arch-mips/bionic/vfork.S
+++ b/libc/arch-mips/bionic/vfork.S
@@ -35,32 +35,32 @@
ENTRY(vfork)
.set noreorder
- .cpload t9
+ .cpload $t9
// __get_tls()[TLS_SLOT_THREAD_ID]->cached_pid_ = 0
.set push
.set mips32r2
- rdhwr v0, $29 // v0 = tls; kernel trap on mips32r1
+ rdhwr $v0, $29 // v0 = tls; kernel trap on mips32r1
.set pop
- lw v0, REGSZ*1(v0) // v0 = v0[TLS_SLOT_THREAD_ID ie 1]
- sw $0, REGSZ*2+4(v0) // v0->cached_pid_ = 0
+ lw $v0, REGSZ*1($v0) // v0 = v0[TLS_SLOT_THREAD_ID ie 1]
+ sw $0, REGSZ*2+4($v0) // v0->cached_pid_ = 0
- li a0, (CLONE_VM | CLONE_VFORK | SIGCHLD)
- li a1, 0
- li a2, 0
- li a3, 0
- subu sp, 8
- sw $0, 16(sp)
- li v0, __NR_clone
+ li $a0, (CLONE_VM | CLONE_VFORK | SIGCHLD)
+ li $a1, 0
+ li $a2, 0
+ li $a3, 0
+ subu $sp, 8
+ sw $0, 16($sp)
+ li $v0, __NR_clone
syscall
- addu sp, 8
- bnez a3, 1f
- move a0, v0
+ addu $sp, 8
+ bnez $a3, 1f
+ move $a0, $v0
- j ra
+ j $ra
nop
1:
- la t9, __set_errno_internal
- j t9
+ la $t9, __set_errno_internal
+ j $t9
nop
END(vfork)
diff --git a/libc/arch-mips/include/machine/regdef.h b/libc/arch-mips/include/machine/regdef.h
deleted file mode 100644
index 3a7cd68..0000000
--- a/libc/arch-mips/include/machine/regdef.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/* $OpenBSD: regdef.h,v 1.3 2005/08/07 07:29:44 miod Exp $ */
-
-/*
- * Copyright (c) 1992, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Ralph Campbell. This file is derived from the MIPS RISC
- * Architecture book by Gerry Kane.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)regdef.h 8.1 (Berkeley) 6/10/93
- */
-#ifndef _MIPS_REGDEF_H_
-#define _MIPS_REGDEF_H_
-
-#if (_MIPS_SIM == _ABI64) && !defined(__mips_n64)
-#define __mips_n64 1
-#endif
-#if (_MIPS_SIM == _ABIN32) && !defined(__mips_n32)
-#define __mips_n32 1
-#endif
-
-#define zero $0 /* always zero */
-#define AT $at /* assembler temp */
-#define v0 $2 /* return value */
-#define v1 $3
-#define a0 $4 /* argument registers */
-#define a1 $5
-#define a2 $6
-#define a3 $7
-#if defined(__mips_n32) || defined(__mips_n64)
-#define a4 $8 /* expanded register arguments */
-#define a5 $9
-#define a6 $10
-#define a7 $11
-#define ta0 $8 /* alias */
-#define ta1 $9
-#define ta2 $10
-#define ta3 $11
-#define t0 $12 /* temp registers (not saved across subroutine calls) */
-#define t1 $13
-#define t2 $14
-#define t3 $15
-#else
-#define t0 $8 /* temp registers (not saved across subroutine calls) */
-#define t1 $9
-#define t2 $10
-#define t3 $11
-#define t4 $12
-#define t5 $13
-#define t6 $14
-#define t7 $15
-#define ta0 $12 /* alias */
-#define ta1 $13
-#define ta2 $14
-#define ta3 $15
-#endif
-#define s0 $16 /* saved across subroutine calls (callee saved) */
-#define s1 $17
-#define s2 $18
-#define s3 $19
-#define s4 $20
-#define s5 $21
-#define s6 $22
-#define s7 $23
-#define t8 $24 /* two more temp registers */
-#define t9 $25
-#define k0 $26 /* kernel temporary */
-#define k1 $27
-#define gp $28 /* global pointer */
-#define sp $29 /* stack pointer */
-#define s8 $30 /* one more callee saved */
-#define ra $31 /* return address */
-
-#endif /* !_MIPS_REGDEF_H_ */
diff --git a/libc/arch-mips/include/machine/setjmp.h b/libc/arch-mips/include/machine/setjmp.h
deleted file mode 100644
index 4067d51..0000000
--- a/libc/arch-mips/include/machine/setjmp.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* $OpenBSD: setjmp.h,v 1.2 2004/08/10 21:10:56 pefo Exp $ */
-
-/* Public domain */
-
-#ifndef _MIPS_SETJMP_H_
-#define _MIPS_SETJMP_H_
-
-#ifdef __LP64__
-#define _JBLEN 25 /* size, in 8-byte longs, of a mips64 jmp_buf/sigjmp_buf */
-#else
-#define _JBLEN 157 /* historical size, in 4-byte longs, of a mips32 jmp_buf */
- /* actual used size is 34 */
-#endif
-
-#endif /* !_MIPS_SETJMP_H_ */
diff --git a/libc/arch-mips/include/sgidefs.h b/libc/arch-mips/include/sgidefs.h
deleted file mode 100644
index 8b37bf0..0000000
--- a/libc/arch-mips/include/sgidefs.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) 2014 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _SGIDEFS_H_
-#define _SGIDEFS_H_
-
-#include <asm/sgidefs.h>
-
-#endif /* _SGIDEFS_H_ */
diff --git a/libc/arch-mips/string/memset.S b/libc/arch-mips/string/memset.S
index 7ea6753..85ba2e9 100644
--- a/libc/arch-mips/string/memset.S
+++ b/libc/arch-mips/string/memset.S
@@ -209,12 +209,12 @@
LEAF(__memset_chk)
#endif
.set noreorder
- sltu t2, a3, a2
- beq t2, zero, memset
+ sltu $t2, $a3, $a2
+ beq $t2, $zero, memset
nop
- .cpsetup t9, t8, __memset_chk
- LA t9, __memset_chk_fail
- jr t9
+ .cpsetup $t9, $t8, __memset_chk
+ LA $t9, __memset_chk_fail
+ jr $t9
nop
.set reorder
END(__memset_chk)
@@ -229,41 +229,41 @@
.set noreorder
/* If the size is less than 2*NSIZE (8 or 16), go to L(lastb). Regardless of
size, copy dst pointer to v0 for the return value. */
- slti t2,a2,(2 * NSIZE)
- bne t2,zero,L(lastb)
- move v0,a0
+ slti $t2,$a2,(2 * NSIZE)
+ bne $t2,$zero,L(lastb)
+ move $v0,$a0
/* If memset value is not zero, we copy it to all the bytes in a 32 or 64
bit word. */
- beq a1,zero,L(set0) /* If memset value is zero no smear */
- PTR_SUBU a3,zero,a0
+ beq $a1,$zero,L(set0) /* If memset value is zero no smear */
+ PTR_SUBU $a3,$zero,$a0
nop
/* smear byte into 32 or 64 bit word */
#if ((__mips == 64) || (__mips == 32)) && (__mips_isa_rev >= 2)
# ifdef USE_DOUBLE
- dins a1, a1, 8, 8 /* Replicate fill byte into half-word. */
- dins a1, a1, 16, 16 /* Replicate fill byte into word. */
- dins a1, a1, 32, 32 /* Replicate fill byte into dbl word. */
+ dins $a1, $a1, 8, 8 /* Replicate fill byte into half-word. */
+ dins $a1, $a1, 16, 16 /* Replicate fill byte into word. */
+ dins $a1, $a1, 32, 32 /* Replicate fill byte into dbl word. */
# else
- ins a1, a1, 8, 8 /* Replicate fill byte into half-word. */
- ins a1, a1, 16, 16 /* Replicate fill byte into word. */
+ ins $a1, $a1, 8, 8 /* Replicate fill byte into half-word. */
+ ins $a1, $a1, 16, 16 /* Replicate fill byte into word. */
# endif
#else
# ifdef USE_DOUBLE
- and a1,0xff
- dsll t2,a1,8
- or a1,t2
- dsll t2,a1,16
- or a1,t2
- dsll t2,a1,32
- or a1,t2
+ and $a1,0xff
+ dsll $t2,$a1,8
+ or $a1,$t2
+ dsll $t2,$a1,16
+ or $a1,$t2
+ dsll $t2,$a1,32
+ or $a1,$t2
# else
- and a1,0xff
- sll t2,a1,8
- or a1,t2
- sll t2,a1,16
- or a1,t2
+ and $a1,0xff
+ sll $t2,$a1,8
+ or $a1,$t2
+ sll $t2,$a1,16
+ or $a1,$t2
# endif
#endif
@@ -271,16 +271,16 @@
aligned. If it is already aligned just jump to L(aligned). */
L(set0):
#ifndef R6_CODE
- andi t2,a3,(NSIZE-1) /* word-unaligned address? */
- beq t2,zero,L(aligned) /* t2 is the unalignment count */
- PTR_SUBU a2,a2,t2
- C_STHI a1,0(a0)
- PTR_ADDU a0,a0,t2
+ andi $t2,$a3,(NSIZE-1) /* word-unaligned address? */
+ beq $t2,$zero,L(aligned) /* t2 is the unalignment count */
+ PTR_SUBU $a2,$a2,$t2
+ C_STHI $a1,0($a0)
+ PTR_ADDU $a0,$a0,$t2
#else /* R6_CODE */
- andi t2,a0,(NSIZE-1)
- lapc t9,L(atable)
- PTR_LSA t9,t2,t9,2
- jrc t9
+ andi $t2,$a0,(NSIZE-1)
+ lapc $t9,L(atable)
+ PTR_LSA $t9,$t2,$t9,2
+ jrc $t9
L(atable):
bc L(aligned)
# ifdef USE_DOUBLE
@@ -293,24 +293,24 @@
bc L(lb2)
bc L(lb1)
L(lb7):
- sb a1,6(a0)
+ sb $a1,6($a0)
L(lb6):
- sb a1,5(a0)
+ sb $a1,5($a0)
L(lb5):
- sb a1,4(a0)
+ sb $a1,4($a0)
L(lb4):
- sb a1,3(a0)
+ sb $a1,3($a0)
L(lb3):
- sb a1,2(a0)
+ sb $a1,2($a0)
L(lb2):
- sb a1,1(a0)
+ sb $a1,1($a0)
L(lb1):
- sb a1,0(a0)
+ sb $a1,0($a0)
- li t9,NSIZE
- subu t2,t9,t2
- PTR_SUBU a2,a2,t2
- PTR_ADDU a0,a0,t2
+ li $t9,NSIZE
+ subu $t2,$t9,$t2
+ PTR_SUBU $a2,$a2,$t2
+ PTR_ADDU $a0,$a0,$t2
#endif /* R6_CODE */
L(aligned):
@@ -320,11 +320,11 @@
byte stores into one 8 byte store). We know there are at least 4 bytes
left to store or we would have jumped to L(lastb) earlier in the code. */
#ifdef DOUBLE_ALIGN
- andi t2,a3,4
- beq t2,zero,L(double_aligned)
- PTR_SUBU a2,a2,t2
- sw a1,0(a0)
- PTR_ADDU a0,a0,t2
+ andi $t2,$a3,4
+ beq $t2,$zero,L(double_aligned)
+ PTR_SUBU $a2,$a2,$t2
+ sw $a1,0($a0)
+ PTR_ADDU $a0,$a0,$t2
L(double_aligned):
#endif
@@ -333,10 +333,10 @@
chunks are copied and a3 to the dest pointer after all the 64/128 byte
chunks have been copied. We will loop, incrementing a0 until it equals
a3. */
- andi t8,a2,NSIZEDMASK /* any whole 64-byte/128-byte chunks? */
- beq a2,t8,L(chkw) /* if a2==t8, no 64-byte/128-byte chunks */
- PTR_SUBU a3,a2,t8 /* subtract from a2 the reminder */
- PTR_ADDU a3,a0,a3 /* Now a3 is the final dst after loop */
+ andi $t8,$a2,NSIZEDMASK /* any whole 64-byte/128-byte chunks? */
+ beq $a2,$t8,L(chkw) /* if a2==t8, no 64-byte/128-byte chunks */
+ PTR_SUBU $a3,$a2,$t8 /* subtract from a2 the reminder */
+ PTR_ADDU $a3,$a0,$a3 /* Now a3 is the final dst after loop */
/* When in the loop we may prefetch with the 'prepare to store' hint,
in this case the a0+x should not be past the "t0-32" address. This
@@ -345,68 +345,68 @@
will use "prefetch hint,128(a0)", so "t0-160" is the limit. */
#if defined(USE_PREFETCH) \
&& (PREFETCH_STORE_HINT == PREFETCH_HINT_PREPAREFORSTORE)
- PTR_ADDU t0,a0,a2 /* t0 is the "past the end" address */
- PTR_SUBU t9,t0,PREFETCH_LIMIT /* t9 is the "last safe pref" address */
+ PTR_ADDU $t0,$a0,$a2 /* t0 is the "past the end" address */
+ PTR_SUBU $t9,$t0,PREFETCH_LIMIT /* t9 is the "last safe pref" address */
#endif
#if defined(USE_PREFETCH) \
&& (PREFETCH_STORE_HINT != PREFETCH_HINT_PREPAREFORSTORE)
- PREFETCH_FOR_STORE (1, a0)
- PREFETCH_FOR_STORE (2, a0)
- PREFETCH_FOR_STORE (3, a0)
+ PREFETCH_FOR_STORE (1, $a0)
+ PREFETCH_FOR_STORE (2, $a0)
+ PREFETCH_FOR_STORE (3, $a0)
#endif
L(loop16w):
#if defined(USE_PREFETCH) \
&& (PREFETCH_STORE_HINT == PREFETCH_HINT_PREPAREFORSTORE)
- sltu v1,t9,a0 /* If a0 > t9 don't use next prefetch */
- bgtz v1,L(skip_pref)
+ sltu $v1,$t9,$a0 /* If a0 > t9 don't use next prefetch */
+ bgtz $v1,L(skip_pref)
nop
#endif
#ifndef R6_CODE
- PREFETCH_FOR_STORE (4, a0)
- PREFETCH_FOR_STORE (5, a0)
+ PREFETCH_FOR_STORE (4, $a0)
+ PREFETCH_FOR_STORE (5, $a0)
#else
- PREFETCH_FOR_STORE (2, a0)
+ PREFETCH_FOR_STORE (2, $a0)
#endif
L(skip_pref):
- C_ST a1,UNIT(0)(a0)
- C_ST a1,UNIT(1)(a0)
- C_ST a1,UNIT(2)(a0)
- C_ST a1,UNIT(3)(a0)
- C_ST a1,UNIT(4)(a0)
- C_ST a1,UNIT(5)(a0)
- C_ST a1,UNIT(6)(a0)
- C_ST a1,UNIT(7)(a0)
- C_ST a1,UNIT(8)(a0)
- C_ST a1,UNIT(9)(a0)
- C_ST a1,UNIT(10)(a0)
- C_ST a1,UNIT(11)(a0)
- C_ST a1,UNIT(12)(a0)
- C_ST a1,UNIT(13)(a0)
- C_ST a1,UNIT(14)(a0)
- C_ST a1,UNIT(15)(a0)
- PTR_ADDIU a0,a0,UNIT(16) /* adding 64/128 to dest */
- bne a0,a3,L(loop16w)
+ C_ST $a1,UNIT(0)($a0)
+ C_ST $a1,UNIT(1)($a0)
+ C_ST $a1,UNIT(2)($a0)
+ C_ST $a1,UNIT(3)($a0)
+ C_ST $a1,UNIT(4)($a0)
+ C_ST $a1,UNIT(5)($a0)
+ C_ST $a1,UNIT(6)($a0)
+ C_ST $a1,UNIT(7)($a0)
+ C_ST $a1,UNIT(8)($a0)
+ C_ST $a1,UNIT(9)($a0)
+ C_ST $a1,UNIT(10)($a0)
+ C_ST $a1,UNIT(11)($a0)
+ C_ST $a1,UNIT(12)($a0)
+ C_ST $a1,UNIT(13)($a0)
+ C_ST $a1,UNIT(14)($a0)
+ C_ST $a1,UNIT(15)($a0)
+ PTR_ADDIU $a0,$a0,UNIT(16) /* adding 64/128 to dest */
+ bne $a0,$a3,L(loop16w)
nop
- move a2,t8
+ move $a2,$t8
/* Here we have dest word-aligned but less than 64-bytes or 128 bytes to go.
Check for a 32(64) byte chunk and copy if if there is one. Otherwise
jump down to L(chk1w) to handle the tail end of the copy. */
L(chkw):
- andi t8,a2,NSIZEMASK /* is there a 32-byte/64-byte chunk. */
+ andi $t8,$a2,NSIZEMASK /* is there a 32-byte/64-byte chunk. */
/* the t8 is the reminder count past 32-bytes */
- beq a2,t8,L(chk1w)/* when a2==t8, no 32-byte chunk */
+ beq $a2,$t8,L(chk1w)/* when a2==t8, no 32-byte chunk */
nop
- C_ST a1,UNIT(0)(a0)
- C_ST a1,UNIT(1)(a0)
- C_ST a1,UNIT(2)(a0)
- C_ST a1,UNIT(3)(a0)
- C_ST a1,UNIT(4)(a0)
- C_ST a1,UNIT(5)(a0)
- C_ST a1,UNIT(6)(a0)
- C_ST a1,UNIT(7)(a0)
- PTR_ADDIU a0,a0,UNIT(8)
+ C_ST $a1,UNIT(0)($a0)
+ C_ST $a1,UNIT(1)($a0)
+ C_ST $a1,UNIT(2)($a0)
+ C_ST $a1,UNIT(3)($a0)
+ C_ST $a1,UNIT(4)($a0)
+ C_ST $a1,UNIT(5)($a0)
+ C_ST $a1,UNIT(6)($a0)
+ C_ST $a1,UNIT(7)($a0)
+ PTR_ADDIU $a0,$a0,UNIT(8)
/* Here we have less than 32(64) bytes to set. Set up for a loop to
copy one word (or double word) at a time. Set a2 to count how many
@@ -414,27 +414,27 @@
copied and a3 to the dest pointer after all the (d)word chunks have
been copied. We will loop, incrementing a0 until a0 equals a3. */
L(chk1w):
- andi a2,t8,(NSIZE-1) /* a2 is the reminder past one (d)word chunks */
- beq a2,t8,L(lastb)
- PTR_SUBU a3,t8,a2 /* a3 is count of bytes in one (d)word chunks */
- PTR_ADDU a3,a0,a3 /* a3 is the dst address after loop */
+ andi $a2,$t8,(NSIZE-1) /* a2 is the reminder past one (d)word chunks */
+ beq $a2,$t8,L(lastb)
+ PTR_SUBU $a3,$t8,$a2 /* a3 is count of bytes in one (d)word chunks */
+ PTR_ADDU $a3,$a0,$a3 /* a3 is the dst address after loop */
/* copying in words (4-byte or 8 byte chunks) */
L(wordCopy_loop):
- PTR_ADDIU a0,a0,UNIT(1)
- bne a0,a3,L(wordCopy_loop)
- C_ST a1,UNIT(-1)(a0)
+ PTR_ADDIU $a0,$a0,UNIT(1)
+ bne $a0,$a3,L(wordCopy_loop)
+ C_ST $a1,UNIT(-1)($a0)
/* Copy the last 8 (or 16) bytes */
L(lastb):
- blez a2,L(leave)
- PTR_ADDU a3,a0,a2 /* a3 is the last dst address */
+ blez $a2,L(leave)
+ PTR_ADDU $a3,$a0,$a2 /* a3 is the last dst address */
L(lastbloop):
- PTR_ADDIU a0,a0,1
- bne a0,a3,L(lastbloop)
- sb a1,-1(a0)
+ PTR_ADDIU $a0,$a0,1
+ bne $a0,$a3,L(lastbloop)
+ sb $a1,-1($a0)
L(leave):
- j ra
+ j $ra
nop
.set at
diff --git a/libc/arch-mips/string/strcmp.S b/libc/arch-mips/string/strcmp.S
index e1faf2d..4791a0d 100644
--- a/libc/arch-mips/string/strcmp.S
+++ b/libc/arch-mips/string/strcmp.S
@@ -100,18 +100,18 @@
instructions so that the nop is not needed but testing showed that this
code is actually faster (based on glibc strcmp test). */
#define BYTECMP01(OFFSET) \
- lbu v0, OFFSET(a0); \
- lbu v1, OFFSET(a1); \
- beq v0, zero, L(bexit01); \
+ lbu $v0, OFFSET($a0); \
+ lbu $v1, OFFSET($a1); \
+ beq $v0, $zero, L(bexit01); \
nop; \
- bne v0, v1, L(bexit01)
+ bne $v0, $v1, L(bexit01)
#define BYTECMP89(OFFSET) \
- lbu t8, OFFSET(a0); \
- lbu t9, OFFSET(a1); \
- beq t8, zero, L(bexit89); \
+ lbu $t8, OFFSET($a0); \
+ lbu $t9, OFFSET($a1); \
+ beq $t8, $zero, L(bexit89); \
nop; \
- bne t8, t9, L(bexit89)
+ bne $t8, $t9, L(bexit89)
/* Allow the routine to be named something else if desired. */
#ifndef STRCMP_NAME
@@ -126,46 +126,46 @@
.set nomips16
.set noreorder
- andi t1, a1, (NSIZE - 1)
- beqz t1, L(exitalign)
- or t0, zero, NSIZE
- SUBU t1, t0, t1 #process (NSIZE - 1) bytes at max
+ andi $t1, $a1, (NSIZE - 1)
+ beqz $t1, L(exitalign)
+ or $t0, $zero, NSIZE
+ SUBU $t1, $t0, $t1 #process (NSIZE - 1) bytes at max
L(alignloop): #do by bytes until a1 aligned
BYTECMP01(0)
- SUBU t1, t1, 0x1
- PTR_ADDIU a0, a0, 0x1
- bnez t1, L(alignloop)
- PTR_ADDIU a1, a1, 0x1
+ SUBU $t1, $t1, 0x1
+ PTR_ADDIU $a0, $a0, 0x1
+ bnez $t1, L(alignloop)
+ PTR_ADDIU $a1, $a1, 0x1
L(exitalign):
/* string a1 is NSIZE byte aligned at this point. */
- lui t8, 0x0101
- ori t8, 0x0101
- lui t9, 0x7f7f
- ori t9, 0x7f7f
+ lui $t8, 0x0101
+ ori $t8, 0x0101
+ lui $t9, 0x7f7f
+ ori $t9, 0x7f7f
#if __mips64
- dsll t1, t8, 32
- or t8, t1
- dsll t1, t9, 32
- or t9, t1
+ dsll $t1, $t8, 32
+ or $t8, $t1
+ dsll $t1, $t9, 32
+ or $t9, $t1
#endif
- andi t2, a0, (NSIZE - 1) #check if a0 aligned
- SUBU t3, t0, t2 #t3 will be used as shifter
- bnez t2, L(uloopenter)
- SUBU a2, a0, t2 #bring back a0 to aligned position
+ andi $t2, $a0, (NSIZE - 1) #check if a0 aligned
+ SUBU $t3, $t0, $t2 #t3 will be used as shifter
+ bnez $t2, L(uloopenter)
+ SUBU $a2, $a0, $t2 #bring back a0 to aligned position
#define STRCMPW(OFFSET) \
- LW v0, OFFSET(a0); \
- LW v1, OFFSET(a1); \
- SUBU t0, v0, t8; \
- bne v0, v1, L(worddiff); \
- nor t1, v0, t9; \
- and t0, t0, t1; \
- bne t0, zero, L(returnzero);\
+ LW $v0, OFFSET($a0); \
+ LW $v1, OFFSET($a1); \
+ SUBU $t0, $v0, $t8; \
+ bne $v0, $v1, L(worddiff); \
+ nor $t1, $v0, $t9; \
+ and $t0, $t0, $t1; \
+ bne $t0, $zero, L(returnzero);\
L(wordloop):
STRCMPW(0 * NSIZE)
@@ -183,34 +183,34 @@
STRCMPW(6 * NSIZE)
DELAY_READ
STRCMPW(7 * NSIZE)
- PTR_ADDIU a0, a0, (8 * NSIZE)
+ PTR_ADDIU $a0, $a0, (8 * NSIZE)
b L(wordloop)
- PTR_ADDIU a1, a1, (8 * NSIZE)
+ PTR_ADDIU $a1, $a1, (8 * NSIZE)
#define USTRCMPW(OFFSET) \
- LW v1, OFFSET(a1); \
- SUBU t0, v0, t8; \
- nor t1, v0, t9; \
- and t0, t0, t1; \
- bne t0, zero, L(worddiff); \
- SRL v0, t2; \
- LW a3, (OFFSET + NSIZE)(a2); \
- SUBU t0, v1, t8; \
- SLL t1, a3, t3; \
- or v0, v0, t1; \
- bne v0, v1, L(worddiff); \
- nor t1, v1, t9; \
- and t0, t0, t1; \
- bne t0, zero, L(returnzero); \
- move v0, a3;\
+ LW $v1, OFFSET($a1); \
+ SUBU $t0, $v0, $t8; \
+ nor $t1, $v0, $t9; \
+ and $t0, $t0, $t1; \
+ bne $t0, $zero, L(worddiff); \
+ SRL $v0, $t2; \
+ LW $a3, (OFFSET + NSIZE)($a2); \
+ SUBU $t0, $v1, $t8; \
+ SLL $t1, $a3, $t3; \
+ or $v0, $v0, $t1; \
+ bne $v0, $v1, L(worddiff); \
+ nor $t1, $v1, $t9; \
+ and $t0, $t0, $t1; \
+ bne $t0, $zero, L(returnzero); \
+ move $v0, $a3;\
L(uloopenter):
- LW v0, 0(a2)
- SLL t2, 3 #multiply by 8
- SLL t3, 3 #multiply by 8
- li a3, -1 #all 1s
- SRL a3, t3
- or v0, a3 #replace with all 1s if zeros in unintented read
+ LW $v0, 0($a2)
+ SLL $t2, 3 #multiply by 8
+ SLL $t3, 3 #multiply by 8
+ li $a3, -1 #all 1s
+ SRL $a3, $t3
+ or $v0, $a3 #replace with all 1s if zeros in unintented read
L(uwordloop):
USTRCMPW(0 * NSIZE)
@@ -221,114 +221,114 @@
USTRCMPW(5 * NSIZE)
USTRCMPW(6 * NSIZE)
USTRCMPW(7 * NSIZE)
- PTR_ADDIU a2, a2, (8 * NSIZE)
+ PTR_ADDIU $a2, $a2, (8 * NSIZE)
b L(uwordloop)
- PTR_ADDIU a1, a1, (8 * NSIZE)
+ PTR_ADDIU $a1, $a1, (8 * NSIZE)
L(returnzero):
- j ra
- move v0, zero
+ j $ra
+ move $v0, $zero
#if __mips_isa_rev > 1
#define EXT_COMPARE01(POS) \
- EXT t0, v0, POS, 8; \
- beq t0, zero, L(wexit01); \
- EXT t1, v1, POS, 8; \
- bne t0, t1, L(wexit01)
+ EXT $t0, $v0, POS, 8; \
+ beq $t0, $zero, L(wexit01); \
+ EXT $t1, $v1, POS, 8; \
+ bne $t0, $t1, L(wexit01)
#define EXT_COMPARE89(POS) \
- EXT t8, v0, POS, 8; \
- beq t8, zero, L(wexit89); \
- EXT t9, v1, POS, 8; \
- bne t8, t9, L(wexit89)
+ EXT $t8, $v0, POS, 8; \
+ beq $t8, $zero, L(wexit89); \
+ EXT $t9, $v1, POS, 8; \
+ bne $t8, $t9, L(wexit89)
#else
#define EXT_COMPARE01(POS) \
- SRL t0, v0, POS; \
- SRL t1, v1, POS; \
- andi t0, t0, 0xff; \
- beq t0, zero, L(wexit01); \
- andi t1, t1, 0xff; \
- bne t0, t1, L(wexit01)
+ SRL $t0, $v0, POS; \
+ SRL $t1, $v1, POS; \
+ andi $t0, $t0, 0xff; \
+ beq $t0, $zero, L(wexit01); \
+ andi $t1, $t1, 0xff; \
+ bne $t0, $t1, L(wexit01)
#define EXT_COMPARE89(POS) \
- SRL t8, v0, POS; \
- SRL t9, v1, POS; \
- andi t8, t8, 0xff; \
- beq t8, zero, L(wexit89); \
- andi t9, t9, 0xff; \
- bne t8, t9, L(wexit89)
+ SRL $t8, $v0, POS; \
+ SRL $t9, $v1, POS; \
+ andi $t8, $t8, 0xff; \
+ beq $t8, $zero, L(wexit89); \
+ andi $t9, $t9, 0xff; \
+ bne $t8, $t9, L(wexit89)
#endif
L(worddiff):
#ifdef USE_CLZ
- SUBU t0, v0, t8
- nor t1, v0, t9
- and t1, t0, t1
- xor t0, v0, v1
- or t0, t0, t1
+ SUBU $t0, $v0, $t8
+ nor $t1, $v0, $t9
+ and $t1, $t0, $t1
+ xor $t0, $v0, $v1
+ or $t0, $t0, $t1
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
- wsbh t0, t0
- rotr t0, t0, 16
+ wsbh $t0, $t0
+ rotr $t0, $t0, 16
# endif
- clz t1, t0
- and t1, 0xf8
+ clz $t1, $t0
+ and $t1, 0xf8
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
- neg t1
- addu t1, 24
+ neg $t1
+ addu $t1, 24
# endif
- rotrv v0, v0, t1
- rotrv v1, v1, t1
- and v0, v0, 0xff
- and v1, v1, 0xff
- j ra
- SUBU v0, v0, v1
+ rotrv $v0, $v0, $t1
+ rotrv $v1, $v1, $t1
+ and $v0, $v0, 0xff
+ and $v1, $v1, 0xff
+ j $ra
+ SUBU $v0, $v0, $v1
#else /* USE_CLZ */
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
- andi t0, v0, 0xff
- beq t0, zero, L(wexit01)
- andi t1, v1, 0xff
- bne t0, t1, L(wexit01)
+ andi $t0, $v0, 0xff
+ beq $t0, $zero, L(wexit01)
+ andi $t1, $v1, 0xff
+ bne $t0, $t1, L(wexit01)
EXT_COMPARE89(8)
EXT_COMPARE01(16)
#ifndef __mips64
- SRL t8, v0, 24
- SRL t9, v1, 24
+ SRL $t8, $v0, 24
+ SRL $t9, $v1, 24
#else
EXT_COMPARE89(24)
EXT_COMPARE01(32)
EXT_COMPARE89(40)
EXT_COMPARE01(48)
- SRL t8, v0, 56
- SRL t9, v1, 56
+ SRL $t8, $v0, 56
+ SRL $t9, $v1, 56
#endif
# else /* __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ */
#ifdef __mips64
- SRL t0, v0, 56
- beq t0, zero, L(wexit01)
- SRL t1, v1, 56
- bne t0, t1, L(wexit01)
+ SRL $t0, $v0, 56
+ beq $t0, $zero, L(wexit01)
+ SRL $t1, $v1, 56
+ bne $t0, $t1, L(wexit01)
EXT_COMPARE89(48)
EXT_COMPARE01(40)
EXT_COMPARE89(32)
EXT_COMPARE01(24)
#else
- SRL t0, v0, 24
- beq t0, zero, L(wexit01)
- SRL t1, v1, 24
- bne t0, t1, L(wexit01)
+ SRL $t0, $v0, 24
+ beq $t0, $zero, L(wexit01)
+ SRL $t1, $v1, 24
+ bne $t0, $t1, L(wexit01)
#endif
EXT_COMPARE89(16)
EXT_COMPARE01(8)
- andi t8, v0, 0xff
- andi t9, v1, 0xff
+ andi $t8, $v0, 0xff
+ andi $t9, $v1, 0xff
# endif /* __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ */
L(wexit89):
- j ra
- SUBU v0, t8, t9
+ j $ra
+ SUBU $v0, $t8, $t9
L(wexit01):
- j ra
- SUBU v0, t0, t1
+ j $ra
+ SUBU $v0, $t0, $t1
#endif /* USE_CLZ */
L(byteloop):
@@ -340,16 +340,16 @@
BYTECMP89(5)
BYTECMP01(6)
BYTECMP89(7)
- PTR_ADDIU a0, a0, 8
+ PTR_ADDIU $a0, $a0, 8
b L(byteloop)
- PTR_ADDIU a1, a1, 8
+ PTR_ADDIU $a1, $a1, 8
L(bexit01):
- j ra
- SUBU v0, v0, v1
+ j $ra
+ SUBU $v0, $v0, $v1
L(bexit89):
- j ra
- SUBU v0, t8, t9
+ j $ra
+ SUBU $v0, $t8, $t9
.set at
.set reorder
diff --git a/libc/arch-mips/string/strncmp.S b/libc/arch-mips/string/strncmp.S
index 4867c44..49250a0 100644
--- a/libc/arch-mips/string/strncmp.S
+++ b/libc/arch-mips/string/strncmp.S
@@ -102,18 +102,18 @@
instructions so that the nop is not needed but testing showed that this
code is actually faster (based on glibc strcmp test). */
#define BYTECMP01(OFFSET) \
- lbu v0, OFFSET(a0); \
- lbu v1, OFFSET(a1); \
- beq v0, zero, L(bexit01); \
+ lbu $v0, OFFSET($a0); \
+ lbu $v1, OFFSET($a1); \
+ beq $v0, $zero, L(bexit01); \
nop; \
- bne v0, v1, L(bexit01)
+ bne $v0, $v1, L(bexit01)
#define BYTECMP89(OFFSET) \
- lbu t8, OFFSET(a0); \
- lbu t9, OFFSET(a1); \
- beq t8, zero, L(bexit89); \
+ lbu $t8, OFFSET($a0); \
+ lbu $t9, OFFSET($a1); \
+ beq $t8, $zero, L(bexit89); \
nop; \
- bne t8, t9, L(bexit89)
+ bne $t8, $t9, L(bexit89)
/* Allow the routine to be named something else if desired. */
#ifndef STRNCMP_NAME
@@ -128,34 +128,34 @@
.set nomips16
.set noreorder
- srl t0, a2, (2 + NSIZE / 4)
- beqz t0, L(byteloop) #process by bytes if less than (2 * NSIZE)
- andi t1, a1, (NSIZE - 1)
- beqz t1, L(exitalign)
- or t0, zero, NSIZE
- SUBU t1, t0, t1 #process (NSIZE - 1) bytes at max
- SUBU a2, a2, t1 #dec count by t1
+ srl $t0, $a2, (2 + NSIZE / 4)
+ beqz $t0, L(byteloop) #process by bytes if less than (2 * NSIZE)
+ andi $t1, $a1, (NSIZE - 1)
+ beqz $t1, L(exitalign)
+ or $t0, $zero, NSIZE
+ SUBU $t1, $t0, $t1 #process (NSIZE - 1) bytes at max
+ SUBU $a2, $a2, $t1 #dec count by t1
L(alignloop): #do by bytes until a1 aligned
BYTECMP01(0)
- SUBU t1, t1, 0x1
- PTR_ADDIU a0, a0, 0x1
- bne t1, zero, L(alignloop)
- PTR_ADDIU a1, a1, 0x1
+ SUBU $t1, $t1, 0x1
+ PTR_ADDIU $a0, $a0, 0x1
+ bne $t1, $zero, L(alignloop)
+ PTR_ADDIU $a1, $a1, 0x1
L(exitalign):
/* string a1 is NSIZE byte aligned at this point. */
#ifndef __mips1
- lui t8, 0x0101
- ori t8, 0x0101
- lui t9, 0x7f7f
- ori t9, 0x7f7f
+ lui $t8, 0x0101
+ ori $t8, 0x0101
+ lui $t9, 0x7f7f
+ ori $t9, 0x7f7f
#if __mips64
- dsll t0, t8, 32
- or t8, t0
- dsll t1, t9, 32
- or t9, t1
+ dsll $t0, $t8, 32
+ or $t8, $t0
+ dsll $t1, $t9, 32
+ or $t9, $t1
#endif
#endif
@@ -164,25 +164,25 @@
remainings archs need to implemented with unaligned instructions */
#if __mips1
- andi t0, a0, (NSIZE - 1)
- bne t0, zero, L(byteloop)
+ andi $t0, $a0, (NSIZE - 1)
+ bne $t0, $zero, L(byteloop)
#elif __mips_isa_rev < 6
- andi t0, a0, (NSIZE - 1)
- bne t0, zero, L(uwordloop)
+ andi $t0, $a0, (NSIZE - 1)
+ bne $t0, $zero, L(uwordloop)
#endif
#define STRCMPW(OFFSET) \
- LW v0, (OFFSET)(a0); \
- LW v1, (OFFSET)(a1); \
- SUBU t0, v0, t8; \
- bne v0, v1, L(worddiff); \
- nor t1, v0, t9; \
- and t0, t0, t1; \
- bne t0, zero, L(returnzero);\
+ LW $v0, (OFFSET)($a0); \
+ LW $v1, (OFFSET)($a1); \
+ SUBU $t0, $v0, $t8; \
+ bne $v0, $v1, L(worddiff); \
+ nor $t1, $v0, $t9; \
+ and $t0, $t0, $t1; \
+ bne $t0, $zero, L(returnzero);\
L(wordloop):
- SUBU t1, a2, (8 * NSIZE)
- bltz t1, L(onewords)
+ SUBU $t1, $a2, (8 * NSIZE)
+ bltz $t1, L(onewords)
STRCMPW(0 * NSIZE)
DELAY_READ
STRCMPW(1 * NSIZE)
@@ -198,34 +198,34 @@
STRCMPW(6 * NSIZE)
DELAY_READ
STRCMPW(7 * NSIZE)
- SUBU a2, a2, (8 * NSIZE)
- PTR_ADDIU a0, a0, (8 * NSIZE)
+ SUBU $a2, $a2, (8 * NSIZE)
+ PTR_ADDIU $a0, $a0, (8 * NSIZE)
b L(wordloop)
- PTR_ADDIU a1, a1, (8 * NSIZE)
+ PTR_ADDIU $a1, $a1, (8 * NSIZE)
L(onewords):
- SUBU t1, a2, NSIZE
- bltz t1, L(byteloop)
+ SUBU $t1, $a2, NSIZE
+ bltz $t1, L(byteloop)
STRCMPW(0)
- SUBU a2, a2, NSIZE
- PTR_ADDIU a0, a0, NSIZE
+ SUBU $a2, $a2, NSIZE
+ PTR_ADDIU $a0, $a0, NSIZE
b L(onewords)
- PTR_ADDIU a1, a1, NSIZE
+ PTR_ADDIU $a1, $a1, NSIZE
#if __mips_isa_rev < 6 && !__mips1
#define USTRCMPW(OFFSET) \
- LWR v0, (OFFSET)(a0); \
- LWL v0, (OFFSET + NSIZE - 1)(a0); \
- LW v1, (OFFSET)(a1); \
- SUBU t0, v0, t8; \
- bne v0, v1, L(worddiff); \
- nor t1, v0, t9; \
- and t0, t0, t1; \
- bne t0, zero, L(returnzero);\
+ LWR $v0, (OFFSET)($a0); \
+ LWL $v0, (OFFSET + NSIZE - 1)($a0); \
+ LW $v1, (OFFSET)($a1); \
+ SUBU $t0, $v0, $t8; \
+ bne $v0, $v1, L(worddiff); \
+ nor $t1, $v0, $t9; \
+ and $t0, $t0, $t1; \
+ bne $t0, $zero, L(returnzero);\
L(uwordloop):
- SUBU t1, a2, (8 * NSIZE)
- bltz t1, L(uonewords)
+ SUBU $t1, $a2, (8 * NSIZE)
+ bltz $t1, L(uonewords)
USTRCMPW(0 * NSIZE)
DELAY_READ
USTRCMPW(1 * NSIZE)
@@ -241,154 +241,154 @@
USTRCMPW(6 * NSIZE)
DELAY_READ
USTRCMPW(7 * NSIZE)
- SUBU a2, a2, (8 * NSIZE)
- PTR_ADDIU a0, a0, (8 * NSIZE)
+ SUBU $a2, $a2, (8 * NSIZE)
+ PTR_ADDIU $a0, $a0, (8 * NSIZE)
b L(uwordloop)
- PTR_ADDIU a1, a1, (8 * NSIZE)
+ PTR_ADDIU $a1, $a1, (8 * NSIZE)
L(uonewords):
- SUBU t1, a2, NSIZE
- bltz t1, L(byteloop)
+ SUBU $t1, $a2, NSIZE
+ bltz $t1, L(byteloop)
USTRCMPW(0)
- SUBU a2, a2, NSIZE
- PTR_ADDIU a0, a0, NSIZE
+ SUBU $a2, $a2, NSIZE
+ PTR_ADDIU $a0, $a0, NSIZE
b L(uonewords)
- PTR_ADDIU a1, a1, NSIZE
+ PTR_ADDIU $a1, $a1, NSIZE
#endif
L(returnzero):
- j ra
- move v0, zero
+ j $ra
+ move $v0, $zero
#if __mips_isa_rev > 1
#define EXT_COMPARE01(POS) \
- EXT t0, v0, POS, 8; \
- beq t0, zero, L(wexit01); \
- EXT t1, v1, POS, 8; \
- bne t0, t1, L(wexit01)
+ EXT $t0, $v0, POS, 8; \
+ beq $t0, $zero, L(wexit01); \
+ EXT $t1, $v1, POS, 8; \
+ bne $t0, $t1, L(wexit01)
#define EXT_COMPARE89(POS) \
- EXT t8, v0, POS, 8; \
- beq t8, zero, L(wexit89); \
- EXT t9, v1, POS, 8; \
- bne t8, t9, L(wexit89)
+ EXT $t8, $v0, POS, 8; \
+ beq $t8, $zero, L(wexit89); \
+ EXT $t9, $v1, POS, 8; \
+ bne $t8, $t9, L(wexit89)
#else
#define EXT_COMPARE01(POS) \
- SRL t0, v0, POS; \
- SRL t1, v1, POS; \
- andi t0, t0, 0xff; \
- beq t0, zero, L(wexit01); \
- andi t1, t1, 0xff; \
- bne t0, t1, L(wexit01)
+ SRL $t0, $v0, POS; \
+ SRL $t1, $v1, POS; \
+ andi $t0, $t0, 0xff; \
+ beq $t0, $zero, L(wexit01); \
+ andi $t1, $t1, 0xff; \
+ bne $t0, $t1, L(wexit01)
#define EXT_COMPARE89(POS) \
- SRL t8, v0, POS; \
- SRL t9, v1, POS; \
- andi t8, t8, 0xff; \
- beq t8, zero, L(wexit89); \
- andi t9, t9, 0xff; \
- bne t8, t9, L(wexit89)
+ SRL $t8, $v0, POS; \
+ SRL $t9, $v1, POS; \
+ andi $t8, $t8, 0xff; \
+ beq $t8, $zero, L(wexit89); \
+ andi $t9, $t9, 0xff; \
+ bne $t8, $t9, L(wexit89)
#endif
L(worddiff):
#ifdef USE_CLZ
- SUBU t0, v0, t8
- nor t1, v0, t9
- and t1, t0, t1
- xor t0, v0, v1
- or t0, t0, t1
+ SUBU $t0, $v0, $t8
+ nor $t1, $v0, $t9
+ and $t1, $t0, $t1
+ xor $t0, $v0, $v1
+ or $t0, $t0, $t1
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
- wsbh t0, t0
- rotr t0, t0, 16
+ wsbh $t0, $t0
+ rotr $t0, $t0, 16
# endif
- clz t1, t0
- and t1, 0xf8
+ clz $t1, $t0
+ and $t1, 0xf8
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
- neg t1
- addu t1, 24
+ neg $t1
+ addu $t1, 24
# endif
- rotrv v0, v0, t1
- rotrv v1, v1, t1
- and v0, v0, 0xff
- and v1, v1, 0xff
- j ra
- SUBU v0, v0, v1
+ rotrv $v0, $v0, $t1
+ rotrv $v1, $v1, $t1
+ and $v0, $v0, 0xff
+ and $v1, $v1, 0xff
+ j $ra
+ SUBU $v0, $v0, $v1
#else /* USE_CLZ */
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
- andi t0, v0, 0xff
- beq t0, zero, L(wexit01)
- andi t1, v1, 0xff
- bne t0, t1, L(wexit01)
+ andi $t0, $v0, 0xff
+ beq $t0, $zero, L(wexit01)
+ andi $t1, $v1, 0xff
+ bne $t0, $t1, L(wexit01)
EXT_COMPARE89(8)
EXT_COMPARE01(16)
#ifndef __mips64
- SRL t8, v0, 24
- SRL t9, v1, 24
+ SRL $t8, $v0, 24
+ SRL $t9, $v1, 24
#else
EXT_COMPARE89(24)
EXT_COMPARE01(32)
EXT_COMPARE89(40)
EXT_COMPARE01(48)
- SRL t8, v0, 56
- SRL t9, v1, 56
+ SRL $t8, $v0, 56
+ SRL $t9, $v1, 56
#endif
# else /* __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ */
#ifdef __mips64
- SRL t0, v0, 56
- beq t0, zero, L(wexit01)
- SRL t1, v1, 56
- bne t0, t1, L(wexit01)
+ SRL $t0, $v0, 56
+ beq $t0, $zero, L(wexit01)
+ SRL $t1, $v1, 56
+ bne $t0, $t1, L(wexit01)
EXT_COMPARE89(48)
EXT_COMPARE01(40)
EXT_COMPARE89(32)
EXT_COMPARE01(24)
#else
- SRL t0, v0, 24
- beq t0, zero, L(wexit01)
- SRL t1, v1, 24
- bne t0, t1, L(wexit01)
+ SRL $t0, $v0, 24
+ beq $t0, $zero, L(wexit01)
+ SRL $t1, $v1, 24
+ bne $t0, $t1, L(wexit01)
#endif
EXT_COMPARE89(16)
EXT_COMPARE01(8)
- andi t8, v0, 0xff
- andi t9, v1, 0xff
+ andi $t8, $v0, 0xff
+ andi $t9, $v1, 0xff
# endif /* __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ */
L(wexit89):
- j ra
- SUBU v0, t8, t9
+ j $ra
+ SUBU $v0, $t8, $t9
L(wexit01):
- j ra
- SUBU v0, t0, t1
+ j $ra
+ SUBU $v0, $t0, $t1
#endif /* USE_CLZ */
L(byteloop):
- beq a2, zero, L(returnzero)
- SUBU a2, a2, 1
+ beq $a2, $zero, L(returnzero)
+ SUBU $a2, $a2, 1
BYTECMP01(0)
nop
- beq a2, zero, L(returnzero)
- SUBU a2, a2, 1
+ beq $a2, $zero, L(returnzero)
+ SUBU $a2, $a2, 1
BYTECMP89(1)
nop
- beq a2, zero, L(returnzero)
- SUBU a2, a2, 1
+ beq $a2, $zero, L(returnzero)
+ SUBU $a2, $a2, 1
BYTECMP01(2)
nop
- beq a2, zero, L(returnzero)
- SUBU a2, a2, 1
+ beq $a2, $zero, L(returnzero)
+ SUBU $a2, $a2, 1
BYTECMP89(3)
- PTR_ADDIU a0, a0, 4
+ PTR_ADDIU $a0, $a0, 4
b L(byteloop)
- PTR_ADDIU a1, a1, 4
+ PTR_ADDIU $a1, $a1, 4
L(bexit01):
- j ra
- SUBU v0, v0, v1
+ j $ra
+ SUBU $v0, $v0, $v1
L(bexit89):
- j ra
- SUBU v0, t8, t9
+ j $ra
+ SUBU $v0, $t8, $t9
.set at
.set reorder
diff --git a/libc/arch-mips/syscalls/___clock_nanosleep.S b/libc/arch-mips/syscalls/___clock_nanosleep.S
index 4879489..55a77d4 100644
--- a/libc/arch-mips/syscalls/___clock_nanosleep.S
+++ b/libc/arch-mips/syscalls/___clock_nanosleep.S
@@ -4,16 +4,16 @@
ENTRY(___clock_nanosleep)
.set noreorder
- .cpload t9
- li v0, __NR_clock_nanosleep
+ .cpload $t9
+ li $v0, __NR_clock_nanosleep
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___clock_nanosleep)
diff --git a/libc/arch-mips/syscalls/___close.S b/libc/arch-mips/syscalls/___close.S
index 356cfd6..592766a 100644
--- a/libc/arch-mips/syscalls/___close.S
+++ b/libc/arch-mips/syscalls/___close.S
@@ -4,16 +4,16 @@
ENTRY(___close)
.set noreorder
- .cpload t9
- li v0, __NR_close
+ .cpload $t9
+ li $v0, __NR_close
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___close)
diff --git a/libc/arch-mips/syscalls/___faccessat.S b/libc/arch-mips/syscalls/___faccessat.S
index 4e11bae..9222c6f 100644
--- a/libc/arch-mips/syscalls/___faccessat.S
+++ b/libc/arch-mips/syscalls/___faccessat.S
@@ -4,16 +4,16 @@
ENTRY(___faccessat)
.set noreorder
- .cpload t9
- li v0, __NR_faccessat
+ .cpload $t9
+ li $v0, __NR_faccessat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___faccessat)
diff --git a/libc/arch-mips/syscalls/___fchmod.S b/libc/arch-mips/syscalls/___fchmod.S
index ac102ec..680c368 100644
--- a/libc/arch-mips/syscalls/___fchmod.S
+++ b/libc/arch-mips/syscalls/___fchmod.S
@@ -4,16 +4,16 @@
ENTRY(___fchmod)
.set noreorder
- .cpload t9
- li v0, __NR_fchmod
+ .cpload $t9
+ li $v0, __NR_fchmod
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___fchmod)
diff --git a/libc/arch-mips/syscalls/___fchmodat.S b/libc/arch-mips/syscalls/___fchmodat.S
index d581efa..0c8a6bb 100644
--- a/libc/arch-mips/syscalls/___fchmodat.S
+++ b/libc/arch-mips/syscalls/___fchmodat.S
@@ -4,16 +4,16 @@
ENTRY(___fchmodat)
.set noreorder
- .cpload t9
- li v0, __NR_fchmodat
+ .cpload $t9
+ li $v0, __NR_fchmodat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___fchmodat)
diff --git a/libc/arch-mips/syscalls/___fgetxattr.S b/libc/arch-mips/syscalls/___fgetxattr.S
index 50ab69c..a1cc13b 100644
--- a/libc/arch-mips/syscalls/___fgetxattr.S
+++ b/libc/arch-mips/syscalls/___fgetxattr.S
@@ -4,16 +4,16 @@
ENTRY(___fgetxattr)
.set noreorder
- .cpload t9
- li v0, __NR_fgetxattr
+ .cpload $t9
+ li $v0, __NR_fgetxattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___fgetxattr)
diff --git a/libc/arch-mips/syscalls/___flistxattr.S b/libc/arch-mips/syscalls/___flistxattr.S
index 5a4a53d..77856fd 100644
--- a/libc/arch-mips/syscalls/___flistxattr.S
+++ b/libc/arch-mips/syscalls/___flistxattr.S
@@ -4,16 +4,16 @@
ENTRY(___flistxattr)
.set noreorder
- .cpload t9
- li v0, __NR_flistxattr
+ .cpload $t9
+ li $v0, __NR_flistxattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___flistxattr)
diff --git a/libc/arch-mips/syscalls/___fsetxattr.S b/libc/arch-mips/syscalls/___fsetxattr.S
index 0312921..9c6a419 100644
--- a/libc/arch-mips/syscalls/___fsetxattr.S
+++ b/libc/arch-mips/syscalls/___fsetxattr.S
@@ -4,16 +4,16 @@
ENTRY(___fsetxattr)
.set noreorder
- .cpload t9
- li v0, __NR_fsetxattr
+ .cpload $t9
+ li $v0, __NR_fsetxattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___fsetxattr)
diff --git a/libc/arch-mips/syscalls/___mremap.S b/libc/arch-mips/syscalls/___mremap.S
index 82e2eb3..768b958 100644
--- a/libc/arch-mips/syscalls/___mremap.S
+++ b/libc/arch-mips/syscalls/___mremap.S
@@ -4,16 +4,16 @@
ENTRY(___mremap)
.set noreorder
- .cpload t9
- li v0, __NR_mremap
+ .cpload $t9
+ li $v0, __NR_mremap
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___mremap)
diff --git a/libc/arch-mips/syscalls/___rt_sigqueueinfo.S b/libc/arch-mips/syscalls/___rt_sigqueueinfo.S
index 95af36f..dde3782 100644
--- a/libc/arch-mips/syscalls/___rt_sigqueueinfo.S
+++ b/libc/arch-mips/syscalls/___rt_sigqueueinfo.S
@@ -4,16 +4,16 @@
ENTRY(___rt_sigqueueinfo)
.set noreorder
- .cpload t9
- li v0, __NR_rt_sigqueueinfo
+ .cpload $t9
+ li $v0, __NR_rt_sigqueueinfo
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(___rt_sigqueueinfo)
diff --git a/libc/arch-mips/syscalls/__accept4.S b/libc/arch-mips/syscalls/__accept4.S
index 72df04f..596660c 100644
--- a/libc/arch-mips/syscalls/__accept4.S
+++ b/libc/arch-mips/syscalls/__accept4.S
@@ -4,16 +4,16 @@
ENTRY(__accept4)
.set noreorder
- .cpload t9
- li v0, __NR_accept4
+ .cpload $t9
+ li $v0, __NR_accept4
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__accept4)
diff --git a/libc/arch-mips/syscalls/__brk.S b/libc/arch-mips/syscalls/__brk.S
index 8472663..ea0f2c3 100644
--- a/libc/arch-mips/syscalls/__brk.S
+++ b/libc/arch-mips/syscalls/__brk.S
@@ -4,16 +4,16 @@
ENTRY(__brk)
.set noreorder
- .cpload t9
- li v0, __NR_brk
+ .cpload $t9
+ li $v0, __NR_brk
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__brk)
diff --git a/libc/arch-mips/syscalls/__clock_gettime.S b/libc/arch-mips/syscalls/__clock_gettime.S
index 6fad7e9..a68990b 100644
--- a/libc/arch-mips/syscalls/__clock_gettime.S
+++ b/libc/arch-mips/syscalls/__clock_gettime.S
@@ -4,16 +4,16 @@
ENTRY(__clock_gettime)
.set noreorder
- .cpload t9
- li v0, __NR_clock_gettime
+ .cpload $t9
+ li $v0, __NR_clock_gettime
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__clock_gettime)
diff --git a/libc/arch-mips/syscalls/__connect.S b/libc/arch-mips/syscalls/__connect.S
index 38c1b9b..9a87105 100644
--- a/libc/arch-mips/syscalls/__connect.S
+++ b/libc/arch-mips/syscalls/__connect.S
@@ -4,16 +4,16 @@
ENTRY(__connect)
.set noreorder
- .cpload t9
- li v0, __NR_connect
+ .cpload $t9
+ li $v0, __NR_connect
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__connect)
diff --git a/libc/arch-mips/syscalls/__epoll_pwait.S b/libc/arch-mips/syscalls/__epoll_pwait.S
index 3aed9bc..68f9d1f 100644
--- a/libc/arch-mips/syscalls/__epoll_pwait.S
+++ b/libc/arch-mips/syscalls/__epoll_pwait.S
@@ -4,16 +4,16 @@
ENTRY(__epoll_pwait)
.set noreorder
- .cpload t9
- li v0, __NR_epoll_pwait
+ .cpload $t9
+ li $v0, __NR_epoll_pwait
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__epoll_pwait)
diff --git a/libc/arch-mips/syscalls/__exit.S b/libc/arch-mips/syscalls/__exit.S
index 7349804..d4d1ab8 100644
--- a/libc/arch-mips/syscalls/__exit.S
+++ b/libc/arch-mips/syscalls/__exit.S
@@ -4,16 +4,16 @@
ENTRY(__exit)
.set noreorder
- .cpload t9
- li v0, __NR_exit
+ .cpload $t9
+ li $v0, __NR_exit
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__exit)
diff --git a/libc/arch-mips/syscalls/__fadvise64.S b/libc/arch-mips/syscalls/__fadvise64.S
index abacbb2..be0694e 100644
--- a/libc/arch-mips/syscalls/__fadvise64.S
+++ b/libc/arch-mips/syscalls/__fadvise64.S
@@ -4,16 +4,16 @@
ENTRY(__fadvise64)
.set noreorder
- .cpload t9
- li v0, __NR_fadvise64
+ .cpload $t9
+ li $v0, __NR_fadvise64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__fadvise64)
diff --git a/libc/arch-mips/syscalls/__fcntl64.S b/libc/arch-mips/syscalls/__fcntl64.S
index 2734be2..d6e54e4 100644
--- a/libc/arch-mips/syscalls/__fcntl64.S
+++ b/libc/arch-mips/syscalls/__fcntl64.S
@@ -4,16 +4,16 @@
ENTRY(__fcntl64)
.set noreorder
- .cpload t9
- li v0, __NR_fcntl64
+ .cpload $t9
+ li $v0, __NR_fcntl64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__fcntl64)
diff --git a/libc/arch-mips/syscalls/__fstatfs64.S b/libc/arch-mips/syscalls/__fstatfs64.S
index e08cf7e..8dc2ed3 100644
--- a/libc/arch-mips/syscalls/__fstatfs64.S
+++ b/libc/arch-mips/syscalls/__fstatfs64.S
@@ -4,16 +4,16 @@
ENTRY(__fstatfs64)
.set noreorder
- .cpload t9
- li v0, __NR_fstatfs64
+ .cpload $t9
+ li $v0, __NR_fstatfs64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__fstatfs64)
diff --git a/libc/arch-mips/syscalls/__getcpu.S b/libc/arch-mips/syscalls/__getcpu.S
index 262f440..b159f2c 100644
--- a/libc/arch-mips/syscalls/__getcpu.S
+++ b/libc/arch-mips/syscalls/__getcpu.S
@@ -4,16 +4,16 @@
ENTRY(__getcpu)
.set noreorder
- .cpload t9
- li v0, __NR_getcpu
+ .cpload $t9
+ li $v0, __NR_getcpu
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__getcpu)
diff --git a/libc/arch-mips/syscalls/__getcwd.S b/libc/arch-mips/syscalls/__getcwd.S
index ca6ec7c..6482244 100644
--- a/libc/arch-mips/syscalls/__getcwd.S
+++ b/libc/arch-mips/syscalls/__getcwd.S
@@ -4,16 +4,16 @@
ENTRY(__getcwd)
.set noreorder
- .cpload t9
- li v0, __NR_getcwd
+ .cpload $t9
+ li $v0, __NR_getcwd
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__getcwd)
diff --git a/libc/arch-mips/syscalls/__getdents64.S b/libc/arch-mips/syscalls/__getdents64.S
index fe7ef86..8324a80 100644
--- a/libc/arch-mips/syscalls/__getdents64.S
+++ b/libc/arch-mips/syscalls/__getdents64.S
@@ -4,16 +4,16 @@
ENTRY(__getdents64)
.set noreorder
- .cpload t9
- li v0, __NR_getdents64
+ .cpload $t9
+ li $v0, __NR_getdents64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__getdents64)
diff --git a/libc/arch-mips/syscalls/__getpid.S b/libc/arch-mips/syscalls/__getpid.S
index f5ab049..9f122e0 100644
--- a/libc/arch-mips/syscalls/__getpid.S
+++ b/libc/arch-mips/syscalls/__getpid.S
@@ -4,16 +4,16 @@
ENTRY(__getpid)
.set noreorder
- .cpload t9
- li v0, __NR_getpid
+ .cpload $t9
+ li $v0, __NR_getpid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__getpid)
diff --git a/libc/arch-mips/syscalls/__getpriority.S b/libc/arch-mips/syscalls/__getpriority.S
index ef6235d..22aa7c1 100644
--- a/libc/arch-mips/syscalls/__getpriority.S
+++ b/libc/arch-mips/syscalls/__getpriority.S
@@ -4,16 +4,16 @@
ENTRY(__getpriority)
.set noreorder
- .cpload t9
- li v0, __NR_getpriority
+ .cpload $t9
+ li $v0, __NR_getpriority
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__getpriority)
diff --git a/libc/arch-mips/syscalls/__gettimeofday.S b/libc/arch-mips/syscalls/__gettimeofday.S
index e8b9d6a..021ca7f 100644
--- a/libc/arch-mips/syscalls/__gettimeofday.S
+++ b/libc/arch-mips/syscalls/__gettimeofday.S
@@ -4,16 +4,16 @@
ENTRY(__gettimeofday)
.set noreorder
- .cpload t9
- li v0, __NR_gettimeofday
+ .cpload $t9
+ li $v0, __NR_gettimeofday
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__gettimeofday)
diff --git a/libc/arch-mips/syscalls/__ioctl.S b/libc/arch-mips/syscalls/__ioctl.S
index 27716e8..fb45f5d 100644
--- a/libc/arch-mips/syscalls/__ioctl.S
+++ b/libc/arch-mips/syscalls/__ioctl.S
@@ -4,16 +4,16 @@
ENTRY(__ioctl)
.set noreorder
- .cpload t9
- li v0, __NR_ioctl
+ .cpload $t9
+ li $v0, __NR_ioctl
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__ioctl)
diff --git a/libc/arch-mips/syscalls/__llseek.S b/libc/arch-mips/syscalls/__llseek.S
index e0cb321..d622d92 100644
--- a/libc/arch-mips/syscalls/__llseek.S
+++ b/libc/arch-mips/syscalls/__llseek.S
@@ -4,16 +4,16 @@
ENTRY(__llseek)
.set noreorder
- .cpload t9
- li v0, __NR__llseek
+ .cpload $t9
+ li $v0, __NR__llseek
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__llseek)
diff --git a/libc/arch-mips/syscalls/__mmap2.S b/libc/arch-mips/syscalls/__mmap2.S
index 8175b31..435fc77 100644
--- a/libc/arch-mips/syscalls/__mmap2.S
+++ b/libc/arch-mips/syscalls/__mmap2.S
@@ -4,16 +4,16 @@
ENTRY(__mmap2)
.set noreorder
- .cpload t9
- li v0, __NR_mmap2
+ .cpload $t9
+ li $v0, __NR_mmap2
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__mmap2)
diff --git a/libc/arch-mips/syscalls/__openat.S b/libc/arch-mips/syscalls/__openat.S
index c0c3cdf..a30c4a8 100644
--- a/libc/arch-mips/syscalls/__openat.S
+++ b/libc/arch-mips/syscalls/__openat.S
@@ -4,16 +4,16 @@
ENTRY(__openat)
.set noreorder
- .cpload t9
- li v0, __NR_openat
+ .cpload $t9
+ li $v0, __NR_openat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__openat)
diff --git a/libc/arch-mips/syscalls/__ppoll.S b/libc/arch-mips/syscalls/__ppoll.S
index 75dbbc8..e2f4363 100644
--- a/libc/arch-mips/syscalls/__ppoll.S
+++ b/libc/arch-mips/syscalls/__ppoll.S
@@ -4,16 +4,16 @@
ENTRY(__ppoll)
.set noreorder
- .cpload t9
- li v0, __NR_ppoll
+ .cpload $t9
+ li $v0, __NR_ppoll
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__ppoll)
diff --git a/libc/arch-mips/syscalls/__preadv64.S b/libc/arch-mips/syscalls/__preadv64.S
index a46b869..3bc732a 100644
--- a/libc/arch-mips/syscalls/__preadv64.S
+++ b/libc/arch-mips/syscalls/__preadv64.S
@@ -4,16 +4,16 @@
ENTRY(__preadv64)
.set noreorder
- .cpload t9
- li v0, __NR_preadv
+ .cpload $t9
+ li $v0, __NR_preadv
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__preadv64)
diff --git a/libc/arch-mips/syscalls/__pselect6.S b/libc/arch-mips/syscalls/__pselect6.S
index d028156..34c7df1 100644
--- a/libc/arch-mips/syscalls/__pselect6.S
+++ b/libc/arch-mips/syscalls/__pselect6.S
@@ -4,16 +4,16 @@
ENTRY(__pselect6)
.set noreorder
- .cpload t9
- li v0, __NR_pselect6
+ .cpload $t9
+ li $v0, __NR_pselect6
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__pselect6)
diff --git a/libc/arch-mips/syscalls/__ptrace.S b/libc/arch-mips/syscalls/__ptrace.S
index c5d91fb..f3879ea 100644
--- a/libc/arch-mips/syscalls/__ptrace.S
+++ b/libc/arch-mips/syscalls/__ptrace.S
@@ -4,16 +4,16 @@
ENTRY(__ptrace)
.set noreorder
- .cpload t9
- li v0, __NR_ptrace
+ .cpload $t9
+ li $v0, __NR_ptrace
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__ptrace)
diff --git a/libc/arch-mips/syscalls/__pwritev64.S b/libc/arch-mips/syscalls/__pwritev64.S
index 1222942..569a0d4 100644
--- a/libc/arch-mips/syscalls/__pwritev64.S
+++ b/libc/arch-mips/syscalls/__pwritev64.S
@@ -4,16 +4,16 @@
ENTRY(__pwritev64)
.set noreorder
- .cpload t9
- li v0, __NR_pwritev
+ .cpload $t9
+ li $v0, __NR_pwritev
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__pwritev64)
diff --git a/libc/arch-mips/syscalls/__reboot.S b/libc/arch-mips/syscalls/__reboot.S
index c01f7fb..c77d09b 100644
--- a/libc/arch-mips/syscalls/__reboot.S
+++ b/libc/arch-mips/syscalls/__reboot.S
@@ -4,16 +4,16 @@
ENTRY(__reboot)
.set noreorder
- .cpload t9
- li v0, __NR_reboot
+ .cpload $t9
+ li $v0, __NR_reboot
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__reboot)
diff --git a/libc/arch-mips/syscalls/__rt_sigaction.S b/libc/arch-mips/syscalls/__rt_sigaction.S
index 7fa37fd..ae18296 100644
--- a/libc/arch-mips/syscalls/__rt_sigaction.S
+++ b/libc/arch-mips/syscalls/__rt_sigaction.S
@@ -4,16 +4,16 @@
ENTRY(__rt_sigaction)
.set noreorder
- .cpload t9
- li v0, __NR_rt_sigaction
+ .cpload $t9
+ li $v0, __NR_rt_sigaction
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__rt_sigaction)
diff --git a/libc/arch-mips/syscalls/__rt_sigpending.S b/libc/arch-mips/syscalls/__rt_sigpending.S
index b80b311..b3597c8 100644
--- a/libc/arch-mips/syscalls/__rt_sigpending.S
+++ b/libc/arch-mips/syscalls/__rt_sigpending.S
@@ -4,16 +4,16 @@
ENTRY(__rt_sigpending)
.set noreorder
- .cpload t9
- li v0, __NR_rt_sigpending
+ .cpload $t9
+ li $v0, __NR_rt_sigpending
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__rt_sigpending)
diff --git a/libc/arch-mips/syscalls/__rt_sigprocmask.S b/libc/arch-mips/syscalls/__rt_sigprocmask.S
index e2a39eb..ca165c3 100644
--- a/libc/arch-mips/syscalls/__rt_sigprocmask.S
+++ b/libc/arch-mips/syscalls/__rt_sigprocmask.S
@@ -4,16 +4,16 @@
ENTRY(__rt_sigprocmask)
.set noreorder
- .cpload t9
- li v0, __NR_rt_sigprocmask
+ .cpload $t9
+ li $v0, __NR_rt_sigprocmask
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__rt_sigprocmask)
diff --git a/libc/arch-mips/syscalls/__rt_sigsuspend.S b/libc/arch-mips/syscalls/__rt_sigsuspend.S
index e91c53f..afd6837 100644
--- a/libc/arch-mips/syscalls/__rt_sigsuspend.S
+++ b/libc/arch-mips/syscalls/__rt_sigsuspend.S
@@ -4,16 +4,16 @@
ENTRY(__rt_sigsuspend)
.set noreorder
- .cpload t9
- li v0, __NR_rt_sigsuspend
+ .cpload $t9
+ li $v0, __NR_rt_sigsuspend
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__rt_sigsuspend)
diff --git a/libc/arch-mips/syscalls/__rt_sigtimedwait.S b/libc/arch-mips/syscalls/__rt_sigtimedwait.S
index 0b4195f..c9d6d3c 100644
--- a/libc/arch-mips/syscalls/__rt_sigtimedwait.S
+++ b/libc/arch-mips/syscalls/__rt_sigtimedwait.S
@@ -4,16 +4,16 @@
ENTRY(__rt_sigtimedwait)
.set noreorder
- .cpload t9
- li v0, __NR_rt_sigtimedwait
+ .cpload $t9
+ li $v0, __NR_rt_sigtimedwait
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__rt_sigtimedwait)
diff --git a/libc/arch-mips/syscalls/__sched_getaffinity.S b/libc/arch-mips/syscalls/__sched_getaffinity.S
index b09f404..94ea2a4 100644
--- a/libc/arch-mips/syscalls/__sched_getaffinity.S
+++ b/libc/arch-mips/syscalls/__sched_getaffinity.S
@@ -4,16 +4,16 @@
ENTRY(__sched_getaffinity)
.set noreorder
- .cpload t9
- li v0, __NR_sched_getaffinity
+ .cpload $t9
+ li $v0, __NR_sched_getaffinity
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__sched_getaffinity)
diff --git a/libc/arch-mips/syscalls/__set_tid_address.S b/libc/arch-mips/syscalls/__set_tid_address.S
index 8ca0716..4a28783 100644
--- a/libc/arch-mips/syscalls/__set_tid_address.S
+++ b/libc/arch-mips/syscalls/__set_tid_address.S
@@ -4,16 +4,16 @@
ENTRY(__set_tid_address)
.set noreorder
- .cpload t9
- li v0, __NR_set_tid_address
+ .cpload $t9
+ li $v0, __NR_set_tid_address
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__set_tid_address)
diff --git a/libc/arch-mips/syscalls/__set_tls.S b/libc/arch-mips/syscalls/__set_tls.S
index 1f9eba5..00825b3 100644
--- a/libc/arch-mips/syscalls/__set_tls.S
+++ b/libc/arch-mips/syscalls/__set_tls.S
@@ -4,16 +4,16 @@
ENTRY(__set_tls)
.set noreorder
- .cpload t9
- li v0, __NR_set_thread_area
+ .cpload $t9
+ li $v0, __NR_set_thread_area
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__set_tls)
diff --git a/libc/arch-mips/syscalls/__sigaction.S b/libc/arch-mips/syscalls/__sigaction.S
index 0886e95..ef91e1d 100644
--- a/libc/arch-mips/syscalls/__sigaction.S
+++ b/libc/arch-mips/syscalls/__sigaction.S
@@ -4,16 +4,16 @@
ENTRY(__sigaction)
.set noreorder
- .cpload t9
- li v0, __NR_sigaction
+ .cpload $t9
+ li $v0, __NR_sigaction
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__sigaction)
diff --git a/libc/arch-mips/syscalls/__signalfd4.S b/libc/arch-mips/syscalls/__signalfd4.S
index 8e5717e..754ad37 100644
--- a/libc/arch-mips/syscalls/__signalfd4.S
+++ b/libc/arch-mips/syscalls/__signalfd4.S
@@ -4,16 +4,16 @@
ENTRY(__signalfd4)
.set noreorder
- .cpload t9
- li v0, __NR_signalfd4
+ .cpload $t9
+ li $v0, __NR_signalfd4
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__signalfd4)
diff --git a/libc/arch-mips/syscalls/__socket.S b/libc/arch-mips/syscalls/__socket.S
index c933355..5d59e03 100644
--- a/libc/arch-mips/syscalls/__socket.S
+++ b/libc/arch-mips/syscalls/__socket.S
@@ -4,16 +4,16 @@
ENTRY(__socket)
.set noreorder
- .cpload t9
- li v0, __NR_socket
+ .cpload $t9
+ li $v0, __NR_socket
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__socket)
diff --git a/libc/arch-mips/syscalls/__statfs64.S b/libc/arch-mips/syscalls/__statfs64.S
index ed4dcdb..8ebe9f3 100644
--- a/libc/arch-mips/syscalls/__statfs64.S
+++ b/libc/arch-mips/syscalls/__statfs64.S
@@ -4,16 +4,16 @@
ENTRY(__statfs64)
.set noreorder
- .cpload t9
- li v0, __NR_statfs64
+ .cpload $t9
+ li $v0, __NR_statfs64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__statfs64)
diff --git a/libc/arch-mips/syscalls/__sync_file_range.S b/libc/arch-mips/syscalls/__sync_file_range.S
index 79d41e0..ffd9c09 100644
--- a/libc/arch-mips/syscalls/__sync_file_range.S
+++ b/libc/arch-mips/syscalls/__sync_file_range.S
@@ -4,16 +4,16 @@
ENTRY(__sync_file_range)
.set noreorder
- .cpload t9
- li v0, __NR_sync_file_range
+ .cpload $t9
+ li $v0, __NR_sync_file_range
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__sync_file_range)
diff --git a/libc/arch-mips/syscalls/__timer_create.S b/libc/arch-mips/syscalls/__timer_create.S
index ef50749..fc1b9a5 100644
--- a/libc/arch-mips/syscalls/__timer_create.S
+++ b/libc/arch-mips/syscalls/__timer_create.S
@@ -4,16 +4,16 @@
ENTRY(__timer_create)
.set noreorder
- .cpload t9
- li v0, __NR_timer_create
+ .cpload $t9
+ li $v0, __NR_timer_create
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__timer_create)
diff --git a/libc/arch-mips/syscalls/__timer_delete.S b/libc/arch-mips/syscalls/__timer_delete.S
index 5993ace..b1ca8b7 100644
--- a/libc/arch-mips/syscalls/__timer_delete.S
+++ b/libc/arch-mips/syscalls/__timer_delete.S
@@ -4,16 +4,16 @@
ENTRY(__timer_delete)
.set noreorder
- .cpload t9
- li v0, __NR_timer_delete
+ .cpload $t9
+ li $v0, __NR_timer_delete
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__timer_delete)
diff --git a/libc/arch-mips/syscalls/__timer_getoverrun.S b/libc/arch-mips/syscalls/__timer_getoverrun.S
index 31234e5..07e75e5 100644
--- a/libc/arch-mips/syscalls/__timer_getoverrun.S
+++ b/libc/arch-mips/syscalls/__timer_getoverrun.S
@@ -4,16 +4,16 @@
ENTRY(__timer_getoverrun)
.set noreorder
- .cpload t9
- li v0, __NR_timer_getoverrun
+ .cpload $t9
+ li $v0, __NR_timer_getoverrun
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__timer_getoverrun)
diff --git a/libc/arch-mips/syscalls/__timer_gettime.S b/libc/arch-mips/syscalls/__timer_gettime.S
index 38800d3..7ee9cad 100644
--- a/libc/arch-mips/syscalls/__timer_gettime.S
+++ b/libc/arch-mips/syscalls/__timer_gettime.S
@@ -4,16 +4,16 @@
ENTRY(__timer_gettime)
.set noreorder
- .cpload t9
- li v0, __NR_timer_gettime
+ .cpload $t9
+ li $v0, __NR_timer_gettime
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__timer_gettime)
diff --git a/libc/arch-mips/syscalls/__timer_settime.S b/libc/arch-mips/syscalls/__timer_settime.S
index 73cea73..4f7d95a 100644
--- a/libc/arch-mips/syscalls/__timer_settime.S
+++ b/libc/arch-mips/syscalls/__timer_settime.S
@@ -4,16 +4,16 @@
ENTRY(__timer_settime)
.set noreorder
- .cpload t9
- li v0, __NR_timer_settime
+ .cpload $t9
+ li $v0, __NR_timer_settime
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__timer_settime)
diff --git a/libc/arch-mips/syscalls/__waitid.S b/libc/arch-mips/syscalls/__waitid.S
index 9d17f8f..274d7b6 100644
--- a/libc/arch-mips/syscalls/__waitid.S
+++ b/libc/arch-mips/syscalls/__waitid.S
@@ -4,16 +4,16 @@
ENTRY(__waitid)
.set noreorder
- .cpload t9
- li v0, __NR_waitid
+ .cpload $t9
+ li $v0, __NR_waitid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(__waitid)
diff --git a/libc/arch-mips/syscalls/_exit.S b/libc/arch-mips/syscalls/_exit.S
index 6e97aac..f41912c 100644
--- a/libc/arch-mips/syscalls/_exit.S
+++ b/libc/arch-mips/syscalls/_exit.S
@@ -4,16 +4,16 @@
ENTRY(_exit)
.set noreorder
- .cpload t9
- li v0, __NR_exit_group
+ .cpload $t9
+ li $v0, __NR_exit_group
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(_exit)
diff --git a/libc/arch-mips/syscalls/_flush_cache.S b/libc/arch-mips/syscalls/_flush_cache.S
index a4030e9..fa737e8 100644
--- a/libc/arch-mips/syscalls/_flush_cache.S
+++ b/libc/arch-mips/syscalls/_flush_cache.S
@@ -4,16 +4,16 @@
ENTRY(_flush_cache)
.set noreorder
- .cpload t9
- li v0, __NR_cacheflush
+ .cpload $t9
+ li $v0, __NR_cacheflush
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(_flush_cache)
diff --git a/libc/arch-mips/syscalls/acct.S b/libc/arch-mips/syscalls/acct.S
index e3a5ccd..9908c3f 100644
--- a/libc/arch-mips/syscalls/acct.S
+++ b/libc/arch-mips/syscalls/acct.S
@@ -4,16 +4,16 @@
ENTRY(acct)
.set noreorder
- .cpload t9
- li v0, __NR_acct
+ .cpload $t9
+ li $v0, __NR_acct
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(acct)
diff --git a/libc/arch-mips/syscalls/adjtimex.S b/libc/arch-mips/syscalls/adjtimex.S
index fef215f..bc525d0 100644
--- a/libc/arch-mips/syscalls/adjtimex.S
+++ b/libc/arch-mips/syscalls/adjtimex.S
@@ -4,16 +4,16 @@
ENTRY(adjtimex)
.set noreorder
- .cpload t9
- li v0, __NR_adjtimex
+ .cpload $t9
+ li $v0, __NR_adjtimex
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(adjtimex)
diff --git a/libc/arch-mips/syscalls/bind.S b/libc/arch-mips/syscalls/bind.S
index 78fe2bb..cda6e24 100644
--- a/libc/arch-mips/syscalls/bind.S
+++ b/libc/arch-mips/syscalls/bind.S
@@ -4,16 +4,16 @@
ENTRY(bind)
.set noreorder
- .cpload t9
- li v0, __NR_bind
+ .cpload $t9
+ li $v0, __NR_bind
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(bind)
diff --git a/libc/arch-mips/syscalls/capget.S b/libc/arch-mips/syscalls/capget.S
index 0cbb626..9c8d430 100644
--- a/libc/arch-mips/syscalls/capget.S
+++ b/libc/arch-mips/syscalls/capget.S
@@ -4,16 +4,16 @@
ENTRY(capget)
.set noreorder
- .cpload t9
- li v0, __NR_capget
+ .cpload $t9
+ li $v0, __NR_capget
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(capget)
diff --git a/libc/arch-mips/syscalls/capset.S b/libc/arch-mips/syscalls/capset.S
index e811080..f30beba 100644
--- a/libc/arch-mips/syscalls/capset.S
+++ b/libc/arch-mips/syscalls/capset.S
@@ -4,16 +4,16 @@
ENTRY(capset)
.set noreorder
- .cpload t9
- li v0, __NR_capset
+ .cpload $t9
+ li $v0, __NR_capset
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(capset)
diff --git a/libc/arch-mips/syscalls/chdir.S b/libc/arch-mips/syscalls/chdir.S
index 82b7a2b..17de18d 100644
--- a/libc/arch-mips/syscalls/chdir.S
+++ b/libc/arch-mips/syscalls/chdir.S
@@ -4,16 +4,16 @@
ENTRY(chdir)
.set noreorder
- .cpload t9
- li v0, __NR_chdir
+ .cpload $t9
+ li $v0, __NR_chdir
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(chdir)
diff --git a/libc/arch-mips/syscalls/chroot.S b/libc/arch-mips/syscalls/chroot.S
index e6a29fc..c1998af 100644
--- a/libc/arch-mips/syscalls/chroot.S
+++ b/libc/arch-mips/syscalls/chroot.S
@@ -4,16 +4,16 @@
ENTRY(chroot)
.set noreorder
- .cpload t9
- li v0, __NR_chroot
+ .cpload $t9
+ li $v0, __NR_chroot
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(chroot)
diff --git a/libc/arch-mips/syscalls/clock_adjtime.S b/libc/arch-mips/syscalls/clock_adjtime.S
index f8a4ce2..10f0d39 100644
--- a/libc/arch-mips/syscalls/clock_adjtime.S
+++ b/libc/arch-mips/syscalls/clock_adjtime.S
@@ -4,16 +4,16 @@
ENTRY(clock_adjtime)
.set noreorder
- .cpload t9
- li v0, __NR_clock_adjtime
+ .cpload $t9
+ li $v0, __NR_clock_adjtime
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(clock_adjtime)
diff --git a/libc/arch-mips/syscalls/clock_getres.S b/libc/arch-mips/syscalls/clock_getres.S
index ac7c5c6..153f629 100644
--- a/libc/arch-mips/syscalls/clock_getres.S
+++ b/libc/arch-mips/syscalls/clock_getres.S
@@ -4,16 +4,16 @@
ENTRY(clock_getres)
.set noreorder
- .cpload t9
- li v0, __NR_clock_getres
+ .cpload $t9
+ li $v0, __NR_clock_getres
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(clock_getres)
diff --git a/libc/arch-mips/syscalls/clock_settime.S b/libc/arch-mips/syscalls/clock_settime.S
index 193bdc2..651729d 100644
--- a/libc/arch-mips/syscalls/clock_settime.S
+++ b/libc/arch-mips/syscalls/clock_settime.S
@@ -4,16 +4,16 @@
ENTRY(clock_settime)
.set noreorder
- .cpload t9
- li v0, __NR_clock_settime
+ .cpload $t9
+ li $v0, __NR_clock_settime
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(clock_settime)
diff --git a/libc/arch-mips/syscalls/delete_module.S b/libc/arch-mips/syscalls/delete_module.S
index 8c01c06..def5a16 100644
--- a/libc/arch-mips/syscalls/delete_module.S
+++ b/libc/arch-mips/syscalls/delete_module.S
@@ -4,16 +4,16 @@
ENTRY(delete_module)
.set noreorder
- .cpload t9
- li v0, __NR_delete_module
+ .cpload $t9
+ li $v0, __NR_delete_module
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(delete_module)
diff --git a/libc/arch-mips/syscalls/dup.S b/libc/arch-mips/syscalls/dup.S
index b4dcd70..0c0ee8d 100644
--- a/libc/arch-mips/syscalls/dup.S
+++ b/libc/arch-mips/syscalls/dup.S
@@ -4,16 +4,16 @@
ENTRY(dup)
.set noreorder
- .cpload t9
- li v0, __NR_dup
+ .cpload $t9
+ li $v0, __NR_dup
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(dup)
diff --git a/libc/arch-mips/syscalls/dup3.S b/libc/arch-mips/syscalls/dup3.S
index 1d9c236..cbec960 100644
--- a/libc/arch-mips/syscalls/dup3.S
+++ b/libc/arch-mips/syscalls/dup3.S
@@ -4,16 +4,16 @@
ENTRY(dup3)
.set noreorder
- .cpload t9
- li v0, __NR_dup3
+ .cpload $t9
+ li $v0, __NR_dup3
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(dup3)
diff --git a/libc/arch-mips/syscalls/epoll_create1.S b/libc/arch-mips/syscalls/epoll_create1.S
index 8754879..fc268fe 100644
--- a/libc/arch-mips/syscalls/epoll_create1.S
+++ b/libc/arch-mips/syscalls/epoll_create1.S
@@ -4,16 +4,16 @@
ENTRY(epoll_create1)
.set noreorder
- .cpload t9
- li v0, __NR_epoll_create1
+ .cpload $t9
+ li $v0, __NR_epoll_create1
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(epoll_create1)
diff --git a/libc/arch-mips/syscalls/epoll_ctl.S b/libc/arch-mips/syscalls/epoll_ctl.S
index 14c9202..222c97a 100644
--- a/libc/arch-mips/syscalls/epoll_ctl.S
+++ b/libc/arch-mips/syscalls/epoll_ctl.S
@@ -4,16 +4,16 @@
ENTRY(epoll_ctl)
.set noreorder
- .cpload t9
- li v0, __NR_epoll_ctl
+ .cpload $t9
+ li $v0, __NR_epoll_ctl
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(epoll_ctl)
diff --git a/libc/arch-mips/syscalls/eventfd.S b/libc/arch-mips/syscalls/eventfd.S
index 6494dbc..2bca718 100644
--- a/libc/arch-mips/syscalls/eventfd.S
+++ b/libc/arch-mips/syscalls/eventfd.S
@@ -4,16 +4,16 @@
ENTRY(eventfd)
.set noreorder
- .cpload t9
- li v0, __NR_eventfd2
+ .cpload $t9
+ li $v0, __NR_eventfd2
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(eventfd)
diff --git a/libc/arch-mips/syscalls/execve.S b/libc/arch-mips/syscalls/execve.S
index 2d20b51..3dd36a1 100644
--- a/libc/arch-mips/syscalls/execve.S
+++ b/libc/arch-mips/syscalls/execve.S
@@ -4,16 +4,16 @@
ENTRY(execve)
.set noreorder
- .cpload t9
- li v0, __NR_execve
+ .cpload $t9
+ li $v0, __NR_execve
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(execve)
diff --git a/libc/arch-mips/syscalls/fallocate64.S b/libc/arch-mips/syscalls/fallocate64.S
index 5f05513..ed50bb5 100644
--- a/libc/arch-mips/syscalls/fallocate64.S
+++ b/libc/arch-mips/syscalls/fallocate64.S
@@ -4,16 +4,16 @@
ENTRY(fallocate64)
.set noreorder
- .cpload t9
- li v0, __NR_fallocate
+ .cpload $t9
+ li $v0, __NR_fallocate
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(fallocate64)
diff --git a/libc/arch-mips/syscalls/fchdir.S b/libc/arch-mips/syscalls/fchdir.S
index d683baa..5b92e85 100644
--- a/libc/arch-mips/syscalls/fchdir.S
+++ b/libc/arch-mips/syscalls/fchdir.S
@@ -4,16 +4,16 @@
ENTRY(fchdir)
.set noreorder
- .cpload t9
- li v0, __NR_fchdir
+ .cpload $t9
+ li $v0, __NR_fchdir
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(fchdir)
diff --git a/libc/arch-mips/syscalls/fchown.S b/libc/arch-mips/syscalls/fchown.S
index 1ac9451..afd96e8 100644
--- a/libc/arch-mips/syscalls/fchown.S
+++ b/libc/arch-mips/syscalls/fchown.S
@@ -4,16 +4,16 @@
ENTRY(fchown)
.set noreorder
- .cpload t9
- li v0, __NR_fchown
+ .cpload $t9
+ li $v0, __NR_fchown
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(fchown)
diff --git a/libc/arch-mips/syscalls/fchownat.S b/libc/arch-mips/syscalls/fchownat.S
index be1a021..be2021b 100644
--- a/libc/arch-mips/syscalls/fchownat.S
+++ b/libc/arch-mips/syscalls/fchownat.S
@@ -4,16 +4,16 @@
ENTRY(fchownat)
.set noreorder
- .cpload t9
- li v0, __NR_fchownat
+ .cpload $t9
+ li $v0, __NR_fchownat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(fchownat)
diff --git a/libc/arch-mips/syscalls/fdatasync.S b/libc/arch-mips/syscalls/fdatasync.S
index 24d6541..0b37d8f 100644
--- a/libc/arch-mips/syscalls/fdatasync.S
+++ b/libc/arch-mips/syscalls/fdatasync.S
@@ -4,16 +4,16 @@
ENTRY(fdatasync)
.set noreorder
- .cpload t9
- li v0, __NR_fdatasync
+ .cpload $t9
+ li $v0, __NR_fdatasync
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(fdatasync)
diff --git a/libc/arch-mips/syscalls/flock.S b/libc/arch-mips/syscalls/flock.S
index 8d70c9e..badb41d 100644
--- a/libc/arch-mips/syscalls/flock.S
+++ b/libc/arch-mips/syscalls/flock.S
@@ -4,16 +4,16 @@
ENTRY(flock)
.set noreorder
- .cpload t9
- li v0, __NR_flock
+ .cpload $t9
+ li $v0, __NR_flock
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(flock)
diff --git a/libc/arch-mips/syscalls/fremovexattr.S b/libc/arch-mips/syscalls/fremovexattr.S
index fba2d6d..290ecc8 100644
--- a/libc/arch-mips/syscalls/fremovexattr.S
+++ b/libc/arch-mips/syscalls/fremovexattr.S
@@ -4,16 +4,16 @@
ENTRY(fremovexattr)
.set noreorder
- .cpload t9
- li v0, __NR_fremovexattr
+ .cpload $t9
+ li $v0, __NR_fremovexattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(fremovexattr)
diff --git a/libc/arch-mips/syscalls/fstat64.S b/libc/arch-mips/syscalls/fstat64.S
index 16e2791..3ecc2ba 100644
--- a/libc/arch-mips/syscalls/fstat64.S
+++ b/libc/arch-mips/syscalls/fstat64.S
@@ -4,16 +4,16 @@
ENTRY(fstat64)
.set noreorder
- .cpload t9
- li v0, __NR_fstat64
+ .cpload $t9
+ li $v0, __NR_fstat64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(fstat64)
diff --git a/libc/arch-mips/syscalls/fstatat64.S b/libc/arch-mips/syscalls/fstatat64.S
index ebcf6b0..5b7550c 100644
--- a/libc/arch-mips/syscalls/fstatat64.S
+++ b/libc/arch-mips/syscalls/fstatat64.S
@@ -4,16 +4,16 @@
ENTRY(fstatat64)
.set noreorder
- .cpload t9
- li v0, __NR_fstatat64
+ .cpload $t9
+ li $v0, __NR_fstatat64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(fstatat64)
diff --git a/libc/arch-mips/syscalls/fsync.S b/libc/arch-mips/syscalls/fsync.S
index 819f0f2..24e86a2 100644
--- a/libc/arch-mips/syscalls/fsync.S
+++ b/libc/arch-mips/syscalls/fsync.S
@@ -4,16 +4,16 @@
ENTRY(fsync)
.set noreorder
- .cpload t9
- li v0, __NR_fsync
+ .cpload $t9
+ li $v0, __NR_fsync
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(fsync)
diff --git a/libc/arch-mips/syscalls/ftruncate64.S b/libc/arch-mips/syscalls/ftruncate64.S
index 059ff77..858141c 100644
--- a/libc/arch-mips/syscalls/ftruncate64.S
+++ b/libc/arch-mips/syscalls/ftruncate64.S
@@ -4,16 +4,16 @@
ENTRY(ftruncate64)
.set noreorder
- .cpload t9
- li v0, __NR_ftruncate64
+ .cpload $t9
+ li $v0, __NR_ftruncate64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(ftruncate64)
diff --git a/libc/arch-mips/syscalls/getegid.S b/libc/arch-mips/syscalls/getegid.S
index 8ae2d1e..6bdf47f 100644
--- a/libc/arch-mips/syscalls/getegid.S
+++ b/libc/arch-mips/syscalls/getegid.S
@@ -4,16 +4,16 @@
ENTRY(getegid)
.set noreorder
- .cpload t9
- li v0, __NR_getegid
+ .cpload $t9
+ li $v0, __NR_getegid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getegid)
diff --git a/libc/arch-mips/syscalls/geteuid.S b/libc/arch-mips/syscalls/geteuid.S
index cf5cf6c..07b571e 100644
--- a/libc/arch-mips/syscalls/geteuid.S
+++ b/libc/arch-mips/syscalls/geteuid.S
@@ -4,16 +4,16 @@
ENTRY(geteuid)
.set noreorder
- .cpload t9
- li v0, __NR_geteuid
+ .cpload $t9
+ li $v0, __NR_geteuid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(geteuid)
diff --git a/libc/arch-mips/syscalls/getgid.S b/libc/arch-mips/syscalls/getgid.S
index 9bd1fc3..a2020fa 100644
--- a/libc/arch-mips/syscalls/getgid.S
+++ b/libc/arch-mips/syscalls/getgid.S
@@ -4,16 +4,16 @@
ENTRY(getgid)
.set noreorder
- .cpload t9
- li v0, __NR_getgid
+ .cpload $t9
+ li $v0, __NR_getgid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getgid)
diff --git a/libc/arch-mips/syscalls/getgroups.S b/libc/arch-mips/syscalls/getgroups.S
index 2eda185..86510dc 100644
--- a/libc/arch-mips/syscalls/getgroups.S
+++ b/libc/arch-mips/syscalls/getgroups.S
@@ -4,16 +4,16 @@
ENTRY(getgroups)
.set noreorder
- .cpload t9
- li v0, __NR_getgroups
+ .cpload $t9
+ li $v0, __NR_getgroups
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getgroups)
diff --git a/libc/arch-mips/syscalls/getitimer.S b/libc/arch-mips/syscalls/getitimer.S
index 2e382c7..6d671f5 100644
--- a/libc/arch-mips/syscalls/getitimer.S
+++ b/libc/arch-mips/syscalls/getitimer.S
@@ -4,16 +4,16 @@
ENTRY(getitimer)
.set noreorder
- .cpload t9
- li v0, __NR_getitimer
+ .cpload $t9
+ li $v0, __NR_getitimer
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getitimer)
diff --git a/libc/arch-mips/syscalls/getpeername.S b/libc/arch-mips/syscalls/getpeername.S
index 8642798..b372574 100644
--- a/libc/arch-mips/syscalls/getpeername.S
+++ b/libc/arch-mips/syscalls/getpeername.S
@@ -4,16 +4,16 @@
ENTRY(getpeername)
.set noreorder
- .cpload t9
- li v0, __NR_getpeername
+ .cpload $t9
+ li $v0, __NR_getpeername
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getpeername)
diff --git a/libc/arch-mips/syscalls/getpgid.S b/libc/arch-mips/syscalls/getpgid.S
index 562b9ce..25a1fdf 100644
--- a/libc/arch-mips/syscalls/getpgid.S
+++ b/libc/arch-mips/syscalls/getpgid.S
@@ -4,16 +4,16 @@
ENTRY(getpgid)
.set noreorder
- .cpload t9
- li v0, __NR_getpgid
+ .cpload $t9
+ li $v0, __NR_getpgid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getpgid)
diff --git a/libc/arch-mips/syscalls/getppid.S b/libc/arch-mips/syscalls/getppid.S
index afff0b9..54f1252 100644
--- a/libc/arch-mips/syscalls/getppid.S
+++ b/libc/arch-mips/syscalls/getppid.S
@@ -4,16 +4,16 @@
ENTRY(getppid)
.set noreorder
- .cpload t9
- li v0, __NR_getppid
+ .cpload $t9
+ li $v0, __NR_getppid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getppid)
diff --git a/libc/arch-mips/syscalls/getrandom.S b/libc/arch-mips/syscalls/getrandom.S
index 7a2f3b9..9a32c78 100644
--- a/libc/arch-mips/syscalls/getrandom.S
+++ b/libc/arch-mips/syscalls/getrandom.S
@@ -4,16 +4,16 @@
ENTRY(getrandom)
.set noreorder
- .cpload t9
- li v0, __NR_getrandom
+ .cpload $t9
+ li $v0, __NR_getrandom
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getrandom)
diff --git a/libc/arch-mips/syscalls/getresgid.S b/libc/arch-mips/syscalls/getresgid.S
index 248d3f9..8336f66 100644
--- a/libc/arch-mips/syscalls/getresgid.S
+++ b/libc/arch-mips/syscalls/getresgid.S
@@ -4,16 +4,16 @@
ENTRY(getresgid)
.set noreorder
- .cpload t9
- li v0, __NR_getresgid
+ .cpload $t9
+ li $v0, __NR_getresgid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getresgid)
diff --git a/libc/arch-mips/syscalls/getresuid.S b/libc/arch-mips/syscalls/getresuid.S
index 924b6cd..9e4cb36 100644
--- a/libc/arch-mips/syscalls/getresuid.S
+++ b/libc/arch-mips/syscalls/getresuid.S
@@ -4,16 +4,16 @@
ENTRY(getresuid)
.set noreorder
- .cpload t9
- li v0, __NR_getresuid
+ .cpload $t9
+ li $v0, __NR_getresuid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getresuid)
diff --git a/libc/arch-mips/syscalls/getrlimit.S b/libc/arch-mips/syscalls/getrlimit.S
index 19570d6..2ae1c04 100644
--- a/libc/arch-mips/syscalls/getrlimit.S
+++ b/libc/arch-mips/syscalls/getrlimit.S
@@ -4,16 +4,16 @@
ENTRY(getrlimit)
.set noreorder
- .cpload t9
- li v0, __NR_getrlimit
+ .cpload $t9
+ li $v0, __NR_getrlimit
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getrlimit)
diff --git a/libc/arch-mips/syscalls/getrusage.S b/libc/arch-mips/syscalls/getrusage.S
index 75bc8bc..c4a5aec 100644
--- a/libc/arch-mips/syscalls/getrusage.S
+++ b/libc/arch-mips/syscalls/getrusage.S
@@ -4,16 +4,16 @@
ENTRY(getrusage)
.set noreorder
- .cpload t9
- li v0, __NR_getrusage
+ .cpload $t9
+ li $v0, __NR_getrusage
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getrusage)
diff --git a/libc/arch-mips/syscalls/getsid.S b/libc/arch-mips/syscalls/getsid.S
index 6436ecd..26f84c3 100644
--- a/libc/arch-mips/syscalls/getsid.S
+++ b/libc/arch-mips/syscalls/getsid.S
@@ -4,16 +4,16 @@
ENTRY(getsid)
.set noreorder
- .cpload t9
- li v0, __NR_getsid
+ .cpload $t9
+ li $v0, __NR_getsid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getsid)
diff --git a/libc/arch-mips/syscalls/getsockname.S b/libc/arch-mips/syscalls/getsockname.S
index ffadd92..f54df87 100644
--- a/libc/arch-mips/syscalls/getsockname.S
+++ b/libc/arch-mips/syscalls/getsockname.S
@@ -4,16 +4,16 @@
ENTRY(getsockname)
.set noreorder
- .cpload t9
- li v0, __NR_getsockname
+ .cpload $t9
+ li $v0, __NR_getsockname
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getsockname)
diff --git a/libc/arch-mips/syscalls/getsockopt.S b/libc/arch-mips/syscalls/getsockopt.S
index 6ebe15e..32cd721 100644
--- a/libc/arch-mips/syscalls/getsockopt.S
+++ b/libc/arch-mips/syscalls/getsockopt.S
@@ -4,16 +4,16 @@
ENTRY(getsockopt)
.set noreorder
- .cpload t9
- li v0, __NR_getsockopt
+ .cpload $t9
+ li $v0, __NR_getsockopt
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getsockopt)
diff --git a/libc/arch-mips/syscalls/getuid.S b/libc/arch-mips/syscalls/getuid.S
index 5858632..d2fe78f 100644
--- a/libc/arch-mips/syscalls/getuid.S
+++ b/libc/arch-mips/syscalls/getuid.S
@@ -4,16 +4,16 @@
ENTRY(getuid)
.set noreorder
- .cpload t9
- li v0, __NR_getuid
+ .cpload $t9
+ li $v0, __NR_getuid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getuid)
diff --git a/libc/arch-mips/syscalls/getxattr.S b/libc/arch-mips/syscalls/getxattr.S
index 28c7fe6..0e5a33f 100644
--- a/libc/arch-mips/syscalls/getxattr.S
+++ b/libc/arch-mips/syscalls/getxattr.S
@@ -4,16 +4,16 @@
ENTRY(getxattr)
.set noreorder
- .cpload t9
- li v0, __NR_getxattr
+ .cpload $t9
+ li $v0, __NR_getxattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(getxattr)
diff --git a/libc/arch-mips/syscalls/init_module.S b/libc/arch-mips/syscalls/init_module.S
index 989614a..e4434c3 100644
--- a/libc/arch-mips/syscalls/init_module.S
+++ b/libc/arch-mips/syscalls/init_module.S
@@ -4,16 +4,16 @@
ENTRY(init_module)
.set noreorder
- .cpload t9
- li v0, __NR_init_module
+ .cpload $t9
+ li $v0, __NR_init_module
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(init_module)
diff --git a/libc/arch-mips/syscalls/inotify_add_watch.S b/libc/arch-mips/syscalls/inotify_add_watch.S
index 7d3315f..3710cb7 100644
--- a/libc/arch-mips/syscalls/inotify_add_watch.S
+++ b/libc/arch-mips/syscalls/inotify_add_watch.S
@@ -4,16 +4,16 @@
ENTRY(inotify_add_watch)
.set noreorder
- .cpload t9
- li v0, __NR_inotify_add_watch
+ .cpload $t9
+ li $v0, __NR_inotify_add_watch
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(inotify_add_watch)
diff --git a/libc/arch-mips/syscalls/inotify_init1.S b/libc/arch-mips/syscalls/inotify_init1.S
index e4ec266..b38f018 100644
--- a/libc/arch-mips/syscalls/inotify_init1.S
+++ b/libc/arch-mips/syscalls/inotify_init1.S
@@ -4,16 +4,16 @@
ENTRY(inotify_init1)
.set noreorder
- .cpload t9
- li v0, __NR_inotify_init1
+ .cpload $t9
+ li $v0, __NR_inotify_init1
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(inotify_init1)
diff --git a/libc/arch-mips/syscalls/inotify_rm_watch.S b/libc/arch-mips/syscalls/inotify_rm_watch.S
index eec9856..a7b6fbe 100644
--- a/libc/arch-mips/syscalls/inotify_rm_watch.S
+++ b/libc/arch-mips/syscalls/inotify_rm_watch.S
@@ -4,16 +4,16 @@
ENTRY(inotify_rm_watch)
.set noreorder
- .cpload t9
- li v0, __NR_inotify_rm_watch
+ .cpload $t9
+ li $v0, __NR_inotify_rm_watch
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(inotify_rm_watch)
diff --git a/libc/arch-mips/syscalls/kill.S b/libc/arch-mips/syscalls/kill.S
index 415da73..1075da1 100644
--- a/libc/arch-mips/syscalls/kill.S
+++ b/libc/arch-mips/syscalls/kill.S
@@ -4,16 +4,16 @@
ENTRY(kill)
.set noreorder
- .cpload t9
- li v0, __NR_kill
+ .cpload $t9
+ li $v0, __NR_kill
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(kill)
diff --git a/libc/arch-mips/syscalls/klogctl.S b/libc/arch-mips/syscalls/klogctl.S
index 123d8a0..c3fa53c 100644
--- a/libc/arch-mips/syscalls/klogctl.S
+++ b/libc/arch-mips/syscalls/klogctl.S
@@ -4,16 +4,16 @@
ENTRY(klogctl)
.set noreorder
- .cpload t9
- li v0, __NR_syslog
+ .cpload $t9
+ li $v0, __NR_syslog
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(klogctl)
diff --git a/libc/arch-mips/syscalls/lgetxattr.S b/libc/arch-mips/syscalls/lgetxattr.S
index a9916d9..b05850d 100644
--- a/libc/arch-mips/syscalls/lgetxattr.S
+++ b/libc/arch-mips/syscalls/lgetxattr.S
@@ -4,16 +4,16 @@
ENTRY(lgetxattr)
.set noreorder
- .cpload t9
- li v0, __NR_lgetxattr
+ .cpload $t9
+ li $v0, __NR_lgetxattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(lgetxattr)
diff --git a/libc/arch-mips/syscalls/linkat.S b/libc/arch-mips/syscalls/linkat.S
index a05a995..eacc488 100644
--- a/libc/arch-mips/syscalls/linkat.S
+++ b/libc/arch-mips/syscalls/linkat.S
@@ -4,16 +4,16 @@
ENTRY(linkat)
.set noreorder
- .cpload t9
- li v0, __NR_linkat
+ .cpload $t9
+ li $v0, __NR_linkat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(linkat)
diff --git a/libc/arch-mips/syscalls/listen.S b/libc/arch-mips/syscalls/listen.S
index 7bb2ec8..cbda026 100644
--- a/libc/arch-mips/syscalls/listen.S
+++ b/libc/arch-mips/syscalls/listen.S
@@ -4,16 +4,16 @@
ENTRY(listen)
.set noreorder
- .cpload t9
- li v0, __NR_listen
+ .cpload $t9
+ li $v0, __NR_listen
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(listen)
diff --git a/libc/arch-mips/syscalls/listxattr.S b/libc/arch-mips/syscalls/listxattr.S
index c160178..0ee14a0 100644
--- a/libc/arch-mips/syscalls/listxattr.S
+++ b/libc/arch-mips/syscalls/listxattr.S
@@ -4,16 +4,16 @@
ENTRY(listxattr)
.set noreorder
- .cpload t9
- li v0, __NR_listxattr
+ .cpload $t9
+ li $v0, __NR_listxattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(listxattr)
diff --git a/libc/arch-mips/syscalls/llistxattr.S b/libc/arch-mips/syscalls/llistxattr.S
index 9bf05b0..46f79df 100644
--- a/libc/arch-mips/syscalls/llistxattr.S
+++ b/libc/arch-mips/syscalls/llistxattr.S
@@ -4,16 +4,16 @@
ENTRY(llistxattr)
.set noreorder
- .cpload t9
- li v0, __NR_llistxattr
+ .cpload $t9
+ li $v0, __NR_llistxattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(llistxattr)
diff --git a/libc/arch-mips/syscalls/lremovexattr.S b/libc/arch-mips/syscalls/lremovexattr.S
index fe73ddb..74aa7c9 100644
--- a/libc/arch-mips/syscalls/lremovexattr.S
+++ b/libc/arch-mips/syscalls/lremovexattr.S
@@ -4,16 +4,16 @@
ENTRY(lremovexattr)
.set noreorder
- .cpload t9
- li v0, __NR_lremovexattr
+ .cpload $t9
+ li $v0, __NR_lremovexattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(lremovexattr)
diff --git a/libc/arch-mips/syscalls/lseek.S b/libc/arch-mips/syscalls/lseek.S
index 6d6b4e5..9f93986 100644
--- a/libc/arch-mips/syscalls/lseek.S
+++ b/libc/arch-mips/syscalls/lseek.S
@@ -4,16 +4,16 @@
ENTRY(lseek)
.set noreorder
- .cpload t9
- li v0, __NR_lseek
+ .cpload $t9
+ li $v0, __NR_lseek
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(lseek)
diff --git a/libc/arch-mips/syscalls/lsetxattr.S b/libc/arch-mips/syscalls/lsetxattr.S
index 69ea0a2..a87121f 100644
--- a/libc/arch-mips/syscalls/lsetxattr.S
+++ b/libc/arch-mips/syscalls/lsetxattr.S
@@ -4,16 +4,16 @@
ENTRY(lsetxattr)
.set noreorder
- .cpload t9
- li v0, __NR_lsetxattr
+ .cpload $t9
+ li $v0, __NR_lsetxattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(lsetxattr)
diff --git a/libc/arch-mips/syscalls/madvise.S b/libc/arch-mips/syscalls/madvise.S
index 7d67b80..5fd4856 100644
--- a/libc/arch-mips/syscalls/madvise.S
+++ b/libc/arch-mips/syscalls/madvise.S
@@ -4,16 +4,16 @@
ENTRY(madvise)
.set noreorder
- .cpload t9
- li v0, __NR_madvise
+ .cpload $t9
+ li $v0, __NR_madvise
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(madvise)
diff --git a/libc/arch-mips/syscalls/mincore.S b/libc/arch-mips/syscalls/mincore.S
index 96f5e29..db74719 100644
--- a/libc/arch-mips/syscalls/mincore.S
+++ b/libc/arch-mips/syscalls/mincore.S
@@ -4,16 +4,16 @@
ENTRY(mincore)
.set noreorder
- .cpload t9
- li v0, __NR_mincore
+ .cpload $t9
+ li $v0, __NR_mincore
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(mincore)
diff --git a/libc/arch-mips/syscalls/mkdirat.S b/libc/arch-mips/syscalls/mkdirat.S
index 55dd976..3ff69c3 100644
--- a/libc/arch-mips/syscalls/mkdirat.S
+++ b/libc/arch-mips/syscalls/mkdirat.S
@@ -4,16 +4,16 @@
ENTRY(mkdirat)
.set noreorder
- .cpload t9
- li v0, __NR_mkdirat
+ .cpload $t9
+ li $v0, __NR_mkdirat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(mkdirat)
diff --git a/libc/arch-mips/syscalls/mknodat.S b/libc/arch-mips/syscalls/mknodat.S
index 1a03a8e..651a619 100644
--- a/libc/arch-mips/syscalls/mknodat.S
+++ b/libc/arch-mips/syscalls/mknodat.S
@@ -4,16 +4,16 @@
ENTRY(mknodat)
.set noreorder
- .cpload t9
- li v0, __NR_mknodat
+ .cpload $t9
+ li $v0, __NR_mknodat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(mknodat)
diff --git a/libc/arch-mips/syscalls/mlock.S b/libc/arch-mips/syscalls/mlock.S
index 3cf7c1b..d1bb3a4 100644
--- a/libc/arch-mips/syscalls/mlock.S
+++ b/libc/arch-mips/syscalls/mlock.S
@@ -4,16 +4,16 @@
ENTRY(mlock)
.set noreorder
- .cpload t9
- li v0, __NR_mlock
+ .cpload $t9
+ li $v0, __NR_mlock
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(mlock)
diff --git a/libc/arch-mips/syscalls/mlockall.S b/libc/arch-mips/syscalls/mlockall.S
index 3b90f41..495be12 100644
--- a/libc/arch-mips/syscalls/mlockall.S
+++ b/libc/arch-mips/syscalls/mlockall.S
@@ -4,16 +4,16 @@
ENTRY(mlockall)
.set noreorder
- .cpload t9
- li v0, __NR_mlockall
+ .cpload $t9
+ li $v0, __NR_mlockall
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(mlockall)
diff --git a/libc/arch-mips/syscalls/mount.S b/libc/arch-mips/syscalls/mount.S
index fdf299f..6eccf01 100644
--- a/libc/arch-mips/syscalls/mount.S
+++ b/libc/arch-mips/syscalls/mount.S
@@ -4,16 +4,16 @@
ENTRY(mount)
.set noreorder
- .cpload t9
- li v0, __NR_mount
+ .cpload $t9
+ li $v0, __NR_mount
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(mount)
diff --git a/libc/arch-mips/syscalls/mprotect.S b/libc/arch-mips/syscalls/mprotect.S
index 5618310..486fd5d 100644
--- a/libc/arch-mips/syscalls/mprotect.S
+++ b/libc/arch-mips/syscalls/mprotect.S
@@ -4,16 +4,16 @@
ENTRY(mprotect)
.set noreorder
- .cpload t9
- li v0, __NR_mprotect
+ .cpload $t9
+ li $v0, __NR_mprotect
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(mprotect)
diff --git a/libc/arch-mips/syscalls/msync.S b/libc/arch-mips/syscalls/msync.S
index fb7462d..6554fd0 100644
--- a/libc/arch-mips/syscalls/msync.S
+++ b/libc/arch-mips/syscalls/msync.S
@@ -4,16 +4,16 @@
ENTRY(msync)
.set noreorder
- .cpload t9
- li v0, __NR_msync
+ .cpload $t9
+ li $v0, __NR_msync
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(msync)
diff --git a/libc/arch-mips/syscalls/munlock.S b/libc/arch-mips/syscalls/munlock.S
index 6c65c02..3a3f50c 100644
--- a/libc/arch-mips/syscalls/munlock.S
+++ b/libc/arch-mips/syscalls/munlock.S
@@ -4,16 +4,16 @@
ENTRY(munlock)
.set noreorder
- .cpload t9
- li v0, __NR_munlock
+ .cpload $t9
+ li $v0, __NR_munlock
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(munlock)
diff --git a/libc/arch-mips/syscalls/munlockall.S b/libc/arch-mips/syscalls/munlockall.S
index e30dddc..4efb260 100644
--- a/libc/arch-mips/syscalls/munlockall.S
+++ b/libc/arch-mips/syscalls/munlockall.S
@@ -4,16 +4,16 @@
ENTRY(munlockall)
.set noreorder
- .cpload t9
- li v0, __NR_munlockall
+ .cpload $t9
+ li $v0, __NR_munlockall
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(munlockall)
diff --git a/libc/arch-mips/syscalls/munmap.S b/libc/arch-mips/syscalls/munmap.S
index 903edde..364f0c1 100644
--- a/libc/arch-mips/syscalls/munmap.S
+++ b/libc/arch-mips/syscalls/munmap.S
@@ -4,16 +4,16 @@
ENTRY(munmap)
.set noreorder
- .cpload t9
- li v0, __NR_munmap
+ .cpload $t9
+ li $v0, __NR_munmap
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(munmap)
diff --git a/libc/arch-mips/syscalls/nanosleep.S b/libc/arch-mips/syscalls/nanosleep.S
index 8dae88b..7e88d00 100644
--- a/libc/arch-mips/syscalls/nanosleep.S
+++ b/libc/arch-mips/syscalls/nanosleep.S
@@ -4,16 +4,16 @@
ENTRY(nanosleep)
.set noreorder
- .cpload t9
- li v0, __NR_nanosleep
+ .cpload $t9
+ li $v0, __NR_nanosleep
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(nanosleep)
diff --git a/libc/arch-mips/syscalls/personality.S b/libc/arch-mips/syscalls/personality.S
index 2f51d39..67f9ec1 100644
--- a/libc/arch-mips/syscalls/personality.S
+++ b/libc/arch-mips/syscalls/personality.S
@@ -4,16 +4,16 @@
ENTRY(personality)
.set noreorder
- .cpload t9
- li v0, __NR_personality
+ .cpload $t9
+ li $v0, __NR_personality
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(personality)
diff --git a/libc/arch-mips/syscalls/pipe2.S b/libc/arch-mips/syscalls/pipe2.S
index b06309c..4040d1f 100644
--- a/libc/arch-mips/syscalls/pipe2.S
+++ b/libc/arch-mips/syscalls/pipe2.S
@@ -4,16 +4,16 @@
ENTRY(pipe2)
.set noreorder
- .cpload t9
- li v0, __NR_pipe2
+ .cpload $t9
+ li $v0, __NR_pipe2
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(pipe2)
diff --git a/libc/arch-mips/syscalls/prctl.S b/libc/arch-mips/syscalls/prctl.S
index 71544ee..e6b0024 100644
--- a/libc/arch-mips/syscalls/prctl.S
+++ b/libc/arch-mips/syscalls/prctl.S
@@ -4,16 +4,16 @@
ENTRY(prctl)
.set noreorder
- .cpload t9
- li v0, __NR_prctl
+ .cpload $t9
+ li $v0, __NR_prctl
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(prctl)
diff --git a/libc/arch-mips/syscalls/pread64.S b/libc/arch-mips/syscalls/pread64.S
index 9e7248b..0181595 100644
--- a/libc/arch-mips/syscalls/pread64.S
+++ b/libc/arch-mips/syscalls/pread64.S
@@ -4,16 +4,16 @@
ENTRY(pread64)
.set noreorder
- .cpload t9
- li v0, __NR_pread64
+ .cpload $t9
+ li $v0, __NR_pread64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(pread64)
diff --git a/libc/arch-mips/syscalls/prlimit64.S b/libc/arch-mips/syscalls/prlimit64.S
index ca913df..c93af64 100644
--- a/libc/arch-mips/syscalls/prlimit64.S
+++ b/libc/arch-mips/syscalls/prlimit64.S
@@ -4,16 +4,16 @@
ENTRY(prlimit64)
.set noreorder
- .cpload t9
- li v0, __NR_prlimit64
+ .cpload $t9
+ li $v0, __NR_prlimit64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(prlimit64)
diff --git a/libc/arch-mips/syscalls/process_vm_readv.S b/libc/arch-mips/syscalls/process_vm_readv.S
index 22b74f0..e571db0 100644
--- a/libc/arch-mips/syscalls/process_vm_readv.S
+++ b/libc/arch-mips/syscalls/process_vm_readv.S
@@ -4,16 +4,16 @@
ENTRY(process_vm_readv)
.set noreorder
- .cpload t9
- li v0, __NR_process_vm_readv
+ .cpload $t9
+ li $v0, __NR_process_vm_readv
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(process_vm_readv)
diff --git a/libc/arch-mips/syscalls/process_vm_writev.S b/libc/arch-mips/syscalls/process_vm_writev.S
index dd1dc4b..cab3b6d 100644
--- a/libc/arch-mips/syscalls/process_vm_writev.S
+++ b/libc/arch-mips/syscalls/process_vm_writev.S
@@ -4,16 +4,16 @@
ENTRY(process_vm_writev)
.set noreorder
- .cpload t9
- li v0, __NR_process_vm_writev
+ .cpload $t9
+ li $v0, __NR_process_vm_writev
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(process_vm_writev)
diff --git a/libc/arch-mips/syscalls/pwrite64.S b/libc/arch-mips/syscalls/pwrite64.S
index ac206aa..4f46f75 100644
--- a/libc/arch-mips/syscalls/pwrite64.S
+++ b/libc/arch-mips/syscalls/pwrite64.S
@@ -4,16 +4,16 @@
ENTRY(pwrite64)
.set noreorder
- .cpload t9
- li v0, __NR_pwrite64
+ .cpload $t9
+ li $v0, __NR_pwrite64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(pwrite64)
diff --git a/libc/arch-mips/syscalls/quotactl.S b/libc/arch-mips/syscalls/quotactl.S
index fef336a..2c8044a 100644
--- a/libc/arch-mips/syscalls/quotactl.S
+++ b/libc/arch-mips/syscalls/quotactl.S
@@ -4,16 +4,16 @@
ENTRY(quotactl)
.set noreorder
- .cpload t9
- li v0, __NR_quotactl
+ .cpload $t9
+ li $v0, __NR_quotactl
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(quotactl)
diff --git a/libc/arch-mips/syscalls/read.S b/libc/arch-mips/syscalls/read.S
index 1355b66..afc6199 100644
--- a/libc/arch-mips/syscalls/read.S
+++ b/libc/arch-mips/syscalls/read.S
@@ -4,16 +4,16 @@
ENTRY(read)
.set noreorder
- .cpload t9
- li v0, __NR_read
+ .cpload $t9
+ li $v0, __NR_read
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(read)
diff --git a/libc/arch-mips/syscalls/readahead.S b/libc/arch-mips/syscalls/readahead.S
index b28df08..1fe93d8 100644
--- a/libc/arch-mips/syscalls/readahead.S
+++ b/libc/arch-mips/syscalls/readahead.S
@@ -4,16 +4,16 @@
ENTRY(readahead)
.set noreorder
- .cpload t9
- li v0, __NR_readahead
+ .cpload $t9
+ li $v0, __NR_readahead
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(readahead)
diff --git a/libc/arch-mips/syscalls/readlinkat.S b/libc/arch-mips/syscalls/readlinkat.S
index 5cf84a2..927f86f 100644
--- a/libc/arch-mips/syscalls/readlinkat.S
+++ b/libc/arch-mips/syscalls/readlinkat.S
@@ -4,16 +4,16 @@
ENTRY(readlinkat)
.set noreorder
- .cpload t9
- li v0, __NR_readlinkat
+ .cpload $t9
+ li $v0, __NR_readlinkat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(readlinkat)
diff --git a/libc/arch-mips/syscalls/readv.S b/libc/arch-mips/syscalls/readv.S
index 57952a0..6af3ac4 100644
--- a/libc/arch-mips/syscalls/readv.S
+++ b/libc/arch-mips/syscalls/readv.S
@@ -4,16 +4,16 @@
ENTRY(readv)
.set noreorder
- .cpload t9
- li v0, __NR_readv
+ .cpload $t9
+ li $v0, __NR_readv
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(readv)
diff --git a/libc/arch-mips/syscalls/recvfrom.S b/libc/arch-mips/syscalls/recvfrom.S
index 707ba4b..448d892 100644
--- a/libc/arch-mips/syscalls/recvfrom.S
+++ b/libc/arch-mips/syscalls/recvfrom.S
@@ -4,16 +4,16 @@
ENTRY(recvfrom)
.set noreorder
- .cpload t9
- li v0, __NR_recvfrom
+ .cpload $t9
+ li $v0, __NR_recvfrom
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(recvfrom)
diff --git a/libc/arch-mips/syscalls/recvmmsg.S b/libc/arch-mips/syscalls/recvmmsg.S
index 796d0d8..42660e2 100644
--- a/libc/arch-mips/syscalls/recvmmsg.S
+++ b/libc/arch-mips/syscalls/recvmmsg.S
@@ -4,16 +4,16 @@
ENTRY(recvmmsg)
.set noreorder
- .cpload t9
- li v0, __NR_recvmmsg
+ .cpload $t9
+ li $v0, __NR_recvmmsg
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(recvmmsg)
diff --git a/libc/arch-mips/syscalls/recvmsg.S b/libc/arch-mips/syscalls/recvmsg.S
index fdcac32..71c7990 100644
--- a/libc/arch-mips/syscalls/recvmsg.S
+++ b/libc/arch-mips/syscalls/recvmsg.S
@@ -4,16 +4,16 @@
ENTRY(recvmsg)
.set noreorder
- .cpload t9
- li v0, __NR_recvmsg
+ .cpload $t9
+ li $v0, __NR_recvmsg
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(recvmsg)
diff --git a/libc/arch-mips/syscalls/removexattr.S b/libc/arch-mips/syscalls/removexattr.S
index d99e1ae..4830373 100644
--- a/libc/arch-mips/syscalls/removexattr.S
+++ b/libc/arch-mips/syscalls/removexattr.S
@@ -4,16 +4,16 @@
ENTRY(removexattr)
.set noreorder
- .cpload t9
- li v0, __NR_removexattr
+ .cpload $t9
+ li $v0, __NR_removexattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(removexattr)
diff --git a/libc/arch-mips/syscalls/renameat.S b/libc/arch-mips/syscalls/renameat.S
index c865d74..1486f95 100644
--- a/libc/arch-mips/syscalls/renameat.S
+++ b/libc/arch-mips/syscalls/renameat.S
@@ -4,16 +4,16 @@
ENTRY(renameat)
.set noreorder
- .cpload t9
- li v0, __NR_renameat
+ .cpload $t9
+ li $v0, __NR_renameat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(renameat)
diff --git a/libc/arch-mips/syscalls/sched_get_priority_max.S b/libc/arch-mips/syscalls/sched_get_priority_max.S
index 1c73af6..f1d35c6 100644
--- a/libc/arch-mips/syscalls/sched_get_priority_max.S
+++ b/libc/arch-mips/syscalls/sched_get_priority_max.S
@@ -4,16 +4,16 @@
ENTRY(sched_get_priority_max)
.set noreorder
- .cpload t9
- li v0, __NR_sched_get_priority_max
+ .cpload $t9
+ li $v0, __NR_sched_get_priority_max
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sched_get_priority_max)
diff --git a/libc/arch-mips/syscalls/sched_get_priority_min.S b/libc/arch-mips/syscalls/sched_get_priority_min.S
index b69b72b..cdb5539 100644
--- a/libc/arch-mips/syscalls/sched_get_priority_min.S
+++ b/libc/arch-mips/syscalls/sched_get_priority_min.S
@@ -4,16 +4,16 @@
ENTRY(sched_get_priority_min)
.set noreorder
- .cpload t9
- li v0, __NR_sched_get_priority_min
+ .cpload $t9
+ li $v0, __NR_sched_get_priority_min
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sched_get_priority_min)
diff --git a/libc/arch-mips/syscalls/sched_getparam.S b/libc/arch-mips/syscalls/sched_getparam.S
index 387257a..71724bd 100644
--- a/libc/arch-mips/syscalls/sched_getparam.S
+++ b/libc/arch-mips/syscalls/sched_getparam.S
@@ -4,16 +4,16 @@
ENTRY(sched_getparam)
.set noreorder
- .cpload t9
- li v0, __NR_sched_getparam
+ .cpload $t9
+ li $v0, __NR_sched_getparam
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sched_getparam)
diff --git a/libc/arch-mips/syscalls/sched_getscheduler.S b/libc/arch-mips/syscalls/sched_getscheduler.S
index 9b293db..8fae1c2 100644
--- a/libc/arch-mips/syscalls/sched_getscheduler.S
+++ b/libc/arch-mips/syscalls/sched_getscheduler.S
@@ -4,16 +4,16 @@
ENTRY(sched_getscheduler)
.set noreorder
- .cpload t9
- li v0, __NR_sched_getscheduler
+ .cpload $t9
+ li $v0, __NR_sched_getscheduler
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sched_getscheduler)
diff --git a/libc/arch-mips/syscalls/sched_rr_get_interval.S b/libc/arch-mips/syscalls/sched_rr_get_interval.S
index 3d7b8a8..eb53d77 100644
--- a/libc/arch-mips/syscalls/sched_rr_get_interval.S
+++ b/libc/arch-mips/syscalls/sched_rr_get_interval.S
@@ -4,16 +4,16 @@
ENTRY(sched_rr_get_interval)
.set noreorder
- .cpload t9
- li v0, __NR_sched_rr_get_interval
+ .cpload $t9
+ li $v0, __NR_sched_rr_get_interval
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sched_rr_get_interval)
diff --git a/libc/arch-mips/syscalls/sched_setaffinity.S b/libc/arch-mips/syscalls/sched_setaffinity.S
index a0e9f6c..a4837fa 100644
--- a/libc/arch-mips/syscalls/sched_setaffinity.S
+++ b/libc/arch-mips/syscalls/sched_setaffinity.S
@@ -4,16 +4,16 @@
ENTRY(sched_setaffinity)
.set noreorder
- .cpload t9
- li v0, __NR_sched_setaffinity
+ .cpload $t9
+ li $v0, __NR_sched_setaffinity
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sched_setaffinity)
diff --git a/libc/arch-mips/syscalls/sched_setparam.S b/libc/arch-mips/syscalls/sched_setparam.S
index a8a8982..4b6d0a2 100644
--- a/libc/arch-mips/syscalls/sched_setparam.S
+++ b/libc/arch-mips/syscalls/sched_setparam.S
@@ -4,16 +4,16 @@
ENTRY(sched_setparam)
.set noreorder
- .cpload t9
- li v0, __NR_sched_setparam
+ .cpload $t9
+ li $v0, __NR_sched_setparam
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sched_setparam)
diff --git a/libc/arch-mips/syscalls/sched_setscheduler.S b/libc/arch-mips/syscalls/sched_setscheduler.S
index a2cd7fa..69d7259 100644
--- a/libc/arch-mips/syscalls/sched_setscheduler.S
+++ b/libc/arch-mips/syscalls/sched_setscheduler.S
@@ -4,16 +4,16 @@
ENTRY(sched_setscheduler)
.set noreorder
- .cpload t9
- li v0, __NR_sched_setscheduler
+ .cpload $t9
+ li $v0, __NR_sched_setscheduler
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sched_setscheduler)
diff --git a/libc/arch-mips/syscalls/sched_yield.S b/libc/arch-mips/syscalls/sched_yield.S
index 295266f..da6b531 100644
--- a/libc/arch-mips/syscalls/sched_yield.S
+++ b/libc/arch-mips/syscalls/sched_yield.S
@@ -4,16 +4,16 @@
ENTRY(sched_yield)
.set noreorder
- .cpload t9
- li v0, __NR_sched_yield
+ .cpload $t9
+ li $v0, __NR_sched_yield
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sched_yield)
diff --git a/libc/arch-mips/syscalls/sendfile.S b/libc/arch-mips/syscalls/sendfile.S
index 5e5e887..9145cea 100644
--- a/libc/arch-mips/syscalls/sendfile.S
+++ b/libc/arch-mips/syscalls/sendfile.S
@@ -4,16 +4,16 @@
ENTRY(sendfile)
.set noreorder
- .cpload t9
- li v0, __NR_sendfile
+ .cpload $t9
+ li $v0, __NR_sendfile
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sendfile)
diff --git a/libc/arch-mips/syscalls/sendfile64.S b/libc/arch-mips/syscalls/sendfile64.S
index 78f1908..0093917 100644
--- a/libc/arch-mips/syscalls/sendfile64.S
+++ b/libc/arch-mips/syscalls/sendfile64.S
@@ -4,16 +4,16 @@
ENTRY(sendfile64)
.set noreorder
- .cpload t9
- li v0, __NR_sendfile64
+ .cpload $t9
+ li $v0, __NR_sendfile64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sendfile64)
diff --git a/libc/arch-mips/syscalls/sendmmsg.S b/libc/arch-mips/syscalls/sendmmsg.S
index 1dc7576..d4e9806 100644
--- a/libc/arch-mips/syscalls/sendmmsg.S
+++ b/libc/arch-mips/syscalls/sendmmsg.S
@@ -4,16 +4,16 @@
ENTRY(sendmmsg)
.set noreorder
- .cpload t9
- li v0, __NR_sendmmsg
+ .cpload $t9
+ li $v0, __NR_sendmmsg
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sendmmsg)
diff --git a/libc/arch-mips/syscalls/sendmsg.S b/libc/arch-mips/syscalls/sendmsg.S
index 88c653e..ec019d6 100644
--- a/libc/arch-mips/syscalls/sendmsg.S
+++ b/libc/arch-mips/syscalls/sendmsg.S
@@ -4,16 +4,16 @@
ENTRY(sendmsg)
.set noreorder
- .cpload t9
- li v0, __NR_sendmsg
+ .cpload $t9
+ li $v0, __NR_sendmsg
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sendmsg)
diff --git a/libc/arch-mips/syscalls/sendto.S b/libc/arch-mips/syscalls/sendto.S
index ef3fa9f..884fd06 100644
--- a/libc/arch-mips/syscalls/sendto.S
+++ b/libc/arch-mips/syscalls/sendto.S
@@ -4,16 +4,16 @@
ENTRY(sendto)
.set noreorder
- .cpload t9
- li v0, __NR_sendto
+ .cpload $t9
+ li $v0, __NR_sendto
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sendto)
diff --git a/libc/arch-mips/syscalls/setdomainname.S b/libc/arch-mips/syscalls/setdomainname.S
index ec0504c..9144a81 100644
--- a/libc/arch-mips/syscalls/setdomainname.S
+++ b/libc/arch-mips/syscalls/setdomainname.S
@@ -4,16 +4,16 @@
ENTRY(setdomainname)
.set noreorder
- .cpload t9
- li v0, __NR_setdomainname
+ .cpload $t9
+ li $v0, __NR_setdomainname
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setdomainname)
diff --git a/libc/arch-mips/syscalls/setfsgid.S b/libc/arch-mips/syscalls/setfsgid.S
index 158d2c0..b927d23 100644
--- a/libc/arch-mips/syscalls/setfsgid.S
+++ b/libc/arch-mips/syscalls/setfsgid.S
@@ -4,16 +4,16 @@
ENTRY(setfsgid)
.set noreorder
- .cpload t9
- li v0, __NR_setfsgid
+ .cpload $t9
+ li $v0, __NR_setfsgid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setfsgid)
diff --git a/libc/arch-mips/syscalls/setfsuid.S b/libc/arch-mips/syscalls/setfsuid.S
index f76fd17..c95f30f 100644
--- a/libc/arch-mips/syscalls/setfsuid.S
+++ b/libc/arch-mips/syscalls/setfsuid.S
@@ -4,16 +4,16 @@
ENTRY(setfsuid)
.set noreorder
- .cpload t9
- li v0, __NR_setfsuid
+ .cpload $t9
+ li $v0, __NR_setfsuid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setfsuid)
diff --git a/libc/arch-mips/syscalls/setgid.S b/libc/arch-mips/syscalls/setgid.S
index 44127cd..a1665cc 100644
--- a/libc/arch-mips/syscalls/setgid.S
+++ b/libc/arch-mips/syscalls/setgid.S
@@ -4,16 +4,16 @@
ENTRY(setgid)
.set noreorder
- .cpload t9
- li v0, __NR_setgid
+ .cpload $t9
+ li $v0, __NR_setgid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setgid)
diff --git a/libc/arch-mips/syscalls/setgroups.S b/libc/arch-mips/syscalls/setgroups.S
index be4dc13..f8f4c52 100644
--- a/libc/arch-mips/syscalls/setgroups.S
+++ b/libc/arch-mips/syscalls/setgroups.S
@@ -4,16 +4,16 @@
ENTRY(setgroups)
.set noreorder
- .cpload t9
- li v0, __NR_setgroups
+ .cpload $t9
+ li $v0, __NR_setgroups
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setgroups)
diff --git a/libc/arch-mips/syscalls/sethostname.S b/libc/arch-mips/syscalls/sethostname.S
index 2987b52..1a3e37b 100644
--- a/libc/arch-mips/syscalls/sethostname.S
+++ b/libc/arch-mips/syscalls/sethostname.S
@@ -4,16 +4,16 @@
ENTRY(sethostname)
.set noreorder
- .cpload t9
- li v0, __NR_sethostname
+ .cpload $t9
+ li $v0, __NR_sethostname
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sethostname)
diff --git a/libc/arch-mips/syscalls/setitimer.S b/libc/arch-mips/syscalls/setitimer.S
index 968b453..1a32e97 100644
--- a/libc/arch-mips/syscalls/setitimer.S
+++ b/libc/arch-mips/syscalls/setitimer.S
@@ -4,16 +4,16 @@
ENTRY(setitimer)
.set noreorder
- .cpload t9
- li v0, __NR_setitimer
+ .cpload $t9
+ li $v0, __NR_setitimer
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setitimer)
diff --git a/libc/arch-mips/syscalls/setns.S b/libc/arch-mips/syscalls/setns.S
index a9270ec..6021aa6 100644
--- a/libc/arch-mips/syscalls/setns.S
+++ b/libc/arch-mips/syscalls/setns.S
@@ -4,16 +4,16 @@
ENTRY(setns)
.set noreorder
- .cpload t9
- li v0, __NR_setns
+ .cpload $t9
+ li $v0, __NR_setns
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setns)
diff --git a/libc/arch-mips/syscalls/setpgid.S b/libc/arch-mips/syscalls/setpgid.S
index d2db62f..449eabd 100644
--- a/libc/arch-mips/syscalls/setpgid.S
+++ b/libc/arch-mips/syscalls/setpgid.S
@@ -4,16 +4,16 @@
ENTRY(setpgid)
.set noreorder
- .cpload t9
- li v0, __NR_setpgid
+ .cpload $t9
+ li $v0, __NR_setpgid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setpgid)
diff --git a/libc/arch-mips/syscalls/setpriority.S b/libc/arch-mips/syscalls/setpriority.S
index 9b68335..53f500b 100644
--- a/libc/arch-mips/syscalls/setpriority.S
+++ b/libc/arch-mips/syscalls/setpriority.S
@@ -4,16 +4,16 @@
ENTRY(setpriority)
.set noreorder
- .cpload t9
- li v0, __NR_setpriority
+ .cpload $t9
+ li $v0, __NR_setpriority
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setpriority)
diff --git a/libc/arch-mips/syscalls/setregid.S b/libc/arch-mips/syscalls/setregid.S
index 6b7474c..f251969 100644
--- a/libc/arch-mips/syscalls/setregid.S
+++ b/libc/arch-mips/syscalls/setregid.S
@@ -4,16 +4,16 @@
ENTRY(setregid)
.set noreorder
- .cpload t9
- li v0, __NR_setregid
+ .cpload $t9
+ li $v0, __NR_setregid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setregid)
diff --git a/libc/arch-mips/syscalls/setresgid.S b/libc/arch-mips/syscalls/setresgid.S
index 223a0d0..78eb897 100644
--- a/libc/arch-mips/syscalls/setresgid.S
+++ b/libc/arch-mips/syscalls/setresgid.S
@@ -4,16 +4,16 @@
ENTRY(setresgid)
.set noreorder
- .cpload t9
- li v0, __NR_setresgid
+ .cpload $t9
+ li $v0, __NR_setresgid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setresgid)
diff --git a/libc/arch-mips/syscalls/setresuid.S b/libc/arch-mips/syscalls/setresuid.S
index 1f99682..c78a4db 100644
--- a/libc/arch-mips/syscalls/setresuid.S
+++ b/libc/arch-mips/syscalls/setresuid.S
@@ -4,16 +4,16 @@
ENTRY(setresuid)
.set noreorder
- .cpload t9
- li v0, __NR_setresuid
+ .cpload $t9
+ li $v0, __NR_setresuid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setresuid)
diff --git a/libc/arch-mips/syscalls/setreuid.S b/libc/arch-mips/syscalls/setreuid.S
index fa9c3d2..81e8551 100644
--- a/libc/arch-mips/syscalls/setreuid.S
+++ b/libc/arch-mips/syscalls/setreuid.S
@@ -4,16 +4,16 @@
ENTRY(setreuid)
.set noreorder
- .cpload t9
- li v0, __NR_setreuid
+ .cpload $t9
+ li $v0, __NR_setreuid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setreuid)
diff --git a/libc/arch-mips/syscalls/setrlimit.S b/libc/arch-mips/syscalls/setrlimit.S
index 016e24c..ad11caf 100644
--- a/libc/arch-mips/syscalls/setrlimit.S
+++ b/libc/arch-mips/syscalls/setrlimit.S
@@ -4,16 +4,16 @@
ENTRY(setrlimit)
.set noreorder
- .cpload t9
- li v0, __NR_setrlimit
+ .cpload $t9
+ li $v0, __NR_setrlimit
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setrlimit)
diff --git a/libc/arch-mips/syscalls/setsid.S b/libc/arch-mips/syscalls/setsid.S
index 9f3cb48..c83d39f 100644
--- a/libc/arch-mips/syscalls/setsid.S
+++ b/libc/arch-mips/syscalls/setsid.S
@@ -4,16 +4,16 @@
ENTRY(setsid)
.set noreorder
- .cpload t9
- li v0, __NR_setsid
+ .cpload $t9
+ li $v0, __NR_setsid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setsid)
diff --git a/libc/arch-mips/syscalls/setsockopt.S b/libc/arch-mips/syscalls/setsockopt.S
index b2368a1..2d398ef 100644
--- a/libc/arch-mips/syscalls/setsockopt.S
+++ b/libc/arch-mips/syscalls/setsockopt.S
@@ -4,16 +4,16 @@
ENTRY(setsockopt)
.set noreorder
- .cpload t9
- li v0, __NR_setsockopt
+ .cpload $t9
+ li $v0, __NR_setsockopt
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setsockopt)
diff --git a/libc/arch-mips/syscalls/settimeofday.S b/libc/arch-mips/syscalls/settimeofday.S
index e3a5a06..4ae8057 100644
--- a/libc/arch-mips/syscalls/settimeofday.S
+++ b/libc/arch-mips/syscalls/settimeofday.S
@@ -4,16 +4,16 @@
ENTRY(settimeofday)
.set noreorder
- .cpload t9
- li v0, __NR_settimeofday
+ .cpload $t9
+ li $v0, __NR_settimeofday
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(settimeofday)
diff --git a/libc/arch-mips/syscalls/setuid.S b/libc/arch-mips/syscalls/setuid.S
index ff3da0a..732fb8a 100644
--- a/libc/arch-mips/syscalls/setuid.S
+++ b/libc/arch-mips/syscalls/setuid.S
@@ -4,16 +4,16 @@
ENTRY(setuid)
.set noreorder
- .cpload t9
- li v0, __NR_setuid
+ .cpload $t9
+ li $v0, __NR_setuid
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setuid)
diff --git a/libc/arch-mips/syscalls/setxattr.S b/libc/arch-mips/syscalls/setxattr.S
index 5b3a241..36a5d47 100644
--- a/libc/arch-mips/syscalls/setxattr.S
+++ b/libc/arch-mips/syscalls/setxattr.S
@@ -4,16 +4,16 @@
ENTRY(setxattr)
.set noreorder
- .cpload t9
- li v0, __NR_setxattr
+ .cpload $t9
+ li $v0, __NR_setxattr
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(setxattr)
diff --git a/libc/arch-mips/syscalls/shutdown.S b/libc/arch-mips/syscalls/shutdown.S
index 5db046f..885a501 100644
--- a/libc/arch-mips/syscalls/shutdown.S
+++ b/libc/arch-mips/syscalls/shutdown.S
@@ -4,16 +4,16 @@
ENTRY(shutdown)
.set noreorder
- .cpload t9
- li v0, __NR_shutdown
+ .cpload $t9
+ li $v0, __NR_shutdown
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(shutdown)
diff --git a/libc/arch-mips/syscalls/sigaltstack.S b/libc/arch-mips/syscalls/sigaltstack.S
index f543759..4276d71 100644
--- a/libc/arch-mips/syscalls/sigaltstack.S
+++ b/libc/arch-mips/syscalls/sigaltstack.S
@@ -4,16 +4,16 @@
ENTRY(sigaltstack)
.set noreorder
- .cpload t9
- li v0, __NR_sigaltstack
+ .cpload $t9
+ li $v0, __NR_sigaltstack
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sigaltstack)
diff --git a/libc/arch-mips/syscalls/socketpair.S b/libc/arch-mips/syscalls/socketpair.S
index 7f85da3..ac66b34 100644
--- a/libc/arch-mips/syscalls/socketpair.S
+++ b/libc/arch-mips/syscalls/socketpair.S
@@ -4,16 +4,16 @@
ENTRY(socketpair)
.set noreorder
- .cpload t9
- li v0, __NR_socketpair
+ .cpload $t9
+ li $v0, __NR_socketpair
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(socketpair)
diff --git a/libc/arch-mips/syscalls/splice.S b/libc/arch-mips/syscalls/splice.S
index a55b7e8..afecd83 100644
--- a/libc/arch-mips/syscalls/splice.S
+++ b/libc/arch-mips/syscalls/splice.S
@@ -4,16 +4,16 @@
ENTRY(splice)
.set noreorder
- .cpload t9
- li v0, __NR_splice
+ .cpload $t9
+ li $v0, __NR_splice
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(splice)
diff --git a/libc/arch-mips/syscalls/swapoff.S b/libc/arch-mips/syscalls/swapoff.S
index ce782d0..dfe3a5c 100644
--- a/libc/arch-mips/syscalls/swapoff.S
+++ b/libc/arch-mips/syscalls/swapoff.S
@@ -4,16 +4,16 @@
ENTRY(swapoff)
.set noreorder
- .cpload t9
- li v0, __NR_swapoff
+ .cpload $t9
+ li $v0, __NR_swapoff
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(swapoff)
diff --git a/libc/arch-mips/syscalls/swapon.S b/libc/arch-mips/syscalls/swapon.S
index 127c3a8..12cfca1 100644
--- a/libc/arch-mips/syscalls/swapon.S
+++ b/libc/arch-mips/syscalls/swapon.S
@@ -4,16 +4,16 @@
ENTRY(swapon)
.set noreorder
- .cpload t9
- li v0, __NR_swapon
+ .cpload $t9
+ li $v0, __NR_swapon
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(swapon)
diff --git a/libc/arch-mips/syscalls/symlinkat.S b/libc/arch-mips/syscalls/symlinkat.S
index b0690a4..a349ede 100644
--- a/libc/arch-mips/syscalls/symlinkat.S
+++ b/libc/arch-mips/syscalls/symlinkat.S
@@ -4,16 +4,16 @@
ENTRY(symlinkat)
.set noreorder
- .cpload t9
- li v0, __NR_symlinkat
+ .cpload $t9
+ li $v0, __NR_symlinkat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(symlinkat)
diff --git a/libc/arch-mips/syscalls/sync.S b/libc/arch-mips/syscalls/sync.S
index 8858e74..80667b3 100644
--- a/libc/arch-mips/syscalls/sync.S
+++ b/libc/arch-mips/syscalls/sync.S
@@ -4,16 +4,16 @@
ENTRY(sync)
.set noreorder
- .cpload t9
- li v0, __NR_sync
+ .cpload $t9
+ li $v0, __NR_sync
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sync)
diff --git a/libc/arch-mips/syscalls/syncfs.S b/libc/arch-mips/syscalls/syncfs.S
index cd87a61..78ee0e7 100644
--- a/libc/arch-mips/syscalls/syncfs.S
+++ b/libc/arch-mips/syscalls/syncfs.S
@@ -4,16 +4,16 @@
ENTRY(syncfs)
.set noreorder
- .cpload t9
- li v0, __NR_syncfs
+ .cpload $t9
+ li $v0, __NR_syncfs
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(syncfs)
diff --git a/libc/arch-mips/syscalls/sysinfo.S b/libc/arch-mips/syscalls/sysinfo.S
index beefc0e..42fa57d 100644
--- a/libc/arch-mips/syscalls/sysinfo.S
+++ b/libc/arch-mips/syscalls/sysinfo.S
@@ -4,16 +4,16 @@
ENTRY(sysinfo)
.set noreorder
- .cpload t9
- li v0, __NR_sysinfo
+ .cpload $t9
+ li $v0, __NR_sysinfo
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(sysinfo)
diff --git a/libc/arch-mips/syscalls/tee.S b/libc/arch-mips/syscalls/tee.S
index 1115907..97867e3 100644
--- a/libc/arch-mips/syscalls/tee.S
+++ b/libc/arch-mips/syscalls/tee.S
@@ -4,16 +4,16 @@
ENTRY(tee)
.set noreorder
- .cpload t9
- li v0, __NR_tee
+ .cpload $t9
+ li $v0, __NR_tee
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(tee)
diff --git a/libc/arch-mips/syscalls/tgkill.S b/libc/arch-mips/syscalls/tgkill.S
index bea211d..cded9e5 100644
--- a/libc/arch-mips/syscalls/tgkill.S
+++ b/libc/arch-mips/syscalls/tgkill.S
@@ -4,16 +4,16 @@
ENTRY(tgkill)
.set noreorder
- .cpload t9
- li v0, __NR_tgkill
+ .cpload $t9
+ li $v0, __NR_tgkill
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(tgkill)
diff --git a/libc/arch-mips/syscalls/timerfd_create.S b/libc/arch-mips/syscalls/timerfd_create.S
index 116c628..840f7e2 100644
--- a/libc/arch-mips/syscalls/timerfd_create.S
+++ b/libc/arch-mips/syscalls/timerfd_create.S
@@ -4,16 +4,16 @@
ENTRY(timerfd_create)
.set noreorder
- .cpload t9
- li v0, __NR_timerfd_create
+ .cpload $t9
+ li $v0, __NR_timerfd_create
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(timerfd_create)
diff --git a/libc/arch-mips/syscalls/timerfd_gettime.S b/libc/arch-mips/syscalls/timerfd_gettime.S
index df7138c..7ddc25f 100644
--- a/libc/arch-mips/syscalls/timerfd_gettime.S
+++ b/libc/arch-mips/syscalls/timerfd_gettime.S
@@ -4,16 +4,16 @@
ENTRY(timerfd_gettime)
.set noreorder
- .cpload t9
- li v0, __NR_timerfd_gettime
+ .cpload $t9
+ li $v0, __NR_timerfd_gettime
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(timerfd_gettime)
diff --git a/libc/arch-mips/syscalls/timerfd_settime.S b/libc/arch-mips/syscalls/timerfd_settime.S
index 2bfadb9..b4e7926 100644
--- a/libc/arch-mips/syscalls/timerfd_settime.S
+++ b/libc/arch-mips/syscalls/timerfd_settime.S
@@ -4,16 +4,16 @@
ENTRY(timerfd_settime)
.set noreorder
- .cpload t9
- li v0, __NR_timerfd_settime
+ .cpload $t9
+ li $v0, __NR_timerfd_settime
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(timerfd_settime)
diff --git a/libc/arch-mips/syscalls/times.S b/libc/arch-mips/syscalls/times.S
index 90ce97f..ad4003b 100644
--- a/libc/arch-mips/syscalls/times.S
+++ b/libc/arch-mips/syscalls/times.S
@@ -4,16 +4,16 @@
ENTRY(times)
.set noreorder
- .cpload t9
- li v0, __NR_times
+ .cpload $t9
+ li $v0, __NR_times
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(times)
diff --git a/libc/arch-mips/syscalls/truncate.S b/libc/arch-mips/syscalls/truncate.S
index 6800705..cb077e9 100644
--- a/libc/arch-mips/syscalls/truncate.S
+++ b/libc/arch-mips/syscalls/truncate.S
@@ -4,16 +4,16 @@
ENTRY(truncate)
.set noreorder
- .cpload t9
- li v0, __NR_truncate
+ .cpload $t9
+ li $v0, __NR_truncate
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(truncate)
diff --git a/libc/arch-mips/syscalls/truncate64.S b/libc/arch-mips/syscalls/truncate64.S
index 870e735..4ccd2ad 100644
--- a/libc/arch-mips/syscalls/truncate64.S
+++ b/libc/arch-mips/syscalls/truncate64.S
@@ -4,16 +4,16 @@
ENTRY(truncate64)
.set noreorder
- .cpload t9
- li v0, __NR_truncate64
+ .cpload $t9
+ li $v0, __NR_truncate64
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(truncate64)
diff --git a/libc/arch-mips/syscalls/umask.S b/libc/arch-mips/syscalls/umask.S
index ccf4292..196dc07 100644
--- a/libc/arch-mips/syscalls/umask.S
+++ b/libc/arch-mips/syscalls/umask.S
@@ -4,16 +4,16 @@
ENTRY(umask)
.set noreorder
- .cpload t9
- li v0, __NR_umask
+ .cpload $t9
+ li $v0, __NR_umask
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(umask)
diff --git a/libc/arch-mips/syscalls/umount2.S b/libc/arch-mips/syscalls/umount2.S
index 65a7129..f61e3e9 100644
--- a/libc/arch-mips/syscalls/umount2.S
+++ b/libc/arch-mips/syscalls/umount2.S
@@ -4,16 +4,16 @@
ENTRY(umount2)
.set noreorder
- .cpload t9
- li v0, __NR_umount2
+ .cpload $t9
+ li $v0, __NR_umount2
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(umount2)
diff --git a/libc/arch-mips/syscalls/uname.S b/libc/arch-mips/syscalls/uname.S
index f540b3a..c3408e0 100644
--- a/libc/arch-mips/syscalls/uname.S
+++ b/libc/arch-mips/syscalls/uname.S
@@ -4,16 +4,16 @@
ENTRY(uname)
.set noreorder
- .cpload t9
- li v0, __NR_uname
+ .cpload $t9
+ li $v0, __NR_uname
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(uname)
diff --git a/libc/arch-mips/syscalls/unlinkat.S b/libc/arch-mips/syscalls/unlinkat.S
index 001f9cf..400a0b6 100644
--- a/libc/arch-mips/syscalls/unlinkat.S
+++ b/libc/arch-mips/syscalls/unlinkat.S
@@ -4,16 +4,16 @@
ENTRY(unlinkat)
.set noreorder
- .cpload t9
- li v0, __NR_unlinkat
+ .cpload $t9
+ li $v0, __NR_unlinkat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(unlinkat)
diff --git a/libc/arch-mips/syscalls/unshare.S b/libc/arch-mips/syscalls/unshare.S
index 13ca452..2e81abb 100644
--- a/libc/arch-mips/syscalls/unshare.S
+++ b/libc/arch-mips/syscalls/unshare.S
@@ -4,16 +4,16 @@
ENTRY(unshare)
.set noreorder
- .cpload t9
- li v0, __NR_unshare
+ .cpload $t9
+ li $v0, __NR_unshare
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(unshare)
diff --git a/libc/arch-mips/syscalls/utimensat.S b/libc/arch-mips/syscalls/utimensat.S
index 14e5a10..70d0bdd 100644
--- a/libc/arch-mips/syscalls/utimensat.S
+++ b/libc/arch-mips/syscalls/utimensat.S
@@ -4,16 +4,16 @@
ENTRY(utimensat)
.set noreorder
- .cpload t9
- li v0, __NR_utimensat
+ .cpload $t9
+ li $v0, __NR_utimensat
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(utimensat)
diff --git a/libc/arch-mips/syscalls/vmsplice.S b/libc/arch-mips/syscalls/vmsplice.S
index 0191f53..e575962 100644
--- a/libc/arch-mips/syscalls/vmsplice.S
+++ b/libc/arch-mips/syscalls/vmsplice.S
@@ -4,16 +4,16 @@
ENTRY(vmsplice)
.set noreorder
- .cpload t9
- li v0, __NR_vmsplice
+ .cpload $t9
+ li $v0, __NR_vmsplice
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(vmsplice)
diff --git a/libc/arch-mips/syscalls/wait4.S b/libc/arch-mips/syscalls/wait4.S
index 8a12533..c9572da 100644
--- a/libc/arch-mips/syscalls/wait4.S
+++ b/libc/arch-mips/syscalls/wait4.S
@@ -4,16 +4,16 @@
ENTRY(wait4)
.set noreorder
- .cpload t9
- li v0, __NR_wait4
+ .cpload $t9
+ li $v0, __NR_wait4
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(wait4)
diff --git a/libc/arch-mips/syscalls/write.S b/libc/arch-mips/syscalls/write.S
index 62dc36f..501c211 100644
--- a/libc/arch-mips/syscalls/write.S
+++ b/libc/arch-mips/syscalls/write.S
@@ -4,16 +4,16 @@
ENTRY(write)
.set noreorder
- .cpload t9
- li v0, __NR_write
+ .cpload $t9
+ li $v0, __NR_write
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(write)
diff --git a/libc/arch-mips/syscalls/writev.S b/libc/arch-mips/syscalls/writev.S
index d8d6616..597d7fa 100644
--- a/libc/arch-mips/syscalls/writev.S
+++ b/libc/arch-mips/syscalls/writev.S
@@ -4,16 +4,16 @@
ENTRY(writev)
.set noreorder
- .cpload t9
- li v0, __NR_writev
+ .cpload $t9
+ li $v0, __NR_writev
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(writev)
diff --git a/libc/arch-x86/include/machine/setjmp.h b/libc/arch-x86/include/machine/setjmp.h
deleted file mode 100644
index ded095d..0000000
--- a/libc/arch-x86/include/machine/setjmp.h
+++ /dev/null
@@ -1,8 +0,0 @@
-/* $OpenBSD: setjmp.h,v 1.2 2000/08/05 22:07:32 niklas Exp $ */
-/* $NetBSD: setjmp.h,v 1.1 1994/12/20 10:36:43 cgd Exp $ */
-
-/*
- * machine/setjmp.h: machine dependent setjmp-related information.
- */
-
-#define _JBLEN 10 /* size, in longs, of a jmp_buf */
diff --git a/libc/arch-x86_64/include/machine/setjmp.h b/libc/arch-x86_64/include/machine/setjmp.h
deleted file mode 100644
index 46ddd4b..0000000
--- a/libc/arch-x86_64/include/machine/setjmp.h
+++ /dev/null
@@ -1,4 +0,0 @@
-/* $OpenBSD: setjmp.h,v 1.1 2004/01/28 01:39:39 mickey Exp $ */
-/* $NetBSD: setjmp.h,v 1.1 2003/04/26 18:39:47 fvdl Exp $ */
-
-#define _JBLEN 11 /* size, in longs, of a jmp_buf */
diff --git a/libc/arch-arm/include/machine/fenv.h b/libc/include/bits/fenv_arm.h
similarity index 96%
rename from libc/arch-arm/include/machine/fenv.h
rename to libc/include/bits/fenv_arm.h
index 0e483e3..542ddbe 100644
--- a/libc/arch-arm/include/machine/fenv.h
+++ b/libc/include/bits/fenv_arm.h
@@ -33,8 +33,8 @@
* http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344b/Chdfafia.html
*/
-#ifndef _ARM_FENV_H_
-#define _ARM_FENV_H_
+#ifndef _BITS_FENV_ARM_H_
+#define _BITS_FENV_ARM_H_
#include <sys/types.h>
@@ -60,4 +60,4 @@
__END_DECLS
-#endif /* !_ARM_FENV_H_ */
+#endif
diff --git a/libc/arch-arm64/include/machine/fenv.h b/libc/include/bits/fenv_arm64.h
similarity index 97%
rename from libc/arch-arm64/include/machine/fenv.h
rename to libc/include/bits/fenv_arm64.h
index a8568b8..67f0fb4 100644
--- a/libc/arch-arm64/include/machine/fenv.h
+++ b/libc/include/bits/fenv_arm64.h
@@ -67,8 +67,8 @@
* * [0] - IOC, Invalid Operation cumulative exception.
*/
-#ifndef _ARM64_FENV_H_
-#define _ARM64_FENV_H_
+#ifndef _BITS_FENV_ARM64_H_
+#define _BITS_FENV_ARM64_H_
#include <sys/types.h>
@@ -99,4 +99,4 @@
__END_DECLS
-#endif /* !_ARM64_FENV_H_ */
+#endif
diff --git a/libc/arch-mips/include/machine/fenv.h b/libc/include/bits/fenv_mips.h
similarity index 97%
rename from libc/arch-mips/include/machine/fenv.h
rename to libc/include/bits/fenv_mips.h
index 689e1cb..9298e86 100644
--- a/libc/arch-mips/include/machine/fenv.h
+++ b/libc/include/bits/fenv_mips.h
@@ -68,8 +68,8 @@
* 11 - rounding (down)toward minus infinity (RM)
*/
-#ifndef _MIPS_FENV_H_
-#define _MIPS_FENV_H_
+#ifndef _BITS_FENV_MIPS_H_
+#define _BITS_FENV_MIPS_H_
#include <sys/types.h>
@@ -95,4 +95,4 @@
__END_DECLS
-#endif /* !_MIPS_FENV_H_ */
+#endif
diff --git a/libc/arch-x86/include/machine/fenv.h b/libc/include/bits/fenv_x86.h
similarity index 96%
rename from libc/arch-x86/include/machine/fenv.h
rename to libc/include/bits/fenv_x86.h
index de45add..75b109b 100644
--- a/libc/arch-x86/include/machine/fenv.h
+++ b/libc/include/bits/fenv_x86.h
@@ -26,8 +26,8 @@
* $FreeBSD: src/lib/msun/i387/fenv.h,v 1.4 2005/03/17 22:21:46 das Exp $
*/
-#ifndef _I387_FENV_H_
-#define _I387_FENV_H_
+#ifndef _BITS_FENV_X86_H_
+#define _BITS_FENV_X86_H_
#include <sys/types.h>
@@ -66,4 +66,4 @@
__END_DECLS
-#endif /* !I387_FENV_H_ */
+#endif
diff --git a/libc/arch-x86_64/include/machine/fenv.h b/libc/include/bits/fenv_x86_64.h
similarity index 97%
rename from libc/arch-x86_64/include/machine/fenv.h
rename to libc/include/bits/fenv_x86_64.h
index c2b25ed..006d19e 100644
--- a/libc/arch-x86_64/include/machine/fenv.h
+++ b/libc/include/bits/fenv_x86_64.h
@@ -24,8 +24,8 @@
* SUCH DAMAGE.
*/
-#ifndef _AMD64_FENV_H_
-#define _AMD64_FENV_H_
+#ifndef _BITS_FENV_X86_64_H_
+#define _BITS_FENV_X86_64_H_
#include <sys/types.h>
@@ -92,4 +92,4 @@
__END_DECLS
-#endif /* !_AMD64_FENV_H_ */
+#endif
diff --git a/libc/include/fenv.h b/libc/include/fenv.h
index ae35ae3..4276e87 100644
--- a/libc/include/fenv.h
+++ b/libc/include/fenv.h
@@ -31,7 +31,18 @@
#define _FENV_H_
#include <sys/cdefs.h>
-#include <machine/fenv.h>
+
+#if defined(__aarch64__)
+#include <bits/fenv_arm64.h>
+#elif defined(__arm__)
+#include <bits/fenv_arm.h>
+#elif defined(__i386__)
+#include <bits/fenv_x86.h>
+#elif defined(__mips__)
+#include <bits/fenv_mips.h>
+#elif defined(__x86_64__)
+#include <bits/fenv_x86_64.h>
+#endif
__BEGIN_DECLS
diff --git a/libc/include/setjmp.h b/libc/include/setjmp.h
index 12a3083..d44946f 100644
--- a/libc/include/setjmp.h
+++ b/libc/include/setjmp.h
@@ -41,11 +41,28 @@
#define _SETJMP_H_
#include <sys/cdefs.h>
-#include <machine/setjmp.h>
+
+#if defined(__aarch64__)
+#define _JBLEN 32
+#elif defined(__arm__)
+#define _JBLEN 64
+#elif defined(__i386__)
+#define _JBLEN 10
+#elif defined(__mips__)
+ #if defined(__LP64__)
+ #define _JBLEN 25
+ #else
+ #define _JBLEN 157
+ #endif
+#elif defined(__x86_64__)
+#define _JBLEN 11
+#endif
typedef long sigjmp_buf[_JBLEN + 1];
typedef long jmp_buf[_JBLEN];
+#undef _JBLEN
+
__BEGIN_DECLS
int _setjmp(jmp_buf __env);
diff --git a/libc/private/bionic_asm.h b/libc/private/bionic_asm.h
index c1fab1f..92f38aa 100644
--- a/libc/private/bionic_asm.h
+++ b/libc/private/bionic_asm.h
@@ -36,7 +36,17 @@
#define __bionic_asm_custom_end(f)
#define __bionic_asm_function_type @function
-#include <machine/asm.h>
+#if defined(__aarch64__)
+#include <private/bionic_asm_arm64.h>
+#elif defined(__arm__)
+#include <private/bionic_asm_arm.h>
+#elif defined(__i386__)
+#include <private/bionic_asm_x86.h>
+#elif defined(__mips__)
+#include <private/bionic_asm_mips.h>
+#elif defined(__x86_64__)
+#include <private/bionic_asm_x86_64.h>
+#endif
#define ENTRY_NO_DWARF(f) \
.text; \
@@ -72,4 +82,4 @@
.globl alias; \
.equ alias, original
-#endif /* _PRIVATE_BIONIC_ASM_H_ */
+#endif
diff --git a/libc/arch-arm/include/machine/asm.h b/libc/private/bionic_asm_arm.h
similarity index 95%
rename from libc/arch-arm/include/machine/asm.h
rename to libc/private/bionic_asm_arm.h
index 70dbe67..d8381d3 100644
--- a/libc/arch-arm/include/machine/asm.h
+++ b/libc/private/bionic_asm_arm.h
@@ -35,8 +35,7 @@
* from: @(#)asm.h 5.5 (Berkeley) 5/7/91
*/
-#ifndef _ARM32_ASM_H_
-#define _ARM32_ASM_H_
+#pragma once
#define __bionic_asm_align 0
@@ -47,5 +46,3 @@
#undef __bionic_asm_function_type
#define __bionic_asm_function_type #function
-
-#endif /* !_ARM_ASM_H_ */
diff --git a/libc/arch-arm64/include/machine/asm.h b/libc/private/bionic_asm_arm64.h
similarity index 95%
rename from libc/arch-arm64/include/machine/asm.h
rename to libc/private/bionic_asm_arm64.h
index 2bea043..43ecaf3 100644
--- a/libc/arch-arm64/include/machine/asm.h
+++ b/libc/private/bionic_asm_arm64.h
@@ -35,12 +35,9 @@
* from: @(#)asm.h 5.5 (Berkeley) 5/7/91
*/
-#ifndef _AARCH64_ASM_H_
-#define _AARCH64_ASM_H_
+#pragma once
#define __bionic_asm_align 0
#undef __bionic_asm_function_type
#define __bionic_asm_function_type %function
-
-#endif /* _AARCH64_ASM_H_ */
diff --git a/libc/arch-mips/include/machine/asm.h b/libc/private/bionic_asm_mips.h
similarity index 95%
rename from libc/arch-mips/include/machine/asm.h
rename to libc/private/bionic_asm_mips.h
index dc83088..99dcfb1 100644
--- a/libc/arch-mips/include/machine/asm.h
+++ b/libc/private/bionic_asm_mips.h
@@ -25,8 +25,8 @@
* SUCH DAMAGE.
*
*/
-#ifndef _MIPS64_ASM_H
-#define _MIPS64_ASM_H
+
+#pragma once
#define __bionic_asm_align 16
@@ -35,8 +35,6 @@
#define __bionic_asm_custom_entry(f) .ent f
#define __bionic_asm_custom_end(f) .end f
-#include <machine/regdef.h>
-
#define _MIPS_ISA_MIPS1 1 /* R2000/R3000 */
#define _MIPS_ISA_MIPS2 2 /* R4000/R6000 */
#define _MIPS_ISA_MIPS3 3 /* R4000 */
@@ -75,7 +73,7 @@
#define SETUP_GP \
.set noreorder; \
- .cpload t9; \
+ .cpload $t9; \
.set reorder;
#define SAVE_GP(x) \
@@ -91,7 +89,7 @@
#define SETUP_GP
#define SAVE_GP(x)
#define SETUP_GP64(gpoff, name) \
- .cpsetup t9, gpoff, name
+ .cpsetup $t9, gpoff, name
#define RESTORE_GP64 \
.cpreturn
#endif
@@ -171,7 +169,7 @@
.ent x, 0; \
x: ; \
.cfi_startproc; \
- .frame sp, fsize, ra; \
+ .frame $sp, fsize, $ra; \
SETUP_GP \
/*
@@ -185,7 +183,5 @@
.ent x, 0; \
x: ; \
.cfi_startproc; \
- .frame sp, fsize, retpc; \
+ .frame $sp, fsize, retpc; \
SETUP_GP \
-
-#endif /* !_MIPS_ASM_H */
diff --git a/libc/arch-x86/include/machine/asm.h b/libc/private/bionic_asm_x86.h
similarity index 95%
rename from libc/arch-x86/include/machine/asm.h
rename to libc/private/bionic_asm_x86.h
index 943f9dd..fcec40b 100644
--- a/libc/arch-x86/include/machine/asm.h
+++ b/libc/private/bionic_asm_x86.h
@@ -34,8 +34,7 @@
* @(#)asm.h 5.5 (Berkeley) 5/7/91
*/
-#ifndef _I386_ASM_H_
-#define _I386_ASM_H_
+#pragma once
#define PIC_PROLOGUE \
pushl %ebx; \
@@ -50,5 +49,3 @@
#define PIC_GOTOFF(x) x@GOTOFF(%ebx)
#define __bionic_asm_align 16
-
-#endif /* !_I386_ASM_H_ */
diff --git a/libc/arch-x86_64/include/machine/asm.h b/libc/private/bionic_asm_x86_64.h
similarity index 95%
rename from libc/arch-x86_64/include/machine/asm.h
rename to libc/private/bionic_asm_x86_64.h
index 28cd08f..c553b0c 100644
--- a/libc/arch-x86_64/include/machine/asm.h
+++ b/libc/private/bionic_asm_x86_64.h
@@ -34,12 +34,9 @@
* @(#)asm.h 5.5 (Berkeley) 5/7/91
*/
-#ifndef _AMD64_ASM_H_
-#define _AMD64_ASM_H_
+#pragma once
#define PIC_PLT(x) x@PLT
#define PIC_GOT(x) x@GOTPCREL(%rip)
#define __bionic_asm_align 16
-
-#endif /* !_AMD64_ASM_H_ */
diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py
index 46affb7..124dd72 100755
--- a/libc/tools/gensyscalls.py
+++ b/libc/tools/gensyscalls.py
@@ -118,16 +118,16 @@
mips_call = syscall_stub_header + """\
.set noreorder
- .cpload t9
- li v0, %(__NR_name)s
+ .cpload $t9
+ li $v0, %(__NR_name)s
syscall
- bnez a3, 1f
- move a0, v0
- j ra
+ bnez $a3, 1f
+ move $a0, $v0
+ j $ra
nop
1:
- la t9,__set_errno_internal
- j t9
+ la $t9,__set_errno_internal
+ j $t9
nop
.set reorder
END(%(func)s)
diff --git a/libc/versioner-dependencies/arm/arch-arm b/libc/versioner-dependencies/arm/arch-arm
deleted file mode 120000
index cc94225..0000000
--- a/libc/versioner-dependencies/arm/arch-arm
+++ /dev/null
@@ -1 +0,0 @@
-../../arch-arm/include/
\ No newline at end of file
diff --git a/libc/versioner-dependencies/arm64/arch-arm64 b/libc/versioner-dependencies/arm64/arch-arm64
deleted file mode 120000
index 2d9128a..0000000
--- a/libc/versioner-dependencies/arm64/arch-arm64
+++ /dev/null
@@ -1 +0,0 @@
-../../arch-arm64/include/
\ No newline at end of file
diff --git a/libc/versioner-dependencies/mips/arch-mips b/libc/versioner-dependencies/mips/arch-mips
deleted file mode 120000
index 56ed021..0000000
--- a/libc/versioner-dependencies/mips/arch-mips
+++ /dev/null
@@ -1 +0,0 @@
-../../arch-mips/include/
\ No newline at end of file
diff --git a/libc/versioner-dependencies/mips64/arch-mips64 b/libc/versioner-dependencies/mips64/arch-mips64
deleted file mode 120000
index 4893b57..0000000
--- a/libc/versioner-dependencies/mips64/arch-mips64
+++ /dev/null
@@ -1 +0,0 @@
-../../arch-mips64/include/
\ No newline at end of file
diff --git a/libc/versioner-dependencies/x86/arch-x86 b/libc/versioner-dependencies/x86/arch-x86
deleted file mode 120000
index 6426384..0000000
--- a/libc/versioner-dependencies/x86/arch-x86
+++ /dev/null
@@ -1 +0,0 @@
-../../arch-x86/include/
\ No newline at end of file
diff --git a/libc/versioner-dependencies/x86_64/arch-x86_64 b/libc/versioner-dependencies/x86_64/arch-x86_64
deleted file mode 120000
index 684d74e..0000000
--- a/libc/versioner-dependencies/x86_64/arch-x86_64
+++ /dev/null
@@ -1 +0,0 @@
-../../arch-x86_64/include/
\ No newline at end of file