This commit is contained in:
chyyuu
2022-07-03 02:51:00 +00:00
parent ec4cdc784d
commit c8083d96d2
11 changed files with 441 additions and 12 deletions

View File

@@ -378,10 +378,62 @@ m 个元素。初始时,Work = Available ;结束向量 Finish,表示系统
</div>
<div class="section" id="id2">
<h3>实验要求<a class="headerlink" href="#id2" title="永久链接至标题"></a></h3>
<ul>
<ul class="simple">
<li><p><a class="reference external" href="https://github.com/LearningOS/rust-based-os-comp2022/tree/main/os8-ref">lab5(os8)参考框架:</a></p></li>
<li><p>实验目录在 <code class="docutils literal notranslate"><span class="pre">os8</span></code> 。</p></li>
<li><p>通过所有测例</p></li>
<li><p>开发并通过所有测例</p></li>
</ul>
<p>在 <code class="docutils literal notranslate"><span class="pre">YOUR_LAB5_REPO_DIR</span></code> 下进行编码(可学习参考 <code class="docutils literal notranslate"><span class="pre">os8-ref/src</span></code> 目录下的源代码,并在 <code class="docutils literal notranslate"><span class="pre">os8/src</span></code> 中完成编码),并进行编译测试。</p>
<div class="admonition note">
<p class="admonition-title">注解</p>
<p><strong>测试方式</strong></p>
<p>你的实现只需且必须通过测例,建议读者感到困惑时先检查测例</p>
<p>如果实现正确,可在项目仓库的根目录下执行 <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">test8</span></code> ,应该看到类似如下的显示输出:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span><span class="nb">cd</span> YOUR_LAB5_REPO_DIR
<span class="gp">$ </span>make test8
<span class="go">......</span>
<span class="go">[rustsbi] RustSBI version 0.2.2, adapting to RISC-V SBI v1.0.0</span>
<span class="go">.______ __ __ _______.___________. _______..______ __</span>
<span class="go">| _ \ | | | | / | | / || _ \ | |</span>
<span class="go">| |_) | | | | | | (----`---| |----`| (----`| |_) || |</span>
<span class="go">| / | | | | \ \ | | \ \ | _ &lt; | |</span>
<span class="go">| |\ \----.| `--' |.----) | | | .----) | | |_) || |</span>
<span class="go">| _| `._____| \______/ |_______/ |__| |_______/ |______/ |__|</span>
<span class="go">[rustsbi] Implementation : RustSBI-QEMU Version 0.1.1</span>
<span class="go">[rustsbi] Platform Name : riscv-virtio,qemu</span>
<span class="go">[rustsbi] Platform SMP : 1</span>
<span class="go">[rustsbi] Platform Memory : 0x80000000..0x88000000</span>
<span class="go">[rustsbi] Boot HART : 0</span>
<span class="go">[rustsbi] Device Tree Region : 0x87000000..0x87000ef2</span>
<span class="go">[rustsbi] Firmware Address : 0x80000000</span>
<span class="go">[rustsbi] Supervisor Address : 0x80200000</span>
<span class="go">[rustsbi] pmp01: 0x00000000..0x80000000 (-wr)</span>
<span class="go">[rustsbi] pmp02: 0x80000000..0x80200000 (---)</span>
<span class="go">[rustsbi] pmp03: 0x80200000..0x88000000 (xwr)</span>
<span class="go">......</span>
<span class="go">[PASS] found &lt;Hello, world from user mode program!&gt;</span>
<span class="go">[PASS] found &lt;Test power_3 OK60963!&gt;</span>
<span class="go">[PASS] found &lt;Test power_5 OK60963!&gt;</span>
<span class="go">......</span>
<span class="go">[PASS] found &lt;threads test passed60963!&gt;</span>
<span class="go">[PASS] found &lt;deadlock test mutex 1 OK60963!&gt;</span>
<span class="go">[PASS] found &lt;deadlock test semaphore 1 OK60963!&gt;</span>
<span class="go">[PASS] found &lt;deadlock test semaphore 2 OK60963!&gt;</span>
<span class="go">[PASS] found &lt;ch8 Usertests passed60963!&gt;</span>
<span class="go">[PASS] not found &lt;FAIL: T.T&gt;</span>
<span class="go">[PASS] not found &lt;Should cause error, Test 04_2 fail!&gt;</span>
<span class="go">[PASS] not found &lt;Should cause error, Test 04_3 fail!&gt;</span>
<span class="go">Test passed60963: 29/29</span>
<span class="go">Report for lab1 found.</span>
<span class="go">Report for lab2 found.</span>
<span class="go">Report for lab3 found.</span>
<span class="go">Report for lab4 found.</span>
<span class="go">Report for lab5 found.</span>
</pre></div>
</div>
</div>
<ul>
<li><p>提交你的修改</p>
<blockquote>
<div><ul class="simple">