* 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:
parent
3f2bdd8f55
commit
0321415e86
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||||
|
|
|
@ -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:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue