We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a949316 commit f823dd9Copy full SHA for f823dd9
riscv-rt/link.x
@@ -55,6 +55,7 @@ SECTIONS
55
KEEP(*(.init));
56
KEEP(*(.init.rust));
57
. = ALIGN(4);
58
+ *(.abort)
59
*(.trap);
60
*(.trap.rust);
61
riscv-rt/src/asm.rs
@@ -92,11 +92,7 @@ _abs_start:
92
"csrr t2, mhartid",
93
"lui t0, %hi(_max_hart_id)
94
add t0, t0, %lo(_max_hart_id)
95
- // bgtu t2, t0, abort
96
- bleu t2, t0, not_abort
97
- la t0, abort
98
- jr t0
99
- not_abort:
+ bgtu t2, t0, abort
100
101
// Allocate stacks
102
la sp, _stack_start
0 commit comments