mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-05-11 00:39:34 +08:00
udpate chapter-[34568] exercise info
This commit is contained in:
@@ -66,6 +66,68 @@ tips:
|
||||
|
||||
TIPS:注意 port 参数的语义,它与内核定义的 MapPermission 有明显不同!
|
||||
|
||||
- 开发并通过所有测例
|
||||
|
||||
在 ``YOUR_LAB2_REPO_DIR`` 下进行编码(可学习参考 ``os4-ref/src`` 目录下的源代码,并在 ``os4/src`` 中完成编码),并进行编译测试。
|
||||
|
||||
.. note::
|
||||
|
||||
**测试方式**
|
||||
|
||||
你的实现只需且必须通过测例,建议读者感到困惑时先检查测例
|
||||
|
||||
如果实现正确,可在项目仓库的根目录下执行 ``make test4`` ,应该看到类似如下的显示输出:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ cd YOUR_LAB2_REPO_DIR
|
||||
$ make test4
|
||||
......
|
||||
[rustsbi] RustSBI version 0.2.2, adapting to RISC-V SBI v1.0.0
|
||||
.______ __ __ _______.___________. _______..______ __
|
||||
| _ \ | | | | / | | / || _ \ | |
|
||||
| |_) | | | | | | (----`---| |----`| (----`| |_) || |
|
||||
| / | | | | \ \ | | \ \ | _ < | |
|
||||
| |\ \----.| `--' |.----) | | | .----) | | |_) || |
|
||||
| _| `._____| \______/ |_______/ |__| |_______/ |______/ |__|
|
||||
[rustsbi] Implementation : RustSBI-QEMU Version 0.1.1
|
||||
[rustsbi] Platform Name : riscv-virtio,qemu
|
||||
[rustsbi] Platform SMP : 1
|
||||
[rustsbi] Platform Memory : 0x80000000..0x88000000
|
||||
[rustsbi] Boot HART : 0
|
||||
[rustsbi] Device Tree Region : 0x87000000..0x87000ef2
|
||||
[rustsbi] Firmware Address : 0x80000000
|
||||
[rustsbi] Supervisor Address : 0x80200000
|
||||
[rustsbi] pmp01: 0x00000000..0x80000000 (-wr)
|
||||
[rustsbi] pmp02: 0x80000000..0x80200000 (---)
|
||||
[rustsbi] pmp03: 0x80200000..0x88000000 (xwr)
|
||||
......
|
||||
[PASS] found <Hello, world from user mode program!>
|
||||
[PASS] found <Test power_3 OK29777!>
|
||||
[PASS] found <Test power_5 OK29777!>
|
||||
[PASS] found <Test power_7 OK29777!>
|
||||
[PASS] found <get_time OK29777! (\d+)>
|
||||
[PASS] found <Test sleep OK29777!>
|
||||
[PASS] found <current time_msec = (\d+)>
|
||||
[PASS] found <time_msec = (\d+) after sleeping (\d+) ticks, delta = (\d+)ms!>
|
||||
[PASS] found <Test sleep1 passed29777!>
|
||||
[PASS] found <Test write A OK29777!>
|
||||
[PASS] found <Test write B OK29777!>
|
||||
[PASS] found <Test write C OK29777!>
|
||||
[PASS] found <string from task info test>
|
||||
[PASS] found <Test task info OK29777!>
|
||||
[PASS] found <Test 04_1 OK29777!>
|
||||
[PASS] found <Test 04_4 test OK29777!>
|
||||
[PASS] found <Test 04_5 ummap OK29777!>
|
||||
[PASS] found <Test 04_6 ummap2 OK29777!>
|
||||
[PASS] not found <FAIL: T.T>
|
||||
[PASS] not found <Should cause error, Test 04_2 fail!>
|
||||
[PASS] not found <Should cause error, Test 04_3 fail!>
|
||||
|
||||
Test passed29777: 21/21
|
||||
Report for lab1 found.
|
||||
Report for lab2 found.
|
||||
|
||||
- 提交你的修改
|
||||
|
||||
- 如果是基于GitHub Classroom 开发, 在本地环境或在线codespaces环境下,执行 ``git push`` 命令,提交修改的代码到gitub进行CI自动评测。如果评测结果是 红色小叉 (位于repo的中上位置),可进一步点击红色小叉查找具体出错时的CI执行情况。
|
||||
|
||||
Reference in New Issue
Block a user