summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/amd64/stand/libsa/random_i386.S3
-rw-r--r--sys/arch/i386/stand/libsa/random_i386.S3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/libsa/random_i386.S b/sys/arch/amd64/stand/libsa/random_i386.S
index a2bb35ffeb0..987c0a25fca 100644
--- a/sys/arch/amd64/stand/libsa/random_i386.S
+++ b/sys/arch/amd64/stand/libsa/random_i386.S
@@ -20,7 +20,8 @@
#include <machine/specialreg.h>
/*
- * Buffer size must be multiple of 4
+ * Random data is xored into the buffer in 4 byte blocks. If the buffer size
+ * is not a multiple of 4, the remaining bytes will be left untouched.
*/
ENTRY(mdrandom)
pushal
diff --git a/sys/arch/i386/stand/libsa/random_i386.S b/sys/arch/i386/stand/libsa/random_i386.S
index a2bb35ffeb0..987c0a25fca 100644
--- a/sys/arch/i386/stand/libsa/random_i386.S
+++ b/sys/arch/i386/stand/libsa/random_i386.S
@@ -20,7 +20,8 @@
#include <machine/specialreg.h>
/*
- * Buffer size must be multiple of 4
+ * Random data is xored into the buffer in 4 byte blocks. If the buffer size
+ * is not a multiple of 4, the remaining bytes will be left untouched.
*/
ENTRY(mdrandom)
pushal