From: Tom Rini Date: Fri, 4 Nov 2016 14:04:04 -0400 Subject: [U-Boot] [PATCH 1/2] rpi: save firmware provided boot param for later use In-Reply-To: <1478109973-15322-2-git-send-email-cschieli@gmail.com> References: <1478109973-15322-1-git-send-email-cschieli@gmail.com> <1478109973-15322-2-git-send-email-cschieli@gmail.com> Message-ID: <20161104180404.GY23095@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 Wed, Nov 02, 2016 at 07:06:12PM +0100, C?dric Schieli wrote: > At U-Boot entry point, the r2 register holds the address of the > firmware provided boot param. Let's save it for further processing. > > Signed-off-by: C?dric Schieli [snip] > diff --git a/include/configs/rpi.h b/include/configs/rpi.h > index 8d4ad5d..2d1e619 100644 > --- a/include/configs/rpi.h > +++ b/include/configs/rpi.h > @@ -208,5 +208,9 @@ > ENV_MEM_LAYOUT_SETTINGS \ > BOOTENV > > +#ifndef __ASSEMBLY__ > +/* Firmware provided boot param */ > +extern const void *fw_boot_param; > +#endif This is not a good place to hold this. Looking at 2/2, just put this into the board file and comment above it that it's declared in lowlevel_init.S. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: