#include <linux/compiler.h>
#include <asm/page.h>
#include <asm/types.h>
#include <cpu/registers.h>
Go to the source code of this file.
|
#define | current_text_addr() |
|
#define | TASK_SIZE 0x7ffff000UL |
|
#define | STACK_TOP TASK_SIZE |
|
#define | STACK_TOP_MAX STACK_TOP |
|
#define | TASK_UNMAPPED_BASE (TASK_SIZE / 3) |
|
#define | SR_MMU 0x80000000 |
|
#define | SR_IMASK 0x000000f0 |
|
#define | SR_FD 0x00008000 |
|
#define | SR_SSTEP 0x08000000 |
|
#define | INIT_MMAP { &init_mm, 0, 0, NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, NULL, NULL } |
|
#define | INIT_THREAD |
|
#define | SR_USER (SR_MMU | SR_FD) |
|
#define | start_thread(_regs, new_pc, new_sp) |
|
#define | copy_segments(p, mm) do { } while (0) |
|
#define | release_segments(mm) do { } while (0) |
|
#define | forget_segments() do { } while (0) |
|
#define | FPSCR_INIT 0x00000000 |
|
#define | fpinit(fpregs) do { } while (0) |
|
#define | thread_saved_pc(tsk) (tsk->thread.pc) |
|
#define | KSTK_EIP(tsk) ((tsk)->thread.pc) |
|
#define | KSTK_ESP(tsk) ((tsk)->thread.sp) |
|
#define copy_segments |
( |
|
p, |
|
|
|
mm |
|
) |
| do { } while (0) |
#define current_text_addr |
( |
|
void | ) |
|
Value:({ \
unsigned long long __dummy = 0; \
__asm__("gettr tr0, %1\n\t" \
"pta 4, tr0\n\t" \
"gettr tr0, %0\n\t" \
"ptabs %1, tr0\n\t" \
:"=r" (pc), "=r" (__dummy) \
: "1" (__dummy)); \
pc; })
Definition at line 26 of file processor_64.h.
#define forget_segments |
( |
| ) |
do { } while (0) |
#define fpinit |
( |
|
fpregs | ) |
do { } while (0) |
#define FPSCR_INIT 0x00000000 |
Value:{ \
.pc = 0, \
.address = 0, \
.flags = 0, \
}
Definition at line 134 of file processor_64.h.
#define release_segments |
( |
|
mm | ) |
do { } while (0) |
#define SR_IMASK 0x000000f0 |
#define SR_MMU 0x80000000 |
#define SR_SSTEP 0x08000000 |
#define start_thread |
( |
|
_regs, |
|
|
|
new_pc, |
|
|
|
new_sp |
|
) |
| |
Value:
_regs->pc = new_pc - 4; \
_regs->pc |= 1; \
_regs->regs[18] = 0; \
_regs->regs[15] = new_sp
Definition at line 149 of file processor_64.h.
#define TASK_SIZE 0x7ffff000UL |
#define thread_saved_pc |
( |
|
tsk | ) |
(tsk->thread.pc) |