File 0004-arm64-setjmp-Add-missing-move-for-arg1-0-case.patch of Package grub2.2691

From e4c49cab9b5d4ba77881b3829402b8b7fdb84382 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Thu, 7 Jan 2016 21:10:05 +0100
Subject: [PATCH] arm64/setjmp: Add missing move for arg1 == 0 case.

---
 grub-core/lib/arm64/setjmp.S | 1 +
 1 file changed, 1 insertion(+)

Index: grub-2.02~beta2/grub-core/lib/arm64/setjmp.S
===================================================================
--- grub-2.02~beta2.orig/grub-core/lib/arm64/setjmp.S
+++ grub-2.02~beta2/grub-core/lib/arm64/setjmp.S
@@ -50,6 +50,7 @@ FUNCTION(grub_longjmp)
 	ldp	x29, x30, [x0], #16
 	ldr	x2, [x0]
 	mov	sp, x2
+	mov	x0, #1
 	cmp	x1, #0
 	csel	x0, x1, x0, ne
 	ret