mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 10:26:25 +04:00
deploy: 319028f66e
This commit is contained in:
parent
b3d408f0c0
commit
c36784be50
@ -120,7 +120,7 @@
|
|||||||
<span class="kw">fn</span> <span class="ident">edata</span>(); <span class="comment">// end addr of data segment</span>
|
<span class="kw">fn</span> <span class="ident">edata</span>(); <span class="comment">// end addr of data segment</span>
|
||||||
<span class="kw">fn</span> <span class="ident">sbss</span>(); <span class="comment">// start addr of BSS segment</span>
|
<span class="kw">fn</span> <span class="ident">sbss</span>(); <span class="comment">// start addr of BSS segment</span>
|
||||||
<span class="kw">fn</span> <span class="ident">ebss</span>(); <span class="comment">// end addr of BSS segment</span>
|
<span class="kw">fn</span> <span class="ident">ebss</span>(); <span class="comment">// end addr of BSS segment</span>
|
||||||
<span class="kw">fn</span> <span class="ident">boot_stack</span>(); <span class="comment">// stack bottom</span>
|
<span class="kw">fn</span> <span class="ident">boot_stack_lower_bound</span>(); <span class="comment">// stack lower bound</span>
|
||||||
<span class="kw">fn</span> <span class="ident">boot_stack_top</span>(); <span class="comment">// stack top</span>
|
<span class="kw">fn</span> <span class="ident">boot_stack_top</span>(); <span class="comment">// stack top</span>
|
||||||
}
|
}
|
||||||
<span class="ident">clear_bss</span>();
|
<span class="ident">clear_bss</span>();
|
||||||
@ -129,8 +129,8 @@
|
|||||||
<span class="macro">println!</span>(<span class="string">".rodata [{:#x}, {:#x})"</span>, <span class="ident">srodata</span> <span class="kw">as</span> <span class="ident">usize</span>, <span class="ident">erodata</span> <span class="kw">as</span> <span class="ident">usize</span>);
|
<span class="macro">println!</span>(<span class="string">".rodata [{:#x}, {:#x})"</span>, <span class="ident">srodata</span> <span class="kw">as</span> <span class="ident">usize</span>, <span class="ident">erodata</span> <span class="kw">as</span> <span class="ident">usize</span>);
|
||||||
<span class="macro">println!</span>(<span class="string">".data [{:#x}, {:#x})"</span>, <span class="ident">sdata</span> <span class="kw">as</span> <span class="ident">usize</span>, <span class="ident">edata</span> <span class="kw">as</span> <span class="ident">usize</span>);
|
<span class="macro">println!</span>(<span class="string">".data [{:#x}, {:#x})"</span>, <span class="ident">sdata</span> <span class="kw">as</span> <span class="ident">usize</span>, <span class="ident">edata</span> <span class="kw">as</span> <span class="ident">usize</span>);
|
||||||
<span class="macro">println!</span>(
|
<span class="macro">println!</span>(
|
||||||
<span class="string">"boot_stack [{:#x}, {:#x})"</span>,
|
<span class="string">"boot_stack top=bottom={:#x}, lower_bound={:#x}"</span>,
|
||||||
<span class="ident">boot_stack</span> <span class="kw">as</span> <span class="ident">usize</span>, <span class="ident">boot_stack_top</span> <span class="kw">as</span> <span class="ident">usize</span>
|
<span class="ident">boot_stack_top</span> <span class="kw">as</span> <span class="ident">usize</span>, <span class="ident">boot_stack_lower_bound</span> <span class="kw">as</span> <span class="ident">usize</span>
|
||||||
);
|
);
|
||||||
<span class="macro">println!</span>(<span class="string">".bss [{:#x}, {:#x})"</span>, <span class="ident">sbss</span> <span class="kw">as</span> <span class="ident">usize</span>, <span class="ident">ebss</span> <span class="kw">as</span> <span class="ident">usize</span>);
|
<span class="macro">println!</span>(<span class="string">".bss [{:#x}, {:#x})"</span>, <span class="ident">sbss</span> <span class="kw">as</span> <span class="ident">usize</span>, <span class="ident">ebss</span> <span class="kw">as</span> <span class="ident">usize</span>);
|
||||||
|
|
||||||
@ -139,9 +139,10 @@
|
|||||||
|
|
||||||
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">feature</span> <span class="op">=</span> <span class="string">"board_qemu"</span>)]</span>
|
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">feature</span> <span class="op">=</span> <span class="string">"board_qemu"</span>)]</span>
|
||||||
<span class="ident"><span class="kw">crate</span>::board::QEMU_EXIT_HANDLE</span>.<span class="ident">exit_success</span>(); <span class="comment">// CI autotest success</span>
|
<span class="ident"><span class="kw">crate</span>::board::QEMU_EXIT_HANDLE</span>.<span class="ident">exit_success</span>(); <span class="comment">// CI autotest success</span>
|
||||||
<span class="comment">//crate::board::QEMU_EXIT_HANDLE.exit_failure(); // CI autoest failed</span>
|
<span class="comment">//crate::board::QEMU_EXIT_HANDLE.exit_failure(); // CI autoest failed</span>
|
||||||
|
|
||||||
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">feature</span> <span class="op">=</span> <span class="string">"board_k210"</span>)]</span>
|
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">feature</span> <span class="op">=</span> <span class="string">"board_k210"</span>)]</span>
|
||||||
<span class="macro">panic!</span>(<span class="string">"Unreachable in rust_main!"</span>);
|
<span class="macro">panic!</span>(<span class="string">"Unreachable in rust_main!"</span>);
|
||||||
}</code></pre></div>
|
}
|
||||||
|
</code></pre></div>
|
||||||
</section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="os" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (f6f9d5e73 2022-08-04)" ></div></body></html>
|
</section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="os" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (f6f9d5e73 2022-08-04)" ></div></body></html>
|
Loading…
Reference in New Issue
Block a user