cpu/x86 asm: Just use the correct op suffix

LLVM AS doesn't support as much GNU junk extensions, data16/32
is almost never needed in truth if we just use the correct op
suffix. So do that here, fixes clang/llvm builds with the
integrated-as toggled on.

Change-Id: I6095d03d0289b418a49a10f135de5eb0e117cae0
Also-by: Damien Zammit <damien@zamaudio.com>
Signed-off-by: Damien Zammit <damien@zamaudio.com>
Reviewed-on: https://review.coreboot.org/21218
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Edward O'Callaghan
2017-01-08 19:14:42 +11:00
committed by Patrick Georgi
parent 5bf3457bc4
commit 4e2294b429
5 changed files with 10 additions and 10 deletions

View File

@ -79,7 +79,7 @@ _start:
movl $(gdtaddr), %ebx
sub $(_start), %ebx
data32 lgdt (%ebx)
lgdtl (%ebx)
movl %cr0, %eax
andl $~CR0_CLEAR_FLAGS, %eax