diff options
author | cognet <cognet@FreeBSD.org> | 2006-07-15 00:09:53 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2006-07-15 00:09:53 +0000 |
commit | 1d520bd714ecf8e52a127b30ce81941e322cfd29 (patch) | |
tree | 48dcf878ebe4e6220eec03e268f290345bfd12d6 /sys/arm | |
parent | 429b08f9da29cb5db6f609aeb7864082284ba089 (diff) | |
download | FreeBSD-src-1d520bd714ecf8e52a127b30ce81941e322cfd29.zip FreeBSD-src-1d520bd714ecf8e52a127b30ce81941e322cfd29.tar.gz |
Add a comment explaining why the OHCI mapping has been commented out.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/at91/kb920x_machdep.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/arm/at91/kb920x_machdep.c b/sys/arm/at91/kb920x_machdep.c index 8afe057..41b651b 100644 --- a/sys/arm/at91/kb920x_machdep.c +++ b/sys/arm/at91/kb920x_machdep.c @@ -159,6 +159,15 @@ static const struct pmap_devmap kb920x_devmap[] = { VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE, }, + /* + * We can't just map the OHCI registers VA == PA, because + * AT91RM92_OHCI_BASE belongs to the userland address space. + * We could just choose a different virtual address, but a better + * solution would probably be to just use pmap_mapdev() to allocate + * KVA, as we don't need the OHCI controller before the vm + * initialization is done. However, the AT91 resource allocation + * system doesn't know how to use pmap_mapdev() yet. + */ #if 0 { /* |