Skip to content

Commit ae6dff2

Browse files
Merge pull request #20 from ZhengLongBing/main
fix(rt): remove "Prepare data segment" handling
1 parent c063173 commit ae6dff2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

allwinner-rt/src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,6 @@ unsafe extern "C" fn start() -> ! {
8282
addi t1, t1, 8
8383
j 3b
8484
3: ",
85-
// Prepare data segment
86-
" la t3, sidata
87-
la t4, sdata
88-
la t5, edata
89-
3: bgeu t4, t5, 2f
90-
ld t6, 0(t3)
91-
sd t6, 0(t4)
92-
addi t3, t3, 8
93-
addi t4, t4, 8
94-
j 3b",
95-
"2: ",
9685
// Start Rust main function
9786
"call {main}",
9887
// Platform halt if main function returns

0 commit comments

Comments
 (0)