Xv6 编写用户程序
如何在 Xv6(xv6-riscv)中添加自己编写的用户程序,比如实现一个 helloworld
?
1. 编写代码
在 xv6-riscv/user/
里新建一个 helloworld.c
,写一个 hello world:
#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"
int
如何在 Xv6(xv6-riscv)中添加自己编写的用户程序,比如实现一个 helloworld
?
在 xv6-riscv/user/
里新建一个 helloworld.c
,写一个 hello world:
#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"
int