ia64/xen-unstable

changeset 8768:5a37d91b1587

Fix context copy code in NMI handler.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Mon Feb 06 16:48:34 2006 +0000 (2006-02-06)
parents 0defafc42af4
children 17b5d5cca484
files xen/arch/x86/x86_64/entry.S
line diff
     1.1 --- a/xen/arch/x86/x86_64/entry.S	Mon Feb 06 17:04:45 2006 +0100
     1.2 +++ b/xen/arch/x86/x86_64/entry.S	Mon Feb 06 16:48:34 2006 +0000
     1.3 @@ -479,12 +479,12 @@ ENTRY(nmi)
     1.4          jz    nmi_in_hypervisor_mode
     1.5          /* Interrupted guest context. Copy the context to stack bottom. */
     1.6          GET_GUEST_REGS(%rbx)
     1.7 -        addq  $UREGS_kernel_sizeof,%rbx
     1.8          movl  $UREGS_kernel_sizeof/8,%ecx
     1.9  1:      popq  %rax
    1.10 -        subq  $8,%rbx
    1.11          movq  %rax,(%rbx)
    1.12 +        addq  $8,%rbx
    1.13          loop  1b
    1.14 +        subq  $UREGS_kernel_sizeof,%rbx
    1.15          movq  %rbx,%rsp
    1.16  nmi_in_hypervisor_mode:
    1.17          movq  %rsp,%rdi