| * Copyright (C) 2012 Regents of the University of California |
| * Copyright (C) 2017 SiFive |
| * This program is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU General Public License |
| * as published by the Free Software Foundation, version 2. |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| #define LOAD_OFFSET PAGE_OFFSET |
| #include <asm/vmlinux.lds.h> |
| #include <asm/thread_info.h> |
| /* Beginning of code and text segment */ |
| INIT_TEXT_SECTION(PAGE_SIZE) |
| /* we have to discard exit text and such at runtime, not link time */ |
| PERCPU_SECTION(L1_CACHE_BYTES) |
| /* Start of data section */ |
| RO_DATA_SECTION(L1_CACHE_BYTES) |
| RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) |
| __global_pointer$ = . + 0x800; |
| /* End of data section */ |