From owner-svn-soc-all@FreeBSD.ORG Fri Jul 25 15:22:49 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51C61F14 for ; Fri, 25 Jul 2014 15:22:49 +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 3EDCC2D2B for ; Fri, 25 Jul 2014 15:22:49 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6PFMngi093628 for ; Fri, 25 Jul 2014 15:22:49 GMT (envelope-from op@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.8/8.14.8/Submit) id s6PFMmXH093474 for svn-soc-all@FreeBSD.org; Fri, 25 Jul 2014 15:22:48 GMT (envelope-from op@FreeBSD.org) Date: Fri, 25 Jul 2014 15:22:48 GMT Message-Id: <201407251522.s6PFMmXH093474@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: r271372 - 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 15:22:49 -0000 Author: op Date: Fri Jul 25 15:22:48 2014 New Revision: 271372 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=271372 Log: KSP SMAP: removed safety check, after the KSP merge Signed-off-by: Oliver Pinter git: https://github.com/opntr/opBSD/tree/op/gsoc2014/smap+kpatch Modified: soc2014/op/freebsd-base/sys/amd64/amd64/pmap.c Modified: soc2014/op/freebsd-base/sys/amd64/amd64/pmap.c ============================================================================== --- soc2014/op/freebsd-base/sys/amd64/amd64/pmap.c Fri Jul 25 15:22:35 2014 (r271371) +++ soc2014/op/freebsd-base/sys/amd64/amd64/pmap.c Fri Jul 25 15:22:48 2014 (r271372) @@ -834,15 +834,12 @@ load_cr3(KPML4phys); if (cpu_stdext_feature & CPUID_STDEXT_SMEP) load_cr4(rcr4() | CR4_SMEP); - /* - * XXXOP - handle properly the situation, when the kernel - * compiled with SMAP, but the CPU does not support it - */ + if (cpu_stdext_feature & CPUID_STDEXT_SMAP) { printf("Intel SMAP: enable\n"); load_cr4(rcr4() | CR4_SMAP); } else { - panic("Intel SMAP: not supported..."); + printf("Intel SMAP: not supported or disabled\n"); } /*