]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
add ptov for symetry
authorphcoder <phcoder@debian.bg45.phnet>
Mon, 19 Oct 2009 14:39:13 +0000 (16:39 +0200)
committerphcoder <phcoder@debian.bg45.phnet>
Mon, 19 Oct 2009 14:39:13 +0000 (16:39 +0200)
bus/usb/ohci.c

index f131564559bfc932291bc0972a8acf673edaf076..4c844d08987ba01b97039bba2d0379263821bf0d 100644 (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);