svn commit: r201881 - in projects/mips/sys/mips: adm5120 alchemy
atheros idt include malta mips octeon1 rmi sentry5 sibyte
Warner Losh
imp at FreeBSD.org
Sat Jan 9 03:08:22 UTC 2010
Author: imp
Date: Sat Jan 9 03:08:22 2010
New Revision: 201881
URL: http://svn.freebsd.org/changeset/base/201881
Log:
Rename mips_pcpu_init to mips_pcpu0_init since it applies only to the
BSP. Provide a missing prototype.
Modified:
projects/mips/sys/mips/adm5120/adm5120_machdep.c
projects/mips/sys/mips/alchemy/alchemy_machdep.c
projects/mips/sys/mips/atheros/ar71xx_machdep.c
projects/mips/sys/mips/idt/idt_machdep.c
projects/mips/sys/mips/include/md_var.h
projects/mips/sys/mips/malta/malta_machdep.c
projects/mips/sys/mips/mips/machdep.c
projects/mips/sys/mips/octeon1/octeon_machdep.c
projects/mips/sys/mips/rmi/xlr_machdep.c
projects/mips/sys/mips/sentry5/s5_machdep.c
projects/mips/sys/mips/sibyte/sb_machdep.c
Modified: projects/mips/sys/mips/adm5120/adm5120_machdep.c
==============================================================================
--- projects/mips/sys/mips/adm5120/adm5120_machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/adm5120/adm5120_machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -155,7 +155,7 @@ platform_start(__register_t a0 __unused,
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
- mips_pcpu_init();
+ mips_pcpu0_init();
cninit();
mips_init();
Modified: projects/mips/sys/mips/alchemy/alchemy_machdep.c
==============================================================================
--- projects/mips/sys/mips/alchemy/alchemy_machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/alchemy/alchemy_machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -155,7 +155,7 @@ platform_start(__register_t a0 __unused,
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
- mips_pcpu_init();
+ mips_pcpu0_init();
cninit();
mips_init();
Modified: projects/mips/sys/mips/atheros/ar71xx_machdep.c
==============================================================================
--- projects/mips/sys/mips/atheros/ar71xx_machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/atheros/ar71xx_machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -153,7 +153,7 @@ platform_start(__register_t a0 __unused,
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
- mips_pcpu_init();
+ mips_pcpu0_init();
argc = a0;
argv = (char**)a1;
Modified: projects/mips/sys/mips/idt/idt_machdep.c
==============================================================================
--- projects/mips/sys/mips/idt/idt_machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/idt/idt_machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -138,7 +138,7 @@ platform_start(__register_t a0, __regist
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
- mips_pcpu_init();
+ mips_pcpu0_init();
/*
* Looking for mem=XXM argument
Modified: projects/mips/sys/mips/include/md_var.h
==============================================================================
--- projects/mips/sys/mips/include/md_var.h Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/include/md_var.h Sat Jan 9 03:08:22 2010 (r201881)
@@ -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. */
Modified: projects/mips/sys/mips/malta/malta_machdep.c
==============================================================================
--- projects/mips/sys/mips/malta/malta_machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/malta/malta_machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -294,6 +294,7 @@ platform_start(__register_t a0, __regist
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);
Modified: projects/mips/sys/mips/mips/machdep.c
==============================================================================
--- projects/mips/sys/mips/mips/machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/mips/machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -256,7 +256,7 @@ SYSCTL_INT(_machdep, CPU_WALLCLOCK, wall
* Initialize per cpu data structures, include curthread.
*/
void
-mips_pcpu_init()
+mips_pcpu0_init()
{
/* Initialize pcpu info of cpu-zero */
#ifdef SMP
Modified: projects/mips/sys/mips/octeon1/octeon_machdep.c
==============================================================================
--- projects/mips/sys/mips/octeon1/octeon_machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/octeon1/octeon_machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -653,7 +653,7 @@ platform_start(__register_t a0, __regist
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... */
Modified: projects/mips/sys/mips/rmi/xlr_machdep.c
==============================================================================
--- projects/mips/sys/mips/rmi/xlr_machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/rmi/xlr_machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -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 */
Modified: projects/mips/sys/mips/sentry5/s5_machdep.c
==============================================================================
--- projects/mips/sys/mips/sentry5/s5_machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/sentry5/s5_machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -189,7 +189,7 @@ platform_start(__register_t a0, __regist
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
/* Initialize pcpu stuff */
- mips_pcpu_init();
+ mips_pcpu0_init();
#ifdef CFE
/*
Modified: projects/mips/sys/mips/sibyte/sb_machdep.c
==============================================================================
--- projects/mips/sys/mips/sibyte/sb_machdep.c Sat Jan 9 02:17:14 2010 (r201880)
+++ projects/mips/sys/mips/sibyte/sb_machdep.c Sat Jan 9 03:08:22 2010 (r201881)
@@ -241,7 +241,7 @@ platform_start(__register_t a0, __regist
kernend = round_page((vm_offset_t)&end);
/* Initialize pcpu stuff */
- mips_pcpu_init();
+ mips_pcpu0_init();
#ifdef CFE
/*
More information about the svn-src-projects
mailing list