Skip to contentSkip to conversation

720 - some progress

parisc-linux Jurij Smakov 2 participants 2 messages Sep 27, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 12 lines

A quick glance at arch/parisc/hardware/inventory.c reveiled the following:

long status;
unsigned int bus_id;
...
status = pdc_model_info(&model);
bus_id = (model.hversion >> (4 + 7)) & 0x1f;

switch (bus_id) {
case 0x4: /* 720, 730, 750, 735, 755 */

Quoted 8 lines

I don't know if all these models have the same CPU. I'm guessing not.

I also see a parisc_get_cpu_type(...) in arch/parisc/kernnel/hardware.c. This is probably what you want.

Regards,

Albert

Hi Albert!

As Matthew pointed out, it is not neccessary to determine the CPU type. "Normal" (newer) CPU's do not consider reading from cr26 and cr27 to be privileged operations, so the condition, which is checked in the patch will just never occur for them. Actually, did you try it? I'm very interested in the results.

Cheers,

Jurij.

#1 lore raw

Hello,

I'll play with your patches in about 24 hours from now. Sadly, I am attempting to get my degree during the week, so I'm not always near my beloved 720. :-)

But I'll try them soon. And perhaps be truly dedicated and decode some crashes like Matthew suggests. :-)

By the way, are the docs you are referring to the ones on the parisc-linux.org site, or are they from another source? I'm interested in starting to read up on my lil' CPU.

Regards,

Albert