riscv: Adjust the _exit_trap() position to come before handle_trap()
authorBin Meng <bmeng.cn@gmail.com>
Wed, 12 Dec 2018 14:12:44 +0000 (06:12 -0800)
committerAndes <uboot@andestech.com>
Tue, 18 Dec 2018 01:56:27 +0000 (09:56 +0800)
commit7f5d35a547afb1e4d8e7ca780ab1b9f78ed11d68
tree2bc0d6945628cc8783f257a34d84ac4f0e54b9b6
parent10753ef8fd14dfe1d41ec253966569de19463adc
riscv: Adjust the _exit_trap() position to come before handle_trap()

With this change, we can avoid a forward declaration.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
arch/riscv/lib/interrupts.c