summaryrefslogtreecommitdiff
path: root/src/thread/sh/__unmapself_mmu.s
blob: 688087b80fefcb023c639178a63690165aa51594 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.text
.global __unmapself_sh_mmu
.hidden __unmapself_sh_mmu
.type   __unmapself_sh_mmu, @function
__unmapself_sh_mmu:
	mov   #91, r3  ! SYS_munmap
	trapa #31

	or    r0, r0
	or    r0, r0
	or    r0, r0
	or    r0, r0
	or    r0, r0

	mov   #1, r3   ! SYS_exit
	mov   #0, r4
	trapa #31

	or    r0, r0
	or    r0, r0
	or    r0, r0
	or    r0, r0
	or    r0, r0