blob: fb3b7eb5ad0002a9cfef1dd43c3841c4bbc58f16 [file] [log] [blame]
Chris Dearman50432122014-02-05 16:59:23 -08001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughes9abbbdc2014-02-19 14:54:31 -08003#include <private/bionic_asm.h>
Chris Dearman50432122014-02-05 16:59:23 -08004
Elliott Hughes9abbbdc2014-02-19 14:54:31 -08005ENTRY(truncate)
Chris Dearman50432122014-02-05 16:59:23 -08006 .set push
7 .set noreorder
8 li v0, __NR_truncate
9 syscall
10 bnez a3, 1f
11 move a0, v0
12 j ra
13 nop
141:
15 move t0, ra
16 bal 2f
17 nop
182:
19 .cpsetup ra, t1, 2b
Elliott Hughes011e1112014-09-08 15:25:01 -070020 LA t9,__set_errno_internal
Chris Dearman50432122014-02-05 16:59:23 -080021 .cpreturn
22 j t9
23 move ra, t0
24 .set pop
Elliott Hughes9abbbdc2014-02-19 14:54:31 -080025END(truncate)
Chris Dearman50432122014-02-05 16:59:23 -080026
Elliott Hughes986f9062014-02-18 16:42:36 -080027 .globl truncate64
28 .equ truncate64, truncate