Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148128968
D17953.id50351.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
450 B
Referenced Files
None
Subscribers
None
D17953.id50351.diff
View Options
Index: sys/riscv/include/cpu.h
===================================================================
--- sys/riscv/include/cpu.h
+++ sys/riscv/include/cpu.h
@@ -38,6 +38,7 @@
#define _MACHINE_CPU_H_
#include <machine/atomic.h>
+#include <machine/cpufunc.h>
#include <machine/frame.h>
#define TRAPF_PC(tfp) ((tfp)->tf_ra)
@@ -85,8 +86,7 @@
get_cyclecount(void)
{
- /* TODO: This is bogus */
- return (1);
+ return (rdcycle());
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 17, 12:00 AM (20 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29795587
Default Alt Text
D17953.id50351.diff (450 B)
Attached To
Mode
D17953: RISC-V: Implement get_cyclecount(9)
Attached
Detach File
Event Timeline
Log In to Comment