From: Rafael I. Z. <riz...@ya...> - 2007-11-02 19:25:24
|
Hello Paul, --- Paul Mundt <le...@li...> wrote: > On Wed, Oct 10, 2007 at 08:28:01AM -0700, Rafael > Ignacio Zurita wrote: > > I was trying kexec in sh3 ... But it > > gets > > frozen when run "kexec -e". I would wish to know > > what might be the issue. > > > kexec has not had any testing on SH-3 that I know > of, so there are bound > to be bugs. > > This comes from kexec_info(), the next step after > this is the cache flush > and then jumping in to the new code. Thinking about > this a bit, > flush_cache_all() on that particular SH-3 is a > no-op, so you may have to > explicitly purge the region before doing the jump. > > How does something like this work? No luck... I applied the patch, but it gave me the same system frozen after "kexec -e". If you need some useful information to help with this problem i will test. Thanks in advance, Rafael > diff --git a/arch/sh/kernel/machine_kexec.c > b/arch/sh/kernel/machine_kexec.c > index 5c17de5..ffd02b3 100644 > --- a/arch/sh/kernel/machine_kexec.c > +++ b/arch/sh/kernel/machine_kexec.c > @@ -97,7 +97,8 @@ NORET_TYPE void > machine_kexec(struct kimage *image) > relocate_new_kernel_size); > > kexec_info(image); > - flush_cache_all(); > + __flush_purge_region((void *)reboot_code_buffer, > + relocate_new_kernel_size); > > /* now call it */ > rnk = (relocate_new_kernel_t) reboot_code_buffer; > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |