aboutsummaryrefslogtreecommitdiff
path: root/firmware/fw_dynamic.elf.ldS
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-04-29 11:55:19 +0530
committerAnup Patel <anup@brainfault.org>2019-05-10 12:26:22 +0530
commitbae54f764570f3fa5c592f313b45352d9f6f1d8a (patch)
treecca8ebe4dd67ceb9e4ffa5c1e32e6027241a41dc /firmware/fw_dynamic.elf.ldS
parent25472de89ee3b98cd466f69d1f419f943dcbcb0f (diff)
downloadopensbi-bae54f764570f3fa5c592f313b45352d9f6f1d8a.zip
opensbi-bae54f764570f3fa5c592f313b45352d9f6f1d8a.tar.gz
opensbi-bae54f764570f3fa5c592f313b45352d9f6f1d8a.tar.bz2
firmware: Add fw_dynamic firmware
This patch provides first-cut implementation of fw_dynamic firmware. As compared to fw_jump and fw_payload, the fw_dynamic obtains next address, next mode and OpenSBI options from struct fw_dynamic_info. The previous booting stage can create struct fw_dynamic_info in memory and pass address of struct fw_dynamic_info in 'a2' register. Also, the struct fw_dynamic_info has versioning as well so changes to the struct fw_dynamic_info can be done in a backward compatible manner. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'firmware/fw_dynamic.elf.ldS')
-rw-r--r--firmware/fw_dynamic.elf.ldS16
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/fw_dynamic.elf.ldS b/firmware/fw_dynamic.elf.ldS
new file mode 100644
index 0000000..7ee0787
--- /dev/null
+++ b/firmware/fw_dynamic.elf.ldS
@@ -0,0 +1,16 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2019 Western Digital Corporation or its affiliates.
+ *
+ * Authors:
+ * Anup Patel <anup.patel@wdc.com>
+ */
+
+OUTPUT_ARCH(riscv)
+ENTRY(_start)
+
+SECTIONS
+{
+ #include "fw_base.ldS"
+}