Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
processor_64.h File Reference
#include <asm/asi.h>
#include <asm/pstate.h>
#include <asm/ptrace.h>
#include <asm/page.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  mm_segment_t
 
struct  thread_struct
 

Macros

#define current_text_addr()   ({ void *pc; __asm__("rd %%pc, %0" : "=r" (pc)); pc; })
 
#define __ARCH_WANT_UNLOCKED_CTXSW
 
#define wp_works_ok   1
 
#define wp_works_ok__is_a_macro   /* for versions in ksyms.c */
 
#define VA_BITS   44
 
#define VPTE_SIZE   (1UL << (VA_BITS - PAGE_SHIFT + 3))
 
#define TASK_SIZE_OF(tsk)
 
#define TASK_SIZE
 
#define INIT_THREAD
 
#define TSTATE_INITIAL_MM   TSTATE_RMO
 
#define start_thread(regs, pc, sp)
 
#define start_thread32(regs, pc, sp)
 
#define release_thread(tsk)   do { } while (0)
 
#define task_pt_regs(tsk)   (task_thread_info(tsk)->kregs)
 
#define KSTK_EIP(tsk)   (task_pt_regs(tsk)->tpc)
 
#define KSTK_ESP(tsk)   (task_pt_regs(tsk)->u_regs[UREG_FP])
 
#define cpu_relax()
 
#define ARCH_HAS_PREFETCH
 
#define ARCH_HAS_PREFETCHW
 
#define ARCH_HAS_SPINLOCK_PREFETCH
 
#define spin_lock_prefetch(x)   prefetchw(x)
 
#define HAVE_ARCH_PICK_MMAP_LAYOUT
 

Functions

unsigned long thread_saved_pc (struct task_struct *)
 
pid_t kernel_thread (int(*fn)(void *), void *arg, unsigned long flags)
 
unsigned long get_wchan (struct task_struct *task)
 

Macro Definition Documentation

#define __ARCH_WANT_UNLOCKED_CTXSW

Definition at line 22 of file processor_64.h.

#define ARCH_HAS_PREFETCH

Definition at line 220 of file processor_64.h.

#define ARCH_HAS_PREFETCHW

Definition at line 221 of file processor_64.h.

#define ARCH_HAS_SPINLOCK_PREFETCH

Definition at line 222 of file processor_64.h.

#define cpu_relax (   void)
Value:
asm volatile("\n99:\n\t" \
"rd %%ccr, %%g0\n\t" \
"rd %%ccr, %%g0\n\t" \
"rd %%ccr, %%g0\n\t" \
".section .pause_3insn_patch,\"ax\"\n\t"\
".word 99b\n\t" \
"wr %%g0, 128, %%asr27\n\t" \
"nop\n\t" \
"nop\n\t" \
".previous" \
::: "memory")

Definition at line 204 of file processor_64.h.

#define current_text_addr (   void)    ({ void *pc; __asm__("rd %%pc, %0" : "=r" (pc)); pc; })

Definition at line 14 of file processor_64.h.

#define HAVE_ARCH_PICK_MMAP_LAYOUT

Definition at line 250 of file processor_64.h.

#define INIT_THREAD
Value:
{ \
0, \
}

Definition at line 84 of file processor_64.h.

#define KSTK_EIP (   tsk)    (task_pt_regs(tsk)->tpc)

Definition at line 196 of file processor_64.h.

#define KSTK_ESP (   tsk)    (task_pt_regs(tsk)->u_regs[UREG_FP])

Definition at line 197 of file processor_64.h.

#define release_thread (   tsk)    do { } while (0)

Definition at line 189 of file processor_64.h.

#define spin_lock_prefetch (   x)    prefetchw(x)

Definition at line 248 of file processor_64.h.

#define start_thread (   regs,
  pc,
  sp 
)

Definition at line 110 of file processor_64.h.

#define start_thread32 (   regs,
  pc,
  sp 
)

Definition at line 148 of file processor_64.h.

#define task_pt_regs (   tsk)    (task_thread_info(tsk)->kregs)

Definition at line 195 of file processor_64.h.

#define TASK_SIZE
Value:
(test_thread_flag(TIF_32BIT) ? \
(1UL << 32UL) : ((unsigned long)-VPTE_SIZE))

Definition at line 45 of file processor_64.h.

#define TASK_SIZE_OF (   tsk)
Value:
(test_tsk_thread_flag(tsk,TIF_32BIT) ? \
(1UL << 32UL) : ((unsigned long)-VPTE_SIZE))

Definition at line 42 of file processor_64.h.

#define TSTATE_INITIAL_MM   TSTATE_RMO

Definition at line 106 of file processor_64.h.

#define VA_BITS   44

Definition at line 35 of file processor_64.h.

#define VPTE_SIZE   (1UL << (VA_BITS - PAGE_SHIFT + 3))

Definition at line 37 of file processor_64.h.

#define wp_works_ok   1

Definition at line 25 of file processor_64.h.

#define wp_works_ok__is_a_macro   /* for versions in ksyms.c */

Definition at line 26 of file processor_64.h.

Function Documentation

unsigned long get_wchan ( struct task_struct task)

Definition at line 419 of file process.c.

pid_t kernel_thread ( int(*)(void *)  fn,
void arg,
unsigned long  flags 
)

Definition at line 333 of file process.c.

unsigned long thread_saved_pc ( struct task_struct )

Definition at line 404 of file process.c.