On Thu, Feb 01, 2007 at 05:18:52PM +0900, Horms wrote:
> I have added the following patches, which add sh support,
> to kexec-tools-testing.
> 
Finally got around to testing this today, works great, thanks!

The only changes I had to make was for adding sh4a to the target list,
against current git.

--

 configure.ac             |    2 +-
 kexec/arch/sh/kexec-sh.c |    8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

commit baf3607a0a56c6d18feda496385b46c73e9c8c40
Author: Paul Mundt <[EMAIL PROTECTED]>
Date:   Thu Feb 8 19:05:50 2007 +0900

    Trivial change adding sh4a to the sh targets.
    
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>

diff --git a/configure.ac b/configure.ac
index 017d06c..9396d4b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,7 @@ case $host_cpu in
        s390x )
                host_cpu="s390"
                ;;
-       sh4|sh3 )
+       sh4|sh4a|sh3 )
                host_cpu="sh"
                ;;
        * ) 
diff --git a/kexec/arch/sh/kexec-sh.c b/kexec/arch/sh/kexec-sh.c
index 3d1ce08..491ade1 100644
--- a/kexec/arch/sh/kexec-sh.c
+++ b/kexec/arch/sh/kexec-sh.c
@@ -114,10 +114,12 @@ int arch_compat_trampoline(struct kexec_info *info)
                return -1;
        }
        if (    (strcmp(utsname.machine, "sh3") == 0) ||
-               (strcmp(utsname.machine, "sh4") == 0))
+               (strcmp(utsname.machine, "sh4") == 0) ||
+               (strcmp(utsname.machine, "sh4a") == 0))
        {
-               /* For compatibility with older patches
-                * use KEXEC_ARCH_DEFAULT instead of KEXEC_ARCH_IA64 here.
+               /*
+                * For compatibility with older patches
+                * use KEXEC_ARCH_DEFAULT instead of KEXEC_ARCH_SH here.
                 */
                info->kexec_flags |= KEXEC_ARCH_DEFAULT;
        }
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to