Add mem2 unprotect

This commit is contained in:
marcan 2009-01-25 04:03:00 +01:00 committed by bushing
parent 51fd48f066
commit f96905ff8f

View File

@ -245,7 +245,7 @@ void mem_setswap(int enable)
#define AP_RWUSER 0xC00 #define AP_RWUSER 0xC00
// from, to, size: units of 1MB // 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; attributes |= SECTION;
while(size--) { while(size--) {
@ -263,6 +263,10 @@ void mem_initialize(void)
_dc_inval(); _dc_inval();
_tlb_inval(); _tlb_inval();
gecko_printf("MEM: unprotecting memory\n");
mem_protect(0,NULL,NULL);
gecko_printf("MEM: mapping sections\n"); gecko_printf("MEM: mapping sections\n");
memset32(__page_table, 0, 16384); memset32(__page_table, 0, 16384);