shithub: riscv

ref: 7d3cc1c55a435bd9e3d37d9bf8a9299ea9e1f87e
dir: /sys/src/libc/amd64/cycles.s/

View raw version
TEXT cycles(SB),1,$0				/* time stamp counter; cycles since power up */
	RDTSC
	MOVL	AX, 0(RARG)			/* lo */
	MOVL	DX, 4(RARG)			/* hi */
	RET