From: Stanislav Galabov Date: Tue, 1 Mar 2016 12:19:04 +0000 (+0200) Subject: api: Export API structure address as an environment variable X-Git-Tag: v2016.03~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22aa61f707574dd569296f521fcfc46a05f51c48;p=u-boot api: Export API structure address as an environment variable 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 --- diff --git a/api/api.c b/api/api.c index c5f6edb83f..6b114f077f 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%08x\n", sig); memcpy(sig->magic, API_SIG_MAGIC, 8); sig->version = API_SIG_VERSION;