03ce34cf8f
Add Kconfig symbol, asm/mtd-xip.h header and define related macros: xip_cpu_idle, xip_irqpending, xip_currtime and xip_elapsed_since. Append .xiptext to the vectors when separate vectors are configured because otherwise they are appended to the data and data may not even be executable in XIP configuration. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _XTENSA_SECTIONS_H
|
|
#define _XTENSA_SECTIONS_H
|
|
|
|
#include <asm-generic/sections.h>
|
|
|
|
#ifdef CONFIG_VECTORS_ADDR
|
|
extern char _WindowVectors_text_start[];
|
|
extern char _WindowVectors_text_end[];
|
|
extern char _DebugInterruptVector_text_start[];
|
|
extern char _DebugInterruptVector_text_end[];
|
|
extern char _KernelExceptionVector_text_start[];
|
|
extern char _KernelExceptionVector_text_end[];
|
|
extern char _UserExceptionVector_text_start[];
|
|
extern char _UserExceptionVector_text_end[];
|
|
extern char _DoubleExceptionVector_text_start[];
|
|
extern char _DoubleExceptionVector_text_end[];
|
|
extern char _exception_text_start[];
|
|
extern char _exception_text_end[];
|
|
extern char _Level2InterruptVector_text_start[];
|
|
extern char _Level2InterruptVector_text_end[];
|
|
extern char _Level3InterruptVector_text_start[];
|
|
extern char _Level3InterruptVector_text_end[];
|
|
extern char _Level4InterruptVector_text_start[];
|
|
extern char _Level4InterruptVector_text_end[];
|
|
extern char _Level5InterruptVector_text_start[];
|
|
extern char _Level5InterruptVector_text_end[];
|
|
extern char _Level6InterruptVector_text_start[];
|
|
extern char _Level6InterruptVector_text_end[];
|
|
#endif
|
|
#ifdef CONFIG_SECONDARY_RESET_VECTOR
|
|
extern char _SecondaryResetVector_text_start[];
|
|
extern char _SecondaryResetVector_text_end[];
|
|
#endif
|
|
#ifdef CONFIG_XIP_KERNEL
|
|
#ifdef CONFIG_VECTORS_ADDR
|
|
extern char _xip_text_start[];
|
|
extern char _xip_text_end[];
|
|
#endif
|
|
extern char _xip_start[];
|
|
extern char _xip_end[];
|
|
#endif
|
|
|
|
#endif
|