sparc: remove CONFIG_SUN4
Subsystems (3)
PATCH 1/1 sparc: remove CONFIG_SUN4
While doing some easy cleanups on the sparc code I noticed that the CONFIG_SUN4 code seems to be worse than the rest - there were some "I don't know how it should work, but the current code definitely cannot work." places.
And while I have seen people running Linux on machines like a SPARCstation 5 a few years ago I don't recall having seen sun4 machines, even less ones running Linux.
---
arch/sparc/Kconfig | 15 -- arch/sparc/kernel/Makefile | 1 arch/sparc/kernel/entry.S | 54 ---------- arch/sparc/kernel/head.S | 28 ----- arch/sparc/kernel/idprom.c | 7 - arch/sparc/kernel/ioport.c | 10 - arch/sparc/kernel/prom.c | 1 arch/sparc/kernel/setup.c | 6 - arch/sparc/kernel/sun4c_irq.c | 58 +++------- arch/sparc/kernel/sun4setup.c | 75 -------------- arch/sparc/kernel/time.c | 162 ------------------------------ arch/sparc/mm/Makefile | 9 - arch/sparc/mm/btfixup.c | 4 arch/sparc/mm/nosrmmu.c | 59 ----------- arch/sparc/mm/sun4c.c | 180 ++++++++-------------------------- arch/sparc/prom/Makefile | 2 arch/sparc/prom/bootstr.c | 1 arch/sparc/prom/console.c | 2 arch/sparc/prom/init.c | 10 - arch/sparc/prom/memory.c | 13 -- arch/sparc/prom/sun4prom.c | 161 ------------------------------ drivers/ata/Kconfig | 1 drivers/net/sunlance.c | 42 ------- drivers/sbus/dvma.c | 33 ------ include/asm-m68k/sbus.h | 2 include/asm-sparc/asmmacro.h | 5 include/asm-sparc/dma.h | 5 include/asm-sparc/elf.h | 5 include/asm-sparc/mostek.h | 40 ------- include/asm-sparc/oplib.h | 1 include/asm-sparc/page.h | 5 include/asm-sparc/pgtable.h | 4 include/asm-sparc/sun4paddr.h | 56 ---------- include/asm-sparc/system.h | 6 - include/asm-sparc/timer.h | 8 - include/asm-sparc/vac-ops.h | 4 include/asm-sparc64/system.h | 3 37 files changed, 72 insertions(+), 1006 deletions(-)
89fd652997fb5e017c31761de44353c95aacb024 diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 789724e..e56cb35 100644
arch/sparc/Kconfig +0 -15
@@ -203,17 +203,6 @@ config SUN_PM Enable power management and CPU standby features on supported SPARC platforms. -config SUN4 - bool "Support for SUN4 machines (disables SUN4[CDM] support)" - depends on !SMP - default n - help - Say Y here if, and only if, your machine is a sun4. Note that - a kernel compiled with this option will run only on sun4. - (And the current version will probably work only on sun4/330.) - -if !SUN4 - config PCI bool "Support for PCI and PS/2 keyboard/mouse" help
@@ -226,8 +215,6 @@ config PCI_SYSCALL source "drivers/pci/Kconfig" -endif - config NO_DMA def_bool !PCI
@@ -262,9 +249,7 @@ source "net/Kconfig" source "drivers/Kconfig" -if !SUN4 source "drivers/sbus/char/Kconfig" -endif # This one must be before the filesystem configs. -DaveM
arch/sparc/kernel/Makefile +0 -1
@@ -18,7 +18,6 @@ obj-y := entry.o wof.o wuf.o etrap.o rtrap.o traps.o $(IRQ_OBJS) \ devres-y = ../../../kernel/irq/devres.o obj-$(CONFIG_PCI) += pcic.o -obj-$(CONFIG_SUN4) += sun4setup.o obj-$(CONFIG_SMP) += trampoline.o smp.o sun4m_smp.o sun4d_smp.o obj-$(CONFIG_SUN_AUXIO) += auxio.o obj-$(CONFIG_PCI) += ebus.o
arch/sparc/kernel/entry.S +0 -54
99 lines not on this page · raw message
arch/sparc/kernel/head.S +2 -26
@@ -63,15 +63,9 @@ cputypvar_sun4m: .align 4 -#ifndef CONFIG_SUN4 sun4_notsup: - .asciz "Sparc-Linux sun4 needs a specially compiled kernel, turn CONFIG_SUN4 on.\n\n" + .asciz "Sparc-Linux sun4 support does no longer exist.\n\n" .align 4 -#else -sun4cdm_notsup: - .asciz "Kernel compiled with CONFIG_SUN4 cannot run on SUN4C/SUN4M/SUN4D\nTurn CONFIG_SUN4 off.\n\n" - .align 4 -#endif sun4e_notsup: .asciz "Sparc-Linux sun4e support does not exist\n\n"
@@ -780,15 +774,6 @@ execute_in_high_mem: nop found_version: -#ifdef CONFIG_SUN4 -/* For people who try sun4 kernels, even if Configure.help advises them. */ - ld [%g7 + 0x68], %o1 - set sun4cdm_notsup, %o0 - call %o1 - nop - b halt_me - nop -#endif /* Get the machine type via the mysterious romvec node operations. */ add %g7, 0x1c, %l1
@@ -1150,15 +1135,6 @@ sun4c_continue_boot: nop sun4_init: -#ifdef CONFIG_SUN4 -/* There, happy now Adrian? */ - set cputypval, %o2 ! Let everyone know we - set ' ', %o0 ! are a "sun4 " architecture - stb %o0, [%o2 + 0x4] - - b got_prop - nop -#else sethi %hi(SUN4_PROM_VECTOR+0x84), %o1 ld [%o1 + %lo(SUN4_PROM_VECTOR+0x84)], %o1 set sun4_notsup, %o0
@@ -1170,7 +1146,7 @@ sun4_init: nop 1: ba 1b ! Cannot exit into KMON nop -#endif + no_sun4e_here: ld [%g7 + 0x68], %o1 set sun4e_notsup, %o0
arch/sparc/kernel/idprom.c +0 -7
@@ -12,10 +12,6 @@#include <asm/oplib.h> #include <asm/idprom.h> #include <asm/machines.h> /* Fun with Sun released architectures. */ -#ifdef CONFIG_SUN4 -#include <asm/sun4paddr.h> -extern void sun4setup (void ); -#endif struct idprom *idprom;static struct idprom idprom_buffer;
@@ -101,7 +97,4 @@ void __init idprom_init(void) idprom->id_ethaddr[0 ], idprom->id_ethaddr[1 ], idprom->id_ethaddr[2 ], idprom->id_ethaddr[3 ], idprom->id_ethaddr[4], idprom->id_ethaddr[5]); -#ifdef CONFIG_SUN4 -sun4setup (); -#endif }
arch/sparc/kernel/ioport.c +0 -10
@@ -510,7 +510,6 @@ void __init sbus_arch_bus_ranges_init(struct device_node *pn, struct sbus_bus *svoid __init sbus_setup_iommu (struct sbus_bus *sbus,struct device_node *dp) { -#ifndef CONFIG_SUN4 struct device_node *parent = dp->parent; if (sparc_cpu_model != sun4d &&
@@ -527,7 +526,6 @@ void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp)iounit_init (dp->node, parent->node, sbus); } -#endif }void __init sbus_setup_arch_props (struct sbus_bus *sbus,struct device_node *dp)
@@ -544,15 +542,7 @@ int __init sbus_arch_preinit(void) {register_proc_sparc_ioport (); -#ifdef CONFIG_SUN4 - { -extern void sun4_dvma_init (void ); -sun4_dvma_init (); - } -return 1 ; -#else return 0 ; -#endif }void __init sbus_arch_postinit (void )
arch/sparc/kernel/prom.c +0 -1
@@ -436,7 +436,6 @@ static void __init of_console_init(void)switch (prom_vers) {case PROM_V0 : -case PROM_SUN4 : skip =0 ;switch (*romvec->pv_stdout) {case PROMDEV_SCREEN :
arch/sparc/kernel/setup.c +0 -6
@@ -224,12 +224,6 @@ void __init setup_arch(char **cmdline_p)if (!strcmp (&cputypval,"sun4e" )) { sparc_cpu_model=sun4e; }if (!strcmp (&cputypval,"sun4u" )) { sparc_cpu_model=sun4u; } -#ifdef CONFIG_SUN4 -if (sparc_cpu_model != sun4) { -prom_printf ("This kernel is for Sun4 architecture only.\n" ); -prom_halt (); - } -#endif printk ("ARCH: " );switch (sparc_cpu_model) {case sun4:
arch/sparc/kernel/sun4c_irq.c +17 -41
85 lines not on this page · raw message
arch/sparc/kernel/sun4setup.c deleted +0 -75
75 lines not on this page · raw message
arch/sparc/kernel/time.c +1 -161
206 lines not on this page · raw message
arch/sparc/mm/Makefile +2 -7
@@ -3,13 +3,8 @@ EXTRA_AFLAGS := -ansi -obj-y := fault.o init.o loadmmu.o generic.o extable.o btfixup.o - -ifeq ($(CONFIG_SUN4),y) -obj-y += nosrmmu.o -else -obj-y += srmmu.o iommu.o io-unit.o hypersparc.o viking.o tsunami.o swift.o -endif +obj-y := fault.o init.o loadmmu.o generic.o extable.o btfixup.o \ + srmmu.o iommu.o io-unit.o hypersparc.o viking.o tsunami.o swift.o ifdef CONFIG_HIGHMEM obj-y += highmem.o
arch/sparc/mm/btfixup.c +0 -4
@@ -20,11 +20,7 @@extern char *srmmu_name;static char version[]__initdata ="Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek ([email protected]). Patching kernel for " ; -#ifdef CONFIG_SUN4 -static char str_sun4c[]__initdata ="sun4\n" ; -#else static char str_sun4c[]__initdata ="sun4c\n" ; -#endif static char str_srmmu[]__initdata ="srmmu[%s]/" ;static char str_iommu[]__initdata ="iommu\n" ;static char str_iounit[]__initdata ="io-unit\n" ;
arch/sparc/mm/nosrmmu.c deleted +0 -59
59 lines not on this page · raw message
arch/sparc/mm/sun4c.c +18 -62
111 lines not on this page · raw message
- switch (idprom->id_machtype) {
- case (SM_SUN4|SM_4_110):
- prom_printf("No support for 4100 yet\n");
- prom_halt();
- num_segmaps = 256;
- num_contexts = 8;
- break;
-
- case (SM_SUN4|SM_4_260):
- /* should be 512 segmaps. when it get fixed */
- num_segmaps = 256;
- num_contexts = 16;
- break;
-
- case (SM_SUN4|SM_4_330):
- num_segmaps = 256;
- num_contexts = 16;
- break;
-
- case (SM_SUN4|SM_4_470):
- /* should be 1024 segmaps. when it get fixed */
- num_segmaps = 256;
- num_contexts = 64;
- break;
- default:
- prom_printf("Invalid SUN4 model\n");
- prom_halt();
- };
+ if ((idprom->id_machtype = (SM_SUN4C | SM_4C_SS1)) ||
+ (idprom->id_machtype = (SM_SUN4C | SM_4C_SS1PLUS))) {
+ /* Hardcode these just to be safe, PROM on SS1 does
+ * not have this info available in the root node.
+ */
+ num_segmaps = 128;
+ num_contexts = 8;
} else {
- if ((idprom->id_machtype = (SM_SUN4C | SM_4C_SS1)) ||
- (idprom->id_machtype = (SM_SUN4C | SM_4C_SS1PLUS))) {
- /* Hardcode these just to be safe, PROM on SS1 does
- * not have this info available in the root node.
- */
- num_segmaps = 128;
- num_contexts = 8;
- } else {
- num_segmaps - prom_getintdefault(prom_root_node, "mmu-npmg", 128);
- num_contexts - prom_getintdefault(prom_root_node, "mmu-nctx", 0x8);
- }
+ num_segmaps + prom_getintdefault(prom_root_node, "mmu-npmg", 128);
+ num_contexts + prom_getintdefault(prom_root_node, "mmu-nctx", 0x8);
}
patch_kernel_fault_handler();
}
@@ -501,18 +426,14 @@ void __init sun4c_probe_memerr_reg(void)
int node;
struct linux_prom_registers regs[1];
- if (ARCH_SUN4) {
- sun4c_memerr_reg = ioremap(sun4_memreg_physaddr, PAGE_SIZE);
- } else {
- node = prom_getchild(prom_root_node);
- node = prom_searchsiblings(prom_root_node, "memory-error");
- if (!node)
- return;
- if (prom_getproperty(node, "reg", (char *)regs, sizeof(regs)) <= 0)
- return;
- /* hmm I think regs[0].which_io is zero here anyways */
- sun4c_memerr_reg = ioremap(regs[0].phys_addr, regs[0].reg_size);
- }
+ node = prom_getchild(prom_root_node);
+ node = prom_searchsiblings(prom_root_node, "memory-error");
+ if (!node)
+ return;
+ if (prom_getproperty(node, "reg", (char *)regs, sizeof(regs)) <= 0)
+ return;
+ /* hmm I think regs[0].which_io is zero here anyways */
+ sun4c_memerr_reg = ioremap(regs[0].phys_addr, regs[0].reg_size);
}
static inline void sun4c_init_ss2_cache_bug(void)
@@ -521,7 +442,6 @@ static inline void sun4c_init_ss2_cache_bug(void)
if ((idprom->id_machtype = (SM_SUN4C | SM_4C_SS2)) || (idprom->id_machtype = (SM_SUN4C | SM_4C_IPX)) ||
- (idprom->id_machtype = (SM_SUN4 | SM_4_330)) ||
(idprom->id_machtype = (SM_SUN4C | SM_4C_ELC))) {
/* Whee.. */
printk("SS2 cache bug detected, uncaching trap table page\n");
@@ -624,11 +544,7 @@ static inline void sun4c_init_map_kernelprom(unsigned long kernel_end)
{
unsigned long vaddr;
unsigned char pseg, ctx;
-#ifdef CONFIG_SUN4
- /* sun4/110 and 260 have no kadb. */
- if ((idprom->id_machtype != (SM_SUN4 | SM_4_260)) &&
- (idprom->id_machtype != (SM_SUN4 | SM_4_110))) {
-#endif
+
for (vaddr = KADB_DEBUGGER_BEGVM;
vaddr < LINUX_OPPROM_ENDVM;
vaddr += SUN4C_REAL_PGDIR_SIZE) {
@@ -640,9 +556,7 @@ static inline void sun4c_init_map_kernelprom(unsigned long kernel_end)
fix_permissions(vaddr, _SUN4C_PAGE_PRIV, 0);
}
}
-#ifdef CONFIG_SUN4
- }
-#endif
+
for (vaddr = KERNBASE; vaddr < kernel_end; vaddr += SUN4C_REAL_PGDIR_SIZE) {
pseg = sun4c_get_segmap(vaddr);
mmu_entry_pool[pseg].locked = 1;
@@ -1048,14 +962,10 @@ static struct thread_info *sun4c_alloc_thread_info(void)
* so we must flush the cache to guarantee consistency.
*/
sun4c_flush_page(pages);
-#ifndef CONFIG_SUN4
sun4c_flush_page(pages + PAGE_SIZE);
-#endif
sun4c_put_pte(addr, BUCKET_PTE(pages));
-#ifndef CONFIG_SUN4
sun4c_put_pte(addr + PAGE_SIZE, BUCKET_PTE(pages + PAGE_SIZE));
-#endif
#ifdef CONFIG_DEBUG_STACK_USAGE
memset((void *)addr, 0, PAGE_SIZE << THREAD_INFO_ORDER);
@@ -1072,13 +982,11 @@ static void sun4c_free_thread_info(struct thread_info *ti)
/* We are deleting a mapping, so the flush here is mandatory. */ sun4c_flush_page(tiaddr);
-#ifndef CONFIG_SUN4
sun4c_flush_page(tiaddr + PAGE_SIZE);
-#endif
+
sun4c_put_pte(tiaddr, 0);
-#ifndef CONFIG_SUN4
sun4c_put_pte(tiaddr + PAGE_SIZE, 0);
-#endif
+
sun4c_bucket[entry] = BUCKET_EMPTY;
if (entry < sun4c_lowbucket_avail)
sun4c_lowbucket_avail = entry;
arch/sparc/prom/Makefile +0 -2
@@ -4,5 +4,3 @@ lib-y := bootstr.o devmap.o devops.o init.o memory.o misc.o mp.o \ palloc.o ranges.o segment.o console.o printf.o tree.o - -lib-$(CONFIG_SUN4) += sun4prom.o
arch/sparc/prom/bootstr.c +0 -1
@@ -28,7 +28,6 @@ prom_getbootargs(void)switch (prom_vers) {case PROM_V0 : -case PROM_SUN4 : cp = barg_buf;/* Start from 1 and go over fd(0,0,0)kernel */ for (iter =1 ; iter <8 ; iter++) {
arch/sparc/prom/console.c +0 -2
@@ -30,7 +30,6 @@ prom_nbgetchar(void)spin_lock_irqsave (&prom_lock, flags);switch (prom_vers) {case PROM_V0 : -case PROM_SUN4 : i = (*(romvec->pv_nbgetchar))();break ;case PROM_V2 :
@@ -63,7 +62,6 @@ prom_nbputchar(char c)spin_lock_irqsave (&prom_lock, flags);switch (prom_vers) {case PROM_V0 : -case PROM_SUN4 : i = (*(romvec->pv_nbputchar))(c);break ;case PROM_V2 :
arch/sparc/prom/init.c +0 -10
@@ -34,10 +34,6 @@ extern void prom_ranges_init(void);void __init prom_init (struct linux_romvec *rp) { -#ifdef CONFIG_SUN4 -extern struct linux_romvec *sun4_prom_init (void ); - rp =sun4_prom_init (); -#endif romvec = rp;switch (romvec->pv_romvers) {
@@ -50,9 +46,6 @@ void __init prom_init(struct linux_romvec *rp)case 3 : prom_vers =PROM_V3 ;break ; -case 40 : - prom_vers =PROM_SUN4 ; -break ;default :prom_printf ("PROMLIB: Bad PROM version %d\n" , romvec->pv_romvers);
@@ -76,11 +69,8 @@ void __init prom_init(struct linux_romvec *rp)prom_ranges_init (); -#ifndef CONFIG_SUN4 -/* SUN4 prints this in sun4_prom_init */ printk ("PROMLIB: Sun Boot Prom Version %d Revision %d\n" , romvec->pv_romvers, prom_rev); -#endif /* Initialization successful. */ return ;
arch/sparc/prom/memory.c +0 -13
@@ -46,15 +46,6 @@ static int __init prom_meminit_v2(void)return num_ents; } -static int __init prom_meminit_sun4 (void ) -{ -#ifdef CONFIG_SUN4 - sp_banks[0 ].base_addr =0 ; - sp_banks[0 ].num_bytes = *(sun4_romvec->memoryavail); -#endif -return 1 ; -} -static int sp_banks_cmp (const void *a,const void *b) {const struct sparc_phys_banks *x = a, *y = b;
@@ -81,10 +72,6 @@ void __init prom_meminit(void) num_ents =prom_meminit_v2 ();break ; -case PROM_SUN4 : - num_ents =prom_meminit_sun4 (); -break ; -default :break ; }
arch/sparc/prom/sun4prom.c deleted +0 -161
161 lines not on this page · raw message
drivers/ata/Kconfig +0 -1
@@ -7,7 +7,6 @@ menuconfig ATA depends on HAS_IOMEM depends on BLOCK depends on !(M32R || M68K) || BROKEN - depends on !SUN4 || BROKEN select SCSI ---help--- If you want to use a ATA hard disk, ATA tape drive, ATA CD-ROM or
drivers/net/sunlance.c +0 -42
58 lines not on this page · raw message
drivers/sbus/dvma.c +0 -33
@@ -101,36 +101,3 @@ void __init dvma_init(struct sbus_bus *sbus)init_one_dvma (dma, num_dma++); } } - -#ifdef CONFIG_SUN4 - -#include <asm/sun4paddr.h> - -void __init sun4_dvma_init (void ) -{ -struct sbus_dma *dma; -struct resource r; - -if (sun4_dma_physaddr) { - dma =kmalloc (sizeof (struct sbus_dma ),GFP_ATOMIC ); - -/* No SBUS */ - dma->sdev =NULL ; - -/* Only one DMA device */ - dma_chain = dma; - -memset (&r,0 ,sizeof (r)); - r.start = sun4_dma_physaddr; - dma->regs =sbus_ioremap (&r,0 ,PAGE_SIZE ,"dma" ); - -/* No prom node */ - dma->node =0x0 ; - -init_one_dvma (dma,0 ); - }else { - dma_chain =NULL ; - } -} - -#endif
include/asm-m68k/sbus.h +0 -2
@@ -12,8 +12,6 @@ struct sbus_dev { } reg_addrs[1 ]; }; -#define ARCH_SUN4 0 -/* sbus IO functions stolen from include/asm-sparc/io.h for the serial driver */ /* No SBUS on the Sun3, kludge -- sam */
include/asm-sparc/asmmacro.h +0 -5
@@ -34,12 +34,7 @@/* sun4 probably wants half word accesses to ASI_SEGMAP, while sun4c+ likes byte accesses. These are to avoid ifdef mania. */ -#ifdef CONFIG_SUN4 -#define lduXa lduha -#define stXa stha -#else #define lduXa lduba#define stXa stba -#endif #endif /* !(_SPARC_ASMMACRO_H) */
include/asm-sparc/dma.h +1 -4
@@ -86,13 +86,10 @@ struct sbus_dma {extern struct sbus_dma *dma_chain;/* Broken hardware... */ -#ifdef CONFIG_SUN4 /* Have to sort this out. Does rev0 work fine on sun4[cmd] without isbroken? * Or is rev0 present only on sun4 boxes? -jj */ -#define DMA_ISBROKEN (dma) ((dma)->revision = dvmarev0 || (dma)->revision = dvmarev1) -#else #define DMA_ISBROKEN (dma) ((dma)->revision = dvmarev1) -#endif +#define DMA_ISESC1 (dma) ((dma)->revision = dvmaesc1)/* Main routines in dma.c */
include/asm-sparc/elf.h +1 -4
@@ -105,11 +105,8 @@ typedef struct {#define ELF_DATA ELFDATA2MSB#define USE_ELF_CORE_DUMP -#ifndef CONFIG_SUN4 +#define ELF_EXEC_PAGESIZE 4096 -#else -#define ELF_EXEC_PAGESIZE 8192 -#endif /* This is the location that an ET_DYN program is loaded if exec'ed. Typical
include/asm-sparc/mostek.h +1 -39
@@ -128,44 +128,6 @@ struct mostek48t08 { struct mostek48t02 regs; /* Here is what we are interested in. */ }; -#ifdef CONFIG_SUN4 -enum sparc_clock_type {MSTK48T02 ,MSTK48T08 , \ -INTERSIL ,MSTK_INVALID }; -#else -enum sparc_clock_type {MSTK48T02 ,MSTK48T08 , \ -MSTK_INVALID }; -#endif - -#ifdef CONFIG_SUN4 -/* intersil on a sun 4/260 code data from harris doc */ -struct intersil_dt { -volatile unsigned char int_csec; -volatile unsigned char int_hour; -volatile unsigned char int_min; -volatile unsigned char int_sec; -volatile unsigned char int_month; -volatile unsigned char int_day; -volatile unsigned char int_year; -volatile unsigned char int_dow; -}; - -struct intersil { -struct intersil_dt clk; -struct intersil_dt cmp; -volatile unsigned char int_intr_reg; -volatile unsigned char int_cmd_reg; -}; - -#define INTERSIL_STOP 0x0 -#define INTERSIL_START 0x8 -#define INTERSIL_INTR_DISABLE 0x0 -#define INTERSIL_INTR_ENABLE 0x10 -#define INTERSIL_32K 0x0 -#define INTERSIL_NORMAL 0x0 -#define INTERSIL_24H 0x4 -#define INTERSIL_INT_100HZ 0x2 - -/* end of intersil info */ -#endif +enum sparc_clock_type {MSTK48T02 ,MSTK48T08 ,MSTK_INVALID };#endif /* !(_SPARC_MOSTEK_H) */
include/asm-sparc/oplib.h +0 -1
@@ -21,7 +21,6 @@ enum prom_major_version {PROM_V2 ,/* sun4c and early sun4m V2 prom */ PROM_V3 ,/* sun4m and later, up to sun4d/sun4e machines V3 */ PROM_P1275, /* IEEE compliant ISA based Sun PROM, only sun4u */ - PROM_SUN4, /* Old sun4 proms are totally different, but we'll shoehorn it to make it fit */ };extern enum prom_major_version prom_vers;
include/asm-sparc/page.h +1 -4
@@ -8,11 +8,8 @@#ifndef _SPARC_PAGE_H#define _SPARC_PAGE_H -#ifdef CONFIG_SUN4 -#define PAGE_SHIFT 13 -#else #define PAGE_SHIFT 12 -#endif +#ifndef __ASSEMBLY__/* I have my suspicions... -DaveM */ #define PAGE_SIZE (1UL << PAGE_SHIFT)
include/asm-sparc/pgtable.h +0 -4
@@ -13,11 +13,7 @@#include <linux/spinlock.h> #include <linux/swap.h> #include <asm/types.h> -#ifdef CONFIG_SUN4 -#include <asm/pgtsun4.h> -#else #include <asm/pgtsun4c.h> -#endif #include <asm/pgtsrmmu.h> #include <asm/vac-ops.h> #include <asm/oplib.h>
include/asm-sparc/sun4paddr.h deleted +0 -56
56 lines not on this page · raw message
include/asm-sparc/system.h +0 -6
@@ -34,13 +34,7 @@ enum sparc_cpu {extern enum sparc_cpu sparc_cpu_model; -#ifndef CONFIG_SUN4 #define ARCH_SUN4C_SUN4 (sparc_cpu_model=sun4c) -#define ARCH_SUN4 0 -#else -#define ARCH_SUN4C_SUN4 1 -#define ARCH_SUN4 1 -#endif #define SUN4M_NCPUS 4/* Architectural limit of sun4m. */
include/asm-sparc/timer.h +1 -7
@@ -9,7 +9,6 @@#define _SPARC_TIMER_H#include <asm/system.h> /* For SUN4M_NCPUS */ -#include <asm/sun4paddr.h> #include <asm/btfixup.h> /* Timer structures. The interrupt timer has two properties which
@@ -34,12 +33,7 @@ struct sun4c_timer_info { __volatile__ unsigned int timer_limit14; }; -#define SUN4C_TIMER_PHYSADDR 0xf3000000 -#ifdef CONFIG_SUN4 -#define SUN_TIMER_PHYSADDR SUN4_300_TIMER_PHYSADDR -#else -#define SUN_TIMER_PHYSADDR SUN4C_TIMER_PHYSADDR -#endif +#define SUN_TIMER_PHYSADDR 0xf3000000/* A sun4m has two blocks of registers which are probably of the same * structure. LSI Logic's L64851 is told to _decrement_ from the limit
include/asm-sparc/vac-ops.h +0 -4
@@ -76,11 +76,7 @@* cacheable bit in the pte's of all such pages. */ -#ifdef CONFIG_SUN4 -#define S4CVAC_BADBITS 0x0001e000 -#else #define S4CVAC_BADBITS 0x0000f000 -#endif /* The following is true if vaddr1 and vaddr2 would cause * a 'bad alias'.
include/asm-sparc64/system.h +1 -2
@@ -26,9 +26,8 @@ enum sparc_cpu {#define sparc_cpu_model sun4u -/* This cannot ever be a sun4c nor sun4 :) That's just history. */ +/* This cannot ever be a sun4c :) That's just history. */ #define ARCH_SUN4C_SUN4 0 -#define ARCH_SUN4 0extern char reboot_command[];
From: Adrian Bunk <[email protected]>
Date: Wed, 11 Jun 2008 01:28:38 +0300
Quoted 10 lines
While doing some easy cleanups on the sparc code I noticed that the
CONFIG_SUN4code seems to be worse than the rest - there were some "I don't know how it should work, but the current code definitely cannot work." places.And while I have seen people running Linux on machines like a SPARCstation 5 a few years ago I don't recall having seen sun4 machines, even less ones running Linux.
Signed-off-by Adrian Bunk <[email protected]>
Applied to sparc-next-2.6, thanks Adrian!
Quoted 8 lines · David Miller
From: Adrian Bunk <[email protected]>
Date: Wed, 11 Jun 2008 01:28:38 +0300Quoted 5 lines
While doing some easy cleanups on the sparc code I noticed that the
CONFIG_SUN4code seems to be worse than the rest - there were some "I don't know how it should work, but the current code definitely cannot work." places.
Quoted 7 lines
Quoted 5 lines
And while I have seen people running Linux on machines like a SPARCstation 5 a few years ago I don't recall having seen sun4 machines, even less ones running Linux.
Signed-off-by Adrian Bunk <[email protected]>Applied to sparc-next-2.6, thanks Adrian!
It seems it got lost somewhere?
Should I rediff it against the latest sparc-next and resend?
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedDavid Miller
maintainerFrom: Adrian Bunk <[email protected]>
Date: Fri, 29 Aug 2008 15:36:32 +0300
Quoted 13 lines · David Miller
Quoted 12 lines
From: Adrian Bunk <[email protected]>
Date: Wed, 11 Jun 2008 01:28:38 +0300Quoted 9 lines
While doing some easy cleanups on the sparc code I noticed that the
CONFIG_SUN4code seems to be worse than the rest - there were some "I don't know how it should work, but the current code definitely cannot work." places.And while I have seen people running Linux on machines like a SPARCstation 5 a few years ago I don't recall having seen sun4 machines, even less ones running Linux.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Adrian Bunk <[email protected]>Applied to sparc-next-2.6, thanks Adrian!
It seems it got lost somewhere?
I lost it somehow, and I have no idea how it happened, sorry Adrian it was unintentional :(
Quoted 1 line
Should I rediff it against the latest sparc-next and resend?
Please, thanks.