18 Jan, 2020

1 commit


09 Dec, 2019

1 commit


29 Oct, 2019

1 commit

  • 'struct ustat' uses linux-specific typedefs to declare its memebers:
    __kernel_daddr_t and __kernel_ino_t. It is currently not used by any
    U-Boot codes, but when we build U-Boot tools for other platform like
    Windows, this becomes a problem.

    Let's surround it with __linux__.

    Signed-off-by: Bin Meng

    Bin Meng
     

15 Dec, 2018

1 commit


11 Sep, 2018

1 commit

  • You do not need to use the typedefs provided by compiler.

    Our compilers are either IPL32 or LP64. Hence, U-Boot can/should
    always use int-ll64.h typedefs like Linux kernel, whatever the
    typedefs the compiler internally uses.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

17 Nov, 2017

1 commit


15 Jul, 2016

1 commit

  • Currently, this is only defined in arch/arm/include/asm/types.h,
    so move it to include/linux/types.h to make it available for all
    architectures.

    I defined it with phys_addr_t as Linux does. I needed to surround
    the define with #ifdef __KERNEL__ ... #endif to avoid build errors
    in tools building. (Host tools should not include
    in the first place, but this is already messy in U-Boot...)

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     

16 Dec, 2015

1 commit


15 Dec, 2015

1 commit

  • uintptr_t which is a typdef for unsigned long is needed for creating
    pointers (32 or 64 bit depending on Core) from 32 bit variables
    storing the address.
    If a 32 bit variable (u32) is typecasted to a pointer (void *),
    compiler gives a warning in case size of pointer on the core is 64 bit.

    The typdef has been moved from include/compiler.h to include/linux/types.h

    Signed-off-by: Aneesh Bansal
    Reviewed-by: York Sun

    Aneesh Bansal
     

05 Aug, 2015

1 commit


27 Oct, 2014

1 commit

  • There's a definition in stdint.h (provided by gcc) which will be more correct
    if available.

    Define CONFIG_USE_STDINT to use this feature, or USE_STDINT=1 on the 'make'
    commmand.

    This adjusts the settings for x86 and sandbox, with both have 64-bit options.

    Signed-off-by: Gabe Black
    Reviewed-by: Gabe Black
    Tested-by: Gabe Black
    Reviewed-by: Bill Richardson
    Rewritten to be an option, since stdint.h is often available only in glibc.
    Changed to preserve a clear boundary between stdint and non-stdint
    Signed-off-by: Simon Glass

    Gabe Black
     

09 Nov, 2013

1 commit

  • Linux Kernel abolished include/linux/config.h long time ago.
    (around version v2.6.18..v2.6.19)

    We don't need to provide Linux copatibility any more.

    This commit deletes include/linux/config.h
    and fixes source files not to include this.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

02 Apr, 2013

1 commit

  • 'bool' is defined in random places. This patch consolidates them into a
    single header file include/linux/types.h, using stdbool.h introduced in C99.

    All other #define, typedef and enum are removed. They are all consistent with
    true = 1, false = 0.

    Replace FALSE, False with false. Replace TRUE, True with true.
    Skip *.py, *.php, lib/* files.

    Signed-off-by: York Sun

    York Sun
     

20 Nov, 2008

1 commit

  • This patch adds basic UBI (Unsorted Block Image) support to U-Boot.
    It's based on the Linux UBI version and basically has a "OS"
    translation wrapper that defines most Linux specific calls
    (spin_lock() etc.) into no-ops. Some source code parts have been
    uncommented by "#ifdef UBI_LINUX". This makes it easier to compare
    this version with the Linux version and simplifies future UBI
    ports/bug-fixes from the Linux version.

    Signed-off-by: Kyungmin Park
    Signed-off-by: Stefan Roese

    Kyungmin Park
     

21 Aug, 2000

1 commit