summaryrefslogtreecommitdiff
path: root/other/shellkit/mips_irix/exit.s
blob: aef7d016a66c808676091e3c5d8a2fdea34db37e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* MIPS/IRIX PIC exit code
 *
 * -sc.
 */

#include <sgidefs.h>
#include <sys/regdef.h>
#include <sys/asm.h>
#include <sys.s>
#include <sys/syscall.h>

	.section .text

	.globl	cbegin
	.globl	cend

cbegin:
	.set	noreorder
	.set	nomacro

	/* _exit (0) */
	slti	a0, zero, -1
	li	v0, SYS_exit	/* 0x03e9 */
	syscall
	li	t8, 0x7350

	.end	cbegin
cend: