diff options
Diffstat (limited to 'initcode.S')
-rw-r--r-- | initcode.S | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/initcode.S b/initcode.S deleted file mode 100644 index ca76972..0000000 --- a/initcode.S +++ /dev/null @@ -1,28 +0,0 @@ -# Initial process execs /init. -# This code runs in user space. - -#include "syscall.h" - -# exec(init, argv) -.globl start -start: - la a0, init - la a1, argv - li a7, SYS_exec - ecall - -# for(;;) exit(); -exit: - li a7, SYS_exit - ecall - jal exit - -# char init[] = "/init\0"; -init: - .string "/init\0" - -# char *argv[] = { init, 0 }; -.p2align 2 -argv: - .long init - .long 0 |