[U-Boot] [PATCH] api: Export API structure address as an environment variable
Stanislav Galabov
sgalabov at gmail.com
Tue Mar 1 13:19:04 CET 2016
This patch makes the U-Boot api export its structure address as an environment
variable, so it can be used to directly hint FreeBSD's loader of api's location.
The relevant FreeBSD loader change is currently under review at:
https://reviews.freebsd.org/D5492
Signed-off-by: Stanislav Galabov <sgalabov at gmail.com>
---
api/api.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/api/api.c b/api/api.c
index ae1160c..92dff3e 100644
--- a/api/api.c
+++ b/api/api.c
@@ -661,6 +661,7 @@ void api_init(void)
return;
}
+ setenv_hex("api_address", (unsigned long)sig);
debugf("API sig @ 0x%lX\n", (unsigned long)sig);
memcpy(sig->magic, API_SIG_MAGIC, 8);
sig->version = API_SIG_VERSION;
--
1.9.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160301/979e5a4f/attachment.sig>
More information about the U-Boot
mailing list