use grub_{setjmp,longjmp} to restart stage2.

This commit is contained in:
okuji committed 2000-01-05 06:02:22 +00:00
1 parent 817ae7fd92
commit 4ca2160923
8 files changed
+138 -25

No files matched your search

+15 -1
View File
@@ -2,7 +2,7 @@
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 1996 Erich Boleyn <erich@uruk.org>
* Copyright (C) 1999 Free Software Foundation, Inc.
* Copyright (C) 1999, 2000 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
@@ -689,6 +689,20 @@ int grub_strcmp (const char *s1, const char *s2);
int grub_strlen (const char *str);
char *grub_strcpy (char *dest, const char *src);
#ifndef GRUB_UTIL
typedef unsigned long grub_jmp_buf[6];
#else
/* In the grub shell, use the libc jmp_buf instead. */
# include <setjmp.h>
# define grub_jmp_buf jmp_buf
#endif
int grub_setjmp (grub_jmp_buf env);
void grub_longjmp (grub_jmp_buf env, int val);
/* The environment for restarting Stage 2. */
extern grub_jmp_buf restart_env;
/* misc */
void init_page (void);
void print_error (void);