| # Initial process execs /init. | |
| # This code runs in user space. | |
| #include "syscall.h" | |
| #include "traps.h" | |
| # exec(init, argv) | |
| .globl start | |
| start: | |
| pushl $argv | |
| pushl $init | |
| pushl $0 // where caller pc would be | |
| movl $SYS_exec, %eax | |
| int $T_SYSCALL | |
| # for(;;) exit(); | |
| exit: | |
| movl $SYS_exit, %eax | |
| int $T_SYSCALL | |
| jmp exit | |
| # char init[] = "/init\0"; | |
| init: | |
| .string "/init\0" | |
| # char *argv[] = { init, 0 }; | |
| .p2align 2 | |
| argv: | |
| .long init | |
| .long 0 | |
Xet Storage Details
- Size:
- 455 Bytes
- Xet hash:
- b6ba563ba6f80cdbea81feeeb8fa092f84513acca93c4d519abe212893802b1e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.