]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
SRAM patcher: add SRAM virtual address patcher
authorPaul Walmsley <paul@pwsan.com>
Wed, 14 Nov 2007 08:30:11 +0000 (01:30 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 16 Nov 2007 22:30:44 +0000 (14:30 -0800)
commit5c1b46c63777a52641012952c802f959463a1f7a
tree40b1057ff4b1ca7846b928ec9057b2302650611e
parent0f52aa9d8d232164b11ec8e2b7820eb2bf078536
SRAM patcher: add SRAM virtual address patcher

Add omap_sram_patch_va(), which patches a virtual address into SRAM
code at runtime.  This will be used in a future patch series to implement
part of multiboot support for OMAP2/3.

If CONFIG_OMAP_DEBUG_SRAM_PATCH is defined (the default), the code
will be very careful to ensure that the target location to patch is
valid.  It will only overwrite a location if the location contains a
32-bit magic number, defined as SRAM_VA_MAGIC.  Also, defining DEBUG
at the top of the file and enabling CONFIG_DEBUG_LL will log patch
locations and data via printk.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/Kconfig
arch/arm/plat-omap/sram.c
include/asm-arm/arch-omap/sram.h
include/linux/poison.h