diff --git a/ChangeLog b/ChangeLog index 6ea130dee..a87c472b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-06-15 Vladimir Serbinenko + + * 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 * Makefile.util.def (grub-mkrescue): Enable on loongson. diff --git a/grub-core/lib/mips/loongson/reboot.c b/grub-core/lib/mips/loongson/reboot.c index 1b510784b..d45d600e2 100644 --- a/grub-core/lib/mips/loongson/reboot.c +++ b/grub-core/lib/mips/loongson/reboot.c @@ -32,8 +32,8 @@ grub_reboot (void) switch (grub_arch_machine) { case GRUB_ARCH_MACHINE_FULOONG2E: - grub_outb (grub_inb (0xbfe00104) & ~4, 0xbfe00104); - grub_outb (grub_inb (0xbfe00104) | 4, 0xbfe00104); + grub_outl (grub_inl (0xbfe00104) & ~4, 0xbfe00104); + grub_outl (grub_inl (0xbfe00104) | 4, 0xbfe00104); break; case GRUB_ARCH_MACHINE_FULOONG2F: {