]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
x86: Fix __prepare_to_wait() asm test for stack size
authorKeir Fraser <keir@xen.org>
Thu, 2 May 2013 20:04:08 +0000 (21:04 +0100)
committerKeir Fraser <keir@xen.org>
Thu, 2 May 2013 20:04:08 +0000 (21:04 +0100)
Signed-off-by: Keir Fraser <keir@xen.org>
xen/common/wait.c

index 4d6924fd27e000af6cc6415fe0507b9ffc829f50..3c9366c978b8ad76f99f739edfa7f6de7f500f04 100644 (file)
@@ -145,7 +145,7 @@ static void __prepare_to_wait(struct waitqueue_vcpu *wqv)
         "push %%rax; push %%rbx; push %%rdx; "
         "push %%rbp; push %%r8; push %%r9; push %%r10; push %%r11; "
         "push %%r12; push %%r13; push %%r14; push %%r15; call 1f; "
-        "1: addq $2f-1b,(%%rsp); sub %%esp,%%ecx; cmp %3,%%ecx; jbe 3f; "
+        "1: addq $2f-1b,(%%rsp); sub %%esp,%%ecx; cmp %3,%%ecx; ja 3f; "
         "mov %%rsp,%%rsi; 2: rep movsb; mov %%rsp,%%rsi; 3: pop %%rax; "
         "pop %%r15; pop %%r14; pop %%r13; pop %%r12; "
         "pop %%r11; pop %%r10; pop %%r9; pop %%r8; "