cleanup previous ancast header

This commit is contained in:
rw-r-r-0644 2021-05-30 20:11:26 +02:00
parent 332c25237b
commit ef5565ada8
3 changed files with 9 additions and 0 deletions

View File

@ -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)
{

View File

@ -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

View File

@ -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;