Blackfin arch: SMP supporting patchset: some other misc code
[linux-2.6.git] / arch / blackfin / mach-bf537 / include / mach / mem_map.h
index 5078b669431f72204cb780d144167606192ec558..be4de761be96ee2a2630c171fb5d8e7836768847 100644 (file)
 #define L1_SCRATCH_START       0xFFB00000
 #define L1_SCRATCH_LENGTH      0x1000
 
+#define get_l1_scratch_start_cpu(cpu)          L1_SCRATCH_START
+#define get_l1_code_start_cpu(cpu)             L1_CODE_START
+#define get_l1_data_a_start_cpu(cpu)           L1_DATA_A_START
+#define get_l1_data_b_start_cpu(cpu)           L1_DATA_B_START
+#define get_l1_scratch_start()                 L1_SCRATCH_START
+#define get_l1_code_start()                    L1_CODE_START
+#define get_l1_data_a_start()                  L1_DATA_A_START
+#define get_l1_data_b_start()                  L1_DATA_B_START
+
+#define GET_PDA_SAFE(preg)             \
+       preg.l = _cpu_pda;              \
+       preg.h = _cpu_pda;
+
+#define GET_PDA(preg, dreg)    GET_PDA_SAFE(preg)
+
 #endif                         /* _MEM_MAP_537_H_ */