Commit 22aa61f7 authored by Stanislav Galabov's avatar Stanislav Galabov Committed by Tom Rini
Browse files

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:

Signed-off-by: default avatarStanislav Galabov <>
parent 3f53e619
......@@ -661,6 +661,7 @@ void api_init(void)
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment