ARM: tegra: Always boot CPU in ARM-mode
authorDmitry Osipenko <digetx@gmail.com>
Sun, 17 Mar 2019 22:52:09 +0000 (01:52 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 9 Apr 2019 14:36:25 +0000 (16:36 +0200)
CPU always jumps into reset handler in ARM-mode from the Trusted
Foundations firmware, hence let's make CPU to always jump into kernel
in ARM-mode regardless of the firmware presence. This is required to
make Thumb-2 kernel working with the Trusted Foundations firmware on
Tegra30.

Tested-by: Robert Yang <decatf@gmail.com>
Tested-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/mach-tegra/reset-handler.S

index 809fbc2..31fb53f 100644 (file)
@@ -113,6 +113,7 @@ ENTRY(__tegra_cpu_reset_handler_start)
  *       must be position-independent.
  */
 
+       .arm
        .align L1_CACHE_SHIFT
 ENTRY(__tegra_cpu_reset_handler)