2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2008-2009 PetaLogix
4 * Copyright (C) 2006 Atmark Techno, Inc.
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
11 OUTPUT_ARCH(microblaze)
12 ENTRY(microblaze_start)
14 #define RO_EXCEPTION_TABLE_ALIGN 16
16 #include <asm/cache.h>
18 #include <asm-generic/vmlinux.lds.h>
19 #include <asm/thread_info.h>
21 #ifdef __MICROBLAZEEL__
24 jiffies = jiffies_64 + 4;
28 . = CONFIG_KERNEL_START;
29 microblaze_start = CONFIG_KERNEL_BASE_ADDR;
30 .text : AT(ADDR(.text) - LOAD_OFFSET) {
49 __fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET) {
50 _fdt_start = . ; /* place for fdt blob */
51 *(__fdt_blob) ; /* Any link-placed DTB */
52 . = _fdt_start + 0x10000; /* Pad up to 64kbyte */
60 * sdata2 section can go anywhere, but must be word aligned
61 * and SDA2_BASE must point to the middle of it
63 .sdata2 : AT(ADDR(.sdata2) - LOAD_OFFSET) {
65 . = ALIGN(PAGE_SIZE); /* page aligned when MMU used */
69 _ssrw_size = _essrw - _ssrw;
70 _KERNEL_SDA2_BASE_ = _ssrw + (_ssrw_size / 2);
74 RW_DATA(32, PAGE_SIZE, THREAD_SIZE)
77 /* Under the microblaze ABI, .sdata and .sbss must be contiguous */
79 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET) {
84 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET) {
89 _ssro_size = _essro - _ssro ;
90 _KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;
93 PERCPU_SECTION(L1_CACHE_BYTES)
98 INIT_TEXT_SECTION(PAGE_SIZE)
100 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) {
105 .init.ivt : AT(ADDR(.init.ivt) - LOAD_OFFSET) {
111 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) {
115 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET ) {
119 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) {
123 __init_end_before_initramfs = .;
125 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {
131 .bss ALIGN (PAGE_SIZE) : AT(ADDR(.bss) - LOAD_OFFSET) {
132 /* page aligned when MMU used */
139 . = ALIGN(PAGE_SIZE);