forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xtensa: move section symbols to asm/sections.h
Introduce asm/sections.h and move section declarations to this header from setup.c. Assign section symbols char array type uniformly and drop address operator from section symbol references in code. Sort headers in setup.c while at it. Signed-off-by: Max Filippov <[email protected]>
- Loading branch information
Showing
2 changed files
with
70 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* 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_SMP | ||
extern char _SecondaryResetVector_text_start[]; | ||
extern char _SecondaryResetVector_text_end[]; | ||
#endif | ||
#ifdef CONFIG_XIP_KERNEL | ||
extern char _xip_start[]; | ||
extern char _xip_end[]; | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters