2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Chris Dearman (chris@mips.com)
7 * Copyright (C) 2007 Mips Technologies, Inc.
9 #ifndef __ASM_MACH_MIPS_KERNEL_ENTRY_INIT_H
10 #define __ASM_MACH_MIPS_KERNEL_ENTRY_INIT_H
12 .macro kernel_entry_setup
13 #ifdef CONFIG_MIPS_MT_SMTC
16 mfc0 t0, CP0_CONFIG, 1
18 mfc0 t0, CP0_CONFIG, 2
20 mfc0 t0, CP0_CONFIG, 3
24 /* Assume we came from YAMON... */
25 PTR_LA v0, 0x9fc00534 /* YAMON print */
28 PTR_LA a1, nonmt_processor
31 PTR_LA v0, 0x9fc00520 /* YAMON exit */
40 .asciz "SMTC kernel requires the MT ASE to run\n"
47 * Do SMP slave processor setup necessary before we can safely execute C code.
49 .macro smp_slave_setup
52 #endif /* __ASM_MACH_MIPS_KERNEL_ENTRY_INIT_H */