From 0410e53e3d84cb1fb03f25f443bb8d38db559914 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Thu, 2 Sep 2021 22:59:51 +0200 Subject: [PATCH] cpu: Make rdseed() macro actually use rdseed --- stage23/sys/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stage23/sys/cpu.h b/stage23/sys/cpu.h index e283c0b2..354bf14e 100644 --- a/stage23/sys/cpu.h +++ b/stage23/sys/cpu.h @@ -175,7 +175,7 @@ inline uint64_t rdtsc(void) { type ret; \ asm volatile ( \ "1: " \ - "rdrand %0;" \ + "rdseed %0;" \ "jnc 1b;" \ : "=r" (ret) \ ); \