Rename mips_pcpu_init to mips_pcpu0_init since it applies only to the

BSP.  Provide a missing prototype.
This commit is contained in:
Warner Losh 2010-01-09 03:08:22 +00:00
parent 15258244de
commit 3ad9e328b8
11 changed files with 11 additions and 9 deletions

View File

@ -155,7 +155,7 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
mips_pcpu_init();
mips_pcpu0_init();
cninit();
mips_init();

View File

@ -155,7 +155,7 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
mips_pcpu_init();
mips_pcpu0_init();
cninit();
mips_init();

View File

@ -153,7 +153,7 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
mips_pcpu_init();
mips_pcpu0_init();
argc = a0;
argv = (char**)a1;

View File

@ -138,7 +138,7 @@ platform_start(__register_t a0, __register_t a1,
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
mips_pcpu_init();
mips_pcpu0_init();
/*
* Looking for mem=XXM argument

View File

@ -66,6 +66,7 @@ int is_physical_memory(vm_offset_t addr);
void mips_vector_init(void);
void cpu_identify(void);
void mips_cpu_init(void);
void mips_pcpu0_init(void);
void mips_proc0_init(void);
/* Platform call-downs. */

View File

@ -294,6 +294,7 @@ platform_start(__register_t a0, __register_t a1, __register_t a2,
kernend = round_page((vm_offset_t)&end);
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
mips_pcpu0_init();
platform_counter_freq = malta_cpu_freq();
mips_timer_early_init(platform_counter_freq);

View File

@ -256,7 +256,7 @@ SYSCTL_INT(_machdep, CPU_WALLCLOCK, wall_cmos_clock, CTLFLAG_RW,
* Initialize per cpu data structures, include curthread.
*/
void
mips_pcpu_init()
mips_pcpu0_init()
{
/* Initialize pcpu info of cpu-zero */
#ifdef SMP

View File

@ -653,7 +653,7 @@ platform_start(__register_t a0, __register_t a1, __register_t a2 __unused,
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
mips_pcpu_init();
mips_pcpu0_init();
octeon_boot_params_init(a3);
/* XXX octeon boot decriptor has args in it... */

View File

@ -388,7 +388,7 @@ platform_start(__register_t a0 __unused,
/* XXX no zeroing of BSS? */
/* Initialize pcpu stuff */
mips_pcpu_init();
mips_pcpu0_init();
/* XXX FIXME the code below is not 64 bit clean */
/* Save boot loader and other stuff from scratch regs */

View File

@ -189,7 +189,7 @@ platform_start(__register_t a0, __register_t a1, __register_t a2,
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
mips_pcpu_init();
mips_pcpu0_init();
#ifdef CFE
/*

View File

@ -241,7 +241,7 @@ platform_start(__register_t a0, __register_t a1, __register_t a2,
kernend = round_page((vm_offset_t)&end);
/* Initialize pcpu stuff */
mips_pcpu_init();
mips_pcpu0_init();
#ifdef CFE
/*