Rename mips_pcpu_init to mips_pcpu0_init since it applies only to the
BSP. Provide a missing prototype.
This commit is contained in:
parent
15258244de
commit
3ad9e328b8
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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. */
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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... */
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
/*
|
||||
|
@ -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
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user