[U-Boot] [PATCH 2/2] x86: i2c: Avoid using BSS before it is available

Bin Meng bmeng.cn at gmail.com
Sun Aug 7 08:54:02 CEST 2016


On Sat, Aug 6, 2016 at 11:35 AM, Simon Glass <sjg at chromium.org> wrote:
> If intel_i2c_bind() is called before relocation there is no BSS section
> available. Use the data section instead, which is always available.
>
> A better fix might be to use global_data, perhaps a new member in
> x86's struct arch_global_data. Comments welcome.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/i2c/intel_i2c.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list