summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2016-01-10 22:30:24 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2016-01-10 22:30:24 +0000
commit7519fcf7e1f1a771526b13b7a28a79c0e16c5727 (patch)
treeb2fc24e12030d4ac7ba859ba6bd0949a69f433eb /sys/arch/amd64/stand
parentbb2928dd6d4182f524f88dd87d98db9cef3ba9a0 (diff)
match up code and comments, add missing $OpenBSD$; ok jsing@ a while ago
Diffstat (limited to 'sys/arch/amd64/stand')
-rw-r--r--sys/arch/amd64/stand/libsa/random_amd64.S6
-rw-r--r--sys/arch/amd64/stand/libsa/random_i386.S6
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/amd64/stand/libsa/random_amd64.S b/sys/arch/amd64/stand/libsa/random_amd64.S
index c7b0fc89f97..e347981da41 100644
--- a/sys/arch/amd64/stand/libsa/random_amd64.S
+++ b/sys/arch/amd64/stand/libsa/random_amd64.S
@@ -1,3 +1,5 @@
+/* $OpenBSD: random_amd64.S,v 1.3 2016/01/10 22:30:23 naddy Exp $ */
+
/*
* Copyright (c) 2013 Joel Sing <jsing@openbsd.org>
*
@@ -46,9 +48,9 @@ ENTRY(mdrandom)
cpuid
cmp $0x756e6547, %ebx // "Genu"
jne done
- cmp $0x6c65746e, %ecx // "ineI"
+ cmp $0x49656e69, %edx // "ineI"
jne done
- cmp $0x49656e69, %edx // "ntel"
+ cmp $0x6c65746e, %ecx // "ntel"
jne done
// CPUID leaf = 1, subleaf = 0
diff --git a/sys/arch/amd64/stand/libsa/random_i386.S b/sys/arch/amd64/stand/libsa/random_i386.S
index dc94f373449..de1023d480f 100644
--- a/sys/arch/amd64/stand/libsa/random_i386.S
+++ b/sys/arch/amd64/stand/libsa/random_i386.S
@@ -1,3 +1,5 @@
+/* $OpenBSD: random_i386.S,v 1.8 2016/01/10 22:30:23 naddy Exp $ */
+
/*
* Copyright (c) 2013 Joel Sing <jsing@openbsd.org>
*
@@ -46,9 +48,9 @@ ENTRY(mdrandom)
cpuid
cmpl $0x756e6547, %ebx // "Genu"
jne done
- cmpl $0x6c65746e, %ecx // "ineI"
+ cmpl $0x49656e69, %edx // "ineI"
jne done
- cmpl $0x49656e69, %edx // "ntel"
+ cmpl $0x6c65746e, %ecx // "ntel"
jne done
// CPUID leaf = 1, subleaf = 0