blob: 25fd4f82ab3a98501c7bc868b2e840fc2caf895f [file] [log] [blame]
Neil Armstrongaf76e802016-09-09 12:23:11 +02001/*
2 * Copyright (C) 2013 Ma Haijun <mahaijuns@gmail.com>
3 * Copyright (c) 2003 ARM Limited
4 * All Rights Reserved
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10#include <linux/linkage.h>
11#include <linux/init.h>
12
13 __INIT
14
15/*
16 * OX820 specific entry point for secondary CPUs.
17 */
18ENTRY(ox820_secondary_startup)
19 mov r4, #0
20 /* invalidate both caches and branch target cache */
21 mcr p15, 0, r4, c7, c7, 0
22 /*
23 * we've been released from the holding pen: secondary_stack
24 * should now contain the SVC stack for this core
25 */
26 b secondary_startup