mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kyle Moffett <mrmacman_g4@mac.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: LKML Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH][2.6.15-rc3] powerpc: Fix kexec on PPC32
Date: Wed, 30 Nov 2005 14:06:01 -0500	[thread overview]
Message-ID: <7A8BCD84-DEB2-403A-B46B-CF3430C382F1@mac.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

The PPC merge broke CONFIG_KEXEC on PPC32 very slightly.

Signed-off-by: Kyle Moffett <mrmacman_g4@mac.com>

--
NOTE: This is compile and boot tested, but I haven't had time to read  
the kexec docs and start playing with kexec yet, so it may not work  
correctly.


[-- Attachment #2: kexec.patch.txt --]
[-- Type: text/plain, Size: 1011 bytes --]

diff -ru linux-2.6.15-rc3/arch/ppc/kernel/machine_kexec.c linux-2.6.15-rc3-aphrodite1/arch/ppc/kernel/machine_kexec.c
--- linux-2.6.15-rc3/arch/ppc/kernel/machine_kexec.c	2005-11-29 12:57:27.000000000 -0500
+++ linux-2.6.15-rc3-aphrodite1/arch/ppc/kernel/machine_kexec.c	2005-11-29 14:45:48.000000000 -0500
@@ -34,11 +34,13 @@
  */
 note_buf_t crash_notes[NR_CPUS];
 
+#ifndef CONFIG_PPC_MERGE
 void machine_shutdown(void)
 {
 	if (ppc_md.machine_shutdown)
 		ppc_md.machine_shutdown();
 }
+#endif
 
 void machine_crash_shutdown(struct pt_regs *regs)
 {
diff -ru linux-2.6.15-rc3/include/asm-powerpc/machdep.h linux-2.6.15-rc3-aphrodite1/include/asm-powerpc/machdep.h
--- linux-2.6.15-rc3/include/asm-powerpc/machdep.h	2005-11-29 14:49:54.000000000 -0500
+++ linux-2.6.15-rc3-aphrodite1/include/asm-powerpc/machdep.h	2005-11-29 14:52:51.000000000 -0500
@@ -13,6 +13,7 @@
 #include <linux/seq_file.h>
 #include <linux/init.h>
 #include <linux/dma-mapping.h>
+#include <linux/kexec.h>
 
 #include <asm/setup.h>
 

             reply	other threads:[~2005-11-30 19:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30 19:06 Kyle Moffett [this message]
2005-11-30 20:26 Albert Herranz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7A8BCD84-DEB2-403A-B46B-CF3430C382F1@mac.com \
    --to=mrmacman_g4@mac.com \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®