* grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
(grub_halt): Likewise. * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
This commit is contained in:
parent
b1622487a8
commit
004be2cd95
3 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
|
||||||
|
(grub_halt): Likewise.
|
||||||
|
* grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
|
||||||
|
|
||||||
2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/term/serial.c (grub_serial_register)
|
* grub-core/term/serial.c (grub_serial_register)
|
||||||
|
|
|
@ -81,12 +81,13 @@ grub_machine_fini (void)
|
||||||
void
|
void
|
||||||
grub_exit (void)
|
grub_exit (void)
|
||||||
{
|
{
|
||||||
while (1);
|
grub_halt ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
grub_halt (void)
|
grub_halt (void)
|
||||||
{
|
{
|
||||||
|
grub_outl (42, 0xbfbf0004);
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <grub/misc.h>
|
#include <grub/misc.h>
|
||||||
|
#include <grub/cpu/io.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
grub_reboot (void)
|
grub_reboot (void)
|
||||||
{
|
{
|
||||||
|
grub_outl (42, 0xbfbf0000);
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue