shithub: riscv

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