[U-Boot] [PATCH v9 4/9] x86: slimbootloader: Add memory configuration
Bin Meng
bmeng.cn at gmail.com
Thu Aug 8 14:35:26 UTC 2019
On Sat, Aug 3, 2019 at 4:30 PM Park, Aiden <aiden.park at intel.com> wrote:
>
> Slim Bootloader provides memory map info thru its HOB list pointer.
> Configure memory size and relocation memory from the HOB data, and
> provide e820 entries as well.
> - Get memory size from the memory map info HOB
> - Set available top memory lower than 4GB for U-Boot relocation
> - Provide e820 entries from the memory map info HOB
>
> Signed-off-by: Aiden Park <aiden.park at intel.com>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Andy Shevchenko <andy.shevchenko at gmail.com>
> ---
> Changes in v9:
> * Use for_each_if macro to avoid checkpatch ERROR
>
> Changes in v8:
> * Change for_each condition check to avoid ERROR from checkpatch
>
> Changes in v7:
> * Use for_each macro instead of while_each
> * Move for_each macro before its first use
>
> Changes in v6:
> * Change dram.c to sdram.c
> * Use EFI_GUID
> * Use a macro to do reversed search in memory map entries
> * Apply code-review comments
>
> Changes in v3:
> * Use HOB function from the common HOB library
> * Add more description
>
> arch/x86/cpu/slimbootloader/Makefile | 2 +-
> arch/x86/cpu/slimbootloader/sdram.c | 151 ++++++++++++++++++
> .../asm/arch-slimbootloader/slimbootloader.h | 53 ++++++
> 3 files changed, 205 insertions(+), 1 deletion(-)
> create mode 100644 arch/x86/cpu/slimbootloader/sdram.c
> create mode 100644 arch/x86/include/asm/arch-slimbootloader/slimbootloader.h
>
Tested-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list