Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3825ac0e authored by Paul Mackerras's avatar Paul Mackerras
Browse files

powerpc: Fix crash in early boot on some powermacs



Some powermac machines were crashing in the quiesce firmware call
in prom_init.c because we have just closed the OF stdin device;
notably my 1999 G3 powerbook does this.  To avoid this, don't
close the OF stdin device on powermacs.

Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 7e9191da
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2081,7 +2081,12 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
	prom_printf("copying OF device tree ...\n");
	flatten_device_tree();

	/* in case stdin is USB and still active on IBM machines... */
	/*
	 * in case stdin is USB and still active on IBM machines...
	 * Unfortunately quiesce crashes on some powermacs if we have
	 * closed stdin already (in particular the powerbook 101).
	 */
	if (RELOC(of_platform) != PLATFORM_POWERMAC)
		prom_close_stdin();

	/*