blob: fbff651722e28b2c0f9c97f325b53ecfafbaabd8 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughes5c2772f2013-03-21 22:15:06 -07003#include <asm/unistd.h>
Elliott Hugheseae27dc2014-02-19 12:20:00 -08004#include <machine/asm.h>
5#include <machine/regdef.h>
Raghu Gandham1fa0d842012-01-27 17:51:42 -08006 .text
Elliott Hughes17a8b0d2013-03-21 15:43:53 -07007 .globl wait4
Raghu Gandham1fa0d842012-01-27 17:51:42 -08008 .align 4
Elliott Hughes17a8b0d2013-03-21 15:43:53 -07009 .ent wait4
Raghu Gandham1fa0d842012-01-27 17:51:42 -080010
Elliott Hughes17a8b0d2013-03-21 15:43:53 -070011wait4:
Raghu Gandham1fa0d842012-01-27 17:51:42 -080012 .set noreorder
Elliott Hugheseae27dc2014-02-19 12:20:00 -080013 .cpload t9
14 li v0, __NR_wait4
Raghu Gandham1fa0d842012-01-27 17:51:42 -080015 syscall
Elliott Hugheseae27dc2014-02-19 12:20:00 -080016 bnez a3, 1f
17 move a0, v0
18 j ra
Raghu Gandham1fa0d842012-01-27 17:51:42 -080019 nop
201:
Elliott Hugheseae27dc2014-02-19 12:20:00 -080021 la t9,__set_errno
22 j t9
Raghu Gandham1fa0d842012-01-27 17:51:42 -080023 nop
24 .set reorder
Elliott Hughes17a8b0d2013-03-21 15:43:53 -070025 .end wait4