]> git.neil.brown.name Git - history.git/commitdiff
Fix call to Open Firmware "map" call, parameters were flipped causing
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 11 Oct 2003 17:49:45 +0000 (19:49 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 11 Oct 2003 17:49:45 +0000 (19:49 +0200)
the coff image to randomly fail

arch/ppc/boot/of1275/map.c

index 5a21702dc8caaf1db632e9f00834544df3c43213..443256c6f6d6ad80d556f67fbb09522285f7c2b4 100644 (file)
@@ -23,11 +23,10 @@ map(unsigned int phys, unsigned int virt, unsigned int size)
        char *method;
        ihandle mmu_ihandle;
        int misc;
-       unsigned int phys;
-       unsigned int virt;
        unsigned int size;
+       unsigned int virt;
+       unsigned int phys;
        int ret0;
-       int ret1;
     } args;
 
     if (of_prom_mmu == 0) {
@@ -36,10 +35,10 @@ map(unsigned int phys, unsigned int virt, unsigned int size)
     }
     args.service = "call-method";
     args.nargs = 6;
-    args.nret = 2;
+    args.nret = 1;
     args.method = "map";
     args.mmu_ihandle = of_prom_mmu;
-    args.misc = -1;
+    args.misc = 0;
     args.phys = phys;
     args.virt = virt;
     args.size = size;