]> err.no Git - linux-2.6/blobdiff - include/asm-powerpc/processor.h
powerpc: Implement task_pt_regs() accessor
[linux-2.6] / include / asm-powerpc / processor.h
index e93e72df4bca2208939de346f12baf3d56e49809..101ed87f7d844d832a7d37a41d91739ed8f0aeb1 100644 (file)
@@ -222,7 +222,7 @@ struct thread_struct {
        .ksp_limit = INIT_SP_LIMIT, \
        .regs = (struct pt_regs *)INIT_SP - 1, /* XXX bogus, I think */ \
        .fs = KERNEL_DS, \
-       .fpr = {0}, \
+       .fpr = {{0}}, \
        .fpscr = { .val = 0, }, \
        .fpexc_mode = 0, \
 }
@@ -234,6 +234,8 @@ struct thread_struct {
 #define thread_saved_pc(tsk)    \
         ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
 
+#define task_pt_regs(tsk)      ((struct pt_regs *)(tsk)->thread.regs)
+
 unsigned long get_wchan(struct task_struct *p);
 
 #define KSTK_EIP(tsk)  ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)