Kernel/armv7 - Fixed error messages having invalid addresses
[tpg/acess2.git] / Kernel / arch / armv7 / mm_virt.c
index 03c8cc7..53531d3 100644 (file)
@@ -545,7 +545,11 @@ tPAddr MM_Clone(void)
        tmp_map = new_lvl1_1;
        for( i = 0; i < 0x800-4; i ++ )
        {
-//             Log("i = %i", i);
+               // HACK! Ignore the original identity mapping
+               if( i == 0 && Threads_GetTID() == 0 ) {
+                       tmp_map[0] = 0;
+                       continue;
+               }
                if( i == 0x400 )
                        tmp_map = &new_lvl1_2[-0x400];
                switch( cur[i] & 3 )

UCC git Repository :: git.ucc.asn.au