summaryrefslogtreecommitdiff
path: root/include/asm-ppc/processor.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 20:08:16 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 20:08:16 -0800
commit6c4b34bf750efec94cdb1b5b4851d46ea21dfffc (patch)
treebf3ebaff7d7f4064a2fc82e39a7b8fc1789832d5 /include/asm-ppc/processor.h
parentdfc05323cf886ed7faca146cbee5cdad1a62157f (diff)
v2.4.7.7 -> v2.4.7.8
- Jeff Hartmann: serverworks AGP gart unload memory leak fix - Marcelo Tosatti: make zone_inactive_shortage() return how big the shortage is. - Hugh Dickins: tidy up age_page_down() - Al Viro: super block handling cleanups
Diffstat (limited to 'include/asm-ppc/processor.h')
-rw-r--r--include/asm-ppc/processor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h
index 4c18e818c3a3..03603fa82351 100644
--- a/include/asm-ppc/processor.h
+++ b/include/asm-ppc/processor.h
@@ -631,7 +631,7 @@ struct thread_struct {
#define INIT_THREAD { \
INIT_SP, /* ksp */ \
0, /* wchan */ \
- (struct pt_regs *)INIT_SP - 1, /* regs */ \
+ 0, /* regs */ \
KERNEL_DS, /*fs*/ \
swapper_pg_dir, /* pgdir */ \
0, /* last_syscall */ \
@@ -659,8 +659,8 @@ static inline unsigned long thread_saved_pc(struct thread_struct *t)
unsigned long get_wchan(struct task_struct *p);
-#define KSTK_EIP(tsk) ((tsk)->thread.regs->nip)
-#define KSTK_ESP(tsk) ((tsk)->thread.regs->gpr[1])
+#define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
+#define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0)
/*
* NOTE! The task struct and the stack go together