From owner-svn-soc-all@FreeBSD.ORG Fri Jul 25 10:36:32 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9997897 for ; Fri, 25 Jul 2014 10:36:32 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B512E2039 for ; Fri, 25 Jul 2014 10:36:32 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6PAaWvx089740 for ; Fri, 25 Jul 2014 10:36:32 GMT (envelope-from op@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.8/8.14.8/Submit) id s6PAaWXm089602 for svn-soc-all@FreeBSD.org; Fri, 25 Jul 2014 10:36:32 GMT (envelope-from op@FreeBSD.org) Date: Fri, 25 Jul 2014 10:36:32 GMT Message-Id: <201407251036.s6PAaWXm089602@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to op@FreeBSD.org using -f From: op@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r271360 - soc2014/op/freebsd-base/sys/amd64/amd64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2014 10:36:32 -0000 Author: op Date: Fri Jul 25 10:36:31 2014 New Revision: 271360 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=271360 Log: KSP: as Intel SDM Vol3B 13.2 say, we must check against XSAVE instead of OSXSAVE Signed-off-by: Oliver Pinter git: https://github.com/opntr/opBSD/tree/op/gsoc2014/kpatch Modified: soc2014/op/freebsd-base/sys/amd64/amd64/identcpu.c Modified: soc2014/op/freebsd-base/sys/amd64/amd64/identcpu.c ============================================================================== --- soc2014/op/freebsd-base/sys/amd64/amd64/identcpu.c Fri Jul 25 10:36:11 2014 (r271359) +++ soc2014/op/freebsd-base/sys/amd64/amd64/identcpu.c Fri Jul 25 10:36:31 2014 (r271360) @@ -569,7 +569,7 @@ } if (cpu_high >= 13) { - if (cpu_feature2 & CPUID2_OSXSAVE) { + if (cpu_feature2 & CPUID2_XSAVE) { cpuid_count(13, 1, regs); cpu_extstate = regs[0]; } else