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