mirror of
https://github.com/isfshax/isfshax.git
synced 2024-11-16 00:25:05 +01:00
cleanup previous ancast header
This commit is contained in:
parent
332c25237b
commit
ef5565ada8
@ -23,6 +23,10 @@
|
||||
|
||||
#include "ancast.h"
|
||||
|
||||
void ancast_iop_clear(u8* buffer)
|
||||
{
|
||||
memset(&buffer[0], 0, 0x200);
|
||||
}
|
||||
|
||||
u32 ancast_iop_load(u8* buffer, size_t size)
|
||||
{
|
||||
|
@ -37,6 +37,7 @@ typedef struct {
|
||||
u32 ddr_init;
|
||||
} ios_header;
|
||||
|
||||
void ancast_iop_clear(u8* buffer);
|
||||
u32 ancast_iop_load(u8* buffer, size_t size);
|
||||
|
||||
#endif
|
||||
|
@ -40,6 +40,8 @@ u32 load_payload_sd(void)
|
||||
FIL file;
|
||||
u32 vector = 0;
|
||||
|
||||
ancast_iop_clear((u8*)ANCAST_ADDRESS_IOP);
|
||||
|
||||
sdcard_init();
|
||||
|
||||
res = f_mount(&fatfs, "0:", 1);
|
||||
@ -76,6 +78,8 @@ u32 load_payload_nand(void)
|
||||
int res;
|
||||
u32 vector = 0;
|
||||
|
||||
ancast_iop_clear((u8*)ANCAST_ADDRESS_IOP);
|
||||
|
||||
res = isfs_init();
|
||||
if (res)
|
||||
return vector;
|
||||
|
Loading…
Reference in New Issue
Block a user