xv6-riscv-rust/user1.c

14 lines
96 B
C

void
fork()
{
asm("mov $1, %eax");
asm("int $48");
}
main()
{
fork();
while(1)
;
}