mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Make sure the mem_range_AP_init() prototype is seen where it's needed, and
#ifdef SMP around it for fun.
This commit is contained in:
parent
b5a1d3ab96
commit
9c06a38614
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46703
@ -38,7 +38,7 @@
|
||||
*
|
||||
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
||||
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: mem.c,v 1.58 1999/05/02 03:06:22 msmith Exp $
|
||||
* $Id: mem.c,v 1.59 1999/05/03 09:47:53 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -527,12 +527,14 @@ mem_range_attr_set(struct mem_range_desc *mrd, int *arg)
|
||||
return(mem_range_softc.mr_op->set(&mem_range_softc, mrd, arg));
|
||||
}
|
||||
|
||||
#ifdef SMP
|
||||
void
|
||||
mem_range_AP_init(void)
|
||||
{
|
||||
if (mem_range_softc.mr_op && mem_range_softc.mr_op->initAP)
|
||||
return(mem_range_softc.mr_op->initAP(&mem_range_softc));
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
random_ioctl(dev, cmd, data, flags, p)
|
||||
|
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mp_machdep.c,v 1.98 1999/04/28 01:03:21 luoqi Exp $
|
||||
* $Id: mp_machdep.c,v 1.99 1999/04/30 22:09:40 msmith Exp $
|
||||
*/
|
||||
|
||||
#include "opt_smp.h"
|
||||
@ -41,6 +41,8 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/memrange.h>
|
||||
#ifdef BETTER_CLOCK
|
||||
#include <sys/dkstat.h>
|
||||
#endif
|
||||
|
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mp_machdep.c,v 1.98 1999/04/28 01:03:21 luoqi Exp $
|
||||
* $Id: mp_machdep.c,v 1.99 1999/04/30 22:09:40 msmith Exp $
|
||||
*/
|
||||
|
||||
#include "opt_smp.h"
|
||||
@ -41,6 +41,8 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/memrange.h>
|
||||
#ifdef BETTER_CLOCK
|
||||
#include <sys/dkstat.h>
|
||||
#endif
|
||||
|
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mp_machdep.c,v 1.98 1999/04/28 01:03:21 luoqi Exp $
|
||||
* $Id: mp_machdep.c,v 1.99 1999/04/30 22:09:40 msmith Exp $
|
||||
*/
|
||||
|
||||
#include "opt_smp.h"
|
||||
@ -41,6 +41,8 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/memrange.h>
|
||||
#ifdef BETTER_CLOCK
|
||||
#include <sys/dkstat.h>
|
||||
#endif
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
||||
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: mem.c,v 1.58 1999/05/02 03:06:22 msmith Exp $
|
||||
* $Id: mem.c,v 1.59 1999/05/03 09:47:53 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -527,12 +527,14 @@ mem_range_attr_set(struct mem_range_desc *mrd, int *arg)
|
||||
return(mem_range_softc.mr_op->set(&mem_range_softc, mrd, arg));
|
||||
}
|
||||
|
||||
#ifdef SMP
|
||||
void
|
||||
mem_range_AP_init(void)
|
||||
{
|
||||
if (mem_range_softc.mr_op && mem_range_softc.mr_op->initAP)
|
||||
return(mem_range_softc.mr_op->initAP(&mem_range_softc));
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
random_ioctl(dev, cmd, data, flags, p)
|
||||
|
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mp_machdep.c,v 1.98 1999/04/28 01:03:21 luoqi Exp $
|
||||
* $Id: mp_machdep.c,v 1.99 1999/04/30 22:09:40 msmith Exp $
|
||||
*/
|
||||
|
||||
#include "opt_smp.h"
|
||||
@ -41,6 +41,8 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/memrange.h>
|
||||
#ifdef BETTER_CLOCK
|
||||
#include <sys/dkstat.h>
|
||||
#endif
|
||||
|
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mp_machdep.c,v 1.98 1999/04/28 01:03:21 luoqi Exp $
|
||||
* $Id: mp_machdep.c,v 1.99 1999/04/30 22:09:40 msmith Exp $
|
||||
*/
|
||||
|
||||
#include "opt_smp.h"
|
||||
@ -41,6 +41,8 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/memrange.h>
|
||||
#ifdef BETTER_CLOCK
|
||||
#include <sys/dkstat.h>
|
||||
#endif
|
||||
|
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mp_machdep.c,v 1.98 1999/04/28 01:03:21 luoqi Exp $
|
||||
* $Id: mp_machdep.c,v 1.99 1999/04/30 22:09:40 msmith Exp $
|
||||
*/
|
||||
|
||||
#include "opt_smp.h"
|
||||
@ -41,6 +41,8 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/memrange.h>
|
||||
#ifdef BETTER_CLOCK
|
||||
#include <sys/dkstat.h>
|
||||
#endif
|
||||
|
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mp_machdep.c,v 1.98 1999/04/28 01:03:21 luoqi Exp $
|
||||
* $Id: mp_machdep.c,v 1.99 1999/04/30 22:09:40 msmith Exp $
|
||||
*/
|
||||
|
||||
#include "opt_smp.h"
|
||||
@ -41,6 +41,8 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/memrange.h>
|
||||
#ifdef BETTER_CLOCK
|
||||
#include <sys/dkstat.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user