[Add] add xv6-rv

This commit is contained in:
bLueriVerLHR
2023-07-20 17:48:37 +08:00
parent 32e948a593
commit f683f3bed1
77 changed files with 11814 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
// Create a zombie process that
// must be reparented at exit.
#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"
int
main(void)
{
if(fork() > 0)
sleep(5); // Let child exit before parent.
exit(0);
}