Ver código fonte

[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>
tags/v0.9.4
Eygene Ryabinkin 15 anos atrás
pai
commit
99251f5b32
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/arch/i386/prefix/libprefix.S

+ 1
- 1
src/arch/i386/prefix/libprefix.S Ver arquivo

@@ -294,7 +294,7 @@ pm_call:
294 294
 	movw	%ss, %ax
295 295
 	shll	$4, %eax
296 296
 	movzwl	%bp, %edi
297
-	leal	PM_CALL_VAR(gdt)(%eax, %edi), %eax
297
+	addr32 leal PM_CALL_VAR(gdt)(%eax, %edi), %eax
298 298
 	movl	%eax, PM_CALL_VAR(gdt_base)(%bp)
299 299
 	movw	%cs, %ax
300 300
 	movw	$PM_CALL_VAR(pm_cs), %di

Carregando…
Cancelar
Salvar