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 * Copyright (C) 2005 Embedded Alley Solutions, Inc
7 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)
8 * Copyright (C) 2009 Jiajie Chen (chenjiajie@cse.buaa.edu.cn)
9 * Copyright (C) 2012 Huacai Chen (chenhc@lemote.com)
11 #ifndef __ASM_MACH_LOONGSON64_KERNEL_ENTRY_H
12 #define __ASM_MACH_LOONGSON64_KERNEL_ENTRY_H
15 * Override macros used in arch/mips/kernel/head.S.
17 .macro kernel_entry_setup
18 #ifdef CONFIG_CPU_LOONGSON3
21 /* Set LPA on LOONGSON3 config3 */
25 /* Set ELPA on LOONGSON3 pagegrain */
29 #ifdef CONFIG_LOONGSON3_ENHANCEMENT
30 /* Enable STFill Buffer */
41 * Do SMP slave processor setup.
43 .macro smp_slave_setup
44 #ifdef CONFIG_CPU_LOONGSON3
47 /* Set LPA on LOONGSON3 config3 */
51 /* Set ELPA on LOONGSON3 pagegrain */
55 #ifdef CONFIG_LOONGSON3_ENHANCEMENT
56 /* Enable STFill Buffer */
66 #endif /* __ASM_MACH_LOONGSON64_KERNEL_ENTRY_H */