Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118267
b: refs/heads/master
c: 1767c8f
h: refs/heads/master
i:
  118265: cc92c9c
  118263: 4e3c51a
v: v3
  • Loading branch information
Milton Miller authored and Paul Mackerras committed Oct 31, 2008
1 parent 96dff31 commit d3c1cce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 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: 8694a1c6056f1f5f006a0442428f2df5171b9656
refs/heads/master: 1767c8f392857694899403a65942cc70b5b7d132
6 changes: 0 additions & 6 deletions trunk/arch/powerpc/include/asm/kdump.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
* Reserve to the end of the FWNMI area, see head_64.S */
#define KDUMP_RESERVE_LIMIT 0x10000 /* 64K */

/*
* Used to differentiate between relocatable kdump kernel and other
* kernels
*/
#define KDUMP_SIGNATURE 0xfeed1234

#ifdef CONFIG_CRASH_DUMP

#define KDUMP_TRAMPOLINE_START 0x0100
Expand Down
9 changes: 2 additions & 7 deletions trunk/arch/powerpc/kernel/machine_kexec_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,11 @@ static union thread_union kexec_stack
/* Our assembly helper, in kexec_stub.S */
extern NORET_TYPE void kexec_sequence(void *newstack, unsigned long start,
void *image, void *control,
void (*clear_all)(void),
unsigned long kdump_flag) ATTRIB_NORET;
void (*clear_all)(void)) ATTRIB_NORET;

/* too late to fail here */
void default_machine_kexec(struct kimage *image)
{
unsigned long kdump_flag = 0;

/* prepare control code if any */

/*
Expand All @@ -275,8 +272,6 @@ void default_machine_kexec(struct kimage *image)

if (crashing_cpu == -1)
kexec_prepare_cpus();
else
kdump_flag = KDUMP_SIGNATURE;

/* switch to a staticly allocated stack. Based on irq stack code.
* XXX: the task struct will likely be invalid once we do the copy!
Expand All @@ -289,7 +284,7 @@ void default_machine_kexec(struct kimage *image)
*/
kexec_sequence(&kexec_stack, image->start, image,
page_address(image->control_code_page),
ppc_md.hpte_clear_all, kdump_flag);
ppc_md.hpte_clear_all);
/* NOTREACHED */
}

Expand Down
9 changes: 3 additions & 6 deletions trunk/arch/powerpc/kernel/misc_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,10 @@ real_mode: /* assume normal blr return */


/*
* kexec_sequence(newstack, start, image, control, clear_all(), kdump_flag)
* kexec_sequence(newstack, start, image, control, clear_all())
*
* does the grungy work with stack switching and real mode switches
* also does simple calls to other code
*
* kdump_flag says whether the next kernel should be a kdump kernel.
*/

_GLOBAL(kexec_sequence)
Expand Down Expand Up @@ -649,7 +647,7 @@ _GLOBAL(kexec_sequence)
mr r29,r5 /* image (virt) */
mr r28,r6 /* control, unused */
mr r27,r7 /* clear_all() fn desc */
mr r26,r8 /* kdump flag */
mr r26,r8 /* spare */
lhz r25,PACAHWCPUID(r13) /* get our phys cpu from paca */

/* disable interrupts, we are overwriting kernel data next */
Expand Down Expand Up @@ -711,6 +709,5 @@ _GLOBAL(kexec_sequence)
mr r4,r30 # start, aka phys mem offset
mtlr 4
li r5,0
mr r6,r26 /* kdump_flag */
blr /* image->start(physid, image->start, 0, kdump_flag); */
blr /* image->start(physid, image->start, 0); */
#endif /* CONFIG_KEXEC */

0 comments on commit d3c1cce

Please sign in to comment.