diff options
author | Stanislav Galabov <sgalabov@gmail.com> | 2016-03-01 14:19:04 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-08 15:01:45 -0500 |
commit | 22aa61f707574dd569296f521fcfc46a05f51c48 (patch) | |
tree | f10c14b607f363b7dd685099951b9f6455eb483d /api | |
parent | 3f53e619f0d72db7b5812313c8f290051c7bfbee (diff) | |
download | u-boot-imx-22aa61f707574dd569296f521fcfc46a05f51c48.zip u-boot-imx-22aa61f707574dd569296f521fcfc46a05f51c48.tar.gz u-boot-imx-22aa61f707574dd569296f521fcfc46a05f51c48.tar.bz2 |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |