Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions link.lds
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ SECTIONS
*(.text)
PROVIDE(_text_end = .);
}
.rodata : {
*(.rodata)
*(.rodata.*)
}
. = ALIGN(8);
.data : {
PROVIDE(_data_start = .);
Expand Down
7 changes: 5 additions & 2 deletions start.S
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#include "riscv_asm.h"
#include "riscv_encoding.h"

.global _start
.type _start, @function

.global _load_start

#define BOOT_STATUS_RELOCATE_DONE 1

entry:
_start:
/*
* Clear L1 cache & BTB & BHT ...
*/
Expand All @@ -31,7 +34,7 @@ entry:
*/
lla t0, _load_start
REG_L t2, 0(t0)
lla t1, entry
lla t1, _start
REG_S t1, 0(t0)

/*
Expand Down
Loading