1.1 |
| 28-Feb-2021 |
thorpej | branches: 1.1.4; - When starting the boot program, cache a bunch of OFW frequently used ihandles / phandles, rather than fetching them all the time. - Change the signature of OF_call_method() to take an array of cells for the inputs and outputs, rather than using variadic arguments. This makes it much easier to use OF_call_method() when the format of the arguments passed to a given method are determined at run-time (due to e.g. #address-cells). - Properly inform OpenFirmware where the kernel is loaded by using "claim" on /chosen/memory and, if running in virtual-mode, using "claim" on /chosen/mmu to reserve the VA, and "map" on /chosen/mmu to enter the translation. (The kernel is still always mapped VA==PA.)
|