Fix call to Open Firmware "map" call, parameters were flipped causing

the coff image to randomly fail
parent 58f9116e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment