diff --git a/sys/arch/arm26/arm26/stubs.c b/sys/arch/arm26/arm26/stubs.c index 1a555932e563..c14969224ef7 100644 --- a/sys/arch/arm26/arm26/stubs.c +++ b/sys/arch/arm26/arm26/stubs.c @@ -1,11 +1,11 @@ -/* $NetBSD: stubs.c,v 1.8 2001/04/29 15:13:45 bjh21 Exp $ */ +/* $NetBSD: stubs.c,v 1.9 2001/07/28 19:12:50 bjh21 Exp $ */ /* * stubs.c -- functions I haven't written yet */ #include -__RCSID("$NetBSD: stubs.c,v 1.8 2001/04/29 15:13:45 bjh21 Exp $"); +__RCSID("$NetBSD: stubs.c,v 1.9 2001/07/28 19:12:50 bjh21 Exp $"); #include #include @@ -100,11 +100,3 @@ pagemove(foo, bar, len) { panic("pagemove not implemented"); } - -int sys_sysarch(p, v, retval) - struct proc *p; - void *v; - register_t *retval; -{ - panic("sys_sysarch not implemented"); -} diff --git a/sys/arch/arm26/arm26/sys_machdep.c b/sys/arch/arm26/arm26/sys_machdep.c new file mode 100644 index 000000000000..89f1b0d8270b --- /dev/null +++ b/sys/arch/arm26/arm26/sys_machdep.c @@ -0,0 +1,75 @@ +/* $NetBSD: sys_machdep.c,v 1.1 2001/07/28 19:12:50 bjh21 Exp $ */ + +/* + * Copyright (c) 1995-1997 Mark Brinicombe. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Mark Brinicombe + * 4. The name of the company nor the name of the author may be used to + * endorse or promote products derived from this software without specific + * prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * RiscBSD kernel project + * + * sys_machdep.c + * + * Machine dependant syscalls + * + * Created : 10/01/96 + */ + +#include + +__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.1 2001/07/28 19:12:50 bjh21 Exp $"); + +#include +#include +#include +#include + +#include + +int +sys_sysarch(struct proc *p, void *v, register_t *retval) +{ + struct sys_sysarch_args /* { + syscallarg(int) op; + syscallarg(void *) parms; + } */ *uap = v; + int error = 0; + + switch(SCARG(uap, op)) { + case ARM32_SYNC_ICACHE: + case ARM32_DRAIN_WRITEBUF: + /* These are both no-ops on arm26. */ + break; + default: + error = EINVAL; + break; + } + return (error); +} + +/* End of sys_machdep.c */ diff --git a/sys/arch/arm26/conf/files.arm26 b/sys/arch/arm26/conf/files.arm26 index 9de88e84f575..1b9842987322 100644 --- a/sys/arch/arm26/conf/files.arm26 +++ b/sys/arch/arm26/conf/files.arm26 @@ -1,4 +1,4 @@ -# $NetBSD: files.arm26,v 1.33 2001/07/04 13:49:24 bjh21 Exp $ +# $NetBSD: files.arm26,v 1.34 2001/07/28 19:12:51 bjh21 Exp $ # Copyright (c) 1997, 1998, 2000 Ben Harris # All rights reserved. @@ -210,6 +210,7 @@ file arch/arm26/arm26/procfs_machdep.c procfs #file arch/arm26/arm26/rscons.c file arch/arm26/arm26/softintr.c file arch/arm26/arm26/stubs.c +file arch/arm26/arm26/sys_machdep.c file arch/arm26/arm26/vm_machdep.c file arch/arm/arm/disksubr.c disk