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:
Marcus Overhagen 2006-09-16 20:40:19 +00:00
parent 6639eae245
commit a07acab41b
1 changed files with 9 additions and 4 deletions

View File

@ -222,10 +222,15 @@ FUNCTION(arch_debug_save_registers):
popl %eax
movl %eax, 36(%esi)
movl %cs, 40(%esi)
movl %ss, 44(%esi)
movl %ds, 48(%esi)
movl %es, 52(%esi)
xor %eax, %eax
movw %cs, %ax
movl %eax, 40(%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 %esi