[U-Boot] [PATCH 05/13] x86: Add more common routines to manipulate mrc cache

Simon Glass sjg at chromium.org
Sun Oct 18 22:26:49 CEST 2015


On 11 October 2015 at 22:37, Bin Meng <bmeng.cn at gmail.com> wrote:
> This adds mrccache_reserve(), mrccache_get_region() and
> mrccache_save() APIs to the mrccache codes. They are ported
> from the ivybridge implementation, but with some changes.
> For example, in the mrccache_reserve(), ivybridge version
> only reserves the pure MRC data, which causes additional
> malloc() when saving the cache as the save API needs some
> meta data. Now we change it to save the whole MRC date plus
> the meta data to elinimate the need for the malloc() later.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  arch/x86/include/asm/mrccache.h | 51 +++++++++++++++++++++++
>  arch/x86/lib/mrccache.c         | 89 +++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 140 insertions(+)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list