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)
15 #include <asm-generic/vmlinux.lds.h>
16 #include <asm/thread_info.h>
18 #ifdef __MICROBLAZEEL__
21 jiffies = jiffies_64 + 4;
25 . = CONFIG_KERNEL_START;
26 microblaze_start = CONFIG_KERNEL_BASE_ADDR;
27 .text : AT(ADDR(.text) - LOAD_OFFSET) {
46 __fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET) {
47 _fdt_start = . ; /* place for fdt blob */
48 *(__fdt_blob) ; /* Any link-placed DTB */
49 . = _fdt_start + 0x8000; /* Pad up to 32kbyte */
59 * sdata2 section can go anywhere, but must be word aligned
60 * and SDA2_BASE must point to the middle of it
62 .sdata2 : AT(ADDR(.sdata2) - LOAD_OFFSET) {
64 . = ALIGN(PAGE_SIZE); /* page aligned when MMU used */
68 _ssrw_size = _essrw - _ssrw;
69 _KERNEL_SDA2_BASE_ = _ssrw + (_ssrw_size / 2);
73 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
76 /* Under the microblaze ABI, .sdata and .sbss must be contiguous */
78 .sdata : AT(ADDR(.sdata) - LOAD_OFFSET) {
83 .sbss : AT(ADDR(.sbss) - LOAD_OFFSET) {
88 _ssro_size = _essro - _ssro ;
89 _KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;
95 INIT_TEXT_SECTION(PAGE_SIZE)
97 .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) {
102 .init.ivt : AT(ADDR(.init.ivt) - LOAD_OFFSET) {
108 .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) {
112 .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET ) {
116 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) {
120 __init_end_before_initramfs = .;
122 .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {
128 .bss ALIGN (PAGE_SIZE) : AT(ADDR(.bss) - LOAD_OFFSET) {
129 /* page aligned when MMU used */
136 . = ALIGN(PAGE_SIZE);