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
a3e02917f3
commit
687f1a7fca
@ -155,7 +155,7 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
|
|||||||
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
||||||
|
|
||||||
/* Initialize pcpu stuff */
|
/* Initialize pcpu stuff */
|
||||||
mips_pcpu_init();
|
mips_pcpu0_init();
|
||||||
|
|
||||||
cninit();
|
cninit();
|
||||||
mips_init();
|
mips_init();
|
||||||
|
@ -155,7 +155,7 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
|
|||||||
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
||||||
|
|
||||||
/* Initialize pcpu stuff */
|
/* Initialize pcpu stuff */
|
||||||
mips_pcpu_init();
|
mips_pcpu0_init();
|
||||||
|
|
||||||
cninit();
|
cninit();
|
||||||
mips_init();
|
mips_init();
|
||||||
|
@ -153,7 +153,7 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
|
|||||||
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
||||||
|
|
||||||
/* Initialize pcpu stuff */
|
/* Initialize pcpu stuff */
|
||||||
mips_pcpu_init();
|
mips_pcpu0_init();
|
||||||
|
|
||||||
argc = a0;
|
argc = a0;
|
||||||
argv = (char**)a1;
|
argv = (char**)a1;
|
||||||
|
@ -138,7 +138,7 @@ platform_start(__register_t a0, __register_t a1,
|
|||||||
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
||||||
|
|
||||||
/* Initialize pcpu stuff */
|
/* Initialize pcpu stuff */
|
||||||
mips_pcpu_init();
|
mips_pcpu0_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Looking for mem=XXM argument
|
* Looking for mem=XXM argument
|
||||||
|
@ -66,6 +66,7 @@ int is_physical_memory(vm_offset_t addr);
|
|||||||
void mips_vector_init(void);
|
void mips_vector_init(void);
|
||||||
void cpu_identify(void);
|
void cpu_identify(void);
|
||||||
void mips_cpu_init(void);
|
void mips_cpu_init(void);
|
||||||
|
void mips_pcpu0_init(void);
|
||||||
void mips_proc0_init(void);
|
void mips_proc0_init(void);
|
||||||
|
|
||||||
/* Platform call-downs. */
|
/* 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);
|
kernend = round_page((vm_offset_t)&end);
|
||||||
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
||||||
|
|
||||||
|
mips_pcpu0_init();
|
||||||
platform_counter_freq = malta_cpu_freq();
|
platform_counter_freq = malta_cpu_freq();
|
||||||
mips_timer_early_init(platform_counter_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.
|
* Initialize per cpu data structures, include curthread.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
mips_pcpu_init()
|
mips_pcpu0_init()
|
||||||
{
|
{
|
||||||
/* Initialize pcpu info of cpu-zero */
|
/* Initialize pcpu info of cpu-zero */
|
||||||
#ifdef SMP
|
#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));
|
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
||||||
|
|
||||||
/* Initialize pcpu stuff */
|
/* Initialize pcpu stuff */
|
||||||
mips_pcpu_init();
|
mips_pcpu0_init();
|
||||||
|
|
||||||
octeon_boot_params_init(a3);
|
octeon_boot_params_init(a3);
|
||||||
/* XXX octeon boot decriptor has args in it... */
|
/* XXX octeon boot decriptor has args in it... */
|
||||||
|
@ -388,7 +388,7 @@ platform_start(__register_t a0 __unused,
|
|||||||
/* XXX no zeroing of BSS? */
|
/* XXX no zeroing of BSS? */
|
||||||
|
|
||||||
/* Initialize pcpu stuff */
|
/* Initialize pcpu stuff */
|
||||||
mips_pcpu_init();
|
mips_pcpu0_init();
|
||||||
|
|
||||||
/* XXX FIXME the code below is not 64 bit clean */
|
/* XXX FIXME the code below is not 64 bit clean */
|
||||||
/* Save boot loader and other stuff from scratch regs */
|
/* 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));
|
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
|
||||||
|
|
||||||
/* Initialize pcpu stuff */
|
/* Initialize pcpu stuff */
|
||||||
mips_pcpu_init();
|
mips_pcpu0_init();
|
||||||
|
|
||||||
#ifdef CFE
|
#ifdef CFE
|
||||||
/*
|
/*
|
||||||
|
@ -241,7 +241,7 @@ platform_start(__register_t a0, __register_t a1, __register_t a2,
|
|||||||
kernend = round_page((vm_offset_t)&end);
|
kernend = round_page((vm_offset_t)&end);
|
||||||
|
|
||||||
/* Initialize pcpu stuff */
|
/* Initialize pcpu stuff */
|
||||||
mips_pcpu_init();
|
mips_pcpu0_init();
|
||||||
|
|
||||||
#ifdef CFE
|
#ifdef CFE
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user