shithub: riscv

ref: fb96a050f8a9d5f23da3557ba89251ffb73889bf
dir: /sys/src/ape/lib/ap/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