Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[libprefix] Add addr32 prefix required by older assemblers
Explicitly state that we are using 32-bit addressing in 16-bit code.

GNU as 2.15 (FreeBSD/amd64 7-STABLE) got confused that 32-bit registers
are used in the code that was declared as 16-bit.  Add explicit modifier
'addr32' to make assembler happy.

Signed-off-by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
  • Loading branch information
Eygene Ryabinkin authored and Michael Brown committed Sep 4, 2008
1 parent e8b22f2 commit 99251f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/i386/prefix/libprefix.S
Expand Up @@ -294,7 +294,7 @@ pm_call:
movw %ss, %ax
shll $4, %eax
movzwl %bp, %edi
leal PM_CALL_VAR(gdt)(%eax, %edi), %eax
addr32 leal PM_CALL_VAR(gdt)(%eax, %edi), %eax
movl %eax, PM_CALL_VAR(gdt_base)(%bp)
movw %cs, %ax
movw $PM_CALL_VAR(pm_cs), %di
Expand Down

0 comments on commit 99251f5

Please sign in to comment.