mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
add ptov for symetry
This commit is contained in:
1 parent
6592e23a4e
commit
0b0b59d8d8
1 file changed
+2
-1
+2
-1
@@ -28,6 +28,7 @@
|
|||||||
#include <grub/time.h>
|
#include <grub/time.h>
|
||||||
|
|
||||||
#define vtop(x) ((x) & 0x7fffffff)
|
#define vtop(x) ((x) & 0x7fffffff)
|
||||||
|
#define ptov(x) ((x) | 0x80000000)
|
||||||
|
|
||||||
struct grub_ohci_hcca
|
struct grub_ohci_hcca
|
||||||
{
|
{
|
||||||
@@ -154,7 +155,7 @@ grub_ohci_pci_iter (int bus, int device, int func,
|
|||||||
if (! o)
|
if (! o)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
o->iobase = (grub_uint32_t *) base;
|
o->iobase = (grub_uint32_t *) ptov (base);
|
||||||
|
|
||||||
/* Reserve memory for the HCCA. */
|
/* Reserve memory for the HCCA. */
|
||||||
o->hcca = (struct grub_ohci_hcca *) grub_memalign (256, 256);
|
o->hcca = (struct grub_ohci_hcca *) grub_memalign (256, 256);
|
||||||
|
|||||||
Reference in new issue
Block a user