summaryrefslogtreecommitdiff
path: root/firmware/export/linuxboot.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-03-16 15:39:18 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-03-24 23:40:07 +0000
commit6a6c6083fa69575334282d0c8f5dd688a2282188 (patch)
tree17723690dd5ad1ee55f3a2c1651a138b30fb46a1 /firmware/export/linuxboot.h
parent44fbb1a59363a464d637d93656e9b29858451550 (diff)
downloadrockbox-6a6c6083fa69575334282d0c8f5dd688a2282188.tar.gz
rockbox-6a6c6083fa69575334282d0c8f5dd688a2282188.zip
x1000: bootloader: fix Linux self-extracting kernel boot
Basically, there's longstanding bug in Linux with self-extracting kernels on MIPS which just happened to manifest now on the M3K as a hang on boot. The fix is applied to the M3K and Q1 since they both use this type of kernel image. Change-Id: I17d2bad6eebd677cd6d2e0bf146450c71fcf1229
Diffstat (limited to 'firmware/export/linuxboot.h')
-rw-r--r--firmware/export/linuxboot.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/export/linuxboot.h b/firmware/export/linuxboot.h
index 7dbc213012..de6f24bf57 100644
--- a/firmware/export/linuxboot.h
+++ b/firmware/export/linuxboot.h
@@ -186,4 +186,7 @@ int uimage_load(struct uimage_header* uh, size_t* out_size,
186 */ 186 */
187ssize_t uimage_fd_reader(void* buf, size_t size, void* ctx); 187ssize_t uimage_fd_reader(void* buf, size_t size, void* ctx);
188 188
189/* helper for patching broken self-extracting kernels on MIPS */
190uint32_t mips_linux_stub_get_entry(void** code_start, size_t code_size);
191
189#endif /* __LINUXBOOT_H__ */ 192#endif /* __LINUXBOOT_H__ */