aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/machine/config.ld
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-09-03 11:53:15 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-05 16:02:49 +0100
commit4f69fb67ee229c7b59ced5db64142b527d74ce7b (patch)
treed9aab519f0caa6086368c297d9849bbf7e4589b0 /arch/riscv/machine/config.ld
parente94cc18273810ce9cc44d80608042c16eae4e6e4 (diff)
downloadfarga-4f69fb67ee229c7b59ced5db64142b527d74ce7b.tar.gz
farga-4f69fb67ee229c7b59ced5db64142b527d74ce7b.zip
Provide an improved example on early boot stage
This also implied a renaming arch/riscv/bios -> arch/riscv/machine. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'arch/riscv/machine/config.ld')
-rw-r--r--arch/riscv/machine/config.ld10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/riscv/machine/config.ld b/arch/riscv/machine/config.ld
new file mode 100644
index 0000000..7d9bbf5
--- /dev/null
+++ b/arch/riscv/machine/config.ld
@@ -0,0 +1,10 @@
+MEMORY {
+ dram_space (rwx) : ORIGIN = 0x80000000, LENGTH = 1024
+}
+
+SECTIONS {
+ .text : {
+ *(.text.bios)
+ *(.text)
+ } > dram_space
+}