mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [x86 patch] Fix UML signal.c build error
@ 2007-10-25 12:52 Balbir Singh
  0 siblings, 0 replies; only message in thread
From: Balbir Singh @ 2007-10-25 12:52 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar; +Cc: Balbir Singh, Linux Kernel Mailing List



Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
---

 include/asm-x86/sigcontext.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -puN include/asm-x86/sigcontext.h~uml-fix-sigcontext-build-error include/asm-x86/sigcontext.h
--- 2.6.24-rc1/include/asm-x86/sigcontext.h~uml-fix-sigcontext-build-error	2007-10-25 17:21:34.000000000 +0530
+++ 2.6.24-rc1-balbir/include/asm-x86/sigcontext.h	2007-10-25 17:22:09.000000000 +0530
@@ -4,7 +4,7 @@
 #include <linux/compiler.h>
 #include <asm/types.h>
 
-#ifdef __i386__
+#if BITS_PER_LONG == 32
 /*
  * As documented in the iBCS2 standard..
  *
@@ -83,7 +83,7 @@ struct sigcontext {
 	unsigned long cr2;
 };
 
-#else /* __i386__ */
+#else /* BITS_PER_LONG == 32 */
 
 /* FXSAVE frame */
 /* Note: reserved1/2 may someday contain valuable data. Always save/restore
@@ -133,6 +133,6 @@ struct sigcontext {
 	unsigned long reserved1[8];
 };
 
-#endif /* !__i386__ */
+#endif /* !BITS_PER_LONG == 32 */
 
 #endif
_

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL

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

only message in thread, other threads:[~2007-10-25 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-25 12:52 [x86 patch] Fix UML signal.c build error Balbir Singh

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®