From cdb1284e9e1c8296b0ed55b736e5cd1bcd560db0 Mon Sep 17 00:00:00 2001
From: dev <dev@robertfoss.se>
Date: Wed, 8 Jun 2011 08:26:37 +0000
Subject: [PATCH] Added method for getting extended EBX CPUID flags.

---
 core/java/src/freenet/support/CPUInformation/CPUID.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/java/src/freenet/support/CPUInformation/CPUID.java b/core/java/src/freenet/support/CPUInformation/CPUID.java
index c4fc862adb..580ff8294b 100644
--- a/core/java/src/freenet/support/CPUInformation/CPUID.java
+++ b/core/java/src/freenet/support/CPUInformation/CPUID.java
@@ -55,7 +55,7 @@ public class CPUID {
     private static final boolean isLinux = System.getProperty("os.name").toLowerCase().contains("linux");
     private static final boolean isFreebsd = System.getProperty("os.name").toLowerCase().contains("freebsd");
     private static final boolean isSunos = System.getProperty("os.name").toLowerCase().contains("sunos");
-    
+
 
     /**
      * This isn't always correct.
@@ -160,9 +160,9 @@ public class CPUID {
         return c.ECX;
     }
 	private static int getExtendedEBXCPUFlags()
-{
-
-
+	{
+        CPUIDResult c = doCPUID(0x80000001);
+        return c.EBX;	}
     private static int getExtendedECXCPUFlags()
     {
         CPUIDResult c = doCPUID(0x80000001);
-- 
GitLab