]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Fri, 4 Aug 2006 19:23:28 +0000 (19:23 +0000)
committerokuji <okuji@localhost>
Fri, 4 Aug 2006 19:23:28 +0000 (19:23 +0000)
        Move the prototypes of grub_setjmp and grub_longjmp to
        cpu/setjmp.h, so that each architecture may specify different
        attributes.

        * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
        (grub_longjmp): Likewise.
        * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
        (grub_longjmp): Likewise.
        * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
        (grub_longjmp): Likewise.

        * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
        [!GRUB_UTIL] (grub_longjmp): Removed.

ChangeLog
THANKS
include/grub/i386/setjmp.h
include/grub/powerpc/setjmp.h
include/grub/setjmp.h
include/grub/sparc64/setjmp.h

index aa070cbce830e6a17c57d39768c7adb5b627b612..4440ef6cbda02de290b49bd6d8937adb696fcc41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2006-08-04  Yoshinori K. Okuji  <okuji@enbug.org>
+
+       Move the prototypes of grub_setjmp and grub_longjmp to
+       cpu/setjmp.h, so that each architecture may specify different
+       attributes.
+       
+       * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
+       (grub_longjmp): Likewise.
+       * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
+       (grub_longjmp): Likewise.
+       * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
+       (grub_longjmp): Likewise.
+
+       * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
+       [!GRUB_UTIL] (grub_longjmp): Removed.
+
 2006-08-01  Pelletier Vincent  <subdino2004@yahoo.fr>
 
        * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
diff --git a/THANKS b/THANKS
index b2fd45b8d4c3826f3217f4c1bf69d07eb03b075c..dd95e67f2d8a4919f908efb6830681f08a924895 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -6,6 +6,7 @@ The following people made especially gracious contributions of their
 time and energy in helping to track down bugs, add new features, and
 generally assist in the GRUB 2 maintainership process:
 
+Bibo Mao <bibo.mao@intel.com>
 Guillem Jover <guillem@hadrons.org>
 Harley D. Eades III <hde@foobar-qux.org>
 Hollis Blanchard <hollis@penguinppc.org>
index b4923c506da1d94586e42a78e4d7af0dbea4a1c1..d9302235752ae94444886a93a5859fbc566d714d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 2003  Free Software Foundation, Inc.
+ *  Copyright (C) 2003,2006  Free Software Foundation, Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -22,4 +22,8 @@
 
 typedef unsigned long grub_jmp_buf[6];
 
+int grub_setjmp (grub_jmp_buf env) __attribute__ ((cdecl, regparm (3)));
+void grub_longjmp (grub_jmp_buf env, int val) __attribute__ ((noreturn, cdecl,
+                                                             regparm (3)));
+
 #endif /* ! GRUB_SETJMP_CPU_HEADER */
index 13082a29a1bcb0e1ae77133c8b2f4f7f2066c395..37b28168593b18d3857d6a5253024da81335d3dc 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 2002, 2004  Free Software Foundation, Inc.
+ *  Copyright (C) 2002,2004,2006  Free Software Foundation, Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -22,4 +22,7 @@
 
 typedef unsigned long grub_jmp_buf[20];
 
+int grub_setjmp (grub_jmp_buf env);
+void grub_longjmp (grub_jmp_buf env, int val) __attribute__ ((noreturn));
+
 #endif /* ! GRUB_SETJMP_CPU_HEADER */
index 527b238229582125a0bebc708c73586905c0d962..78f5ca54e2535ad553887917f091a947198faffa 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 2003  Free Software Foundation, Inc.
+ *  Copyright (C) 2003,2006  Free Software Foundation, Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -26,11 +26,9 @@ typedef jmp_buf grub_jmp_buf;
 #define grub_setjmp setjmp
 #define grub_longjmp longjmp
 #else
-/* This must define grub_jmp_buf.  */
-#include <grub/cpu/setjmp.h>
-
-int grub_setjmp (grub_jmp_buf env);
-void grub_longjmp (grub_jmp_buf env, int val) __attribute__ ((noreturn));
+/* This must define grub_jmp_buf, and declare grub_setjmp and
+   grub_longjmp.  */
+# include <grub/cpu/setjmp.h>
 #endif
 
 #endif /* ! GRUB_SETJMP_HEADER */
index d89084df7db8b43383299576d6b130a43cac04d7..33f085a9a3ce2829e72240adc725c58f14a950b0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 2002, 2004  Free Software Foundation, Inc.
+ *  Copyright (C) 2002,2004,2006  Free Software Foundation, Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -23,4 +23,7 @@
 /* FIXME (sparc64).  */
 typedef unsigned long grub_jmp_buf[20];
 
+int grub_setjmp (grub_jmp_buf env);
+void grub_longjmp (grub_jmp_buf env, int val) __attribute__ ((noreturn));
+
 #endif /* ! GRUB_SETJMP_CPU_HEADER */