arm: K3: Update _start instruction
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 27 Aug 2018 10:27:10 +0000 (15:57 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 11 Sep 2018 12:32:55 +0000 (08:32 -0400)
commitf70b72e3533a135d159b182f8037993c802f1853
treebf270b7f12a24a58f005c6c7739ea5f8bafeee80
parented0e60512407716d17405e45e12c92e52918608a
arm: K3: Update _start instruction

On K3 family SoCs, once the ROM loads image on R5, M3 resets R5 and
expects to start executing from 0x0. In order to handle this ROM
updates the boot vector of R5 such that first 64 bytes of image load
address are mapped to 0x0.

In this case, it is SPL's responsibility to jump to the proper image
location. So, update the PC with address of reset vector(like how
other exception vectors are handled), instead of branching to reset.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/lib/vectors.S