Go to the documentation of this file.
7 #ifndef __ASM_BFIN_PROCESSOR_H
8 #define __ASM_BFIN_PROCESSOR_H
14 #define current_text_addr() ({ __label__ _l; _l: &&_l;})
16 #include <asm/ptrace.h>
17 #include <mach/blackfin.h>
19 static inline unsigned long rdusp(
void)
23 __asm__ __volatile__(
"%0 = usp;\n\t":
"=da"(usp));
27 static inline void wrusp(
unsigned long usp)
29 __asm__ __volatile__(
"usp = %0;\n\t"::
"da"(usp));
32 static inline unsigned long __get_SP(
void)
36 __asm__ __volatile__(
"%0 = sp;\n\t" :
"=da"(sp));
45 #define TASK_SIZE 0xFFFFFFFF
48 #define STACK_TOP TASK_SIZE
51 #define TASK_UNMAPPED_BASE 0
62 #define INIT_THREAD { \
63 sizeof(init_stack) + (unsigned long) init_stack, 0, \
68 unsigned long new_sp);
90 #define thread_saved_pc(tsk) (tsk->thread.pc)
94 #define KSTK_EIP(tsk) \
96 unsigned long eip = 0; \
97 if ((tsk)->thread.esp0 > PAGE_SIZE && \
98 MAP_NR((tsk)->thread.esp0) < max_mapnr) \
99 eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \
101 #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp)
103 #define cpu_relax() smp_mb()
112 #ifdef _BOOTROM_GET_DXE_ADDRESS_TWI
135 #define blackfin_core_id() (bfin_dspid() & 0xff)
139 #if defined(CONFIG_BF_REV_0_0)
141 #elif defined(CONFIG_BF_REV_0_1)
143 #elif defined(CONFIG_BF_REV_0_2)
145 #elif defined(CONFIG_BF_REV_0_3)
147 #elif defined(CONFIG_BF_REV_0_4)
149 #elif defined(CONFIG_BF_REV_0_5)
151 #elif defined(CONFIG_BF_REV_0_6)
153 #elif defined(CONFIG_BF_REV_ANY)