Print this page
unix: enable caches in locore
The loader should really be as simple as possible to be as small as
possible.  It should configure the machine so that unix can make certain
assumptions but it should leave more complex initialization to unix.

*** 33,43 **** * o Determine the set of mappings we need to add for the following: * - unix * - boot_archive * - atags * o Enable unaligned access ! * o Enable the caches + virtual memory * * There are several important constraints that we have here: * * o We cannot use any .data! Several loaders that come before us are broken * and only provide us with the ability to map our .text and potentially our --- 33,43 ---- * o Determine the set of mappings we need to add for the following: * - unix * - boot_archive * - atags * o Enable unaligned access ! * o Enable virtual memory * * There are several important constraints that we have here: * * o We cannot use any .data! Several loaders that come before us are broken * and only provide us with the ability to map our .text and potentially our
*** 701,713 **** FAKELOAD_DPRINTF("see you on the other side\n"); fakeload_mmu_enable(); FAKELOAD_DPRINTF("why helo thar\n"); - /* Renable caches */ - armv6_dcache_enable(); - armv6_icache_enable(); - /* we should never come back */ fakeload_exec(ident, ident2, chain, unix_start); fakeload_panic("hit the end of the world\n"); } --- 701,709 ----