mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Explain the hack better
This commit is contained in:
parent
5b2c82b85e
commit
40e8795f3f
1 changed files with 3 additions and 0 deletions
|
|
@ -7,8 +7,11 @@ _start:
|
|||
sw ra,12(sp)
|
||||
jal ra, main
|
||||
#if 1
|
||||
// rust will interpret the "#if 1" and "#include" as comments and ignore
|
||||
// C, asm, zig will include the file below, which references a constant from uvm32_sys.h
|
||||
#include "non-rust-crt0-hack.S"
|
||||
#else
|
||||
// only rust will see this
|
||||
li a7, {IOREQ_HALT}
|
||||
#endif
|
||||
ecall
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue