-ok I revert the thing about protection, we dont have proper mem1

things even anymore so its useless :P
This commit is contained in:
fix94.1 2012-05-15 22:34:57 +00:00
parent c00b684c99
commit fb7e26b7cf
2 changed files with 4 additions and 8 deletions

View File

@ -18,6 +18,9 @@ typedef void (*app_init)(void (*report)(const char *fmt, ...));
typedef void *(*app_final)();
typedef void (*app_entry)(void (**init)(void (*report)(const char *fmt, ...)), int (**main)(), void *(**final)());
/* Apploader pointers */
static u8 *appldr = (u8 *) 0x81200000;
/* Constants */
#define APPLDR_OFFSET 0x2440
@ -47,15 +50,11 @@ s32 Apploader_Run(entry_point *entry, u8 vidMode, GXRModeObj *vmode, bool vipatc
/* Calculate apploader length */
appldr_len = buffer[5] + buffer[6];
SYS_SetArena1Hi(APPLOADER_END);
/* Read apploader code */
ret = WDVD_Read(APPLOADER_START, appldr_len, APPLDR_OFFSET + 0x20);
ret = WDVD_Read(appldr, appldr_len, APPLDR_OFFSET + 0x20);
if (ret < 0)
return ret;
DCFlushRange(APPLOADER_START, appldr_len);
/* Set apploader entry function */
app_entry appldr_entry = (app_entry)buffer[4];

View File

@ -48,9 +48,6 @@ void MEM2_init(unsigned int mem2Size)
{
g_mem2gp.init(mem2Size);
g_mem2gp.clear();
/* Protect space reserved for apploader */
SYS_SetArena1Hi(APPLOADER_START);
}
void MEM2_cleanup(void)