summaryrefslogtreecommitdiff
path: root/arch/arc/lib/start.S
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-08-01 09:26:15 -0400
committerTom Rini <trini@konsulko.com>2018-08-01 09:26:15 -0400
commit61523dde17d1539b8ea361e25909acfdfc465155 (patch)
tree03e544bf27cadc6d62f91e2c29c80ddfc3dff660 /arch/arc/lib/start.S
parent20a619c61775d99aaed07cf69ce449de054358a4 (diff)
parent8f590063ba635264303b1713c421df331743fd46 (diff)
Merge tag 'arc-updates-for-2018.09-rc2' of git://git.denx.de/u-boot-arc
That's a set of prety minor changes and fixes for ARC. Among them: * Improvement in CREG GPIO driver used on ARC dev boards that allow us to re-use the driver for SPI's chip select * Enable SPI-flsh on AXS10x boards which allows to update U-Boot binary that gets loaded by boot-ROM * Fix accommodating always utilized unaligned access by GCC for ARC starting from 8.1.0
Diffstat (limited to 'arch/arc/lib/start.S')
-rw-r--r--arch/arc/lib/start.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arc/lib/start.S b/arch/arc/lib/start.S
index e573ce7718..84959b41bd 100644
--- a/arch/arc/lib/start.S
+++ b/arch/arc/lib/start.S
@@ -61,6 +61,15 @@ ENTRY(_start)
1:
#endif
+#ifdef __ARC_UNALIGNED__
+ /*
+ * Enable handling of unaligned access in the CPU as by default
+ * this HW feature is disabled while GCC starting from 8.1.0
+ * unconditionally uses it for ARC HS cores.
+ */
+ flag 1 << STATUS_AD_BIT
+#endif
+
/* Establish C runtime stack and frame */
mov %sp, CONFIG_SYS_INIT_SP_ADDR
mov %fp, %sp