linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* next-0703: build failure in x86/entry_64.S
@ 2008-07-03 13:00 Alexander Beregalov
  2008-07-03 13:31 ` Ingo Molnar
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Beregalov @ 2008-07-03 13:00 UTC (permalink / raw)
  To: Linux Kernel Mailing List, linux-next, tglx, mingo, hpa

[-- Attachment #1: Type: text/plain, Size: 1187 bytes --]

Hi

  AS      arch/x86/kernel/entry_64.o
arch/x86/kernel/entry_64.S: Assembler messages:
arch/x86/kernel/entry_64.S:1200: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1204: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1208: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1212: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1248: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1252: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1256: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1260: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1272: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1276: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1288: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1292: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1296: Error: invalid character '_' in mnemonic
arch/x86/kernel/entry_64.S:1300: Error: invalid character '_' in mnemonic

gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)

Config is attached.

[-- Attachment #2: config.gz --]
[-- Type: application/x-gzip, Size: 7538 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: next-0703: build failure in x86/entry_64.S
  2008-07-03 13:00 next-0703: build failure in x86/entry_64.S Alexander Beregalov
@ 2008-07-03 13:31 ` Ingo Molnar
  2008-07-03 13:43   ` Ingo Molnar
  0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2008-07-03 13:31 UTC (permalink / raw)
  To: Alexander Beregalov
  Cc: Linux Kernel Mailing List, linux-next, tglx, mingo, hpa,
	Jeremy Fitzhardinge


* Alexander Beregalov <a.beregalov@gmail.com> wrote:

> Hi
> 
>   AS      arch/x86/kernel/entry_64.o
> arch/x86/kernel/entry_64.S: Assembler messages:
> arch/x86/kernel/entry_64.S:1200: Error: invalid character '_' in mnemonic
> arch/x86/kernel/entry_64.S:1204: Error: invalid character '_' in mnemonic
> arch/x86/kernel/entry_64.S:1208: Error: invalid character '_' in mnemonic
> arch/x86/kernel/entry_64.S:1212: Error: invalid character '_' in mnemonic

hm, cannot reproduce it here with linux-next-0702.

but ... this looks quite similar to an issue triggered by the 
tip/x86/xen-64bit topic (and fixed by the patch below) - but that's not 
in linux-next yet.

	Ingo

------------->
commit 6d2a6e57be1582b017a39f52385adf49d7cc4b0f
Author: Jeremy Fitzhardinge <jeremy@goop.org>
Date:   Fri Jun 27 12:04:03 2008 -0700

    x86_64: fix non-paravirt compilation
    
    Make sure SWAPGS and PARAVIRT_ADJUST_EXCEPTION_FRAME are properly
    defined when CONFIG_PARAVIRT is off.
    
    Fixes Ingo's build failure:
    arch/x86/kernel/entry_64.S: Assembler messages:
    arch/x86/kernel/entry_64.S:1201: Error: invalid character '_' in mnemonic
    arch/x86/kernel/entry_64.S:1205: Error: invalid character '_' in mnemonic
    arch/x86/kernel/entry_64.S:1209: Error: invalid character '_' in mnemonic
    arch/x86/kernel/entry_64.S:1213: Error: invalid character '_' in mnemonic
    
    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    Cc: Nick Piggin <npiggin@suse.de>
    Cc: Mark McLoughlin <markmc@redhat.com>
    Cc: xen-devel <xen-devel@lists.xensource.com>
    Cc: Eduardo Habkost <ehabkost@redhat.com>
    Cc: Vegard Nossum <vegard.nossum@gmail.com>
    Cc: Stephen Tweedie <sct@redhat.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

diff --git a/include/asm-x86/irqflags.h b/include/asm-x86/irqflags.h
index 484c74f..754bb3a 100644
--- a/include/asm-x86/irqflags.h
+++ b/include/asm-x86/irqflags.h
@@ -167,7 +167,20 @@ static inline unsigned long __raw_local_irq_save(void)
 #define INTERRUPT_RETURN_NMI_SAFE	NATIVE_INTERRUPT_RETURN_NMI_SAFE
 
 #ifdef CONFIG_X86_64
+#define SWAPGS	swapgs
+/*
+ * Currently paravirt can't handle swapgs nicely when we
+ * don't have a stack we can rely on (such as a user space
+ * stack).  So we either find a way around these or just fault
+ * and emulate if a guest tries to call swapgs directly.
+ *
+ * Either way, this is a good way to document that we don't
+ * have a reliable stack. x86_64 only.
+ */
 #define SWAPGS_UNSAFE_STACK	swapgs
+
+#define PARAVIRT_ADJUST_EXCEPTION_FRAME	/*  */
+
 #define INTERRUPT_RETURN	iretq
 #define USERGS_SYSRET64				\
 	swapgs;					\
@@ -233,15 +246,6 @@ static inline void trace_hardirqs_fixup(void)
 #else
 
 #ifdef CONFIG_X86_64
-/*
- * Currently paravirt can't handle swapgs nicely when we
- * don't have a stack we can rely on (such as a user space
- * stack).  So we either find a way around these or just fault
- * and emulate if a guest tries to call swapgs directly.
- *
- * Either way, this is a good way to document that we don't
- * have a reliable stack. x86_64 only.
- */
 #define ARCH_TRACE_IRQS_ON		call trace_hardirqs_on_thunk
 #define ARCH_TRACE_IRQS_OFF		call trace_hardirqs_off_thunk
 #define ARCH_LOCKDEP_SYS_EXIT		call lockdep_sys_exit_thunk
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h
index a935c70..6f5e195 100644
--- a/include/asm-x86/processor.h
+++ b/include/asm-x86/processor.h
@@ -535,9 +535,6 @@ static inline void load_sp0(struct tss_struct *tss,
 }
 
 #define set_iopl_mask native_set_iopl_mask
-#define SWAPGS	swapgs
-
-#define PARAVIRT_ADJUST_EXCEPTION_FRAME	/*  */
 #endif /* CONFIG_PARAVIRT */
 
 /*

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: next-0703: build failure in x86/entry_64.S
  2008-07-03 13:31 ` Ingo Molnar
@ 2008-07-03 13:43   ` Ingo Molnar
  0 siblings, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2008-07-03 13:43 UTC (permalink / raw)
  To: Alexander Beregalov
  Cc: Linux Kernel Mailing List, linux-next, tglx, mingo, hpa,
	Jeremy Fitzhardinge


* Ingo Molnar <mingo@elte.hu> wrote:

> hm, cannot reproduce it here with linux-next-0702.
> 
> but ... this looks quite similar to an issue triggered by the 
> tip/x86/xen-64bit topic (and fixed by the patch below) - but that's 
> not in linux-next yet.

ok, i can see the same problem in linux-next-0703 and git-cherry-picking 
the commit below fixes it. I have also pushed out a new version of 
auto-generic-ipi-next which caused this problem.

> commit 6d2a6e57be1582b017a39f52385adf49d7cc4b0f
> Author: Jeremy Fitzhardinge <jeremy@goop.org>
> Date:   Fri Jun 27 12:04:03 2008 -0700
> 
>     x86_64: fix non-paravirt compilation
>     
>     Make sure SWAPGS and PARAVIRT_ADJUST_EXCEPTION_FRAME are properly
>     defined when CONFIG_PARAVIRT is off.
>     
>     Fixes Ingo's build failure:
>     arch/x86/kernel/entry_64.S: Assembler messages:
>     arch/x86/kernel/entry_64.S:1201: Error: invalid character '_' in mnemonic
>     arch/x86/kernel/entry_64.S:1205: Error: invalid character '_' in mnemonic
>     arch/x86/kernel/entry_64.S:1209: Error: invalid character '_' in mnemonic
>     arch/x86/kernel/entry_64.S:1213: Error: invalid character '_' in mnemonic

	Ingo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-03 13:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03 13:00 next-0703: build failure in x86/entry_64.S Alexander Beregalov
2008-07-03 13:31 ` Ingo Molnar
2008-07-03 13:43   ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).