Searched hist:b194577b2995eacbd2a3769269f0af1bc5e22530 (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/common/ |
| H A D | hwconfig.c | b194577b2995eacbd2a3769269f0af1bc5e22530 Tue Nov 30 21:01:28 UTC 2010 Kumar Gala <galak@kernel.crashing.org> hwconfig: Fix dummy initialization of {board, cpu}_hwconfig
Since board_hwconfig & cpu_hwconfig are defined as weak and dont have a default value they will get put into the BSS if they aren't defined elsewhere. This is problematic as we try to utilize hwconfig before we've relocated and thus BSS isn't setup.
Instead of giving dummy values in the board files that utilize this feature, we can just initialize the variables to an empty string and thus move them out of the BSS if they aren't defined elsewhere.
Also made board_hwconfig & cpu_hwconfig arrays to reduce size associated with string pointers vs arrays.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
|
| /rk3399_rockchip-uboot/board/freescale/mpc8641hpcn/ |
| H A D | mpc8641hpcn.c | b194577b2995eacbd2a3769269f0af1bc5e22530 Tue Nov 30 21:01:28 UTC 2010 Kumar Gala <galak@kernel.crashing.org> hwconfig: Fix dummy initialization of {board, cpu}_hwconfig
Since board_hwconfig & cpu_hwconfig are defined as weak and dont have a default value they will get put into the BSS if they aren't defined elsewhere. This is problematic as we try to utilize hwconfig before we've relocated and thus BSS isn't setup.
Instead of giving dummy values in the board files that utilize this feature, we can just initialize the variables to an empty string and thus move them out of the BSS if they aren't defined elsewhere.
Also made board_hwconfig & cpu_hwconfig arrays to reduce size associated with string pointers vs arrays.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
|