summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/transitions/librm.S
diff options
context:
space:
mode:
authorMichael Brown2006-05-28 16:21:29 +0200
committerMichael Brown2006-05-28 16:21:29 +0200
commit041a04335e60a939b5e1d2d6a2be0e24f2121e0c (patch)
tree0d07a958262891b22135ba1db79a3fc9878ad22f /src/arch/i386/transitions/librm.S
parentAdded tcp_kick(). This speed up LILO and GRUB booting by almost two (diff)
downloadipxe-041a04335e60a939b5e1d2d6a2be0e24f2121e0c.tar.gz
ipxe-041a04335e60a939b5e1d2d6a2be0e24f2121e0c.tar.xz
ipxe-041a04335e60a939b5e1d2d6a2be0e24f2121e0c.zip
Fixed assembly on old versions of gas
Diffstat (limited to 'src/arch/i386/transitions/librm.S')
-rw-r--r--src/arch/i386/transitions/librm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/i386/transitions/librm.S b/src/arch/i386/transitions/librm.S
index 7364f9f2..f1f1919d 100644
--- a/src/arch/i386/transitions/librm.S
+++ b/src/arch/i386/transitions/librm.S
@@ -124,7 +124,7 @@ init_librm:
shll $4, %eax
movw $real_cs, %bx
call set_seg_base
- leal (%eax, %edi), %ebx
+ addr32 leal (%eax, %edi), %ebx
movl %ebx, _text16
/* Store rm_ds and _data16, set up real_ds segment and set GDT base */
@@ -134,7 +134,7 @@ init_librm:
shll $4, %eax
movw $real_ds, %bx
call set_seg_base
- leal (%eax, %edi), %ebx
+ addr32 leal (%eax, %edi), %ebx
movl %ebx, _data16
addl $gdt, %eax
movl %eax, gdt_base
@@ -409,7 +409,7 @@ prot_call:
popw %fs
popw %gs
popal
- movl -20(%esp), %esp /* -20(%sp) is not a valid 80386 expression.
+ addr32 movl -20(%esp), %esp /* -20(%sp) is not a valid 80386 expression.
* -20(%esp) is safe because prot_to_real
* zeroes the high word of %esp, and interrupts
* are still disabled at this point. */