From 18ab712015d5b8a471576adabf98b41760b3dab1 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 16 Dec 1999 20:24:58 +0000 Subject: [PATCH] Provide cpu_boot_secondary_cpus(). --- sys/arch/sparc/include/cpu.h | 10 +++++++++- sys/arch/sparc/sparc/cpu.c | 18 +++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc/include/cpu.h b/sys/arch/sparc/include/cpu.h index 419c96fe4f90..1ed264165e2a 100644 --- a/sys/arch/sparc/include/cpu.h +++ b/sys/arch/sparc/include/cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.34 1999/10/04 19:11:43 pk Exp $ */ +/* $NetBSD: cpu.h,v 1.35 1999/12/16 20:24:59 thorpej Exp $ */ /* * Copyright (c) 1992, 1993 @@ -63,6 +63,10 @@ * Exported definitions unique to SPARC cpu support. */ +#if !defined(_LKM) +#include "opt_multiprocessor.h" +#endif + #include #include @@ -75,6 +79,10 @@ #define cpu_wait(p) /* nothing */ #define cpu_number() 0 /* XXX */ +#if defined(MULTIPROCESSOR) +void cpu_boot_secondary_processors __P((void)); +#endif + /* * Arguments to hardclock, softclock and gatherstats encapsulate the * previous machine state in an opaque clockframe. The ipl is here diff --git a/sys/arch/sparc/sparc/cpu.c b/sys/arch/sparc/sparc/cpu.c index 72aa098383f7..3e1779b1c5d7 100644 --- a/sys/arch/sparc/sparc/cpu.c +++ b/sys/arch/sparc/sparc/cpu.c @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.96 1999/11/27 14:54:53 mrg Exp $ */ +/* $NetBSD: cpu.c,v 1.97 1999/12/16 20:24:58 thorpej Exp $ */ /* * Copyright (c) 1996 @@ -334,6 +334,22 @@ static int cpu_number; #endif /* MULTIPROCESSOR */ } +#if defined(MULTIPROCESSOR) +/* + * Start secondary processors in motion. + */ +void +cpu_boot_secondary_processors() +{ + + /* + * XXX This is currently a noop; the CPUs are already running, but + * XXX aren't doing anything. Eventually, this will release a + * XXX semaphore that all those secondary processors are anxiously + * XXX waiting on. + */ +} +#endif /* MULTIPROCESSOR */ /* */ void *cpu_hatchstack = 0;