mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.5.4 compile error fix
@ 2002-02-11 13:42 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2002-02-11 13:42 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel


Hi Linus,

This patch fixes <asm-i386/processor.h> trying to access task_struct (which
can't have been defined at that point).

David

diff -uNr linux-2.5.4/include/asm-i386/processor.h linux-orn-254/include/asm-i386/processor.h
--- linux-2.5.4/include/asm-i386/processor.h	Mon Feb 11 09:41:35 2002
+++ linux-orn-254/include/asm-i386/processor.h	Mon Feb 11 10:29:29 2002
@@ -439,10 +439,7 @@
 /*
  * Return saved PC of a blocked thread.
  */
-static inline unsigned long thread_saved_pc(struct task_struct *tsk)
-{
-	return ((unsigned long *)tsk->thread->esp)[3];
-}
+#define thread_saved_pc(TSK) (((unsigned long *)(TSK)->thread.esp)[3])
 
 unsigned long get_wchan(struct task_struct *p);
 #define KSTK_EIP(tsk)	(((unsigned long *)(4096+(unsigned long)(tsk)->thread_info))[1019])

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-11 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-11 13:42 [PATCH] 2.5.4 compile error fix David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®