add ptov for symetry

This commit is contained in:
phcoder 2009-10-19 16:39:13 +02:00
parent 6592e23a4e
commit 0b0b59d8d8
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include <grub/time.h>
#define vtop(x) ((x) & 0x7fffffff)
#define ptov(x) ((x) | 0x80000000)
struct grub_ohci_hcca
{
@ -154,7 +155,7 @@ grub_ohci_pci_iter (int bus, int device, int func,
if (! o)
return 1;
o->iobase = (grub_uint32_t *) base;
o->iobase = (grub_uint32_t *) ptov (base);
/* Reserve memory for the HCCA. */
o->hcca = (struct grub_ohci_hcca *) grub_memalign (256, 256);