Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
processor_32.h File Reference
#include <asm/psr.h>
#include <asm/ptrace.h>
#include <asm/head.h>
#include <asm/signal.h>
#include <asm/page.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__("sethi %%hi(1f), %0; or %0, %%lo(1f), %0;\n1:" : "=r" (pc)); pc; })
 
#define wp_works_ok   1
 
#define wp_works_ok__is_a_macro   /* for versions in ksyms.c */
 
#define TASK_SIZE   PAGE_OFFSET
 
#define SPARC_FLAG_KTHREAD   0x1 /* task is a kernel thread */
 
#define SPARC_FLAG_UNALIGNED   0x2 /* is allowed to do unaligned accesses */
 
#define INIT_THREAD
 
#define release_thread(tsk)   do { } while(0)
 
#define task_pt_regs(tsk)   ((tsk)->thread.kregs)
 
#define KSTK_EIP(tsk)   ((tsk)->thread.kregs->pc)
 
#define KSTK_ESP(tsk)   ((tsk)->thread.kregs->u_regs[UREG_FP])
 

Functions

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

Macro Definition Documentation

#define current_text_addr (   void)    ({ void *pc; __asm__("sethi %%hi(1f), %0; or %0, %%lo(1f), %0;\n1:" : "=r" (pc)); pc; })

Definition at line 13 of file processor_32.h.

#define INIT_THREAD
Value:
{ \
.flags = SPARC_FLAG_KTHREAD, \
.current_ds = KERNEL_DS, \
}

Definition at line 71 of file processor_32.h.

#define KSTK_EIP (   tsk)    ((tsk)->thread.kregs->pc)

Definition at line 114 of file processor_32.h.

#define KSTK_ESP (   tsk)    ((tsk)->thread.kregs->u_regs[UREG_FP])

Definition at line 115 of file processor_32.h.

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

Definition at line 108 of file processor_32.h.

#define SPARC_FLAG_KTHREAD   0x1 /* task is a kernel thread */

Definition at line 68 of file processor_32.h.

#define SPARC_FLAG_UNALIGNED   0x2 /* is allowed to do unaligned accesses */

Definition at line 69 of file processor_32.h.

#define task_pt_regs (   tsk)    ((tsk)->thread.kregs)

Definition at line 113 of file processor_32.h.

#define TASK_SIZE   PAGE_OFFSET

Definition at line 31 of file processor_32.h.

#define wp_works_ok   1

Definition at line 24 of file processor_32.h.

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

Definition at line 25 of file processor_32.h.

Function Documentation

unsigned long get_wchan ( struct task_struct )

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 t)

Definition at line 404 of file process.c.