[Crash-utility] [PATCH] PPC BookE/non-BookE support

Dmitry Antipov antipov at ru.mvista.com
Thu Mar 15 11:52:34 UTC 2007


Dave Anderson wrote:

> To maintain backwards-compatibility, how about re-posting
> with the upper part of the ppc.c patch doing something like:
> 
>         if (symbol_exists("cur_cpu_spec")) {
>                 get_symbol_ptr("cur_cpu_spec", &cur_cpu_spec);
>                 readmem_uint(cur_cpu_spec + MEMBER_OFFSET("cpu_spec",
>                     "cpu_user_features"), KVADDR, &cpu_features,
>                     "cpu user features", FAULT_ON_ERROR);
>                 if (cpu_features & CPU_BOOKE)
>                         machdep->flags |= CPU_BOOKE;
>         } else
>                 machdep->flags |= CPU_BOOKE;
> 
> And it will need to be compilable without applying the
> MontaVista changes, i.e., change the cur_cpu_spec and cpu_features
> declarations, readmem_uint() to readmem(), get_symbol_ptr() to
> get_symbol_data(), etc...

OK

Dmitry

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crash-ppc_booke_detect_2.patch
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20070315/ef42d080/attachment.ksh>


More information about the Crash-utility mailing list