From 1a56e44032495a40f08053a39f78358c2fe1b87b Mon Sep 17 00:00:00 2001 From: Yu Chen Date: Sun, 3 Jul 2022 10:20:52 +0800 Subject: [PATCH] update guide:ch3:exercise --- guide/source/chapter3/5exercise.rst | 51 ++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/guide/source/chapter3/5exercise.rst b/guide/source/chapter3/5exercise.rst index 329c151..5b0e6b8 100644 --- a/guide/source/chapter3/5exercise.rst +++ b/guide/source/chapter3/5exercise.rst @@ -68,9 +68,58 @@ ch3 中,我们的系统已经能够支持多个任务分时轮流运行,我 你需要在编译时指定 ``BASE=0`` 控制框架仅编译实验测例(在 os 目录执行 ``make run BASE=0``), 或指定 ``BASE=2`` 控制框架同时编译基础测例和实验测例。 + .. note:: - 你的实现只需且必须通过测例,建议读者感到困惑时先检查测例。 + **测试方式** + + 你的实现只需且必须通过测例,建议读者感到困惑时先检查测例 + + 如果实现正确,可在项目仓库的根目录下执行 ``make test3`` ,应该看到如显示输出: + + .. code-block:: console + + $ cd YOUR_LAB1_DIR + $ make test3 + ...... + [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 + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] found + [PASS] not found + + Test passed63518: 15/15 + Report for lab1 found. + - 提交你的修改