-/* $OpenBSD: disksubr.c,v 1.4 1996/04/28 10:58:59 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.5 1996/05/04 16:07:47 deraadt Exp $ */
/*
* Copyright (c) 1995 Dale Rahn.
static void printclp __P((struct cpu_disklabel *clp, char *str));
#endif
-int
+void
dk_establish(dk, dev)
struct disk *dk;
struct device *dev;
{
- return(-1);
}
/*
-/* $OpenBSD: machdep.c,v 1.7 1996/04/28 10:59:02 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.8 1996/05/04 16:07:49 deraadt Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
* before vm init or startup. Do enough configuration
* to choose and initialize a console.
*/
+void
consinit()
{
splhigh(); /* extreme priority */
if (howto&RB_HALT) {
printf("halted\n\n");
- while (1)
- ;
} else {
struct haltvec *hv;
(*hv->hv_fn)();
doboot();
}
+ while (1)
+ ;
/*NOTREACHED*/
}
-/* $OpenBSD: vm_machdep.c,v 1.5 1996/04/28 10:57:03 deraadt Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.6 1996/05/04 16:07:50 deraadt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
void
cpu_set_kpc(p, pc)
struct proc *p;
- u_long pc;
+ void (*pc) __P((struct proc *));
{
- p->p_addr->u_pcb.pcb_regs[6] = pc; /* A2 */
+ p->p_addr->u_pcb.pcb_regs[6] = (int)pc; /* A2 */
}
/*
* Dump the machine specific header information at the start of a core dump.
*/
int
-cpu_coredump(p, vp, cred)
+cpu_coredump(p, vp, cred, chdr)
struct proc *p;
struct vnode *vp;
struct ucred *cred;
+ struct core *chdr;
{
#ifdef COMPAT_HPUX
* Both addresses are assumed to reside in the Sysmap,
* and size must be a multiple of CLSIZE.
*/
+void
pagemove(from, to, size)
- register caddr_t from, to;
- int size;
+ caddr_t from, to;
+ size_t size;
{
register vm_offset_t pa;