-/* $OpenBSD: conf.c,v 1.46 2016/05/23 00:05:34 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.47 2016/07/31 09:18:01 jsg Exp $ */
/* $NetBSD: conf.c,v 1.10 2002/04/19 01:04:38 wiz Exp $ */
/*
* Returns true if dev is /dev/mem or /dev/kmem.
*/
int
-iskmemdev(dev)
- dev_t dev;
+iskmemdev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) < 2);
}
* Returns true if dev is /dev/zero.
*/
int
-iszerodev(dev)
- dev_t dev;
+iszerodev(dev_t dev)
{
return (major(dev) == mem_no && minor(dev) == 3);
}
int nchrtoblktbl = nitems(chrtoblktbl);
dev_t
-getnulldev()
+getnulldev(void)
{
return makedev(mem_no, 2);
}
-/* $OpenBSD: vm_machdep.c,v 1.17 2016/04/24 01:31:02 patrick Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.18 2016/07/31 09:18:01 jsg Exp $ */
/* $NetBSD: vm_machdep.c,v 1.31 2004/01/04 11:33:29 jdolecek Exp $ */
/*
* accordingly.
*/
void
-cpu_fork(p1, p2, stack, stacksize, func, arg)
- struct proc *p1;
- struct proc *p2;
- void *stack;
- size_t stacksize;
- void (*func) (void *);
- void *arg;
+cpu_fork(struct proc *p1, struct proc *p2, void *stack,
+ size_t stacksize, void (*func) (void *), void *arg)
{
struct pcb *pcb = (struct pcb *)&p2->p_addr->u_pcb;
struct trapframe *tf;
* do not need to pass an access_type to pmap_enter().
*/
void
-vmapbuf(bp, len)
- struct buf *bp;
- vsize_t len;
+vmapbuf(struct buf *bp, vsize_t len)
{
vaddr_t faddr, taddr, off;
paddr_t fpa;
* Unmap a previously-mapped user I/O request.
*/
void
-vunmapbuf(bp, len)
- struct buf *bp;
- vsize_t len;
+vunmapbuf(struct buf *bp, vsize_t len)
{
vaddr_t addr, off;