
1 Sep
2010
1 Sep
'10
7:04 p.m.
On Wednesday, September 01, 2010 02:05:04 Ben Warren wrote:
- if (board_eth_init != __def_eth_init) {
- } else if (cpu_eth_init != __def_eth_init) {
i'm not sure these changes are useful. the resolution of the symbols happens at link time, so it isnt like gcc will be able to optimize away the default.
if anything, it'd make more sense to declare the functions as external/weak, and then check that the pointer is not NULL. that'd save on the overhead of having uncalled stub functions that merely return 0 in the final linked image. -mike