All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alison Wang <b18965@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/2] armv8: Support loading 32-bit OS in AArch32 execution state
Date: Thu, 19 May 2016 16:26:00 +0800	[thread overview]
Message-ID: <1463646362-15531-1-git-send-email-b18965@freescale.com> (raw)

This series is to support loading a 32-bit OS, the execution state
will change from AArch64 to AArch32 when jumping to kernel. The
architecture information will be got through checking FIT image,
then U-Boot will load 32-bit OS or 64-bit OS automatically.

Spin-table method is used for secondary cores to load 32-bit OS. The
architecture information will be got through checking FIT image and
saved in the os_arch element of spin-table, then the secondary cores
will check os_arch and jump to 32-bit OS or 64-bit OS automatically.

Changes in v2:
- armv8_switch_to_el2_aarch32() is removed. armv8_switch_to_el2_m is used
  to switch to AArch64 EL2 or AArch32 Hyp.
- armv8_switch_to_el1_aarch32() is removed. armv8_switch_to_el1_m is used
  to switch to AArch64 EL1 or AArch32 SVC.

----------------------------------------------------------------
Alison Wang (2):
      armv8: Support loading 32-bit OS in AArch32 execution state
      armv8: fsl-layerscape: SMP support for loading 32-bit OS

 arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S  | 35 +++++++++++++++++++++++++++++++----
 arch/arm/cpu/armv8/fsl-layerscape/mp.c        | 10 ++++++++++
 arch/arm/cpu/armv8/transition.S               |  8 ++++----
 arch/arm/include/asm/arch-fsl-layerscape/mp.h |  6 ++++++
 arch/arm/include/asm/macro.h                  | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 arch/arm/include/asm/system.h                 | 25 +++++++++++++++++++++++--
 arch/arm/lib/bootm.c                          | 31 +++++++++++++++++++++++++++----
 common/image-fit.c                            | 12 +++++++++++-
 8 files changed, 185 insertions(+), 22 deletions(-)

             reply	other threads:[~2016-05-19  8:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-19  8:26 Alison Wang [this message]
2016-05-19  8:26 ` [U-Boot] [PATCH v2 1/2] armv8: Support loading 32-bit OS in AArch32 execution state Alison Wang
2016-05-19  8:58   ` Alexander Graf
2016-05-20  6:53     ` Huan Wang
2016-05-20  8:09       ` Alexander Graf
2016-05-20  8:26         ` Huan Wang
2016-05-20  8:29           ` Alexander Graf
2016-05-20  8:33             ` Huan Wang
2016-05-19  8:26 ` [U-Boot] [PATCH v2 2/2] armv8: fsl-layerscape: SMP support for loading 32-bit OS Alison Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1463646362-15531-1-git-send-email-b18965@freescale.com \
    --to=b18965@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.