This commit is contained in:
wyfcyx 2022-11-29 01:14:40 +00:00
parent b3d408f0c0
commit c36784be50

View File

@ -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">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">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="ident">clear_bss</span>();
@ -129,8 +129,8 @@
<span class="macro">println!</span>(<span class="string">&quot;.rodata [{:#x}, {:#x})&quot;</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">&quot;.data [{:#x}, {:#x})&quot;</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">&quot;boot_stack [{:#x}, {:#x})&quot;</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="string">&quot;boot_stack top=bottom={:#x}, lower_bound={:#x}&quot;</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">&quot;.bss [{:#x}, {:#x})&quot;</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">&quot;board_qemu&quot;</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="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">&quot;board_k210&quot;</span>)]</span>
<span class="macro">panic!</span>(<span class="string">&quot;Unreachable in rust_main!&quot;</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>