PERFORCE change 158059 for review
Andrew Turner
andrew at FreeBSD.org
Sun Feb 22 00:32:30 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=158059
Change 158059 by andrew at 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);
More information about the p4-projects
mailing list