summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2011-06-30 22:18:02 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2011-06-30 22:18:02 +0000
commitcb1e83508cf1070bdadf4b2fcaaf3642bd72aac4 (patch)
treef5ed88d05c46dc40977ad76ef6a881f75e72fe25 /sys
parent4158854519bbe5aed8920fcb856154f933402cd9 (diff)
ansi, no binary change
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/include/i82489var.h9
-rw-r--r--sys/arch/amd64/include/pmap.h13
2 files changed, 7 insertions, 15 deletions
diff --git a/sys/arch/amd64/include/i82489var.h b/sys/arch/amd64/include/i82489var.h
index 1181e137d0e..a380ca8e6b9 100644
--- a/sys/arch/amd64/include/i82489var.h
+++ b/sys/arch/amd64/include/i82489var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: i82489var.h,v 1.12 2011/03/23 16:54:34 pirofti Exp $ */
+/* $OpenBSD: i82489var.h,v 1.13 2011/06/30 22:18:01 jsg Exp $ */
/* $NetBSD: i82489var.h,v 1.1 2003/02/26 21:26:10 fvdl Exp $ */
/*-
@@ -46,17 +46,14 @@ extern volatile u_int32_t lapic_tpr;
#endif
static __inline__ u_int32_t
-i82489_readreg(reg)
- int reg;
+i82489_readreg(int reg)
{
return *((volatile u_int32_t *)(((volatile u_int8_t *)local_apic)
+ reg));
}
static __inline__ void
-i82489_writereg(reg, val)
- int reg;
- u_int32_t val;
+i82489_writereg(int reg, u_int32_t val)
{
*((volatile u_int32_t *)(((volatile u_int8_t *)local_apic) + reg)) = val;
}
diff --git a/sys/arch/amd64/include/pmap.h b/sys/arch/amd64/include/pmap.h
index b559ff03244..302b2476a2e 100644
--- a/sys/arch/amd64/include/pmap.h
+++ b/sys/arch/amd64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.38 2011/03/23 16:54:34 pirofti Exp $ */
+/* $OpenBSD: pmap.h,v 1.39 2011/06/30 22:18:01 jsg Exp $ */
/* $NetBSD: pmap.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */
/*
@@ -463,8 +463,7 @@ pmap_remove_all(struct pmap *pmap)
*/
__inline static void
-pmap_update_pg(va)
- vaddr_t va;
+pmap_update_pg(vaddr_t va)
{
invlpg(va);
}
@@ -474,8 +473,7 @@ pmap_update_pg(va)
*/
__inline static void
-pmap_update_2pg(va, vb)
- vaddr_t va, vb;
+pmap_update_2pg(vaddr_t va, vaddr_t vb)
{
invlpg(va);
invlpg(vb);
@@ -511,10 +509,7 @@ pmap_page_protect(struct vm_page *pg, vm_prot_t prot)
*/
__inline static void
-pmap_protect(pmap, sva, eva, prot)
- struct pmap *pmap;
- vaddr_t sva, eva;
- vm_prot_t prot;
+pmap_protect(struct pmap *pmap, vaddr_t sva, vaddr_t eva, vm_prot_t prot)
{
if ((prot & VM_PROT_WRITE) == 0) {
if (prot & (VM_PROT_READ|VM_PROT_EXECUTE)) {