-/* $OpenBSD: conf.c,v 1.23 1998/09/25 09:20:54 todd Exp $ */
+/* $OpenBSD: conf.c,v 1.24 2000/03/02 23:02:14 todd Exp $ */
/* $NetBSD: conf.c,v 1.51 1996/11/04 16:16:09 gwr Exp $ */
/*-
#include <xfs/nxfs.h>
cdev_decl(xfs_dev);
#endif
+#include "ksyms.h"
struct bdevsw bdevsw[] =
{
cdev_notdef(), /* 34: floating point accelerator */
cdev_notdef(), /* 35 */
cdev_bpftun_init(NBPFILTER,bpf),/* 36: Berkeley packet filter */
- cdev_notdef(), /* 37 */
+ cdev_ksyms_init(NKSYMS,ksyms), /* 37: Kernel symbols device */
cdev_notdef(), /* 38 */
cdev_fb_init(NCGFOUR,cg4), /* 39: cgfour */
cdev_notdef(), /* 40: (sni) */
-/* $OpenBSD: machdep.c,v 1.24 1999/11/09 14:30:39 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.25 2000/03/02 23:02:14 todd Exp $ */
/* $NetBSD: machdep.c,v 1.77 1996/10/13 03:47:51 christos Exp $ */
/*
int physmem;
int fputype;
-int msgbufmapped;
label_t *nofault;
vm_offset_t vmmap;
daddr_t blkno;
int error = 0;
- msgbufmapped = 0;
if (dumpdev == NODEV)
return;
if (dumppage_va == 0)
-/* $OpenBSD: mem.c,v 1.8 1999/11/22 19:22:03 matthieu Exp $ */
+/* $OpenBSD: mem.c,v 1.9 2000/03/02 23:02:14 todd Exp $ */
/* $NetBSD: mem.c,v 1.19 1995/08/08 21:09:01 gwr Exp $ */
/*
/* Temporarily map the memory at vmmap. */
pmap_enter(pmap_kernel(), vmmap,
trunc_page(v), uio->uio_rw == UIO_READ ?
- VM_PROT_READ : VM_PROT_WRITE, TRUE);
+ VM_PROT_READ : VM_PROT_WRITE, TRUE, 0);
o = uio->uio_offset & PGOFSET;
c = min(uio->uio_resid, (int)(NBPG - o));
error = uiomove((caddr_t)vmmap + o, c, uio);
-/* $OpenBSD: pmap.c,v 1.18 1999/11/09 14:32:48 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.19 2000/03/02 23:02:14 todd Exp $ */
/* $NetBSD: pmap.c,v 1.64 1996/11/20 18:57:35 gwr Exp $ */
/*-
#define PMAP_LOCK() s = splpmap()
#define PMAP_UNLOCK() splx(s)
-#define TAILQ_EMPTY(headp) \
- !((headp)->tqh_first)
-
#define TAILQ_REMOVE_FIRST(result, headp, entries) \
{ \
result = (headp)->tqh_first; \
-/* $OpenBSD: sun3_startup.c,v 1.10 1997/09/07 14:05:21 kstailey Exp $ */
+/* $OpenBSD: sun3_startup.c,v 1.11 2000/03/02 23:02:14 todd Exp $ */
/* $NetBSD: sun3_startup.c,v 1.55 1996/11/20 18:57:38 gwr Exp $ */
/*-
#include <sys/reboot.h>
#include <sys/user.h>
#include <sys/exec_aout.h>
+#include <sys/msgbuf.h>
#include <vm/vm.h>
vm_offset_t high_segment_free_start = 0;
vm_offset_t high_segment_free_end = 0;
-int msgbufmapped = 0;
struct msgbuf *msgbufp = NULL;
extern vm_offset_t tmp_vpages[];
extern int physmem;
set_pte(va, pte);
/* offset by half a page to avoid PROM scribbles */
msgbufp = (struct msgbuf *)(va + 0x1000);
- msgbufmapped = 1;
+ initmsgbuf((caddr_t)msgbufp, round_page(MSGBUFSIZE));
/*
* Virtual and physical pages for proc[0] u-area (already mapped)
-/* $OpenBSD: trap.c,v 1.19 1998/08/23 16:53:00 kstailey Exp $ */
+/* $OpenBSD: trap.c,v 1.20 2000/03/02 23:02:14 todd Exp $ */
/* $NetBSD: trap.c,v 1.63-1.65ish 1997/01/16 15:41:40 gwr Exp $ */
/*
*/
void
child_return(p)
- struct proc *p;
+ void *p;
{
struct frame *f;
- f = (struct frame *)p->p_md.md_regs;
+ f = (struct frame *)((struct proc *)p)->p_md.md_regs;
f->f_regs[D0] = 0;
f->f_sr &= ~PSL_C;
f->f_format = FMT0;
* Old ticks (3rd arg) is zero so we will charge the child
* for any clock ticks that might happen before this point.
*/
- userret(p, f, 0);
+ userret((struct proc *)p, f, 0);
#ifdef KTRACE
- if (KTRPOINT(p, KTR_SYSRET))
- ktrsysret(p->p_tracep, SYS_fork, 0, 0);
+ if (KTRPOINT((struct proc *)p, KTR_SYSRET))
+ ktrsysret(((struct proc *)p)->p_tracep, SYS_fork, 0, 0);
#endif
}
-/* $OpenBSD: vm_machdep.c,v 1.10 1999/11/09 14:30:39 art Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.11 2000/03/02 23:02:15 todd Exp $ */
/* $NetBSD: vm_machdep.c,v 1.35 1996/04/26 18:38:06 gwr Exp $ */
/*
* before we "pushed" this call.
*/
void
-cpu_set_kpc(proc, func, arg)
- struct proc *proc;
- void (*func) __P((void *));
+cpu_set_kpc(prc, func, arg)
+ struct proc *prc;
+ void (*func) (void *);
void *arg;
{
struct pcb *pcbp;
struct ksigframe {
struct switchframe sf;
- void (*func)(void *);
+ void (*func) (void *);
void *arg;
} *ksfp;
- pcbp = &proc->p_addr->u_pcb;
+ pcbp = &prc->p_addr->u_pcb;
/* Push a ksig frame onto the kernel stack. */
ksfp = (struct ksigframe *)pcbp->pcb_regs[11] - 1;