riscv/riscv_exception_common.S: Allow chips to define the exception

section.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2022-04-07 20:34:55 +02:00 committed by Xiang Xiao
parent 875dd46207
commit e8134a8b57

View File

@ -49,6 +49,12 @@
# endif
#endif
/* Provide a default section for the exeception handler. */
#ifndef EXCEPTION_SECTION
# define EXCEPTION_SECTION .text
#endif
/****************************************************************************
* Public Symbols
****************************************************************************/
@ -62,7 +68,7 @@
*
****************************************************************************/
.section .text
.section EXCEPTION_SECTION
.global exception_common
.align 8