From owner-cvs-src@FreeBSD.ORG Sun Dec 2 15:26:31 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D7E216A419; Sun, 2 Dec 2007 15:26:31 +0000 (UTC) (envelope-from cognet@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F083F13C46A; Sun, 2 Dec 2007 15:26:30 +0000 (UTC) (envelope-from cognet@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lB2FQU3X099678; Sun, 2 Dec 2007 15:26:30 GMT (envelope-from cognet@repoman.freebsd.org) Received: (from cognet@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lB2FQUGf099677; Sun, 2 Dec 2007 15:26:30 GMT (envelope-from cognet) Message-Id: <200712021526.lB2FQUGf099677@repoman.freebsd.org> From: Olivier Houchard Date: Sun, 2 Dec 2007 15:26:30 +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/arm/arm pmap.c 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: Sun, 02 Dec 2007 15:26:31 -0000 cognet 2007-12-02 15:26:30 UTC FreeBSD src repository Modified files: sys/arm/arm pmap.c Log: Fix a potential bug in pmap : We used to allocate the domains 0-14 for userland, and leave the domain 15 for the kernel. Now supersections requires the use of domain 0, so we switched the kernel domain to 0, and use 1-15 for userland. How it's done currently, the kernel domain could be allocated for a userland process. So switch back to the previous way we did things, set the first available domain to 0, and just add 1 to get the real domain number in the struct pmap. Reported by: Mark Tinguely MFC After: 3 days Revision Changes Path 1.90 +5 -5 src/sys/arm/arm/pmap.c