From f96905ff8f97fc5557571f424e43bfd39051cf0b Mon Sep 17 00:00:00 2001 From: marcan Date: Sun, 25 Jan 2009 04:03:00 +0100 Subject: [PATCH] Add mem2 unprotect --- memory.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/memory.c b/memory.c index 5a7c4c4..65cb2c6 100644 --- a/memory.c +++ b/memory.c @@ -245,7 +245,7 @@ void mem_setswap(int enable) #define AP_RWUSER 0xC00 // from, to, size: units of 1MB -void map_section(u16 from, u16 to, u16 size, u32 attributes) +void map_section(u32 from, u32 to, u32 size, u32 attributes) { attributes |= SECTION; while(size--) { @@ -263,6 +263,10 @@ void mem_initialize(void) _dc_inval(); _tlb_inval(); + gecko_printf("MEM: unprotecting memory\n"); + + mem_protect(0,NULL,NULL); + gecko_printf("MEM: mapping sections\n"); memset32(__page_table, 0, 16384);