access_util.h
621 Bytes
#include "ultra64.h"
#include "os_bb.h"
#include "bcp.h"
#define ISRAM_SIZE (INTERNAL_RAM_END - INTERNAL_RAM_START)
#define BSRAM_SIZE (BOOT_RAM_HI_END - BOOT_RAM_HI_START)
#define BROM_SIZE 16384
#define PASS 0
#define FAIL -1
static u32 testdata[64];
static char buf[512];
static int seed = 0x01234578;
static unsigned int myrand(){
seed = 0x343fd *seed + 0x269ec3;
return ((seed) & 0xffffffff);
}
void exitSecureMode();
int sram_write_test(u32 *data, u32 array_addr, int size);
int sram_read_test(u32 *data, u32 array_addr, int size);
int accChk (u32 addr, u32 rwbits, int expect_fail);
int checkAes();