feat(syscall): 添加syscall table的实现 (#1164)

* feat(syscall): 添加syscall table的实现

- 实现syscall table
- 为syscall table适配write/writev、read和readv系统调用

---------

Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
LoGin
2025-05-13 18:59:18 +08:00
committed by GitHub
parent 545bc2c346
commit b322121dd9
29 changed files with 874 additions and 227 deletions

View File

@ -8,14 +8,12 @@ CC=$(CROSS_COMPILE)gcc
.PHONY: all
all: main.c
# $(CC) -static -o init main.c
all: $(riscv_rust_init)
$(MAKE) -C riscv_rust_init ARCH=$(ARCH) install
.PHONY: install clean
install: all
$(MAKE) -C riscv_rust_init ARCH=$(ARCH) install
# mv init $(DADK_CURRENT_BUILD_DIR)/init
clean:

View File

@ -1,9 +0,0 @@
#include <stdio.h>
int main() {
while(1){
printf("\033[43;37mHello, World!\033[0m\n");
sleep(1);
}
return 0;
}

View File

@ -29,7 +29,7 @@ build-command = "make install"
# 安装相关信息
[install]
# 可选安装到DragonOS的路径
in-dragonos-path = "/bin"
in-dragonos-path = "/"
# 清除相关信息
[clean]
# (可选)清除命令