随笔分类 -  6.S081

摘要:Speed up system calls kernel.h/proc.h,在 struct proc 中添加 struct usyscall *usyscall kernel.h/proc.c,在 proc_pagetable() 中添加 USYSCALL 的 PTE kernel.h/proc. 阅读全文

posted @ 2023-04-18 19:02 lyc2002 阅读(22) 评论(0) 推荐(0) 编辑

摘要:System call tracing 修改 Makefile user 在 user/user.h 中添加系统调用声明 在 user/usys.pl 中添加桩程序,生成 user/usys.S 即真实的系统调用桩程序 kernel 在 kernel/syscall.h 中添加系统调用号 在 ker 阅读全文

posted @ 2023-04-16 18:07 lyc2002 阅读(22) 评论(0) 推荐(0) 编辑

摘要:Boot xv6 启动 xv6:make qemu 打印进程信息:ctrl-p 退出:ctrl-a x sleep 在 user 下创建编写 sleep.c,修改 Makefile pingpong 在 user 下创建编写 pingpong.c,修改 Makefile #include "kern 阅读全文

posted @ 2023-04-14 19:09 lyc2002 阅读(27) 评论(0) 推荐(0) 编辑