1
0
Fork 0
remarkable-uboot/arch/blackfin/cpu
Martin Dorwig 49cad54788 Export redesign
this is an atempt to make the export of functions typesafe.
I replaced the jumptable void ** by a struct (jt_funcs) with function pointers.
The EXPORT_FUNC macro now has 3 fixed parameters and one
variadic parameter
The first is the name of the exported function,
the rest of the parameters are used to format a functionpointer
in the jumptable,

the EXPORT_FUNC macros are expanded three times,
1. to declare the members of the struct
2. to initialize the structmember pointers
3. to call the functions in stubs.c

Signed-off-by: Martin Dorwig <dorwig@tetronik.com>
Acked-by: Simon Glass <sjg@chromium.org>

Signed-off-by: Simon Glass <sjg@chromium.org>
(resending to the list since my tweaks are not quite trivial)
2015-01-29 17:09:57 -07:00
..
.gitignore blackfin: Do not generate unused header bootrom-asm-offsets.h 2013-12-06 16:06:51 +08:00
Makefile kbuild: use shorten logs for misc targets 2014-02-25 11:01:29 -05:00
cache.S linkage.h: move from blackfin to common includes 2012-02-12 15:03:26 -05:00
cpu.c Export redesign 2015-01-29 17:09:57 -07:00
cpu.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
gpio.c blackfin: make name_to_gpio be a weak symbol 2014-04-18 10:42:29 -04:00
init.S Blackfin: add init.elf helper code 2011-07-12 02:17:45 -04:00
init.lds.S Blackfin: add init.elf helper code 2011-07-12 02:17:45 -04:00
initcode.c cppcheck cleanup: fix nullPointer errors 2014-11-07 16:27:07 -05:00
initcode.h blackfin: The logic of the BF609 macro is opposite. 2014-02-07 11:18:06 +08:00
interrupt.S Blackfin: set up simple NMI handlers for anomaly 05000219 2010-07-05 04:18:18 -04:00
interrupts.c Timer: Remove reset_timer() for non-Nios2 arches 2011-07-26 14:53:30 +02:00
jtag-console.c linux/kernel.h: sync min, max, min3, max3 macros with Linux 2014-11-23 06:48:30 -05:00
os_log.c blackfin: don't use 'bool' when it causes problems 2013-11-25 10:41:55 -05:00
reset.c blackfin: bf60x: Port blackfin core architecture code to boot on bf60x. 2013-03-04 13:42:06 +08:00
start.S blackfin: convert blackfin board_f and board_r to use generic board init functions 2014-08-07 15:15:14 +08:00
traps.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
u-boot.lds blackfin: convert blackfin board_f and board_r to use generic board init functions 2014-08-07 15:15:14 +08:00