summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-05-25 16:22:28 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-05-25 16:22:28 +0000
commita3a87d3fcfa834f87178179154b4f4916fa82608 (patch)
tree981925d7b7634b7c34ea11241d0cca1f919ee541 /sys/arch
parent4c6e8c91459d7a0779606bf3bca27b44400172ad (diff)
Comment typos and tidying. From Diego Casati.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm/footbridge/footbridge_io.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/arm/footbridge/footbridge_io.c b/sys/arch/arm/footbridge/footbridge_io.c
index 5af52cb7591..7582027b96d 100644
--- a/sys/arch/arm/footbridge/footbridge_io.c
+++ b/sys/arch/arm/footbridge/footbridge_io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: footbridge_io.c,v 1.1 2004/02/01 05:09:49 drahn Exp $ */
+/* $OpenBSD: footbridge_io.c,v 1.2 2007/05/25 16:22:27 krw Exp $ */
/* $NetBSD: footbridge_io.c,v 1.6 2002/04/12 19:12:31 thorpej Exp $ */
/*
@@ -46,7 +46,7 @@
#include <arm/footbridge/dc21285mem.h>
#include <uvm/uvm_extern.h>
-/* Proto types for all the bus_space structure functions */
+/* Prototypes for all the bus_space structure functions */
bs_protos(footbridge);
bs_protos(generic);
@@ -186,7 +186,7 @@ footbridge_mem_bs_map(t, bpa, size, cacheable, bshp)
bus_addr_t startpa, endpa;
vaddr_t va;
- /* Round the allocation to page boundries */
+ /* Round the allocation to page boundaries */
startpa = trunc_page(bpa);
endpa = round_page(bpa + size);
@@ -213,8 +213,10 @@ footbridge_mem_bs_map(t, bpa, size, cacheable, bshp)
/* Store the bus space handle */
*bshp = va + (bpa & PGOFSET);
- /* Now map the pages */
- /* The cookie is the physical base address for the I/O area */
+ /*
+ * Now map the pages. The cookie is the physical base address for the
+ * I/O area.
+ */
while (startpa < endpa) {
pmap_enter(pmap_kernel(), va, (bus_addr_t)t + startpa,
VM_PROT_READ | VM_PROT_WRITE, 0);