shithub: riscv

ref: 23d5a950c92dfbcf26b069059712fa282255a8ac
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