13 Apr, 2017

1 commit


16 Feb, 2016

1 commit

  • $ make tools-all
    ...
    In file included from tools/env/env_flags.c:1:0:
    tools/env/../../common/env_flags.c: In function
    ‘env_flags_parse_varaccess_from_binflags’:
    tools/env/../../common/env_flags.c:156:18: warning: implicit declaration
    of function ‘ARRAY_SIZE’ [-Wimplicit-function-declaration]
    for (i = 0; i < ARRAY_SIZE(env_flags_varaccess_mask); i++)
    ^
    Seems like the other utilities just add a copy of ARRAY_SIZE since
    there's nowhere to include it from (tools/imagetool.h,
    tools/mxsimage.h). Let's do the same here.

    Signed-off-by: Lubomir Rintel

    Lubomir Rintel
     

08 Feb, 2016

1 commit


14 Jan, 2016

1 commit

  • We should use ARRAY_SIZE, but not sizeof. The size of
    env_flags_varaccess_mask is 16bytes, but we only need 4 loops.
    If using 16 as the end condition, we may access memory that
    not belong to array env_flags_varaccess_mask.

    Signed-off-by: Peng Fan
    Cc: Joe Hershberger
    Cc: York Sun
    Cc: Simon Glass
    Cc: Tom Rini
    Reviewed-by: Simon Glass
    Acked-by: Joe Hershberger

    Peng Fan
     

05 Jan, 2016

1 commit

  • Before calling hsearch_r, initialize callback entry to NULL.

    Coverity log:
    "
    Uninitialized scalar variable (UNINIT)
    uninit_use_in_call: Using uninitialized value e.
    Field e.callback is uninitialized when calling hsearch_r.
    "

    Reported-by: Coverity
    Signed-off-by: Peng Fan
    Cc: Tom Rini
    Cc: Simon Glass

    Peng Fan
     

21 Sep, 2015

1 commit


21 May, 2015

1 commit


14 Jan, 2014

1 commit

  • when creating the hashtable, for each environmentvariable
    getenv(ENV_CALLBACK_VAR) and getenv(ENV_FLAGS_VAR) is called,
    which costs at this point a lot of time. So call this two
    getenv() calls only once.

    Boottime on the ids8313 board without this patch:

    2013-12-19 13:38:22,894: NAND: 128 MiB
    2013-12-19 13:38:27,659: In: serial
    (~4.8 sec)

    Bootime with this patch on the ids8313 board:

    2013-12-19 13:40:25,332: NAND: 128 MiB
    2013-12-19 13:40:25,546: In: serial
    (~0.2 sec)

    Signed-off-by: Heiko Schocher
    Cc: Tom Rini
    Cc: Joe Hershberger
    Cc: Wolfgang Denk

    Heiko Schocher
     

24 Jul, 2013

1 commit


14 Dec, 2012

5 commits