aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorInochi Amaoto <inochiama@outlook.com>2024-02-23 16:18:15 +0800
committerAnup Patel <anup@brainfault.org>2024-02-24 16:28:42 +0530
commit96a35db63af01977aea403b10ca80a77e101f7e4 (patch)
tree09eb4fc7564ba9c316ee0e00838ff9b710d47da6 /docs
parent2cff7f350f146b72fed1b9bd29f3a72b94eed020 (diff)
downloadopensbi-96a35db63af01977aea403b10ca80a77e101f7e4.zip
opensbi-96a35db63af01977aea403b10ca80a77e101f7e4.tar.gz
opensbi-96a35db63af01977aea403b10ca80a77e101f7e4.tar.bz2
docs/firmware: document new options for jump and payload firmwares
Adding relocatable address brings new configuration options for jump and payload firmwares. Describe these new options in documentation. Signed-off-by: Inochi Amaoto <inochiama@outlook.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/firmware/fw_jump.md17
-rw-r--r--docs/firmware/fw_payload.md5
2 files changed, 19 insertions, 3 deletions
diff --git a/docs/firmware/fw_jump.md b/docs/firmware/fw_jump.md
index 3e883fa..2ee6b29 100644
--- a/docs/firmware/fw_jump.md
+++ b/docs/firmware/fw_jump.md
@@ -31,9 +31,14 @@ follows:
* **FW_JUMP_ADDR** - Address of the entry point of the booting stage to be
executed following OpenSBI firmware. This address generally corresponds
- exactly to the address where this next booting stage was loaded. This is a
- mandatory parameter. Compilation errors will result from not defining this
- address.
+ exactly to the address where this next booting stage was loaded.
+ At least one of *FW_JUMP_ADDR* and *FW_JUMP_OFFSET* (see below) should be
+ defined. Compilation errors will result from not defining one of them.
+
+* **FW_JUMP_OFFSET** - Address offset from the *FW_TEXT_START* where the
+ entry point of the next booting stage is located. This offset is used as
+ relocatable address of the next booting stage entry point. If *FW_JUMP_ADDR*
+ is also defined, the firmware will prefer *FW_JUMP_ADDR*.
* **FW_JUMP_FDT_ADDR** - Address where the *flattened device tree (FDT file)*
passed by the prior booting stage will be placed in memory before executing
@@ -57,6 +62,12 @@ follows:
echo fdt overlaps kernel, increase FW_JUMP_FDT_ADDR
```
+* **FW_JUMP_FDT_OFFSET** - Address offset from the *FW_TEXT_START* where
+ the FDT will be passed to the next booting stage. This offset is used
+ as relocatable address of the FDT passed to the next booting stage. If
+ *FW_JUMP_FDT_ADDR* is also defined, the firmware will prefer
+ *FW_JUMP_FDT_ADDR*.
+
*FW_JUMP* Example
-----------------
diff --git a/docs/firmware/fw_payload.md b/docs/firmware/fw_payload.md
index 113604a..a67fc50 100644
--- a/docs/firmware/fw_payload.md
+++ b/docs/firmware/fw_payload.md
@@ -62,6 +62,11 @@ file. The parameters currently defined are as follows:
firmware will pass the FDT address passed by the previous booting stage
to the next booting stage.
+* **FW_PAYLOAD_FDT_OFFSET** - Address offset from the *FW_TEXT_START* where
+ the FDT will be passed to the next booting stage. This offset is used as
+ relocatable address of the FDT passed to the next booting stage. If
+ *FW_PAYLOAD_FDT_ADDR* is also defined, the firmware will prefer *FW_PAYLOAD_FDT_ADDR*.
+
*FW_PAYLOAD* Example
--------------------