Thread (12 messages) 12 messages, 5 authors, 2023-06-26

Re: [PATCH v3 2/3] Documentation: riscv: Add early boot document

From: Alexandre Ghiti <hidden>
Date: 2023-06-25 08:31:21
Also in: linux-riscv, lkml

Hi Jonathan,

On Fri, Jun 23, 2023 at 3:44 PM Jonathan Corbet [off-list ref] wrote:
Alexandre Ghiti [off-list ref] writes:
quoted
This document describes the constraints and requirements of the early
boot process in a RISC-V kernel.
Some quick comments...
quoted
+The RISC-V kernel expects:
+
+  * `$a0` to contain the hartid of the current core.
+  * `$a1` to contain the address of the devicetree in memory.
Single `backtick` quotes are probably not doing what you want.  If
you're looking for it to render in a monospace font, use ``double``
quotes instead.  But I'd also encourage you to keep that to a minimum to
avoid overly cluttering the plain-text document.
Indeed, the rendering is better with double quotes, thanks.
[...]
quoted
+Virtual mapping installation
+----------------------------
+
+The installation of the virtual mapping is done in 2 steps in the RISC-V kernel:
+
+1. :c:func:`setup_vm` installs a temporary kernel mapping in
Please don't use :c:func:.  If you just write setup_vm(), all the right
magic will happen.
The magic indeed happens with virt_to_phys()/phys_to_virt(), but not
with setup_vm(): is there something we should do when declaring those
functions?
quoted
+   :c:var:`early_pg_dir` which allows discovery of the system memory. Only the
We also really just don't use :c:var: at all.  Kerneldoc doesn't
currently know about global variables...perhaps it should but that's not
the way of things now.
Ok, noted, I remove those "c:XXX".

Thanks
Thanks,

jon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help