Commit Graph

8 Commits

Author SHA1 Message Date
Andre Richter
c0da8ab1b7
Remove confusing statement 2021-03-24 00:00:21 +01:00
Andre Richter
2432c0d283
Revert to assembly boot code
It is too risky to rely on the compiler to not insert any operations using the
stack.

Having a stack-setting call in Rust using the cortex-a crate as the first action
in a Rust-only _start() function does not work if you're subsequently using the
stack, because the compiler often inserts the operations to make room on the
stack to prepare a function call BEFORE the call to set the stack, which crashes
the boot process.

Hence, keep on using a small piece of assembly boot code throughout.
2021-03-20 09:41:43 +01:00
Andre Richter
223989adb9
Overhaul linker script 2021-03-16 22:36:06 +01:00
Andre Richter
44bb3f8942
Update copyright year 2021-01-01 11:28:32 +01:00
Andre Richter
098e19ecc4
Fix zero-sized bss handling 2020-11-01 21:32:53 +01:00
Andre Richter
27a1d10cc3
Remove UB in linker script symbol <-> Rust handover 2020-10-05 23:47:18 +02:00
Andre Richter
37b9d1435e
Move anything wrt linker symbols to bsp::memory
Also, some rewording of data types.
2020-09-28 21:45:38 +02:00
Andre Richter
e8d787f627
Refactor tutorial 02 2020-03-28 13:27:23 +01:00