Fix wrong mov instruction size.

* New clang 7.0 assembler rejects mov with wrong length.

Bug: 72412103
Test: build and boot in emulator
Change-Id: If1a1affaa4a149265f8cc2b8bf463e58e71cc47a
This commit is contained in:
Chih-Hung Hsieh 2018-01-25 11:44:19 -08:00
parent 98aad49d58
commit 09f88076c8

View file

@ -50,12 +50,12 @@ AsmGetRegs:
movl (%esp), %ecx
movl %ecx, 32(%eax)
movl %cs, 36(%eax)
movl %ss, 40(%eax)
movl %ds, 44(%eax)
movl %es, 48(%eax)
movl %fs, 52(%eax)
movl %gs, 56(%eax)
mov %cs, 36(%eax)
mov %ss, 40(%eax)
mov %ds, 44(%eax)
mov %es, 48(%eax)
mov %fs, 52(%eax)
mov %gs, 56(%eax)
ret
.cfi_endproc