From: Paul Walmsley Date: Wed, 14 Nov 2007 08:30:11 +0000 (-0700) Subject: SRAM patcher: add SRAM virtual address patcher X-Git-Tag: v2.6.24-omap1~205 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c1b46c63777a52641012952c802f959463a1f7a;p=pandora-kernel.git 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 Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed