Go to the documentation of this file.
11 #ifndef _ASM_MICROBLAZE_PROCESSOR_H
12 #define _ASM_MICROBLAZE_PROCESSOR_H
14 #include <asm/ptrace.h>
15 #include <asm/setup.h>
16 #include <asm/registers.h>
17 #include <asm/entry.h>
18 #include <asm/current.h>
24 # define cpu_relax() barrier()
25 # define cpu_sleep() do {} while (0)
27 #define task_pt_regs(tsk) \
28 (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1)
46 # define TASK_SIZE (0x81000000 - 0x80000000)
52 # define current_text_addr() ({ __label__ _l; _l: &&_l; })
58 # define TASK_UNMAPPED_BASE 0
65 # define INIT_THREAD { }
86 # define KSTK_EIP(tsk) (0)
87 # define KSTK_ESP(tsk) (0)
95 # define TASK_SIZE (CONFIG_KERNEL_START)
101 # define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3)
103 # define THREAD_KSP 0
105 # ifndef __ASSEMBLY__
111 # define current_text_addr() ({ __label__ _l; _l: &&_l; })
119 unsigned long ksp_limit;
124 # define INIT_THREAD { \
125 .ksp = sizeof init_stack + (unsigned long)init_stack, \
126 .pgdir = swapper_pg_dir, \
142 # define thread_saved_pc(tsk) \
143 ((tsk)->thread.regs ? (tsk)->thread.regs->r15 : 0)
148 # define KERNEL_STACK_SIZE 0x2000
151 # define task_tos(task) ((unsigned long)(task) + KERNEL_STACK_SIZE)
152 # define task_regs(task) ((struct pt_regs *)task_tos(task) - 1)
154 # define task_pt_regs_plus_args(tsk) \
155 ((void *)task_pt_regs(tsk))
157 # define task_sp(task) (task_regs(task)->r1)
158 # define task_pc(task) (task_regs(task)->pc)
160 # define KSTK_EIP(task) (task_pc(task))
161 # define KSTK_ESP(task) (task_sp(task))
164 # define deactivate_mm(tsk, mm) do { } while (0)
166 # define STACK_TOP TASK_SIZE
167 # define STACK_TOP_MAX STACK_TOP
173 #ifdef CONFIG_DEBUG_FS
174 extern struct dentry *of_debugfs_root;