随笔分类 -  mit 6.828

摘要:exercise 8: 首先实现sys_env_set_pgfault_upcall // kernl/syscall.c static int sys_env_set_pgfault_upcall(envid_t envid, void* func) { // LAB 4: Your code h 阅读全文
posted @ 2020-12-10 22:08 落鹤 阅读(142) 评论(0) 推荐(0)
摘要:Exercise 1: // Where to start the next region. Initially, this is the // beginning of the MMIO region. Because this is static, its // value will be pr 阅读全文
posted @ 2020-12-10 19:54 落鹤 阅读(184) 评论(0) 推荐(0)
摘要:Part A exercise 1: 为kern/trap.c中的每个时钟中断添加对time_tick的调用。实现sys_time_msec并将其添加到kern/syscall.c中的syscall中,以便用户空间能够访问时间。在kern/trap.c中添加分支 注意不要傻fufu的重新添加一个分支 阅读全文
posted @ 2020-12-02 18:33 落鹤 阅读(223) 评论(0) 推荐(0)
摘要:exercise1: 在文件inc/mmu.h中定义了 #define FL_IOPL_MASK 0x00003000 // I/O Privilege Level bitmask x86处理器使用EFLAGS寄存器中的IOPL位来确定是否允许保护模式代码执行特殊的设备I/O指令,比如IN和OUT指 阅读全文
posted @ 2020-11-21 16:44 落鹤 阅读(485) 评论(0) 推荐(0)
摘要:exercise 13: 在inc/trap.h 给出了几种 hardware IRQ numbers #define IRQ_OFFSET 32 // IRQ 0 corresponds to int IRQ_OFFSET // Hardware IRQ numbers. We receive t 阅读全文
posted @ 2020-11-17 22:05 落鹤 阅读(233) 评论(0) 推荐(0)
摘要:【注:由于实验室的同学用的18年的课,我也就用的18年~~】 VMware workstation 15 微信公众号 软件安装管家 发送vmware Ubuntu 18.04.5 使用的是清华园的镜像 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-relea 阅读全文
posted @ 2020-10-08 22:13 落鹤 阅读(419) 评论(0) 推荐(0)