Mercurial > hg > Members > menikon > CbC_xv6
annotate src/initcode.S @ 86:765449889623
fix translate interface routine
author | anatofuz |
---|---|
date | Tue, 15 Oct 2019 20:03:48 +0900 |
parents | 83c23a36980d |
children |
rev | line source |
---|---|
0 | 1 # Initial process execs /init. |
2 | |
3 #include "syscall.h" | |
4 | |
5 .globl start | |
6 | |
7 # exec(init, argv) | |
8 start: | |
9 LDR r1, =init | |
10 LDR r2, =argv | |
11 MOV r0, #SYS_exec | |
12 SWI 0x00 | |
13 | |
14 exit: | |
15 MOV r0, #SYS_exit | |
16 SWI 0x00 | |
17 B exit | |
18 | |
19 # char init[] = "/init\0"; | |
20 init: | |
21 .string "/init\0" | |
22 | |
23 # char *argv[] = { init, 0 }; | |
24 .p2align 2 | |
25 argv: | |
26 .word init | |
27 .word 0 | |
28 |