From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Tue, 17 Jan 2012 19:47:24 +0000 Subject: OMAP3 L2/outer cache enabled in kernel (after being disabled by uBoot)? In-Reply-To: <20120117162720.GG11475@arm.com> References: <20120116131329.GA928@n2100.arm.linux.org.uk> <20120117121138.GC11475@arm.com> <4F15692D.4070100@ti.com> <20120117133918.GE11475@arm.com> <20120117162720.GG11475@arm.com> Message-ID: <20120117194724.GI16726@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Jan 17, 2012 at 04:27:21PM +0000, Catalin Marinas wrote: > Anyway, the first step is this API provided by the secure firmware. > Since such API may need to be called before the MMU is initialised, > Linux would need to have knowledge of the platform type early on. Having > some platform hook (asm macro) to call early on wouldn't work with the > single zImage configuration. Stack space is not an issue as we already > have one for ARMv7 for D-cache flushing (XIP kernels would work but they > aren't that many). It _is_ a problem. How much stack space would these undefined platform specific functions require? 16 words? 32 words? A page? Where does this memory come from? The .data section, or are we going to stuff it into what is supposed to be the read-only text section?