u-boot-2016/cpu
Shinya Kuribayashi e1390801a3 [MIPS] Request for the 'mips_cache_lock()' removal
The initial intension of having mips_cache_lock() was to use the cache
as memory for temporary stack use so that a C environment can be set up
as early as possible.

But now mips_cache_lock() follow lowlevel_init(). We've already have the
real memory initilaized at this point, therefore we could/should use it.
No reason to lock at all.

Other problems:

Cache locking is not consistent across MIPS implementaions. Some imple-
mentations don't support locking at all. The style of locking varies -
some support per line locking, others per way, etc. Some parts use bits
in status registers instead of cache ops. Current mips_cache_lock() is
not necessarily general-purpose.

And this is worthy of special mention; once U-Boot/MIPS locks the lines,
they are never get unlocked, so the code relies on whatever gets loaded
after U-Boot to re-initialize the cache and clear the locks. We're sup-
posed to have CFG_INIT_RAM_LOCK and unlock_ram_in_cache() implemented,
but leave the situation as it is for a long time.

For these reasons, I proposed the removal of mips_cache_lock() from the
global start-up code.

This patch adds CFG_INIT_RAM_LOCK_MIPS to make existing users aware that
*things have changed*. If he wants the same behavior as before, he needs
to have CFG_INIT_RAM_LOCK_MIPS in his config file.

If we don't have any regression report through several releases, then
we'll remove codes entirely.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Acked-by: Andrew Dyer <amdyer@gmail.com>
2008-03-25 11:39:29 +09:00
..
74xx_7xx PPC: Use r2 instead of r29 as global data pointer 2008-02-14 22:43:22 +01:00
arm720t ARM: cleanup duplicated exception handlingcode 2008-02-14 09:38:21 +00:00
arm920t s3c24x0: Fix unused variable 'i' in function 'serial_init_dev' 2008-02-17 16:04:23 +01:00
arm925t ARM: cleanup duplicated exception handlingcode 2008-02-14 09:38:21 +00:00
arm926ejs Coding style cleanup. Prepare v1.3.2-rc2 release candidate 2008-02-24 15:21:36 +01:00
arm946es ARM: cleanup duplicated exception handlingcode 2008-02-14 09:38:21 +00:00
arm1136 Merge branch '080208_dupint' of git://linux-arm.org/u-boot-armdev 2008-02-15 13:00:54 +00:00
arm_intcm ARM: cleanup duplicated exception handlingcode 2008-02-14 09:38:21 +00:00
at32ap AVR32: Make SDRAM refresh rate configurable 2008-02-05 12:14:27 +01:00
bf533 scrub unused symbols 2008-02-04 19:26:57 -05:00
bf537 scrub unused symbols 2008-02-04 19:26:57 -05:00
bf561 scrub unused symbols 2008-02-04 19:26:57 -05:00
i386 cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
ixp ARM: cleanup duplicated exception handlingcode 2008-02-14 09:38:21 +00:00
lh7a40x ARM: cleanup duplicated exception handlingcode 2008-02-14 09:38:21 +00:00
mcf52x2 cpu/mcf52x2/config.mk: Make needlessly deffered expansions immediate. 2008-02-23 09:47:51 +01:00
mcf523x ColdFire: Update cpu flag for 4.2-xx compiler 2007-11-07 17:51:00 -06:00
mcf532x ColdFire: Add M5373EVB platform support - 2 2008-01-17 14:59:40 -06:00
mcf547x_8x ColdFire: Add MCF547x_8x cpu arch 2008-01-17 14:59:41 -06:00
mcf5227x ColdFire: Add MCF5227x cpu and MCF52277EVB support-2 2008-01-17 14:59:41 -06:00
mcf5445x ColdFire: PCI and misc updates for MCF5445x 2008-01-17 14:59:40 -06:00
microblaze [PATCH] Add support for design without interrupt controller 2007-09-24 00:21:19 +02:00
mips [MIPS] Request for the 'mips_cache_lock()' removal 2008-03-25 11:39:29 +09:00
mpc5xx PPC: Use r2 instead of r29 as global data pointer 2008-02-14 22:43:22 +01:00
mpc5xxx PPC: Use r2 instead of r29 as global data pointer 2008-02-14 22:43:22 +01:00
mpc8xx PPC: Use r2 instead of r29 as global data pointer 2008-02-14 22:43:22 +01:00
mpc83xx PPC: Use r2 instead of r29 as global data pointer 2008-02-14 22:43:22 +01:00
mpc85xx 85xx: Don't icbi when unlocking the cache 2008-02-27 16:30:47 -06:00
mpc86xx 86xx: Convert sbc8641d to use libfdt. 2008-02-18 14:01:56 -06:00
mpc512x MPC5121e ADS PCI support take 3 2008-03-02 21:44:59 +01:00
mpc824x PPC: Use r2 instead of r29 as global data pointer 2008-02-14 22:43:22 +01:00
mpc8220 PPC: Use r2 instead of r29 as global data pointer 2008-02-14 22:43:22 +01:00
mpc8260 PPC: Use r2 instead of r29 as global data pointer 2008-02-14 22:43:22 +01:00
nios Minor alignment of output, 2nd try. 2007-08-12 21:34:34 +02:00
nios2 cpu/[7a-ln-z]*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 18:57:22 -05:00
ppc4xx ppc4xx: Add Canyonlands NAND booting support 2008-03-15 07:28:05 +01:00
pxa pxa: fix assignment from incompatible pointer type 2008-02-17 16:03:56 +01:00
s3c44b0 LWMON5: POST RTC fix 2008-03-20 21:48:46 +01:00
sa1100 ARM: cleanup duplicated exception handlingcode 2008-02-14 09:38:21 +00:00
sh3 sh: Add support SH3 and SH7720 2008-01-15 23:30:40 +09:00
sh4 Fix coding style issues; update CHANGELOG. 2007-12-27 01:52:50 +01:00