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.
This commit is contained in:
parent
29dda3ed74
commit
1064790dc6
6 changed files with 34 additions and 9 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue