mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-30 23:24:19 +01:00
Add mem2 unprotect
This commit is contained in:
parent
51fd48f066
commit
f96905ff8f
6
memory.c
6
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);
|
||||
|
Loading…
Reference in New Issue
Block a user