Newer
Older
# Initial process execs /init.
#include "syscall.h"
#include "traps.h"
# exec(init, argv)
movl $SYS_exec, %eax
int $T_SYSCALL
# for(;;) exit();
exit:
movl $SYS_exit, %eax
int $T_SYSCALL
jmp exit
# Initial process execs /init.
#include "syscall.h"
#include "traps.h"
# exec(init, argv)
movl $SYS_exec, %eax
int $T_SYSCALL
# for(;;) exit();
exit:
movl $SYS_exit, %eax
int $T_SYSCALL
jmp exit