]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 15 Jun 2012 17:36:10 +0000 (19:36 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 15 Jun 2012 17:36:10 +0000 (19:36 +0200)
sized ports since unlike on real hardware qemu supports only 32-bit
regs.

ChangeLog
grub-core/lib/mips/loongson/reboot.c

index 6ea130dee8aa3f515fd912137e154e147f67237f..a87c472b62f61374ceb243e813bdfa35e6f045ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * Makefile.util.def (grub-mkrescue): Enable on loongson.
index 1b510784b22eea475cf5f74b1ec52a540c0682d1..d45d600e2c1d7ed6e5f267a56fda01c10462ff72 100644 (file)
@@ -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:
       {