add ptov for symetry
This commit is contained in:
parent
6592e23a4e
commit
0b0b59d8d8
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue