diff options
-rw-r--r-- | arch/sparc/include/asm/leon.h | 12 | ||||
-rw-r--r-- | arch/sparc/kernel/entry.S | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/head_32.S | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/leon_smp.c | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/trampoline_32.S | 6 | ||||
-rw-r--r-- | arch/sparc/mm/Makefile | 2 |
6 files changed, 2 insertions, 28 deletions
diff --git a/arch/sparc/include/asm/leon.h b/arch/sparc/include/asm/leon.h index 95fa93187dde..995c4e05be6d 100644 --- a/arch/sparc/include/asm/leon.h +++ b/arch/sparc/include/asm/leon.h | |||
@@ -254,16 +254,4 @@ extern int leon_ipi_irq; | |||
254 | #define _pfn_valid(pfn) ((pfn < last_valid_pfn) && (pfn >= PFN(phys_base))) | 254 | #define _pfn_valid(pfn) ((pfn < last_valid_pfn) && (pfn >= PFN(phys_base))) |
255 | #define _SRMMU_PTE_PMASK_LEON 0xffffffff | 255 | #define _SRMMU_PTE_PMASK_LEON 0xffffffff |
256 | 256 | ||
257 | #ifndef CONFIG_SPARC_LEON | ||
258 | |||
259 | /* nop definitions for !LEON case */ | ||
260 | #define leon_switch_mm() do {} while (0) | ||
261 | #define init_leon() do {} while (0) | ||
262 | #define leon_smp_done() do {} while (0) | ||
263 | #define leon_boot_cpus() do {} while (0) | ||
264 | #define leon_boot_one_cpu(i, t) 1 | ||
265 | #define leon_init_smp() do {} while (0) | ||
266 | |||
267 | #endif /* !defined(CONFIG_SPARC_LEON) */ | ||
268 | |||
269 | #endif | 257 | #endif |
diff --git a/arch/sparc/kernel/entry.S b/arch/sparc/kernel/entry.S index 2dbe1806e530..8550f10af453 100644 --- a/arch/sparc/kernel/entry.S +++ b/arch/sparc/kernel/entry.S | |||
@@ -393,7 +393,6 @@ linux_trap_ipi15_sun4d: | |||
393 | /* FIXME */ | 393 | /* FIXME */ |
394 | 1: b,a 1b | 394 | 1: b,a 1b |
395 | 395 | ||
396 | #ifdef CONFIG_SPARC_LEON | ||
397 | .globl smpleon_ipi | 396 | .globl smpleon_ipi |
398 | .extern leon_ipi_interrupt | 397 | .extern leon_ipi_interrupt |
399 | /* SMP per-cpu IPI interrupts are handled specially. */ | 398 | /* SMP per-cpu IPI interrupts are handled specially. */ |
@@ -424,8 +423,6 @@ linux_trap_ipi15_leon: | |||
424 | b ret_trap_lockless_ipi | 423 | b ret_trap_lockless_ipi |
425 | clr %l6 | 424 | clr %l6 |
426 | 425 | ||
427 | #endif /* CONFIG_SPARC_LEON */ | ||
428 | |||
429 | #endif /* CONFIG_SMP */ | 426 | #endif /* CONFIG_SMP */ |
430 | 427 | ||
431 | /* This routine handles illegal instructions and privileged | 428 | /* This routine handles illegal instructions and privileged |
diff --git a/arch/sparc/kernel/head_32.S b/arch/sparc/kernel/head_32.S index 6c6b8c27c1b8..cdc7f29ba17b 100644 --- a/arch/sparc/kernel/head_32.S +++ b/arch/sparc/kernel/head_32.S | |||
@@ -387,12 +387,9 @@ execute_in_high_mem: | |||
387 | #ifdef CONFIG_SMP | 387 | #ifdef CONFIG_SMP |
388 | ldub [%g2 + %lo(boot_cpu_id)], %g1 | 388 | ldub [%g2 + %lo(boot_cpu_id)], %g1 |
389 | cmp %g1, 0xff ! unset means first CPU | 389 | cmp %g1, 0xff ! unset means first CPU |
390 | #ifdef CONFIG_SPARC_LEON | ||
391 | /* XXX Hack to allow build - remove ifdef later */ | ||
392 | bne leon_smp_cpu_startup ! continue only with master | 390 | bne leon_smp_cpu_startup ! continue only with master |
393 | nop | 391 | nop |
394 | #endif | 392 | #endif |
395 | #endif | ||
396 | /* Get CPU-ID from most significant 4-bit of ASR17 */ | 393 | /* Get CPU-ID from most significant 4-bit of ASR17 */ |
397 | rd %asr17, %g1 | 394 | rd %asr17, %g1 |
398 | srl %g1, 28, %g1 | 395 | srl %g1, 28, %g1 |
diff --git a/arch/sparc/kernel/leon_smp.c b/arch/sparc/kernel/leon_smp.c index a469090faf9f..218c2f022695 100644 --- a/arch/sparc/kernel/leon_smp.c +++ b/arch/sparc/kernel/leon_smp.c | |||
@@ -48,8 +48,6 @@ | |||
48 | 48 | ||
49 | #include "kernel.h" | 49 | #include "kernel.h" |
50 | 50 | ||
51 | #ifdef CONFIG_SPARC_LEON | ||
52 | |||
53 | #include "irq.h" | 51 | #include "irq.h" |
54 | 52 | ||
55 | extern ctxd_t *srmmu_ctx_table_phys; | 53 | extern ctxd_t *srmmu_ctx_table_phys; |
@@ -507,5 +505,3 @@ void __init leon_init_smp(void) | |||
507 | 505 | ||
508 | sparc32_ipi_ops = &leon_ipi_ops; | 506 | sparc32_ipi_ops = &leon_ipi_ops; |
509 | } | 507 | } |
510 | |||
511 | #endif /* CONFIG_SPARC_LEON */ | ||
diff --git a/arch/sparc/kernel/trampoline_32.S b/arch/sparc/kernel/trampoline_32.S index 7364ddc9e5aa..af27acab4486 100644 --- a/arch/sparc/kernel/trampoline_32.S +++ b/arch/sparc/kernel/trampoline_32.S | |||
@@ -149,8 +149,6 @@ sun4d_cpu_startup: | |||
149 | 149 | ||
150 | b,a smp_do_cpu_idle | 150 | b,a smp_do_cpu_idle |
151 | 151 | ||
152 | #ifdef CONFIG_SPARC_LEON | ||
153 | |||
154 | __CPUINIT | 152 | __CPUINIT |
155 | .align 4 | 153 | .align 4 |
156 | .global leon_smp_cpu_startup, smp_penguin_ctable | 154 | .global leon_smp_cpu_startup, smp_penguin_ctable |
@@ -161,7 +159,7 @@ leon_smp_cpu_startup: | |||
161 | ld [%g1+4],%g1 | 159 | ld [%g1+4],%g1 |
162 | srl %g1,4,%g1 | 160 | srl %g1,4,%g1 |
163 | set 0x00000100,%g5 /* SRMMU_CTXTBL_PTR */ | 161 | set 0x00000100,%g5 /* SRMMU_CTXTBL_PTR */ |
164 | sta %g1, [%g5] ASI_M_MMUREGS | 162 | sta %g1, [%g5] ASI_LEON_MMUREGS |
165 | 163 | ||
166 | /* Set up a sane %psr -- PIL<0xf> S<0x1> PS<0x1> CWP<0x0> */ | 164 | /* Set up a sane %psr -- PIL<0xf> S<0x1> PS<0x1> CWP<0x0> */ |
167 | set (PSR_PIL | PSR_S | PSR_PS), %g1 | 165 | set (PSR_PIL | PSR_S | PSR_PS), %g1 |
@@ -207,5 +205,3 @@ leon_smp_cpu_startup: | |||
207 | nop | 205 | nop |
208 | 206 | ||
209 | b,a smp_do_cpu_idle | 207 | b,a smp_do_cpu_idle |
210 | |||
211 | #endif | ||
diff --git a/arch/sparc/mm/Makefile b/arch/sparc/mm/Makefile index 69ffd3112fed..389aebd720bc 100644 --- a/arch/sparc/mm/Makefile +++ b/arch/sparc/mm/Makefile | |||
@@ -9,7 +9,7 @@ obj-y += fault_$(BITS).o | |||
9 | obj-y += init_$(BITS).o | 9 | obj-y += init_$(BITS).o |
10 | obj-$(CONFIG_SPARC32) += extable.o srmmu.o iommu.o io-unit.o | 10 | obj-$(CONFIG_SPARC32) += extable.o srmmu.o iommu.o io-unit.o |
11 | obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o | 11 | obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o |
12 | obj-$(CONFIG_SPARC_LEON)+= leon_mm.o | 12 | obj-$(CONFIG_SPARC32) += leon_mm.o |
13 | 13 | ||
14 | # Only used by sparc64 | 14 | # Only used by sparc64 |
15 | obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o | 15 | obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o |