02 2023 档案
摘要:21年好像没有懒分配,所以20年的lab6就成了21年的lab5 # cow实现 主要思想是增加一个标志位,一个引用标记。在中断处理时,进行懒复制,在write出错时再进行实际分配处理。 首先改uvmcopy,改原来标志位,将新的页也映射之前页的物理地址。 //kernel/riscv.h //增加
阅读全文
摘要:RISC-V assembly Which registers contain arguments to functions? For example, which register holds 13 in main's call to printf? a0-a7 a2 Where is the c
阅读全文