mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 06:36:44 +07:00
[PATCH] ppc: Fix boot with yaboot with ARCH=ppc
The merge of machine types broke boot with yaboot & ARCH=ppc due to the old code still retreiving the old-syle machine type passed in by yaboot. This patch fixes it by translating those old numbers. Since that whole mecanism is deprecated, this is a temporary fix until ARCH=ppc uses the new prom_init that the merged architecture now uses for both ppc32 and ppc64 (after 2.6.15) Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
c0ce5c5228
commit
de93f0d62c
@ -602,7 +602,19 @@ void parse_bootinfo(struct bi_record *rec)
|
|||||||
#endif /* CONFIG_BLK_DEV_INITRD */
|
#endif /* CONFIG_BLK_DEV_INITRD */
|
||||||
#ifdef CONFIG_PPC_MULTIPLATFORM
|
#ifdef CONFIG_PPC_MULTIPLATFORM
|
||||||
case BI_MACHTYPE:
|
case BI_MACHTYPE:
|
||||||
|
/* Machine types changed with the merge. Since the
|
||||||
|
* bootinfo are now deprecated, we can just hard code
|
||||||
|
* the appropriate conversion here for when we are
|
||||||
|
* called with yaboot which passes us a machine type
|
||||||
|
* this way.
|
||||||
|
*/
|
||||||
|
switch(data[0]) {
|
||||||
|
case 1: _machine = _MACH_prep; break;
|
||||||
|
case 2: _machine = _MACH_Pmac; break;
|
||||||
|
case 4: _machine = _MACH_chrp; break;
|
||||||
|
default:
|
||||||
_machine = data[0];
|
_machine = data[0];
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case BI_MEMSIZE:
|
case BI_MEMSIZE:
|
||||||
|
Loading…
Reference in New Issue
Block a user