Module Name: src Committed By: thorpej Date: Sun Apr 7 16:27:41 UTC 2019
Modified Files: src/sys/kern: subr_copy.c Log Message: Exclude references to _ucas_{32,64}_mp() for _RUMPKERNEL. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/kern/subr_copy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/subr_copy.c diff -u src/sys/kern/subr_copy.c:1.10 src/sys/kern/subr_copy.c:1.11 --- src/sys/kern/subr_copy.c:1.10 Sat Apr 6 15:52:35 2019 +++ src/sys/kern/subr_copy.c Sun Apr 7 16:27:41 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_copy.c,v 1.10 2019/04/06 15:52:35 thorpej Exp $ */ +/* $NetBSD: subr_copy.c,v 1.11 2019/04/07 16:27:41 thorpej Exp $ */ /*- * Copyright (c) 1997, 1998, 1999, 2002, 2007, 2008, 2019 @@ -80,7 +80,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: subr_copy.c,v 1.10 2019/04/06 15:52:35 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_copy.c,v 1.11 2019/04/07 16:27:41 thorpej Exp $"); #define __UFETCHSTORE_PRIVATE #define __UCAS_PRIVATE @@ -538,7 +538,8 @@ ucas_32(volatile uint32_t *uaddr, uint32 ASSERT_SLEEPABLE(); CHECK_ALIGNMENT(); -#if defined(__HAVE_UCAS_MP) && defined(MULTIPROCESSOR) +#if (defined(__HAVE_UCAS_MP) && defined(MULTIPROCESSOR)) && \ + !defined(_RUMPKERNEL) if (ncpu > 1) { return _ucas_32_mp(uaddr, old, new, ret); } @@ -553,7 +554,8 @@ ucas_64(volatile uint64_t *uaddr, uint64 ASSERT_SLEEPABLE(); CHECK_ALIGNMENT(); -#if defined(__HAVE_UCAS_MP) && defined(MULTIPROCESSOR) +#if (defined(__HAVE_UCAS_MP) && defined(MULTIPROCESSOR)) && \ + !defined(_RUMPKERNEL) if (ncpu > 1) { return _ucas_64_mp(uaddr, old, new, ret); }