Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (35 sloc) 0.439 kb
a8223b3 @singpolyma Mark assembly functions as such
authored
1 .type fork, %function
3ae1426 @singpolyma Part 4, the actual syscall
authored
2 .global fork
3 fork:
4 push {r7}
5 mov r7, #0x1
6 svc 0
b44adba @singpolyma Part 3, SVC Entry
authored
7 bx lr
a8223b3 @singpolyma Mark assembly functions as such
authored
8 .type getpid, %function
43a43fa @singpolyma Part 6, getpid
authored
9 .global getpid
10 getpid:
11 push {r7}
12 mov r7, #0x2
13 svc 0
14 bx lr
a8223b3 @singpolyma Mark assembly functions as such
authored
15 .type write, %function
f874dd2 @singpolyma Part 6, Reading and writing
authored
16 .global write
17 write:
18 push {r7}
19 mov r7, #0x3
20 svc 0
21 bx lr
a8223b3 @singpolyma Mark assembly functions as such
authored
22 .type read, %function
f874dd2 @singpolyma Part 6, Reading and writing
authored
23 .global read
24 read:
25 push {r7}
26 mov r7, #0x4
27 svc 0
28 bx lr
a8223b3 @singpolyma Mark assembly functions as such
authored
29 .type interrupt_wait, %function
876a9d0 @singpolyma Part 7, Generic Interrupts
authored
30 .global interrupt_wait
31 interrupt_wait:
32 push {r7}
33 mov r7, #0x5
34 svc 0
35 bx lr
Something went wrong with that request. Please try again.