# oskernel **Repository Path**: wangzhen0518/oskernel ## Basic Information - **Project Name**: oskernel - **Description**: 2022全国大学生计算机系统能力大赛 - 操作系统赛- 内核实现赛道,比赛作品 队伍:中国科学技术大学第叁队 后续不定期加以完善中 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-08-16 - **Last Updated**: 2023-09-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TOOL ## qemu-system-riscv64 can't install directly using apt in ubuntu 18 ## riscv64-unknown-elf- --with-abi=lp64 default veriosn is lpd64 I'm not sure if it is forced # RUN qemu.sh or result/hello.elf The usage of qemu is in qemu.sh # INFORMATION # Reference ## xv6 https://github.com/FrankZn/xv6-riscv-book-Chinese ## xv6 k210 https://github.com/HUST-OS/xv6-k210 ## ucore https://github.com/Liurunda/riscv64-ucore/tree/master https://nankai.gitboo.io/ucore-os-on-risc-v64/ # Header connection ## stdio.h ### ret_val int ### support type %d %p %x %s ### don't support type %% ### demo ```C int main(void) { char *ptr = "hello!"; int a = -10; int b = 8; printf("ptr = %s\n", ptr); printf("a = %d, base = 10\n", a); printf("a = %x, base = 16\n", a); printf("address:a = %p\n", &a); printf("b = %d, base = 10\n", b); printf("b = %x, base = 16\n", b); printf("address:b = %p\n", &b); } ``` # CMakeLists.txt can't use