Rename kboot.[ch] to bootloader.[ch] to improve clarity.
This commit is contained in:
12
shared/bootloader.c
Normal file
12
shared/bootloader.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "bootloader.h"
|
||||
|
||||
void JumpToKboot(void) {
|
||||
uint32_t runBootloaderAddress;
|
||||
void (*runBootloader)(void *arg);
|
||||
|
||||
// Read the function address from the ROM API tree.
|
||||
runBootloaderAddress = **(uint32_t **)(0x1c00001c);
|
||||
runBootloader = (void (*)(void * arg))runBootloaderAddress;
|
||||
|
||||
runBootloader(NULL);
|
||||
}
|
||||
Reference in New Issue
Block a user