author | Rocky Zhang <zhangyan.hit@gmail.com> | 2011-10-03 13:11:37 (GMT) |
---|---|---|
committer | Rocky Zhang <zhangyan.hit@gmail.com> | 2011-10-03 13:11:37 (GMT) |
commit | 8f997dac8939f7f02aff244365f0d75043f4e49b (patch) | |
tree | 5a7e35675bc5f9f0e81080fdda3ca13d680e0ee8 | |
parent | 258ba0cc3b2fb2be15c79ecafc8786de85a9fd85 (diff) | |
download | busybox-8f997dac8939f7f02aff244365f0d75043f4e49b.zip busybox-8f997dac8939f7f02aff244365f0d75043f4e49b.tar.gz busybox-8f997dac8939f7f02aff244365f0d75043f4e49b.tar.bz2 |
Added MIPS syscalls for busybox
Change-Id: Ib39aa099d4f3bbc694adbf495dae969705027f52
-rw-r--r-- | Android.mk | 10 | ||||
-rw-r--r-- | android/libc/arch-mips/syscalls/adjtimex.S | 22 | ||||
-rw-r--r-- | android/libc/arch-mips/syscalls/getsid.S | 22 | ||||
-rw-r--r-- | android/libc/arch-mips/syscalls/stime.S | 22 | ||||
-rw-r--r-- | android/libc/arch-mips/syscalls/swapoff.S | 22 | ||||
-rw-r--r-- | android/libc/arch-mips/syscalls/swapon.S | 22 | ||||
-rw-r--r-- | android/libc/arch-mips/syscalls/sysinfo.S | 22 |
7 files changed, 142 insertions, 0 deletions
@@ -53,6 +53,16 @@ ifeq ($(TARGET_ARCH),arm) android/libc/arch-arm/syscalls/sysinfo.S endif +ifeq ($(TARGET_ARCH),mips) + BUSYBOX_SRC_FILES += \ + android/libc/arch-mips/syscalls/adjtimex.S \ + android/libc/arch-mips/syscalls/getsid.S \ + android/libc/arch-mips/syscalls/stime.S \ + android/libc/arch-mips/syscalls/swapon.S \ + android/libc/arch-mips/syscalls/swapoff.S \ + android/libc/arch-mips/syscalls/sysinfo.S +endif + BUSYBOX_C_INCLUDES = \ $(LOCAL_PATH)/include-$(BUSYBOX_CONFIG) \ $(LOCAL_PATH)/include $(LOCAL_PATH)/libbb \ diff --git a/android/libc/arch-mips/syscalls/adjtimex.S b/android/libc/arch-mips/syscalls/adjtimex.S new file mode 100644 index 0000000..1af7b24 --- a/dev/null +++ b/android/libc/arch-mips/syscalls/adjtimex.S @@ -0,0 +1,22 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + .text + .globl adjtimex + .align 4 + .ent adjtimex + +adjtimex: + .set noreorder + .cpload $t9 + li $v0, (4000+124) + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end adjtimex diff --git a/android/libc/arch-mips/syscalls/getsid.S b/android/libc/arch-mips/syscalls/getsid.S new file mode 100644 index 0000000..f61dee5 --- a/dev/null +++ b/android/libc/arch-mips/syscalls/getsid.S @@ -0,0 +1,22 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + .text + .globl getsid + .align 4 + .ent getsid + +getsid: + .set noreorder + .cpload $t9 + li $v0, (4000+151) + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end getsid diff --git a/android/libc/arch-mips/syscalls/stime.S b/android/libc/arch-mips/syscalls/stime.S new file mode 100644 index 0000000..e640283 --- a/dev/null +++ b/android/libc/arch-mips/syscalls/stime.S @@ -0,0 +1,22 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + .text + .globl stime + .align 4 + .ent stime + +stime: + .set noreorder + .cpload $t9 + li $v0, (4000+25) + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end stime diff --git a/android/libc/arch-mips/syscalls/swapoff.S b/android/libc/arch-mips/syscalls/swapoff.S new file mode 100644 index 0000000..45e9ddb --- a/dev/null +++ b/android/libc/arch-mips/syscalls/swapoff.S @@ -0,0 +1,22 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + .text + .globl swapoff + .align 4 + .ent swapoff + +swapoff: + .set noreorder + .cpload $t9 + li $v0, (4000+115) + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end swapoff diff --git a/android/libc/arch-mips/syscalls/swapon.S b/android/libc/arch-mips/syscalls/swapon.S new file mode 100644 index 0000000..a2c27ef --- a/dev/null +++ b/android/libc/arch-mips/syscalls/swapon.S @@ -0,0 +1,22 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + .text + .globl swapon + .align 4 + .ent swapon + +swapon: + .set noreorder + .cpload $t9 + li $v0, (4000+87) + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end swapon diff --git a/android/libc/arch-mips/syscalls/sysinfo.S b/android/libc/arch-mips/syscalls/sysinfo.S new file mode 100644 index 0000000..3f63504 --- a/dev/null +++ b/android/libc/arch-mips/syscalls/sysinfo.S @@ -0,0 +1,22 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + .text + .globl sysinfo + .align 4 + .ent sysinfo + +sysinfo: + .set noreorder + .cpload $t9 + li $v0, (4000+116) + syscall + bnez $a3, 1f + move $a0, $v0 + j $ra + nop +1: + la $t9,__set_errno + j $t9 + nop + .set reorder + .end sysinfo |