summaryrefslogtreecommitdiff
path: root/usr/src/uts/i86pc/os/cpuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/i86pc/os/cpuid.c')
-rw-r--r--usr/src/uts/i86pc/os/cpuid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/uts/i86pc/os/cpuid.c b/usr/src/uts/i86pc/os/cpuid.c
index 001fccdc7a..3c9ba0b76d 100644
--- a/usr/src/uts/i86pc/os/cpuid.c
+++ b/usr/src/uts/i86pc/os/cpuid.c
@@ -883,6 +883,14 @@ cpuid_pass1(cpu_t *cpu)
if (cp->cp_edx & CPUID_AMD_EDX_NX)
feature |= X86_NX;
+ /*
+ * Regardless whether or not we boot 64-bit,
+ * we should have a way to identify whether
+ * the CPU is capable of running 64-bit.
+ */
+ if (cp->cp_edx & CPUID_AMD_EDX_LM)
+ feature |= X86_64;
+
#if defined(__amd64)
/* 1 GB large page - enable only for 64 bit kernel */
if (cp->cp_edx & CPUID_AMD_EDX_1GPG)