summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorStanislav Galabov <sgalabov@gmail.com>2016-03-01 14:19:04 +0200
committerTom Rini <trini@konsulko.com>2016-03-08 15:01:45 -0500
commit22aa61f707574dd569296f521fcfc46a05f51c48 (patch)
treef10c14b607f363b7dd685099951b9f6455eb483d /api
parent3f53e619f0d72db7b5812313c8f290051c7bfbee (diff)
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 <sgalabov@gmail.com>
Diffstat (limited to 'api')
-rw-r--r--api/api.c1
1 files changed, 1 insertions, 0 deletions
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;