2 * Copyright (C) Paul Mackerras 1997.
3 * Copyright (C) Leigh Brown 2002.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version
8 * 2 of the License, or (at your option) any later version.
14 extern ihandle of_prom_mmu
;
17 map(unsigned int phys
, unsigned int virt
, unsigned int size
)
32 if (of_prom_mmu
== 0) {
33 printf("map() called, no MMU found\n");
36 args
.service
= "call-method";
40 args
.mmu_ihandle
= of_prom_mmu
;
45 (*of_prom_entry
)(&args
);
47 return (int)args
.ret0
;