On Thu, Oct 28, 1999 at 10:59:13AM +0200, Florian Lohoff wrote:

> i am just in the process of building glibc and discovered a bug i stumpled
> over before ...
> 
> static inline cycles_t get_cycles (void)
> {
>         return read_32bit_cp0_register(CP0_COUNT);
> }
> 
> CP0_COUNT undefined ...
> 
> Shouldnt timex.h include mipsregs.h ?

Just wrap it with #ifdef __KERNEL, get_cycles cannot be use in the
userspace anyway as mfc0 is a priviledged instruction.

  Ralf

Reply via email to