forked from len0rd/rockbox
Add boot data support to rockbox.
Bootdata is a special location in the Firmware marked by a magic header The bootloader is able to copy information to the firmware by locating this struct and passing data to the firmware when it is loaded but before it is actually executed Data is verified by a crc of the bootdata Change-Id: Ib3d78cc0c3a9d47d6fe73be4747a11b7ad6f0a9e
This commit is contained in:
parent
60e5cd7276
commit
41869a6534
11 changed files with 190 additions and 2 deletions
|
|
@ -21,6 +21,10 @@
|
|||
#include "config.h"
|
||||
#include "cpu.h"
|
||||
|
||||
#if defined(HAVE_BOOTDATA) && !defined(BOOTLOADER)
|
||||
#include "bootdata.h"
|
||||
#endif
|
||||
|
||||
.section .vectors,"ax",%progbits
|
||||
.code 32
|
||||
/* most handlers are in DRAM which is too far away for a relative jump */
|
||||
|
|
@ -165,6 +169,11 @@ remap:
|
|||
1:
|
||||
b 1b
|
||||
|
||||
#if defined(HAVE_BOOTDATA) && !defined(BOOTLOADER)
|
||||
/* boot data structure */
|
||||
put_boot_data_here
|
||||
#endif
|
||||
|
||||
/* Cache-align interrupt stacks */
|
||||
.balign 32
|
||||
/* 256 words of IRQ stack */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue