From: Tom Rini Date: Fri, 8 Nov 2019 10:32:36 -0500 Subject: [U-Boot] [PATCH 1/3] Kconfig add config ERR_PTR_OFFSET In-Reply-To: <20191022192948.11080-2-simon.k.r.goldschmidt@gmail.com> References: <20191022192948.11080-1-simon.k.r.goldschmidt@gmail.com> <20191022192948.11080-2-simon.k.r.goldschmidt@gmail.com> Message-ID: <20191108153236.GC19317@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 Tue, Oct 22, 2019 at 09:29:46PM +0200, Simon Goldschmidt wrote: > Some U-Boot pointers have redundant information, so we can use a scheme > where we can return either an error code or a pointer with the same > return value. The default implementation just casts the pointer to a > number, however, this may fail on platforms where the end of the address > range is used for valid pointers (e.g. 0xffffff00 is a valid heap pointer > in socfpga SPL). For such platforms, this value provides an upper range > of those error pointer values - up to 'MAX_ERRNO' bytes below this value > must be unused/invalid addresses. > > Signed-off-by: Simon Goldschmidt Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: