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

Re: Userspace cycle counting for loongson?




you can use mfc0/dmfc0 to read the 'count' cp0 register.

afaik these instructions can't be used in userspace.
You're right:) Although some time ago I do hacked the kernel to eliminate the switch of user mode/kernel mode to enable this.
Arnaud





Reply to: