rust-based-os-comp2022
rust-based-os-comp2022 copied to clipboard
[2022开源操作系统训练营](https://learningos.github.io/rust-based-os-comp2022/)
请问该页 “2022春季OS课资源(normal)” 内容中的课程视频访问密码可以分享下吗? 例如,[20220221第一次课视频](https://meeting.tencent.com/v2/cloud-record/share?id=5fcc9ef3-cb43-48f6-9d33-f75f640e8c38&from=3)
[Update QA.md] just update two links
- `qemu-system-riscv64 --version` ```shell QEMU emulator version 7.0.0 Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers ``` ```shell Finished release [optimized] target(s) in 2.05s timeout --foreground 300s qemu-system-riscv64...
1. 把时间修改成了正确的时间范围:11行、25行。 2. 由于这次训练营第二阶段有变化,将原有的Linux apps syscall超链接改成了本次训练营第二阶段的文档:23行。 3. 由于训练营第一阶段任务相对减少,Rust语言基础部分预计时间比RISC-V还长一倍,选择将其设置为第一阶段的Step1 RISC-V和操作系统学习设为Step2。 4. “通过要求”和“参考资料”的重新整理。Rust语言基础部分已经单独列出了参考资料,而末尾节的参考资料又都是RISC-V与操作系统内容,于是个人选择将其移至Step2(新组织后的Step2)内容中。通过要求中描述了Rust编程能力与系统和指令集熟悉程度,应单独列出。
test in user/src/bin should be ch7b rather than ch6b
## 问题描述 在 os4-ref 下执行 make run 之后运行卡死,还有一个 panic ## 电脑环境 MacBook M1 Pro ## 截图
## 问题描述 MacBook M1 环境下在本地根目录执行 make test,脚本输出 FAIL,但是在 GitHub 上用 CI 测试都显示 PASS 通过了。见下面两张图:   在 os 对应文件夹下执行 `make run BASE=2` 得到正确结果(通过 GitHub CI...
# 实现 SV39 多级页表机制(下) - Open-Source-OS-Training-Camp-2022 文档 [https://learningos.github.io/rust-based-os-comp2022/chapter4/4sv39-implementation-2.html](https://learningos.github.io/rust-based-os-comp2022/chapter4/4sv39-implementation-2.html)
**Describe the question** 为什么 os8 的 exit_current_and_run_next 要先释放所有线程的 `TaskUserRes` 呢? os8 的 task/mod.rs 里: ```rust // debug!("deallocate user res"); // deallocate user res (including tid/trap_cx/ustack) of all threads // it...
**Describe the bug** lab2 中rcore/os4/src/config.rs, ```pub const MEMORY_END: usize = 0x80800000; ``` 疑似内存大小不足,导致TaskControlBlock初始化内存分配失败。 ```let frame = frame_alloc().unwrap(); ``` [此处](https://github.com/LearningOS/rust-based-os-comp2022/blob/main/os4-ref/src/mm/page_table.rs#L91) panic 将默认默认参数调大可以解决该问题。 **To Reproduce** make test4 **Expected behavior** A clear and...