PERFORCE change 144128 for review
Andrew Turner
andrew at FreeBSD.org
Thu Jun 26 08:13:53 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=144128
Change 144128 by andrew at andrew_bender on 2008/06/26 08:12:57
Allow access to all UART registers
Affected files ...
.. //depot/projects/arm/src/sys/arm/s3c2xx0/neo1973_machdep.c#3 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/s3c2xx0/neo1973_machdep.c#3 (text+ko) ====
@@ -137,15 +137,18 @@
extern vm_offset_t s3c2410_uart_vaddr;
+#define _A(a) ((a) & ~L1_S_OFFSET)
+#define _S(s) (((s) + L1_S_SIZE - 1) & ~(L1_S_SIZE-1))
+
/* Static device mappings. */
static const struct pmap_devmap neo1973_devmap[] = {
{
/*
* Map the UART to VA == PA
*/
- S3C2410_UART0_BASE,
- S3C2410_UART0_BASE,
- 0x100000,
+ _A(S3C2410_UART0_BASE),
+ _A(S3C2410_UART0_BASE),
+ _S(S3C2410_UART_BASE(3) - S3C2410_UART0_BASE),
VM_PROT_READ|VM_PROT_WRITE,
PTE_NOCACHE,
},
@@ -158,6 +161,9 @@
}
};
+#undef _A
+#undef _S
+
#ifdef DDB
extern vm_offset_t ksym_start, ksym_end;
#endif
More information about the p4-projects
mailing list