We don't need to flush DCache when launching payloads.
Fixes a derp as well.
This commit is contained in:
@@ -85,7 +85,6 @@ void loadPayload(u32 pressed)
|
||||
|
||||
loaderAddress[1] = fileRead((void *)0x24F00000, path);
|
||||
|
||||
cleanInvalidateDCacheAndDMB(); //Ensure that all memory transfers have completed and that the data cache has been flushed
|
||||
((void (*)())loaderAddress)();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,5 @@ u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSize);
|
||||
- rebooting
|
||||
- powering down
|
||||
- setting the ARM11 entrypoint to execute a function
|
||||
- jumping to a payload (?)
|
||||
***/
|
||||
void cleanInvalidateDCacheAndDMB(void);
|
||||
@@ -36,7 +36,7 @@ static inline void invokeArm11Function(void (*func)())
|
||||
|
||||
*arm11Entry = (u32)func;
|
||||
while(*arm11Entry);
|
||||
*arm11Entry = (u32)arm11Stub;
|
||||
*arm11Entry = ARM11_STUB_ADDRESS;
|
||||
}
|
||||
|
||||
static const u32 brightness[4] = {0x5F, 0x4C, 0x39, 0x26};
|
||||
|
||||
Reference in New Issue
Block a user