diff options
| author | Paul Mackerras <paulus@cargo.(none)> | 2002-02-13 17:16:11 +1100 |
|---|---|---|
| committer | Paul Mackerras <paulus@quango.(none)> | 2002-02-13 17:16:11 +1100 |
| commit | 2d54ff2f8467969d833ea6accf8cd2e9832d22af (patch) | |
| tree | f3a3f95e911a66c846281130f1ad4599f89faab1 /include | |
| parent | 53cd61701c9e548141b672e83a145fdeaef94ddb (diff) | |
Further PPC updates - fix thread_saved_pc, make sure init_thread_union
is properly 8kB-aligned.
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-ppc/processor.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h index 0ed0a0070075..9ea20f723d67 100644 --- a/include/asm-ppc/processor.h +++ b/include/asm-ppc/processor.h @@ -714,10 +714,8 @@ struct thread_struct { /* * Return saved PC of a blocked thread. For now, this is the "user" PC */ -static inline unsigned long thread_saved_pc(struct thread_struct *t) -{ - return (t->regs) ? t->regs->nip : 0; -} +#define thread_saved_pc(tsk) \ + ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) #define copy_segments(tsk, mm) do { } while (0) #define release_segments(mm) do { } while (0) |
