summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2011-06-25 19:20:42 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2011-06-25 19:20:42 +0000
commitbcb0911d5a97d63b0e3d5de1a4c03426dd012dd1 (patch)
tree96306b9b0619144da8c54b9a678631865efb6d22 /sys/arch
parent26c46a430560be319ef9c14bce855e41feb30357 (diff)
ansi, no binary change
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/include/i82489var.h9
-rw-r--r--sys/arch/i386/include/pmap.h11
-rw-r--r--sys/arch/i386/include/vm86.h19
3 files changed, 12 insertions, 27 deletions
diff --git a/sys/arch/i386/include/i82489var.h b/sys/arch/i386/include/i82489var.h
index b170587afb1..41a36e47d9d 100644
--- a/sys/arch/i386/include/i82489var.h
+++ b/sys/arch/i386/include/i82489var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: i82489var.h,v 1.12 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: i82489var.h,v 1.13 2011/06/25 19:20:41 jsg Exp $ */
/* $NetBSD: i82489var.h,v 1.1.2.2 2000/02/21 18:46:14 sommerfeld Exp $ */
/*-
@@ -41,17 +41,14 @@ extern volatile u_int32_t local_apic[];
#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/i386/include/pmap.h b/sys/arch/i386/include/pmap.h
index e8d7b8f45f0..266987a9ad6 100644
--- a/sys/arch/i386/include/pmap.h
+++ b/sys/arch/i386/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.58 2011/05/07 15:27:01 oga Exp $ */
+/* $OpenBSD: pmap.h,v 1.59 2011/06/25 19:20:41 jsg Exp $ */
/* $NetBSD: pmap.h,v 1.44 2000/04/24 17:18:18 thorpej Exp $ */
/*
@@ -445,9 +445,7 @@ boolean_t pmap_zero_page_uncached(paddr_t);
*/
__inline static void
-pmap_page_protect(pg, prot)
- struct vm_page *pg;
- vm_prot_t prot;
+pmap_page_protect(struct vm_page *pg, vm_prot_t prot)
{
if ((prot & VM_PROT_WRITE) == 0) {
if (prot & (VM_PROT_READ|VM_PROT_EXECUTE)) {
@@ -467,10 +465,7 @@ pmap_page_protect(pg, 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)) {
diff --git a/sys/arch/i386/include/vm86.h b/sys/arch/i386/include/vm86.h
index 23c08917284..a16d05e298e 100644
--- a/sys/arch/i386/include/vm86.h
+++ b/sys/arch/i386/include/vm86.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm86.h,v 1.9 2008/06/26 05:42:10 ray Exp $ */
+/* $OpenBSD: vm86.h,v 1.10 2011/06/25 19:20:41 jsg Exp $ */
/* $NetBSD: vm86.h,v 1.8 1996/05/03 19:26:32 christos Exp $ */
#undef VM86_USE_VIF
@@ -98,8 +98,7 @@ clr_vif(p)
}
static __inline void
-set_vif(p)
- struct proc *p;
+set_vif(struct proc *p)
{
struct pcb *pcb = &p->p_addr->u_pcb;
@@ -114,9 +113,7 @@ set_vif(p)
}
static __inline void
-set_vflags(p, flags)
- struct proc *p;
- int flags;
+set_vflags(struct proc *p, int flags)
{
struct trapframe *tf = p->p_md.md_regs;
struct pcb *pcb = &p->p_addr->u_pcb;
@@ -133,8 +130,7 @@ set_vflags(p, flags)
}
static __inline int
-get_vflags(p)
- struct proc *p;
+get_vflags(struct proc *p)
{
struct trapframe *tf = p->p_md.md_regs;
struct pcb *pcb = &p->p_addr->u_pcb;
@@ -146,9 +142,7 @@ get_vflags(p)
}
static __inline void
-set_vflags_short(p, flags)
- struct proc *p;
- int flags;
+set_vflags_short(struct proc *p, int flags)
{
struct trapframe *tf = p->p_md.md_regs;
struct pcb *pcb = &p->p_addr->u_pcb;
@@ -163,8 +157,7 @@ set_vflags_short(p, flags)
}
static __inline int
-get_vflags_short(p)
- struct proc *p;
+get_vflags_short(struct proc *p)
{
struct trapframe *tf = p->p_md.md_regs;
struct pcb *pcb = &p->p_addr->u_pcb;