From 25fb4604c216ffccfcefa0878938a23c630f9f20 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 28 Nov 2013 19:30:47 +0000 Subject: Appease LLVM's integrated assembler. error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq' error: unknown token in expression cmp -> cmpl, %cs:* -> *%cs: ok kettenis@ --- sys/arch/i386/pci/pcibios.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/i386/pci') diff --git a/sys/arch/i386/pci/pcibios.c b/sys/arch/i386/pci/pcibios.c index 47b5003ef27..0e9cdd13987 100644 --- a/sys/arch/i386/pci/pcibios.c +++ b/sys/arch/i386/pci/pcibios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcibios.c,v 1.42 2013/10/01 20:22:12 sf Exp $ */ +/* $OpenBSD: pcibios.c,v 1.43 2013/11/28 19:30:46 brad Exp $ */ /* $NetBSD: pcibios.c,v 1.5 2000/08/01 05:23:59 uch Exp $ */ /* @@ -346,7 +346,7 @@ pcibios_get_status(struct pcibios_softc *sc, u_int32_t *rev_maj, "pushl %%ds\n\t" "movw 4(%%edi), %%cx\n\t" "movl %%ecx, %%ds\n\t" - "lcall %%cs:*(%%edi)\n\t" + "lcall *%%cs:(%%edi)\n\t" "pop %%ds\n\t" "pop %%es\n\t" "jc 1f\n\t" @@ -399,7 +399,7 @@ pcibios_get_intr_routing(struct pcibios_softc *sc, "pushl %%ds\n\t" "movw 4(%%esi), %%cx\n\t" "movl %%ecx, %%ds\n\t" - "lcall %%cs:*(%%esi)\n\t" + "lcall *%%cs:(%%esi)\n\t" "popl %%ds\n\t" "popl %%es\n\t" "jc 1f\n\t" -- cgit v1.2.3