You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b69416b51b
commit
5110bd21b8
@@ -210,17 +210,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
|
||||
@@ -233,8 +222,6 @@ config PCI_SYSCALL
|
||||
|
||||
source "drivers/pci/Kconfig"
|
||||
|
||||
endif
|
||||
|
||||
config SUN_OPENPROMFS
|
||||
tristate "Openprom tree appears in /proc/openprom"
|
||||
help
|
||||
@@ -266,9 +253,7 @@ source "net/Kconfig"
|
||||
|
||||
source "drivers/Kconfig"
|
||||
|
||||
if !SUN4
|
||||
source "drivers/sbus/char/Kconfig"
|
||||
endif
|
||||
|
||||
# This one must be before the filesystem configs. -DaveM
|
||||
|
||||
|
||||
@@ -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) */
|
||||
|
||||
@@ -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
|
||||
@@ -126,7 +123,7 @@ typedef struct {
|
||||
/* Sun4c has none of the capabilities, most sun4m's have them all.
|
||||
* XXX This is gross, set some global variable at boot time. -DaveM
|
||||
*/
|
||||
#define ELF_HWCAP ((ARCH_SUN4C_SUN4) ? 0 : \
|
||||
#define ELF_HWCAP ((ARCH_SUN4C) ? 0 : \
|
||||
(HWCAP_SPARC_FLUSH | HWCAP_SPARC_STBAR | \
|
||||
HWCAP_SPARC_SWAP | \
|
||||
((srmmu_modtype != Cypress && \
|
||||
|
||||
@@ -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) */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -14,11 +14,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>
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
/*
|
||||
* sun4paddr.h: Various physical addresses on sun4 machines
|
||||
*
|
||||
* Copyright (C) 1997 Anton Blanchard (anton@progsoc.uts.edu.au)
|
||||
* Copyright (C) 1998 Chris Davis (cdavis@cois.on.ca)
|
||||
*
|
||||
* Now supports more sun4's
|
||||
*/
|
||||
|
||||
#ifndef _SPARC_SUN4PADDR_H
|
||||
#define _SPARC_SUN4PADDR_H
|
||||
|
||||
#define SUN4_IE_PHYSADDR 0xf5000000
|
||||
#define SUN4_UNUSED_PHYSADDR 0
|
||||
|
||||
/* these work for me */
|
||||
#define SUN4_200_MEMREG_PHYSADDR 0xf4000000
|
||||
#define SUN4_200_CLOCK_PHYSADDR 0xf3000000
|
||||
#define SUN4_200_BWTWO_PHYSADDR 0xfd000000
|
||||
#define SUN4_200_ETH_PHYSADDR 0xf6000000
|
||||
#define SUN4_200_SI_PHYSADDR 0xff200000
|
||||
|
||||
/* these were here before */
|
||||
#define SUN4_300_MEMREG_PHYSADDR 0xf4000000
|
||||
#define SUN4_300_CLOCK_PHYSADDR 0xf2000000
|
||||
#define SUN4_300_TIMER_PHYSADDR 0xef000000
|
||||
#define SUN4_300_ETH_PHYSADDR 0xf9000000
|
||||
#define SUN4_300_BWTWO_PHYSADDR 0xfb400000
|
||||
#define SUN4_300_DMA_PHYSADDR 0xfa001000
|
||||
#define SUN4_300_ESP_PHYSADDR 0xfa000000
|
||||
|
||||
/* Are these right? */
|
||||
#define SUN4_400_MEMREG_PHYSADDR 0xf4000000
|
||||
#define SUN4_400_CLOCK_PHYSADDR 0xf2000000
|
||||
#define SUN4_400_TIMER_PHYSADDR 0xef000000
|
||||
#define SUN4_400_ETH_PHYSADDR 0xf9000000
|
||||
#define SUN4_400_BWTWO_PHYSADDR 0xfb400000
|
||||
#define SUN4_400_DMA_PHYSADDR 0xfa001000
|
||||
#define SUN4_400_ESP_PHYSADDR 0xfa000000
|
||||
|
||||
/*
|
||||
these are the actual values set and used in the code. Unused items set
|
||||
to SUN_UNUSED_PHYSADDR
|
||||
*/
|
||||
|
||||
extern int sun4_memreg_physaddr; /* memory register (ecc?) */
|
||||
extern int sun4_clock_physaddr; /* system clock */
|
||||
extern int sun4_timer_physaddr; /* timer, where applicable */
|
||||
extern int sun4_eth_physaddr; /* onboard ethernet (ie/le) */
|
||||
extern int sun4_si_physaddr; /* sun3 scsi adapter */
|
||||
extern int sun4_bwtwo_physaddr; /* onboard bw2 */
|
||||
extern int sun4_dma_physaddr; /* scsi dma */
|
||||
extern int sun4_esp_physaddr; /* esp scsi */
|
||||
extern int sun4_ie_physaddr; /* interrupt enable */
|
||||
|
||||
#endif /* !(_SPARC_SUN4PADDR_H) */
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* sun4prom.h -- interface to sun4 PROM monitor. We don't use most of this,
|
||||
* so most of these are just placeholders.
|
||||
*/
|
||||
|
||||
#ifndef _SUN4PROM_H_
|
||||
#define _SUN4PROM_H_
|
||||
|
||||
/*
|
||||
* Although this looks similar to an romvec for a OpenProm machine, it is
|
||||
* actually closer to what was used in the Sun2 and Sun3.
|
||||
*
|
||||
* V2 entries exist only in version 2 PROMs and later, V3 in version 3 and later.
|
||||
*
|
||||
* Many of the function prototypes are guesses. Some are certainly wrong.
|
||||
* Use with care.
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
char *initSP; /* Initial system stack ptr */
|
||||
void (*startmon)(void); /* Initial PC for hardware */
|
||||
int *diagberr; /* Bus err handler for diags */
|
||||
struct linux_arguments_v0 **bootParam; /* Info for bootstrapped pgm */
|
||||
unsigned int *memorysize; /* Usable memory in bytes */
|
||||
unsigned char (*getchar)(void); /* Get char from input device */
|
||||
void (*putchar)(char); /* Put char to output device */
|
||||
int (*mayget)(void); /* Maybe get char, or -1 */
|
||||
int (*mayput)(int); /* Maybe put char, or -1 */
|
||||
unsigned char *echo; /* Should getchar echo? */
|
||||
unsigned char *insource; /* Input source selector */
|
||||
unsigned char *outsink; /* Output sink selector */
|
||||
int (*getkey)(void); /* Get next key if one exists */
|
||||
void (*initgetkey)(void); /* Initialize get key */
|
||||
unsigned int *translation; /* Kbd translation selector */
|
||||
unsigned char *keybid; /* Keyboard ID byte */
|
||||
int *screen_x; /* V2: Screen x pos (r/o) */
|
||||
int *screen_y; /* V2: Screen y pos (r/o) */
|
||||
struct keybuf *keybuf; /* Up/down keycode buffer */
|
||||
char *monid; /* Monitor version ID */
|
||||
void (*fbwritechar)(char); /* Write a character to FB */
|
||||
int *fbAddr; /* Address of frame buffer */
|
||||
char **font; /* Font table for FB */
|
||||
void (*fbwritestr)(char *); /* Write string to FB */
|
||||
void (*reboot)(char *); /* e.g. reboot("sd()vmlinux") */
|
||||
unsigned char *linebuf; /* The line input buffer */
|
||||
unsigned char **lineptr; /* Cur pointer into linebuf */
|
||||
int *linesize; /* length of line in linebuf */
|
||||
void (*getline)(char *); /* Get line from user */
|
||||
unsigned char (*getnextchar)(void); /* Get next char from linebuf */
|
||||
unsigned char (*peeknextchar)(void); /* Peek at next char */
|
||||
int *fbthere; /* =1 if frame buffer there */
|
||||
int (*getnum)(void); /* Grab hex num from line */
|
||||
int (*printf)(char *, ...); /* See prom_printf() instead */
|
||||
void (*printhex)(int); /* Format N digits in hex */
|
||||
unsigned char *leds; /* RAM copy of LED register */
|
||||
void (*setLEDs)(unsigned char *); /* Sets LED's and RAM copy */
|
||||
void (*NMIaddr)(void *); /* Addr for level 7 vector */
|
||||
void (*abortentry)(void); /* Entry for keyboard abort */
|
||||
int *nmiclock; /* Counts up in msec */
|
||||
int *FBtype; /* Frame buffer type */
|
||||
unsigned int romvecversion; /* Version number for this romvec */
|
||||
struct globram *globram; /* monitor global variables ??? */
|
||||
void * kbdaddr; /* Addr of keyboard in use */
|
||||
int *keyrinit; /* ms before kbd repeat */
|
||||
unsigned char *keyrtick; /* ms between repetitions */
|
||||
unsigned int *memoryavail; /* V1: Main mem usable size */
|
||||
long *resetaddr; /* where to jump on a reset */
|
||||
long *resetmap; /* pgmap entry for resetaddr */
|
||||
void (*exittomon)(void); /* Exit from user program */
|
||||
unsigned char **memorybitmap; /* V1: &{0 or &bits} */
|
||||
void (*setcxsegmap)(int ctxt, char *va, int pmeg); /* Set seg in any context */
|
||||
void (**vector_cmd)(void *); /* V2: Handler for 'v' cmd */
|
||||
unsigned long *expectedtrapsig; /* V3: Location of the expected trap signal */
|
||||
unsigned long *trapvectorbasetable; /* V3: Address of the trap vector table */
|
||||
int unused1;
|
||||
int unused2;
|
||||
int unused3;
|
||||
int unused4;
|
||||
} linux_sun4_romvec;
|
||||
|
||||
extern linux_sun4_romvec *sun4_romvec;
|
||||
|
||||
#endif /* _SUN4PROM_H_ */
|
||||
@@ -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 ARCH_SUN4C (sparc_cpu_model==sun4c)
|
||||
|
||||
#define SUN4M_NCPUS 4 /* Architectural limit of sun4m. */
|
||||
|
||||
|
||||
@@ -26,9 +26,8 @@ enum sparc_cpu {
|
||||
|
||||
#define sparc_cpu_model sun4u
|
||||
|
||||
/* This cannot ever be a sun4c nor sun4 :) That's just history. */
|
||||
#define ARCH_SUN4C_SUN4 0
|
||||
#define ARCH_SUN4 0
|
||||
/* This cannot ever be a sun4c :) That's just history. */
|
||||
#define ARCH_SUN4C 0
|
||||
|
||||
extern char reboot_command[];
|
||||
|
||||
|
||||
@@ -80,11 +80,7 @@ register struct thread_info *current_thread_info_reg asm("g6");
|
||||
/*
|
||||
* thread information allocation
|
||||
*/
|
||||
#if PAGE_SHIFT == 13
|
||||
#define THREAD_INFO_ORDER 0
|
||||
#else /* PAGE_SHIFT */
|
||||
#define THREAD_INFO_ORDER 1
|
||||
#endif
|
||||
|
||||
#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'.
|
||||
@@ -94,10 +90,7 @@
|
||||
*/
|
||||
struct sun4c_vac_props {
|
||||
unsigned int num_bytes; /* Size of the cache */
|
||||
unsigned int num_lines; /* Number of cache lines */
|
||||
unsigned int do_hwflushes; /* Hardware flushing available? */
|
||||
enum { VAC_NONE, VAC_WRITE_THROUGH,
|
||||
VAC_WRITE_BACK } type; /* What type of VAC? */
|
||||
unsigned int linesize; /* Size of each line in bytes */
|
||||
unsigned int log2lsize; /* log2(linesize) */
|
||||
unsigned int on; /* VAC is enabled */
|
||||
|
||||
@@ -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_SUN_PM) += apc.o pmc.o
|
||||
|
||||
@@ -143,7 +143,7 @@ void __init device_scan(void)
|
||||
#endif
|
||||
clock_stop_probe();
|
||||
|
||||
if (ARCH_SUN4C_SUN4)
|
||||
if (ARCH_SUN4C)
|
||||
sun4c_probe_memerr_reg();
|
||||
|
||||
return;
|
||||
|
||||
@@ -20,11 +20,7 @@
|
||||
#include <asm/memreg.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/pgtable.h>
|
||||
#ifdef CONFIG_SUN4
|
||||
#include <asm/pgtsun4.h>
|
||||
#else
|
||||
#include <asm/pgtsun4c.h>
|
||||
#endif
|
||||
#include <asm/winmacro.h>
|
||||
#include <asm/signal.h>
|
||||
#include <asm/obio.h>
|
||||
@@ -775,11 +771,7 @@ vac_linesize_patch_32: subcc %l7, 32, %l7
|
||||
* Ugly, but we cant use hardware flushing on the sun4 and we'd require
|
||||
* two instructions (Anton)
|
||||
*/
|
||||
#ifdef CONFIG_SUN4
|
||||
vac_hwflush_patch1_on: nop
|
||||
#else
|
||||
vac_hwflush_patch1_on: addcc %l7, -PAGE_SIZE, %l7
|
||||
#endif
|
||||
|
||||
vac_hwflush_patch2_on: sta %g0, [%l3 + %l7] ASI_HWFLUSHSEG
|
||||
|
||||
@@ -798,42 +790,10 @@ vac_hwflush_patch2_on: sta %g0, [%l3 + %l7] ASI_HWFLUSHSEG
|
||||
! %l7 = 1 for textfault
|
||||
! We want error in %l5, vaddr in %l6
|
||||
sun4c_fault:
|
||||
#ifdef CONFIG_SUN4
|
||||
sethi %hi(sun4c_memerr_reg), %l4
|
||||
ld [%l4+%lo(sun4c_memerr_reg)], %l4 ! memerr ctrl reg addr
|
||||
ld [%l4], %l6 ! memerr ctrl reg
|
||||
ld [%l4 + 4], %l5 ! memerr vaddr reg
|
||||
andcc %l6, 0x80, %g0 ! check for error type
|
||||
st %g0, [%l4 + 4] ! clear the error
|
||||
be 0f ! normal error
|
||||
sethi %hi(AC_BUS_ERROR), %l4 ! bus err reg addr
|
||||
|
||||
call prom_halt ! something weird happened
|
||||
! what exactly did happen?
|
||||
! what should we do here?
|
||||
|
||||
0: or %l4, %lo(AC_BUS_ERROR), %l4 ! bus err reg addr
|
||||
lduba [%l4] ASI_CONTROL, %l6 ! bus err reg
|
||||
|
||||
cmp %l7, 1 ! text fault?
|
||||
be 1f ! yes
|
||||
nop
|
||||
|
||||
ld [%l1], %l4 ! load instruction that caused fault
|
||||
srl %l4, 21, %l4
|
||||
andcc %l4, 1, %g0 ! store instruction?
|
||||
|
||||
be 1f ! no
|
||||
sethi %hi(SUN4C_SYNC_BADWRITE), %l4 ! yep
|
||||
! %lo(SUN4C_SYNC_BADWRITE) = 0
|
||||
or %l4, %l6, %l6 ! set write bit to emulate sun4c
|
||||
1:
|
||||
#else
|
||||
sethi %hi(AC_SYNC_ERR), %l4
|
||||
add %l4, 0x4, %l6 ! AC_SYNC_VA in %l6
|
||||
lda [%l6] ASI_CONTROL, %l5 ! Address
|
||||
lda [%l4] ASI_CONTROL, %l6 ! Error, retained for a bit
|
||||
#endif
|
||||
|
||||
andn %l5, 0xfff, %l5 ! Encode all info into l7
|
||||
srl %l6, 14, %l4
|
||||
@@ -880,12 +840,7 @@ sun4c_fault:
|
||||
or %l4, %lo(swapper_pg_dir), %l4
|
||||
sll %l6, 2, %l6
|
||||
ld [%l4 + %l6], %l4
|
||||
#ifdef CONFIG_SUN4
|
||||
sethi %hi(PAGE_MASK), %l6
|
||||
andcc %l4, %l6, %g0
|
||||
#else
|
||||
andcc %l4, PAGE_MASK, %g0
|
||||
#endif
|
||||
be sun4c_fault_fromuser
|
||||
lduXa [%l5] ASI_SEGMAP, %l4
|
||||
|
||||
@@ -937,11 +892,7 @@ invalid_segment_patch1:
|
||||
ld [%l6 + 0x08], %l3 ! tmp = entry->vaddr
|
||||
|
||||
! Flush segment from the cache.
|
||||
#ifdef CONFIG_SUN4
|
||||
sethi %hi((128 * 1024)), %l7
|
||||
#else
|
||||
sethi %hi((64 * 1024)), %l7
|
||||
#endif
|
||||
9:
|
||||
vac_hwflush_patch1:
|
||||
vac_linesize_patch:
|
||||
@@ -1029,12 +980,7 @@ invalid_segment_patch2:
|
||||
or %l4, %lo(swapper_pg_dir), %l4
|
||||
sll %l3, 2, %l3
|
||||
ld [%l4 + %l3], %l4
|
||||
#ifndef CONFIG_SUN4
|
||||
and %l4, PAGE_MASK, %l4
|
||||
#else
|
||||
sethi %hi(PAGE_MASK), %l6
|
||||
and %l4, %l6, %l4
|
||||
#endif
|
||||
|
||||
srl %l5, (PAGE_SHIFT - 2), %l6
|
||||
and %l6, ((SUN4C_PTRS_PER_PTE - 1) << 2), %l6
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ void cpu_idle(void)
|
||||
{
|
||||
/* endless idle loop with no priority at all */
|
||||
for (;;) {
|
||||
if (ARCH_SUN4C_SUN4) {
|
||||
if (ARCH_SUN4C) {
|
||||
static int count = HZ;
|
||||
static unsigned long last_jiffies;
|
||||
static unsigned long last_faults;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user