:: commit 0410e53e3d84cb1fb03f25f443bb8d38db559914

mintsuki <mintsuki@protonmail.com> — 2021-09-02 20:59

parents: 411d735e91

cpu: Make rdseed() macro actually use rdseed

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) \
     ); \
tab: 248 wrap: offon