* grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit

sized ports since unlike on real hardware qemu supports only 32-bit
	regs.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-06-15 19:36:10 +02:00
parent 3f2bdd8f55
commit 0321415e86
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
sized ports since unlike on real hardware qemu supports only 32-bit
regs.
2012-06-15 Vladimir Serbinenko <phcoder@gmail.com> 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
* Makefile.util.def (grub-mkrescue): Enable on loongson. * Makefile.util.def (grub-mkrescue): Enable on loongson.

View file

@ -32,8 +32,8 @@ grub_reboot (void)
switch (grub_arch_machine) switch (grub_arch_machine)
{ {
case GRUB_ARCH_MACHINE_FULOONG2E: case GRUB_ARCH_MACHINE_FULOONG2E:
grub_outb (grub_inb (0xbfe00104) & ~4, 0xbfe00104); grub_outl (grub_inl (0xbfe00104) & ~4, 0xbfe00104);
grub_outb (grub_inb (0xbfe00104) | 4, 0xbfe00104); grub_outl (grub_inl (0xbfe00104) | 4, 0xbfe00104);
break; break;
case GRUB_ARCH_MACHINE_FULOONG2F: case GRUB_ARCH_MACHINE_FULOONG2F:
{ {