]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
linker_lists: Add a function to access a linker list entry
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:21:49 +0000 (12:21 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:52 +0000 (21:47 +0200)
commit29931cccda659a56aa7178282806f42241ef1f9f
tree6c2417829a4341437ae88ddc84f291f11e546fc7
parent2f5e5082555d262a434394fd3e77bd34aecee438
linker_lists: Add a function to access a linker list entry

Once declared, you cannot access a linker_list entry since you do not have
a symbol name for it. Add llsym() macro to provide this. This avoids
searching for the symbol at run-time based on name.

An example usage is to declare a driver with U_BOOT_DRIVER(), then obtain
a pointer to that driver later.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
include/linker_lists.h