NanoPayload

Change of stage2/cpu.c

143:d323b7b05424
stage2/cpu.c
     1.1 --- a/stage2/cpu.c	Sat Feb 27 18:34:50 2016 +0100
     1.2 +++ b/stage2/cpu.c	Sat Feb 27 19:20:32 2016 +0100
     1.3 @@ -177,7 +177,7 @@
     1.4  	/* Wire in the kseg0 mapping and the page tables. */
     1.5  
     1.6  	asm volatile(
     1.7 -		"li $t1, 2\n"		/* index of first randomly-replaced entry */
     1.8 +		"li $t1, 1\n"		/* index of first randomly-replaced entry */
     1.9  		"mtc0 $t1, $6\n"	/* CP0_WIRED */
    1.10  		"mtc0 $zero, $4\n"	/* CP0_CONTEXT */
    1.11  		"mtc0 $zero, $10\n"	/* CP0_ENTRYHI */
    1.12 @@ -186,10 +186,6 @@
    1.13  	/* Map the code, making it globally available. */
    1.14  
    1.15  	map_page_index(0x80000000, 0x00000000, 16 * 1024 * 1024, 0x1f, 0, 0);
    1.16 -
    1.17 -	/* Map the page tables. */
    1.18 -
    1.19 -	map_page_index(page_table_start, page_table_start, 64 * 1024, 0x1f, 0, 1);
    1.20  }
    1.21  
    1.22  void map_page_index(u32 virtual, u32 physical, u32 pagesize, u8 flags, u8 asid, u32 index)