os_kernel_lab/related_info/labX/lab4_X.md
2015-04-24 19:10:43 +08:00

21 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

challenge1: 实现精简版内核线程管理与切换(分有中断和没中两种实现)
===================================================
要求:
(step1) 去掉页表的管理,中断,分配内存功能只保留段机制内核线程切换print功能。看看代码规模会小到什么程度。
(step2) 去掉页表的管理只保留段机制中断分配内存功能内核线程切换print功能。看看代码规模会小到什么程度。
状态:基本完成
目前去掉了页表的管理和内存分配,需要分配的内存通过编译时就定义好的数组代替,没有考虑回收的问题。
但是进一步裁剪中断处理遇到了问题kdebug中包含了trap.h因为打印调试信息时需要trapframe结构。
https://github.com/chyyuu/ucore_lab/tree/lab4_X/labcodes_answer/lab4_result
完成人:
杨海宇 清华大学热能工程系 yhy13@mails.tsinghua.edu.cn
challenge2: 实现内核线程的按需分页demanding page机制
===================================================
状态:未完成 有小组在询问,可能在做
完成人: