Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
processor.h File Reference

Go to the source code of this file.

Data Structures

struct  thread_struct
 

Macros

#define current_text_addr()   ({void *pc; __asm__ ("move.d $pc,%0" : "=rm" (pc)); pc; })
 
#define wp_works_ok   1
 
#define TASK_SIZE   (0xA0000000UL) /* 2.56 GB */
 
#define INIT_THREAD
 
#define KSTK_EIP(tsk)
 
#define start_thread(regs, ip, usp)
 
#define arch_fixup(regs)   regs->frametype = CRIS_FRAME_NORMAL;
 

Macro Definition Documentation

#define arch_fixup (   regs)    regs->frametype = CRIS_FRAME_NORMAL;

Definition at line 66 of file processor.h.

#define current_text_addr (   void)    ({void *pc; __asm__ ("move.d $pc,%0" : "=rm" (pc)); pc; })

Definition at line 8 of file processor.h.

#define INIT_THREAD
Value:
{ \
0, 0, 0x20 } /* ccr = int enable, nothing else */

Definition at line 37 of file processor.h.

#define KSTK_EIP (   tsk)
Value:
({ \
unsigned long eip = 0; \
unsigned long regs = (unsigned long)task_pt_regs(tsk); \
if (regs > PAGE_SIZE && \
virt_addr_valid(regs)) \
eip = ((struct pt_regs *)regs)->irp; \
eip; \
})

Definition at line 40 of file processor.h.

#define start_thread (   regs,
  ip,
  usp 
)
Value:
do { \
regs->irp = ip; \
regs->dccr |= 1 << U_DCCR_BITNR; \
wrusp(usp); \
} while(0)

Definition at line 55 of file processor.h.

#define TASK_SIZE   (0xA0000000UL) /* 2.56 GB */

Definition at line 34 of file processor.h.

#define wp_works_ok   1

Definition at line 11 of file processor.h.