]> git.baikalelectronics.ru Git - uboot.git/commit
microblaze: start.S: Factor out exception setup code to __setup_exceptions
authorOvidiu Panait <ovidiu.panait@windriver.com>
Thu, 24 Sep 2020 08:54:36 +0000 (11:54 +0300)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 27 Oct 2020 07:01:33 +0000 (08:01 +0100)
commit7883074537400bf629a70c19e5e2e1ca82ed9887
treed91dc45a4441940b19b05065644669c688be4a37
parent5ae5eff63d3728816a36e97b5c62065772c19ea7
microblaze: start.S: Factor out exception setup code to __setup_exceptions

Currently, the exceptions setup code is duplicated in pre-relocation and
post-relocation init. Factor out this code to __setup_exceptions asm
routine to get rid of the duplication.

__setup_exceptions is called with a relocation offset parameter (r5)
which is set to zero for pre-reloc init and gd->reloc_off for post-reloc
exception setup.

Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/cpu/start.S