From: Tom Rini Date: Wed, 11 Mar 2015 11:12:55 -0400 Subject: [U-Boot] [PATCH v5 13/14] tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0 In-Reply-To: <1752b259f9d7005d10aea8211afc12d0b70a3188.1425884424.git.jan.kiszka@siemens.com> References: <1752b259f9d7005d10aea8211afc12d0b70a3188.1425884424.git.jan.kiszka@siemens.com> Message-ID: <20150311151255.GC32541@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Mar 09, 2015 at 08:00:23AM +0100, Jan Kiszka wrote: > From: Ian Campbell > > These registers can be used to prevent non-secure world from accessing a > megabyte aligned region of RAM, use them to protect the u-boot secure monitor > code. > > At first I tried to do this from s_init(), however this inexplicably causes > u-boot's networking (e.g. DHCP) to fail, while networking under Linux was fine. > > So instead I have added a new weak arch function protect_secure_section() > called from relocate_secure_section() and reserved the region there. This is > better overall since it defers the reservation until after the sec vs. non-sec > decision (which can be influenced by an envvar) has been made when booting the > os. > > Signed-off-by: Ian Campbell > [Jan: tiny style adjustment] > Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: