summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2007-05-25 16:22:27 +0000
committerkrw <krw@openbsd.org>2007-05-25 16:22:27 +0000
commit1d1eef7214aa1ae8cf77ccdb02c86140c5eb6b71 (patch)
tree607398f6cf42cb56ae8178e4ce037494fa89f08c
parentChange the old slow and complicated TLB shootdown code to new, fast and (diff)
downloadwireguard-openbsd-1d1eef7214aa1ae8cf77ccdb02c86140c5eb6b71.tar.xz
wireguard-openbsd-1d1eef7214aa1ae8cf77ccdb02c86140c5eb6b71.zip
Comment typos and tidying. From Diego Casati.
-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);