|
|
f96e0b |
From cf81cc89f1aa6d5b00e9ddd06e47836ff8e4e377 Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Sat, 2 Mar 2013 15:31:17 +0100
|
|
|
f96e0b |
Subject: [PATCH 184/482] * grub-core/lib/ia64/longjmp.S: Fix the name
|
|
|
f96e0b |
of longjmp function. * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp
|
|
|
f96e0b |
function.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 5 +++++
|
|
|
f96e0b |
grub-core/lib/ia64/longjmp.S | 10 +++++-----
|
|
|
f96e0b |
grub-core/lib/ia64/setjmp.S | 8 ++++----
|
|
|
f96e0b |
include/grub/ia64/setjmp.h | 2 +-
|
|
|
f96e0b |
4 files changed, 15 insertions(+), 10 deletions(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index 07318d8..d55dd8f 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,5 +1,10 @@
|
|
|
f96e0b |
2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
+ * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
|
|
|
f96e0b |
+ * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
* grub-core/script/execute.c (gettext_append): Remove nested functions.
|
|
|
f96e0b |
|
|
|
f96e0b |
2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
diff --git a/grub-core/lib/ia64/longjmp.S b/grub-core/lib/ia64/longjmp.S
|
|
|
f96e0b |
index 729bdc7..38afb22 100644
|
|
|
f96e0b |
--- a/grub-core/lib/ia64/longjmp.S
|
|
|
f96e0b |
+++ b/grub-core/lib/ia64/longjmp.S
|
|
|
f96e0b |
@@ -40,10 +40,10 @@
|
|
|
f96e0b |
|
|
|
f96e0b |
/* __longjmp(__jmp_buf buf, int val) */
|
|
|
f96e0b |
|
|
|
f96e0b |
- .text
|
|
|
f96e0b |
- .global longjmp
|
|
|
f96e0b |
- .proc longjmp
|
|
|
f96e0b |
-longjmp:
|
|
|
f96e0b |
+ .text
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+ .proc EXT_C(grub_longjmp)
|
|
|
f96e0b |
+FUNCTION(grub_longjmp)
|
|
|
f96e0b |
alloc r8=ar.pfs,2,1,0,0
|
|
|
f96e0b |
mov r27=ar.rsc
|
|
|
f96e0b |
add r2=0x98,in0 // r2 <- &jmpbuf.orig_jmp_buf_addr
|
|
|
f96e0b |
@@ -159,4 +159,4 @@ longjmp:
|
|
|
f96e0b |
invala // virt. -> phys. regnum mapping may change
|
|
|
f96e0b |
mov pr=r24,-1
|
|
|
f96e0b |
br.ret.dptk.few rp
|
|
|
f96e0b |
- .endp longjmp
|
|
|
f96e0b |
+ .endp EXT_C(grub_longjmp)
|
|
|
f96e0b |
diff --git a/grub-core/lib/ia64/setjmp.S b/grub-core/lib/ia64/setjmp.S
|
|
|
f96e0b |
index dc19be0..a0382d8 100644
|
|
|
f96e0b |
--- a/grub-core/lib/ia64/setjmp.S
|
|
|
f96e0b |
+++ b/grub-core/lib/ia64/setjmp.S
|
|
|
f96e0b |
@@ -74,13 +74,13 @@ GRUB_MOD_LICENSE "GPLv2+"
|
|
|
f96e0b |
/* The following two entry points are the traditional entry points: */
|
|
|
f96e0b |
|
|
|
f96e0b |
.text
|
|
|
f96e0b |
- .global setjmp
|
|
|
f96e0b |
- .proc setjmp
|
|
|
f96e0b |
-setjmp:
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+ .proc EXT_C(grub_setjmp)
|
|
|
f96e0b |
+FUNCTION(grub_setjmp)
|
|
|
f96e0b |
alloc r8=ar.pfs,2,0,0,0
|
|
|
f96e0b |
mov in1=1
|
|
|
f96e0b |
br.cond.sptk.many __sigsetjmp
|
|
|
f96e0b |
- .endp setjmp
|
|
|
f96e0b |
+ .endp EXT_C(grub_setjmp)
|
|
|
f96e0b |
|
|
|
f96e0b |
/* __sigsetjmp(__jmp_buf buf, int savemask) */
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/include/grub/ia64/setjmp.h b/include/grub/ia64/setjmp.h
|
|
|
f96e0b |
index a71c9c5..6e9bc8b 100644
|
|
|
f96e0b |
--- a/include/grub/ia64/setjmp.h
|
|
|
f96e0b |
+++ b/include/grub/ia64/setjmp.h
|
|
|
f96e0b |
@@ -24,5 +24,5 @@
|
|
|
f96e0b |
/* the __jmp_buf element type should be __float80 per ABI... */
|
|
|
f96e0b |
typedef long grub_jmp_buf[_JBLEN] __attribute__ ((aligned (16))); /* guarantees 128-bit alignment! */
|
|
|
f96e0b |
|
|
|
f96e0b |
-int grub_setjmp (grub_jmp_buf env);
|
|
|
f96e0b |
+int grub_setjmp (grub_jmp_buf env) __attribute__ ((returns_twice));
|
|
|
f96e0b |
void grub_longjmp (grub_jmp_buf env, int val) __attribute__ ((noreturn));
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|