Date: Sun, 22 Feb 2009 08:32:29 GMT From: Andrew Turner <andrew@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 158059 for review Message-ID: <200902220832.n1M8WTnY081879@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902220832.n1M8WTnY081879>
