added 2.6.29.6 aldebaran kernel
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / arch / blackfin / include / asm / mem_map.h
blobe92b31051bb7ad1e5015e2110d6ac80239d1d4f6
1 /*
2 * mem_map.h
3 * Common header file for blackfin family of processors.
5 */
7 #ifndef _MEM_MAP_H_
8 #define _MEM_MAP_H_
10 #include <mach/mem_map.h>
12 #ifndef __ASSEMBLY__
14 #ifdef CONFIG_SMP
15 static inline ulong get_l1_scratch_start_cpu(int cpu)
17 return (cpu) ? COREB_L1_SCRATCH_START : COREA_L1_SCRATCH_START;
19 static inline ulong get_l1_code_start_cpu(int cpu)
21 return (cpu) ? COREB_L1_CODE_START : COREA_L1_CODE_START;
23 static inline ulong get_l1_data_a_start_cpu(int cpu)
25 return (cpu) ? COREB_L1_DATA_A_START : COREA_L1_DATA_A_START;
27 static inline ulong get_l1_data_b_start_cpu(int cpu)
29 return (cpu) ? COREB_L1_DATA_B_START : COREA_L1_DATA_B_START;
32 static inline ulong get_l1_scratch_start(void)
34 return get_l1_scratch_start_cpu(blackfin_core_id());
36 static inline ulong get_l1_code_start(void)
38 return get_l1_code_start_cpu(blackfin_core_id());
40 static inline ulong get_l1_data_a_start(void)
42 return get_l1_data_a_start_cpu(blackfin_core_id());
44 static inline ulong get_l1_data_b_start(void)
46 return get_l1_data_b_start_cpu(blackfin_core_id());
49 #else /* !CONFIG_SMP */
51 static inline ulong get_l1_scratch_start_cpu(int cpu)
53 return L1_SCRATCH_START;
55 static inline ulong get_l1_code_start_cpu(int cpu)
57 return L1_CODE_START;
59 static inline ulong get_l1_data_a_start_cpu(int cpu)
61 return L1_DATA_A_START;
63 static inline ulong get_l1_data_b_start_cpu(int cpu)
65 return L1_DATA_B_START;
67 static inline ulong get_l1_scratch_start(void)
69 return get_l1_scratch_start_cpu(0);
71 static inline ulong get_l1_code_start(void)
73 return get_l1_code_start_cpu(0);
75 static inline ulong get_l1_data_a_start(void)
77 return get_l1_data_a_start_cpu(0);
79 static inline ulong get_l1_data_b_start(void)
81 return get_l1_data_b_start_cpu(0);
84 #endif /* CONFIG_SMP */
85 #endif /* __ASSEMBLY__ */
87 #endif /* _MEM_MAP_H_ */