forked from embedded2014/rtenv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
syscall.s
77 lines (76 loc) · 771 Bytes
/
syscall.s
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.syntax unified
.cpu cortex-m3
.fpu softvfp
.thumb
.global fork
fork:
push {r7}
mov r7, #0x1
svc 0
nop
pop {r7}
bx lr
.global getpid
getpid:
push {r7}
mov r7, #0x2
svc 0
nop
pop {r7}
bx lr
.global write
write:
push {r7}
mov r7, #0x3
svc 0
nop
pop {r7}
bx lr
.global read
read:
push {r7}
mov r7, #0x4
svc 0
nop
pop {r7}
bx lr
.global interrupt_wait
interrupt_wait:
push {r7}
mov r7, #0x5
svc 0
nop
pop {r7}
bx lr
.global getpriority
getpriority:
push {r7}
mov r7, #0x6
svc 0
nop
pop {r7}
bx lr
.global setpriority
setpriority:
push {r7}
mov r7, #0x7
svc 0
nop
pop {r7}
bx lr
.global mknod
mknod:
push {r7}
mov r7, #0x8
svc 0
nop
pop {r7}
bx lr
.global sleep
sleep:
push {r7}
mov r7, #0x9
svc 0
nop
pop {r7}
bx lr