From owner-p4-projects@FreeBSD.ORG Sun Feb 22 08:32:30 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E072E1065670; Sun, 22 Feb 2009 08:32:29 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A171C106566B for ; Sun, 22 Feb 2009 08:32:29 +0000 (UTC) (envelope-from andrew@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8FC938FC13 for ; Sun, 22 Feb 2009 08:32:29 +0000 (UTC) (envelope-from andrew@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1M8WT7n081881 for ; Sun, 22 Feb 2009 08:32:29 GMT (envelope-from andrew@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1M8WTnY081879 for perforce@freebsd.org; Sun, 22 Feb 2009 08:32:29 GMT (envelope-from andrew@freebsd.org) Date: Sun, 22 Feb 2009 08:32:29 GMT Message-Id: <200902220832.n1M8WTnY081879@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to andrew@freebsd.org using -f From: Andrew Turner To: Perforce Change Reviews Cc: Subject: PERFORCE change 158059 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2009 08:32:30 -0000 http://perforce.freebsd.org/chv.cgi?CH=158059 Change 158059 by andrew@andrew_bender on 2009/02/22 08:31:40 Fix the name of the pmap devmap Map the clock management registers Add a comment to show all onboard devices are mapped PA == VA Affected files ... .. //depot/projects/arm/src/sys/arm/s3c2xx0/s3c24x0_machdep.c#3 edit Differences ... ==== //depot/projects/arm/src/sys/arm/s3c2xx0/s3c24x0_machdep.c#3 (text+ko) ==== @@ -141,7 +141,11 @@ #define _S(s) (((s) + L1_S_SIZE - 1) & ~(L1_S_SIZE-1)) /* Static device mappings. */ -static const struct pmap_devmap neo1973_devmap[] = { +static const struct pmap_devmap s3c24x0_devmap[] = { + /* + * Map the on-board devices VA == PA so that we can access them + * with the MMU on or off. + */ { /* * Map the IRQ Controller @@ -153,6 +157,13 @@ PTE_NOCACHE, }, { + _A(S3C24X0_CLKMAN_BASE), + _A(S3C24X0_CLKMAN_BASE), + _S(S3C24X0_CLKMAN_SIZE), + VM_PROT_READ|VM_PROT_WRITE, + PTE_NOCACHE, + }, + { /* * Map the UART to VA == PA */ @@ -336,7 +347,7 @@ VM_PROT_READ|VM_PROT_WRITE, PTE_PAGETABLE); } - pmap_devmap_bootstrap(l1pagetable, neo1973_devmap); + pmap_devmap_bootstrap(l1pagetable, s3c24x0_devmap); cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT); setttb(kernel_l1pt.pv_pa);