From: todd Date: Thu, 2 Mar 2000 23:01:45 +0000 (+0000) Subject: sun3 is alive, thanks to Miod Vallat X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=af71e6dbc3f49c9bf5a444cf1cf46af6565a242c;p=openbsd sun3 is alive, thanks to Miod Vallat add ksyms, proto fix. --- diff --git a/sys/arch/sun3/include/conf.h b/sys/arch/sun3/include/conf.h index ca4dbbf0f89..3a0db95395a 100644 --- a/sys/arch/sun3/include/conf.h +++ b/sys/arch/sun3/include/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.7 1997/02/22 21:09:16 kstailey Exp $ */ +/* $OpenBSD: conf.h,v 1.8 2000/03/02 23:01:45 todd Exp $ */ /*- * Copyright (c) 1996 Kenneth Stailey. All rights reserved. @@ -83,3 +83,5 @@ cdev_decl(ipl); #else #define NIPF 0 #endif + +cdev_decl(ksyms); diff --git a/sys/arch/sun3/include/cpu.h b/sys/arch/sun3/include/cpu.h index e3f0d3b8662..8194c5b979e 100644 --- a/sys/arch/sun3/include/cpu.h +++ b/sys/arch/sun3/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.10 1997/11/04 12:32:03 kstailey Exp $ */ +/* $OpenBSD: cpu.h,v 1.11 2000/03/02 23:01:45 todd Exp $ */ /* $NetBSD: cpu.h,v 1.20 1995/12/21 05:02:10 mycroft Exp $ */ /* @@ -173,7 +173,7 @@ void switch_exit __P((struct proc *)); void proc_trampoline __P((void)); /* trap.c */ -void child_return __P((struct proc *)); +void child_return __P((void *)); #endif /* _KERNEL */ diff --git a/sys/arch/sun3/include/machdep.h b/sys/arch/sun3/include/machdep.h index 228e049aac5..196b6f569f7 100644 --- a/sys/arch/sun3/include/machdep.h +++ b/sys/arch/sun3/include/machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.h,v 1.8 1998/03/01 00:37:48 niklas Exp $ */ +/* $OpenBSD: machdep.h,v 1.9 2000/03/02 23:01:46 todd Exp $ */ /* * Copyright (c) 1994 Gordon W. Ross @@ -90,7 +90,7 @@ void cache_flush_context(void); int cachectl __P((int req, caddr_t addr, int len)); -void child_return __P((struct proc *)); +void child_return __P((void *)); void configure __P((void)); void cninit __P((void)); diff --git a/sys/arch/sun3/include/param.h b/sys/arch/sun3/include/param.h index 34bbc18e1c4..f588a07e0ea 100644 --- a/sys/arch/sun3/include/param.h +++ b/sys/arch/sun3/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.17 1997/09/11 16:09:58 kstailey Exp $ */ +/* $OpenBSD: param.h,v 1.18 2000/03/02 23:01:46 todd Exp $ */ /* $NetBSD: param.h,v 1.34 1996/03/04 05:04:40 cgd Exp $ */ /* @@ -90,6 +90,8 @@ #endif #endif +#define MSGBUFSIZE NBPG + /* * Size of kernel malloc arena in CLBYTES-sized logical pages */ @@ -108,7 +110,7 @@ register int _spl_r; \ \ __asm __volatile ("clrl %0; movew sr,%0; movew %1,sr" : \ - "&=d" (_spl_r) : "di" (s)); \ + "=&d" (_spl_r) : "di" (s)); \ _spl_r; \ })