[x86] Do not corrupt edx since it can also corrupt REG_PC
This commit is contained in:
parent
11d87b89df
commit
46d8616a9f
|
@ -440,10 +440,10 @@ ext_load_io##rtype: ;\
|
||||||
ret ;\
|
ret ;\
|
||||||
;\
|
;\
|
||||||
ext_load_rom##rtype: ;\
|
ext_load_rom##rtype: ;\
|
||||||
mov %eax, %edx /* edx = address */ ;\
|
mov %eax, %esi /* esi = address */ ;\
|
||||||
shr $15, %edx /* edx = address >> 15 */ ;\
|
shr $15, %esi /* esi = address >> 15 */ ;\
|
||||||
/* Read rdmap pointer */ ;\
|
/* Read rdmap pointer */ ;\
|
||||||
mov RDMAP_OFF(REG_BASE, FULLREG(dx), ADDR_SIZE_BYTES), FULLREG(cx) ;\
|
mov RDMAP_OFF(REG_BASE, FULLREG(si), ADDR_SIZE_BYTES), FULLREG(cx) ;\
|
||||||
JUMP_CX_ZERO ext_load_slow##rtype /* page not loaded, slow */ ;\
|
JUMP_CX_ZERO ext_load_slow##rtype /* page not loaded, slow */ ;\
|
||||||
mov %eax, %edx /* edx = address */ ;\
|
mov %eax, %edx /* edx = address */ ;\
|
||||||
and $0x7FFF, %edx /* edx = address LSB */ ;\
|
and $0x7FFF, %edx /* edx = address LSB */ ;\
|
||||||
|
|
Loading…
Reference in New Issue