[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help in finding the cycle counter for mips and mipsel



Guido Guenther wrote:
> You wrote:
> > First, if the linux kernel can be believed, the way to access the
> > cycle counter can be found in linux/include/asm-mips/timex.h. This is
> I think this will cause an "Illegal instruction"

"coprocessor unusable", I think.

> when used from user
> mode since this uses the bfc0 instruction. I'm not sure if you can
> access the cycle counter from user mode at all.

It won't help anyway, as the counter is only avalable for R4000
style CPUs, and used for the jiffies counter by the kernel.


Thiemo



Reply to: