ppc/powerpc: workarounds for old Open Firmware versions
This adds code to work around some problems with old versions of Open Firmware, such as on the early powermacs (7500 etc.) and the "Longtrail" CHRP machine. On these machines we have to claim the physical and virtual address ranges explicitly when claiming memory and then set up a V->P mapping. The Longtrail has more problems: setprop doesn't work, and we have to set an "allow-reclaim" variable to 0 in order to get claim on physical memory ranges to fail if the memory is already claimed. Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
@@ -19,6 +19,9 @@ extern prom_entry of_prom_entry;
|
||||
|
||||
/* function declarations */
|
||||
|
||||
int call_prom(const char *service, int nargs, int nret, ...);
|
||||
int call_prom_ret(const char *service, int nargs, int nret,
|
||||
unsigned int *rets, ...);
|
||||
void * claim(unsigned int virt, unsigned int size, unsigned int align);
|
||||
int map(unsigned int phys, unsigned int virt, unsigned int size);
|
||||
void enter(void);
|
||||
|
||||
Reference in New Issue
Block a user