diff options
author | Chris Zankel <czankel@tensilica.com> | 2006-12-10 05:18:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 12:55:39 -0500 |
commit | 173d6681380aa1d60dfc35ed7178bd7811ba2784 (patch) | |
tree | 9d6d4d2c6dd791499ebab558647efb67ac88ae3a /arch/xtensa/kernel/vmlinux.lds.S | |
parent | fd43fe19b830d6cd0eba08a6c6a5f71a6bd9c1b0 (diff) |
[PATCH] xtensa: remove extra header files
The Xtensa port contained many header files that were never needed. This
rather lengthy patch removes all those files. Unfortunately, there were
many dependencies that needed to be updated, so this patch touches quite a
few source files.
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/xtensa/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/xtensa/kernel/vmlinux.lds.S | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/arch/xtensa/kernel/vmlinux.lds.S b/arch/xtensa/kernel/vmlinux.lds.S index e01131fec69e..a36c104c3a52 100644 --- a/arch/xtensa/kernel/vmlinux.lds.S +++ b/arch/xtensa/kernel/vmlinux.lds.S | |||
@@ -16,20 +16,17 @@ | |||
16 | 16 | ||
17 | #include <asm-generic/vmlinux.lds.h> | 17 | #include <asm-generic/vmlinux.lds.h> |
18 | 18 | ||
19 | #define _NOCLANGUAGE | 19 | #include <asm/variant/core.h> |
20 | #undef __ASSEMBLER__ | ||
21 | #include <xtensa/config/core.h> | ||
22 | #include <xtensa/config/system.h> | ||
23 | OUTPUT_ARCH(xtensa) | 20 | OUTPUT_ARCH(xtensa) |
24 | ENTRY(_start) | 21 | ENTRY(_start) |
25 | 22 | ||
26 | #if XCHAL_MEMORY_ORDER == XTHAL_BIGENDIAN | 23 | #ifdef __XTENSA_EB__ |
27 | jiffies = jiffies_64 + 4; | 24 | jiffies = jiffies_64 + 4; |
28 | #else | 25 | #else |
29 | jiffies = jiffies_64; | 26 | jiffies = jiffies_64; |
30 | #endif | 27 | #endif |
31 | 28 | ||
32 | #define KERNELOFFSET 0x1000 | 29 | #define KERNELOFFSET 0xd0001000 |
33 | 30 | ||
34 | /* Note: In the following macros, it would be nice to specify only the | 31 | /* Note: In the following macros, it would be nice to specify only the |
35 | vector name and section kind and construct "sym" and "section" using | 32 | vector name and section kind and construct "sym" and "section" using |
@@ -76,7 +73,7 @@ jiffies = jiffies_64; | |||
76 | 73 | ||
77 | SECTIONS | 74 | SECTIONS |
78 | { | 75 | { |
79 | . = XCHAL_KSEG_CACHED_VADDR + KERNELOFFSET; | 76 | . = KERNELOFFSET; |
80 | /* .text section */ | 77 | /* .text section */ |
81 | 78 | ||
82 | _text = .; | 79 | _text = .; |
@@ -160,7 +157,7 @@ SECTIONS | |||
160 | 157 | ||
161 | /* Initialization code and data: */ | 158 | /* Initialization code and data: */ |
162 | 159 | ||
163 | . = ALIGN(1<<XCHAL_MMU_MIN_PTE_PAGE_SIZE); | 160 | . = ALIGN(1 << 12); |
164 | __init_begin = .; | 161 | __init_begin = .; |
165 | .init.text : { | 162 | .init.text : { |
166 | _sinittext = .; | 163 | _sinittext = .; |
@@ -224,32 +221,32 @@ SECTIONS | |||
224 | .dummy) | 221 | .dummy) |
225 | SECTION_VECTOR (_DebugInterruptVector_literal, | 222 | SECTION_VECTOR (_DebugInterruptVector_literal, |
226 | .DebugInterruptVector.literal, | 223 | .DebugInterruptVector.literal, |
227 | XCHAL_INTLEVEL_VECTOR_VADDR(XCHAL_DEBUGLEVEL) - 4, | 224 | XCHAL_DEBUG_VECTOR_VADDR - 4, |
228 | SIZEOF(.WindowVectors.text), | 225 | SIZEOF(.WindowVectors.text), |
229 | .WindowVectors.text) | 226 | .WindowVectors.text) |
230 | SECTION_VECTOR (_DebugInterruptVector_text, | 227 | SECTION_VECTOR (_DebugInterruptVector_text, |
231 | .DebugInterruptVector.text, | 228 | .DebugInterruptVector.text, |
232 | XCHAL_INTLEVEL_VECTOR_VADDR(XCHAL_DEBUGLEVEL), | 229 | XCHAL_DEBUG_VECTOR_VADDR, |
233 | 4, | 230 | 4, |
234 | .DebugInterruptVector.literal) | 231 | .DebugInterruptVector.literal) |
235 | SECTION_VECTOR (_KernelExceptionVector_literal, | 232 | SECTION_VECTOR (_KernelExceptionVector_literal, |
236 | .KernelExceptionVector.literal, | 233 | .KernelExceptionVector.literal, |
237 | XCHAL_KERNELEXC_VECTOR_VADDR - 4, | 234 | XCHAL_KERNEL_VECTOR_VADDR - 4, |
238 | SIZEOF(.DebugInterruptVector.text), | 235 | SIZEOF(.DebugInterruptVector.text), |
239 | .DebugInterruptVector.text) | 236 | .DebugInterruptVector.text) |
240 | SECTION_VECTOR (_KernelExceptionVector_text, | 237 | SECTION_VECTOR (_KernelExceptionVector_text, |
241 | .KernelExceptionVector.text, | 238 | .KernelExceptionVector.text, |
242 | XCHAL_KERNELEXC_VECTOR_VADDR, | 239 | XCHAL_KERNEL_VECTOR_VADDR, |
243 | 4, | 240 | 4, |
244 | .KernelExceptionVector.literal) | 241 | .KernelExceptionVector.literal) |
245 | SECTION_VECTOR (_UserExceptionVector_literal, | 242 | SECTION_VECTOR (_UserExceptionVector_literal, |
246 | .UserExceptionVector.literal, | 243 | .UserExceptionVector.literal, |
247 | XCHAL_USEREXC_VECTOR_VADDR - 4, | 244 | XCHAL_USER_VECTOR_VADDR - 4, |
248 | SIZEOF(.KernelExceptionVector.text), | 245 | SIZEOF(.KernelExceptionVector.text), |
249 | .KernelExceptionVector.text) | 246 | .KernelExceptionVector.text) |
250 | SECTION_VECTOR (_UserExceptionVector_text, | 247 | SECTION_VECTOR (_UserExceptionVector_text, |
251 | .UserExceptionVector.text, | 248 | .UserExceptionVector.text, |
252 | XCHAL_USEREXC_VECTOR_VADDR, | 249 | XCHAL_USER_VECTOR_VADDR, |
253 | 4, | 250 | 4, |
254 | .UserExceptionVector.literal) | 251 | .UserExceptionVector.literal) |
255 | SECTION_VECTOR (_DoubleExceptionVector_literal, | 252 | SECTION_VECTOR (_DoubleExceptionVector_literal, |
@@ -264,7 +261,7 @@ SECTIONS | |||
264 | .DoubleExceptionVector.literal) | 261 | .DoubleExceptionVector.literal) |
265 | 262 | ||
266 | . = (LOADADDR( .DoubleExceptionVector.text ) + SIZEOF( .DoubleExceptionVector.text ) + 3) & ~ 3; | 263 | . = (LOADADDR( .DoubleExceptionVector.text ) + SIZEOF( .DoubleExceptionVector.text ) + 3) & ~ 3; |
267 | . = ALIGN(1<<XCHAL_MMU_MIN_PTE_PAGE_SIZE); | 264 | . = ALIGN(1 << 12); |
268 | 265 | ||
269 | __init_end = .; | 266 | __init_end = .; |
270 | 267 | ||