BCM WL 6.30.102.9 (r366174)
[tomato.git] / release / src-rt / cfe / cfe / arch / mips / cpu / bcmcore / include / cpu_config.h
blobd17237c10957deb74fc02dca8dccbc44d2acc269
1 /* *********************************************************************
2 * Broadcom Common Firmware Environment (CFE)
3 *
4 * CPU Configuration file File: cpu_config.h
5 *
6 * This file contains the names of the routines to be used
7 * in the dispatch table in init_mips.S
9 * It lives here in the CPU directory so we can direct
10 * the init calls to routines named in this directory.
12 * Author: Mitch Lichtenberg (mpl@broadcom.com)
14 *********************************************************************
16 * XX Copyright 2000,2001
17 * Broadcom Corporation. All rights reserved.
19 * BROADCOM PROPRIETARY AND CONFIDENTIAL
21 * This software is furnished under license and may be used and
22 * copied only in accordance with the license.
23 ********************************************************************* */
28 #define CPUCFG_CPUINIT bcmcore_cpuinit
29 #define CPUCFG_ALTCPU_START1 bcmcore_null
30 #define CPUCFG_ALTCPU_START2 bcmcore_null
31 #define CPUCFG_ALTCPU_RESET bcmcore_null
32 #define CPUCFG_CPURESTART bcmcore_cpurestart
33 #define CPUCFG_DRAMINIT board_draminit /* no dram on CPU */
34 #define CPUCFG_CACHEOPS bcmcore_cacheops
35 #define CPUCFG_ARENAINIT bcmcore_arena_init
36 #define CPUCFG_PAGETBLINIT bcmcore_pagetable_init
37 #define CPUCFG_TLBHANDLER bcmcore_tlbhandler
38 #define CPUCFG_DIAG_TEST1 bcmcore_null
39 #define CPUCFG_DIAG_TEST2 bcmcore_null
41 /*
42 * The BCMCORE ticks CP0 every other cycle.
45 #define CPUCFG_CYCLESPERCPUTICK 2
48 * Hazard macro
51 #define HAZARD nop ; nop ; nop ; nop ; nop ; nop ; nop
54 * Return from exception macro
57 #ifdef BCM4710
58 #define ERET \
59 .set push ; \
60 .set mips4 ; \
61 nop ; \
62 nop ; \
63 eret ; \
64 .set pop
65 #else
66 #define ERET \
67 .set push ; \
68 .set mips4 ; \
69 eret ; \
70 .set pop
71 #endif