mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 10:39:22 +00:00
* include/grub/cmos.h: Handle high CMOS addresses on sparc64.
This commit is contained in:
1 parent
1d5a880fe4
commit
83e1a1a137
2 files changed
+8
-4
No files matched your search
@@ -1,3 +1,7 @@
|
||||
2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* include/grub/cmos.h: Handle high CMOS addresses on sparc64.
|
||||
|
||||
2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
|
||||
|
||||
+4
-4
@@ -103,8 +103,8 @@ grub_cmos_read (grub_uint8_t index, grub_uint8_t *val)
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
grub_cmos_port[0] = index;
|
||||
*val = grub_cmos_port[1];
|
||||
grub_cmos_port[((index & 0x80) >> 6) | 0] = index & 0x7f;
|
||||
*val = grub_cmos_port[((index & 0x80) >> 6) | 1];
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
@@ -118,8 +118,8 @@ grub_cmos_write (grub_uint8_t index, grub_uint8_t val)
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
grub_cmos_port[0] = index;
|
||||
grub_cmos_port[1] = val;
|
||||
grub_cmos_port[((index & 0x80) >> 6) | 0] = index;
|
||||
grub_cmos_port[((index & 0x80) >> 6) | 1] = val;
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user