Changeset eebd172 in mainline for arch/ppc32/loader/ofw.c


Ignore:
Timestamp:
2006-03-13T19:58:00Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6323989
Parents:
272c219
Message:

relocate ppc32 kernel above 2 GB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/loader/ofw.c

    r272c219 reebd172  
    7979        ofw(&args);
    8080       
    81         if (nret > 0)
    82                 return args.args[nargs + nret - 1];
    83         else
    84                 return 0;
     81        return args.args[nargs];
    8582}
    8683
     
    113110
    114111
    115 void *ofw_claim(const void *addr, const int size, const int align)
     112void *ofw_translate(const void *virt)
    116113{
    117         return (void *) ofw_call("claim", 3, 1, addr, size, align);
     114        return (void *) ofw_call("call-method", 7, 1, "translate", ofw_mmu, virt, 0, 0, 0, 0);
    118115}
    119116
    120117
    121 void *ofw_translate(const void *virt)
     118int ofw_map(const void *phys, const void *virt, const int size, const int mode)
    122119{
    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);
    124121}
Note: See TracChangeset for help on using the changeset viewer.