]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/csky/kernel/head.S
Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
[mirror_ubuntu-hirsute-kernel.git] / arch / csky / kernel / head.S
CommitLineData
9143a935
GR
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
9ENTRY(_start)
205353fa 10 SETUP_MMU
9143a935
GR
11
12 /* set stack point */
205353fa
GR
13 lrw r6, init_thread_union + THREAD_SIZE
14 mov sp, r6
9143a935
GR
15
16 jmpi csky_start
17END(_start)
18
19#ifdef CONFIG_SMP
20.align 10
21ENTRY(_start_smp_secondary)
205353fa 22 SETUP_MMU
9143a935 23
aefd9461
GR
24 /* copy msa1 from CPU0 */
25 lrw r6, secondary_msa1
26 ld.w r6, (r6, 0)
27 mtcr r6, cr<31, 15>
28
9143a935 29 /* set stack point */
205353fa
GR
30 lrw r6, secondary_stack
31 ld.w r6, (r6, 0)
32 mov sp, r6
9143a935
GR
33
34 jmpi csky_start_secondary
35END(_start_smp_secondary)
36#endif