summaryrefslogtreecommitdiff
path: root/src/internal/or1k/syscall.s
blob: 2ea0eb13d684ce6f4cbfd7d8a97e70578d8c342d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
.global __syscall
.type   __syscall,@function
__syscall:
	l.ori	r11, r3, 0
	l.lwz	r3, 0(r1)
	l.lwz	r4, 4(r1)
	l.lwz	r5, 8(r1)
	l.lwz	r6, 12(r1)
	l.lwz	r7, 16(r1)
	l.lwz	r8, 20(r1)
	l.sys	1
	l.jr	r9
	 l.nop