1 #include <asm-generic/vmlinux.lds.h>
4 #include <asm/thread_info.h>
5 #include <hv/hypervisor.h>
7 /* Text loads starting from the supervisor interrupt vector address. */
8 #define TEXT_OFFSET MEM_SV_INTRPT
22 /* Text is loaded with a different VA than data; start with text. */
24 #define LOAD_OFFSET TEXT_OFFSET
26 /* Interrupt vectors */
27 .intrpt1 (LOAD_OFFSET) : AT ( 0 ) /* put at the start of physical memory */
34 /* Hypervisor call vectors */
37 /* Now the real code */
39 .text : AT (ADDR(.text) - LOAD_OFFSET) {
43 __fix_text_end = .; /* tile-cpack won't rearrange before this */
52 /* "Init" is divided into two areas with very different virtual addresses. */
53 INIT_TEXT_SECTION(PAGE_SIZE)
55 /* Now we skip back to PAGE_OFFSET for the data. */
56 . = (. - TEXT_OFFSET + PAGE_OFFSET);
58 #define LOAD_OFFSET PAGE_OFFSET
61 VMLINUX_SYMBOL(_sinitdata) = .;
62 INIT_DATA_SECTION(16) :data =0
63 PERCPU_SECTION(L2_CACHE_BYTES)
65 VMLINUX_SYMBOL(_einitdata) = .;
67 _sdata = .; /* Start of data section */
69 RO_DATA_SECTION(PAGE_SIZE)
71 /* initially writeable, then read-only */
74 .w1data : AT(ADDR(.w1data) - LOAD_OFFSET) {
75 VMLINUX_SYMBOL(__w1data_begin) = .;
77 VMLINUX_SYMBOL(__w1data_end) = .;
80 RW_DATA_SECTION(L2_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
84 EXCEPTION_TABLE(L2_CACHE_BYTES)
88 BSS_SECTION(8, PAGE_SIZE, 1)