Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24611
b: refs/heads/master
c: add60ef
h: refs/heads/master
i:
  24609: de589e9
  24607: ea489a4
v: v3
  • Loading branch information
Olaf Hering authored and Paul Mackerras committed Mar 27, 2006
1 parent fe5978f commit 651503d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 069007ae07ab9286fbe42e9a66b78e184f752a05
refs/heads/master: add60ef303809087999412209d24d400a1c96670
23 changes: 14 additions & 9 deletions trunk/arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ static void __init __attribute__((noreturn)) prom_panic(const char *reason)
reason = PTRRELOC(reason);
#endif
prom_print(reason);
/* Do not call exit because it clears the screen on pmac
* it also causes some sort of double-fault on early pmacs */
if (RELOC(of_platform) == PLATFORM_POWERMAC)
asm("trap\n");

/* ToDo: should put up an SRC here on p/iSeries */
call_prom("exit", 0, 0);

Expand Down Expand Up @@ -2060,15 +2065,6 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
*/
prom_init_stdout();

/* Bail if this is a kdump kernel. */
if (PHYSICAL_START > 0)
prom_panic("Error: You can't boot a kdump kernel from OF!\n");

/*
* Check for an initrd
*/
prom_check_initrd(r3, r4);

/*
* Get default machine type. At this point, we do not differentiate
* between pSeries SMP and pSeries LPAR
Expand All @@ -2078,6 +2074,15 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
prom_setprop(_prom->chosen, "/chosen", "linux,platform",
&getprop_rval, sizeof(getprop_rval));

/* Bail if this is a kdump kernel. */
if (PHYSICAL_START > 0)
prom_panic("Error: You can't boot a kdump kernel from OF!\n");

/*
* Check for an initrd
*/
prom_check_initrd(r3, r4);

#ifdef CONFIG_PPC_PSERIES
/*
* On pSeries, inform the firmware about our capabilities
Expand Down

0 comments on commit 651503d

Please sign in to comment.