diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-07 11:09:30 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-27 10:35:02 -0400 |
commit | 7243f6b343a88fa8f9929345edc80a81d1f6a3fe (patch) | |
tree | 1197004fab63951d625d05823a5079cbd50e1e9f /firmware/target/mips/ingenic_x1000/crt0.S | |
parent | bcbb5a8b00770ac0d2794e59876d8187ccfea6af (diff) | |
download | rockbox-7243f6b343a88fa8f9929345edc80a81d1f6a3fe.tar.gz rockbox-7243f6b343a88fa8f9929345edc80a81d1f6a3fe.zip |
x1000: Add multiboot support
Enables multiboot for the FiiO M3K, Shanling Q1, and Eros Q native port.
Note this requires an up-to-date Rockbox _and_ bootloader.
Usage instructions will (eventually) be found on the wiki:
https://www.rockbox.org/wiki/MultibootBootloader
Change-Id: Ia2da1ad6ef611e499d2fbafa93838387bc1023ba
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/crt0.S')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/crt0.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/crt0.S b/firmware/target/mips/ingenic_x1000/crt0.S index fbac12861d..d079b01e2a 100644 --- a/firmware/target/mips/ingenic_x1000/crt0.S +++ b/firmware/target/mips/ingenic_x1000/crt0.S | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include "config.h" | 22 | #include "config.h" |
23 | #include "mips.h" | 23 | #include "mips.h" |
24 | #include "bootdata.h" | ||
24 | 25 | ||
25 | .text | 26 | .text |
26 | .extern main | 27 | .extern main |
@@ -48,6 +49,11 @@ _header: | |||
48 | .word _loadaddress | 49 | .word _loadaddress |
49 | .ascii "ENDH" /* end of header structure */ | 50 | .ascii "ENDH" /* end of header structure */ |
50 | 51 | ||
52 | #ifndef BOOTLOADER | ||
53 | /* Multiboot support header; this is not part of the above header. */ | ||
54 | put_boot_data_here | ||
55 | #endif | ||
56 | |||
51 | _realstart: | 57 | _realstart: |
52 | /* Copy IRAM from BSS to low memory. */ | 58 | /* Copy IRAM from BSS to low memory. */ |
53 | la a0, _iramcopy | 59 | la a0, _iramcopy |