David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | |
| 3 | #include <linux/linkage.h> |
| 4 | #include <linux/init.h> |
| 5 | #include <asm/page.h> |
| 6 | #include <abi/entry.h> |
| 7 | |
| 8 | __HEAD |
| 9 | ENTRY(_start) |
| 10 | SETUP_MMU |
| 11 | |
| 12 | /* set stack point */ |
| 13 | lrw r6, init_thread_union + THREAD_SIZE |
| 14 | mov sp, r6 |
| 15 | |
| 16 | jmpi csky_start |
| 17 | END(_start) |
| 18 | |
| 19 | #ifdef CONFIG_SMP |
| 20 | .align 10 |
| 21 | ENTRY(_start_smp_secondary) |
| 22 | SETUP_MMU |
| 23 | |
| 24 | /* set stack point */ |
| 25 | lrw r6, secondary_stack |
| 26 | ld.w r6, (r6, 0) |
| 27 | mov sp, r6 |
| 28 | |
| 29 | jmpi csky_start_secondary |
| 30 | END(_start_smp_secondary) |
| 31 | #endif |