[build] Cope with oddities in the Fedora 10 assembler

The version of the GNU assembler shipped with Fedora 10
(2.18.50.0.9-8.fc10) complains about character literals in some of our
assembly code.  Changing $'x' to $( 'x' ) seems to fix the problem.
Yes, the whitespace is required; using just $('x') does not work.

Reported by Kevin O'Connor <kevin@koconnor.net>.
This commit is contained in:
Michael Brown
2009-02-16 03:53:25 +00:00
parent b08e255ef1
commit 7bc4093e1a
3 changed files with 15 additions and 15 deletions
+5 -5
View File
@@ -179,14 +179,14 @@ print_pci_busdevfn:
xchgb %al, %ah
call print_hex_byte
/* Print ":" */
movb $':', %al
movb $( ':' ), %al
call print_character
/* Print device */
movb %ah, %al
shrb $3, %al
call print_hex_byte
/* Print "." */
movb $'.', %al
movb $( '.' ), %al
call print_character
/* Print function */
movb %ah, %al
@@ -214,15 +214,15 @@ print_kill_line:
pushw %ax
pushw %cx
/* Print CR */
movb $'\r', %al
movb $( '\r' ), %al
call print_character
/* Print 79 spaces */
movb $' ', %al
movb $( ' ' ), %al
movw $79, %cx
1: call print_character
loop 1b
/* Print CR */
movb $'\r', %al
movb $( '\r' ), %al
call print_character
/* Restore registers and return */
popw %cx