grub/kern
okuji e6b92c8afb 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
* include/grub/normal.h (grub_halt_init): New prototype.
  (grub_halt_fini): Likewise.
  (grub_reboot_init): Likewise.
  (grub_reboot_fini): Likewise.

  * util/grub-emu.c: Include signal.h.
  (main_env): New global variable.
  (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
  catch C-c.
  (grub_machine_fini): New function.
  (main): Call grub_halt_init and grub_reboot_init before
  grub_main, and grub_reboot_fini and grub_halt_fini after it.
  Call setjmp with MAIN_ENV to go back afterwards.
  Call grub_machine_fini right before return.

  * include/grub/util/misc.h: Include setjmp.h.
  (main_env): New prototype.

  * include/grub/kernel.h (grub_machine_fini): New prototype.
  * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
  * include/grub/i386/pc/console.h (grub_console_fini): Likewise.

  * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
  * kern/i386/pc/init.c (grub_machine_fini): Likewise.
  * term/i386/pc/console.c (grub_console_fini): Likewise.

  * util/i386/pc/misc.c: New file.

  * conf/i386-pc.rmk (grub_emu_SOURCES): Added
  util/i386/pc/misc.c, commands/i386/pc/halt.c and
  commands/i386/pc/reboot.c.
2005-02-15 00:07:01 +00:00
..
i386 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org> 2005-02-15 00:07:01 +00:00
powerpc 2005-02-14 Guillem Jover <guillem@hadrons.org> 2005-02-14 18:41:33 +00:00
device.c 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
disk.c 2004-12-04 Marco Gerards <metgerards@student.han.nl> 2004-12-04 18:45:46 +00:00
dl.c 2005-02-14 Guillem Jover <guillem@hadrons.org> 2005-02-14 18:41:33 +00:00
env.c 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
err.c 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
file.c 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
fs.c 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
loader.c 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org> 2004-09-10 20:31:55 +00:00
main.c 2005-01-04 Hollis Blanchard <hollis@penguinppc.org> 2005-01-04 14:01:45 +00:00
misc.c 2005-01-22 Marco Gerards <metgerards@student.han.nl> 2005-01-22 15:58:18 +00:00
mm.c 2005-01-20 Marco Gerards <metgerards@student.han.nl> 2005-01-20 17:25:39 +00:00
partition.c 2005-02-12 Hollis Blanchard <hollis@penguinppc.org> 2005-02-13 01:40:28 +00:00
rescue.c 2004-12-04 Marco Gerards <metgerards@student.han.nl> 2004-12-04 18:45:46 +00:00
term.c 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00