From owner-cvs-src@FreeBSD.ORG Thu Jun 30 06:44:34 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDA2916A41C; Thu, 30 Jun 2005 06:44:34 +0000 (GMT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB32F43D49; Thu, 30 Jun 2005 06:44:34 +0000 (GMT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j5U6iYhO086206; Thu, 30 Jun 2005 06:44:34 GMT (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j5U6iYor086205; Thu, 30 Jun 2005 06:44:34 GMT (envelope-from peter) Message-Id: <200506300644.j5U6iYor086205@repoman.freebsd.org> From: Peter Wemm Date: Thu, 30 Jun 2005 06:44:34 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/i386/i386 identcpu.c initcpu.c src/sys/i386/include md_var.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2005 06:44:35 -0000 peter 2005-06-30 06:44:34 UTC FreeBSD src repository Modified files: sys/i386/i386 identcpu.c initcpu.c sys/i386/include md_var.h Log: Begin promoting the AMD-originated feature flags to first class flags, now that newer Intel cpu hardware implements them too. This includes things like the NX (pte no-execute) flag for execute protection. We'll need to reference this for implementing no-exec in pmap.c at some point. Some feature flags are duplicated in both the Intel-orignated bits and the AMD bits. Suppress the the duplicates correctly - the old code assumed they were a 1:1 mapping which is not correct. We can't just mask off the bits present in cpu_feature. Converge with amd64 where this originated from. Intel cpu's that implement any AMD features will report them in dmesg now. Approved by: re Revision Changes Path 1.145 +82 -91 src/sys/i386/i386/identcpu.c 1.51 +1 -0 src/sys/i386/i386/initcpu.c 1.72 +3 -1 src/sys/i386/include/md_var.h