Go to the documentation of this file.
13 #ifndef _ASM_C6X_PROCESSOR_H
14 #define _ASM_C6X_PROCESSOR_H
16 #include <asm/ptrace.h>
18 #include <asm/current.h>
24 #define current_text_addr() \
27 asm("mvc .S2 pce1,%0\n" : "=b"(__pc)); \
46 #define TASK_SIZE 0xFFFFF000
52 #define TASK_UNMAPPED_BASE 0
74 &init_mm, 0, 0, NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, \
77 #define task_pt_regs(task) \
78 ((struct pt_regs *)(THREAD_START_SP + task_stack_page(task)) - 1)
80 #define alloc_kernel_stack() __get_free_page(GFP_KERNEL)
81 #define free_kernel_stack(page) free_page((page))
95 #define copy_segments(tsk, mm) do { } while (0)
96 #define release_segments(mm) do { } while (0)
101 #define thread_saved_pc(tsk) (task_pt_regs(tsk)->pc)
107 #define thread_saved_ksp(tsk) \
108 (*(unsigned long *)&(tsk)->thread.b15_14)
109 #define thread_saved_dp(tsk) \
110 (*(((unsigned long *)&(tsk)->thread.b15_14) + 1))
112 #define thread_saved_ksp(tsk) \
113 (*(((unsigned long *)&(tsk)->thread.b15_14) + 1))
114 #define thread_saved_dp(tsk) \
115 (*(unsigned long *)&(tsk)->thread.b15_14)
120 #define KSTK_EIP(task) (task_pt_regs(task)->pc)
121 #define KSTK_ESP(task) (task_pt_regs(task)->sp)
123 #define cpu_relax() do { } while (0)
128 #define HARD_RESET_NOW()