shithub: riscv

ref: aea866a49300a5e31e737d8fe54763711e693f05
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