[U-Boot] [PATCH 2/3] x86: Don't copy the cpu_call64() function to a hardcoded address

Bin Meng bmeng.cn at gmail.com
Tue Feb 12 06:23:34 UTC 2019


On Sat, Feb 2, 2019 at 2:06 PM Simon Glass <sjg at chromium.org> wrote:
>
> On Thu, 31 Jan 2019 at 09:17, Bin Meng <bmeng.cn at gmail.com> wrote:
> >
> > Before jumping to 64-bit U-Boot proper, SPL copies the cpu_call64()
> > function to a hardcoded address 0x3000000. This can have potential
> > conflicts with application usage. Switch the destination address
> > to be allocated from the heap to avoid such risk.
> >
> > Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> > ---
> >
> >  arch/x86/cpu/i386/call64.S |  4 ++++
> >  arch/x86/cpu/i386/cpu.c    | 11 ++++++++---
> >  2 files changed, 12 insertions(+), 3 deletions(-)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list