Changeset eebd172 in mainline for arch/ppc32/loader/ofw.c
- Timestamp:
- 2006-03-13T19:58:00Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6323989
- Parents:
- 272c219
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/loader/ofw.c
r272c219 reebd172 79 79 ofw(&args); 80 80 81 if (nret > 0) 82 return args.args[nargs + nret - 1]; 83 else 84 return 0; 81 return args.args[nargs]; 85 82 } 86 83 … … 113 110 114 111 115 void *ofw_ claim(const void *addr, const int size, const int align)112 void *ofw_translate(const void *virt) 116 113 { 117 return (void *) ofw_call("c laim", 3, 1, addr, size, align);114 return (void *) ofw_call("call-method", 7, 1, "translate", ofw_mmu, virt, 0, 0, 0, 0); 118 115 } 119 116 120 117 121 void *ofw_translate(const void *virt)118 int ofw_map(const void *phys, const void *virt, const int size, const int mode) 122 119 { 123 return (void *) ofw_call_method(ofw_mmu, "translate", 1, 5, virt);120 return ofw_call("call-method", 6, 1, "map", ofw_mmu, mode, size, virt, phys); 124 121 }
Note:
See TracChangeset
for help on using the changeset viewer.