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)
commit627085eacf4a64824fd0bfa2f6f9c1a72d48d21f
treed91dc45a4441940b19b05065644669c688be4a37
parentc99e87f82803500f9811b1e98926d9d25df35b38
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