While using x86_64 Fedora 10 gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
to build ipxe, I've encountered the following error:

  [BUILD] bin/mromprefix.o
{standard input}: Assembler messages:
{standard input}:0: Warning: '  found after symbol
{standard input}:0: Warning: '+ found after symbol
arch/i386/prefix/mromprefix.S:434: Error: 2 warnings, treating warnings as 
errors
make: *** [bin/mromprefix.o] Error 1

This patch fixes the error.

Signed-off-by: Valentine Barshak <[email protected]>
---
 src/arch/i386/prefix/romprefix.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/arch/i386/prefix/romprefix.S b/src/arch/i386/prefix/romprefix.S
index aa3465b..c85e563 100644
--- a/src/arch/i386/prefix/romprefix.S
+++ b/src/arch/i386/prefix/romprefix.S
@@ -445,7 +445,7 @@ get_pmm:
        /* Preserve registers */
        pushl   %eax
        pushw   %di
-       movw    $' ', %di
+       movw    $( ' ' ), %di
 get_pmm_find:
        /* Try to find existing block */
        pushl   %ebx            /* PMM handle */
@@ -474,7 +474,7 @@ get_pmm_allocate:
        pushw   %dx
        pushw   %ax
        popl    %esi
-       movw    $'+', %di       /* Indicate allocation attempt */
+       movw    $( '+' ), %di   /* Indicate allocation attempt */
        testl   %esi, %esi
        jnz     get_pmm_done
        stc
-- 
1.6.0.6

_______________________________________________
ipxe-devel mailing list
[email protected]
https://lists.ipxe.org/mailman/listinfo/ipxe-devel

Reply via email to