Big code refactor, get rid of HAL entirely

This commit is contained in:
2025-11-11 21:26:27 +01:00
parent 7015bc9576
commit 566b35f4d5
84 changed files with 477 additions and 520 deletions

View File

@ -0,0 +1,13 @@
.global randcrypto_get_physrand
randcrypto_get_physrand:
mov $100, %ecx
xor %eax, %eax
.retry:
rdrand %eax
jc .done
loop .retry
.fail:
mov $-1, %eax
.done:
ret