fixed assembly code to compile with gcc 4.0.3. the original code was invalid, as there is no mov instruction to
move a 16 bit segment register into 32 bit memory location, and movzx (called movzwl within gcc) doesn't work with segement registers. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18864 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -222,10 +222,15 @@ FUNCTION(arch_debug_save_registers):
|
|||||||
popl %eax
|
popl %eax
|
||||||
movl %eax, 36(%esi)
|
movl %eax, 36(%esi)
|
||||||
|
|
||||||
movl %cs, 40(%esi)
|
xor %eax, %eax
|
||||||
movl %ss, 44(%esi)
|
movw %cs, %ax
|
||||||
movl %ds, 48(%esi)
|
movl %eax, 40(%esi)
|
||||||
movl %es, 52(%esi)
|
movw %ss, %ax
|
||||||
|
movl %eax, 44(%esi)
|
||||||
|
movw %ds, %ax
|
||||||
|
movl %eax, 48(%esi)
|
||||||
|
movw %es, %ax
|
||||||
|
movl %eax, 52(%esi)
|
||||||
|
|
||||||
popl %eax
|
popl %eax
|
||||||
popl %esi
|
popl %esi
|
||||||
|
|||||||
Reference in New Issue
Block a user