linux/arch/sparc64/kernel
David S. Miller 5d8e1b181c [SPARC64]: Fix Ultra5, Ultra60, et al. boot failures.
On the boot processor, we need to do the move onto the Linux trap
table a little bit differently else we'll take unhandlable faults in
the firmware address space.

Previously we would do the following:

1) Disable PSTATE_IE in %pstate.
2) Set %tba by hand to sparc64_ttable_tl0
3) Initialize alternate, mmu, and interrupt global
   trap registers.
4) Call prom_set_traptable()

That doesn't work very well actually with the way we boot the kernel
VM these days.  It worked by luck on many systems because the firmware
accesses for the prom_set_traptable() call happened to be loaded into
the TLB already, something we cannot assume.

So the new scheme is this:

1) Clear PSTATE_IE in %pstate and set %pil to 15
2) Call prom_set_traptable()
3) Initialize alternate, mmu, and interrupt global
   trap registers.

and this works quite well.  This sequence has been moved into a
callable function in assembler named setup-trap_table().  The idea is
that eventually trampoline.S can use this code as well.  That isn't
possible currently due to some complications, but eventually we should
be able to do it.

Thanks to Meelis Roos for the Ultra5 boot failure report.

Signed-off-by: David S. Miller <davem@davemloft.net>
2005-10-10 16:12:13 -07:00
..
asm-offsets.c
auxio.c
binfmt_aout32.c
binfmt_elf32.c
central.c
chmc.c
cpu.c [SPARC64]: Add missing IDs for newer cpus. 2005-09-27 22:50:06 -07:00
devices.c [SPARC64]: Probe D/I/E-cache config and use. 2005-09-26 00:32:17 -07:00
dtlb_backend.S [SPARC64]: Kill SZ_BITS define from dtlb_backend.S 2005-09-21 19:23:48 -07:00
dtlb_base.S [SPARC64]: Move kernel TLB miss handling into a seperate file. 2005-09-21 18:50:51 -07:00
dtlb_prot.S
ebus.c
entry.S [SPARC64]: Fix userland FPU state corruption. 2005-10-07 13:30:49 -07:00
etrap.S [SPARC64]: Replace cheetah+ code patching with variables. 2005-10-04 15:23:20 -07:00
head.S [SPARC64]: Fix Ultra5, Ultra60, et al. boot failures. 2005-10-10 16:12:13 -07:00
idprom.c
init_task.c
ioctl32.c
iommu_common.c
iommu_common.h
irq.c [SPARC64]: Fix compile error in irq.c 2005-10-08 21:12:04 -07:00
isa.c
itlb_base.S
kprobes.c
ktlb.S [SPARC64]: Add CONFIG_DEBUG_PAGEALLOC support. 2005-09-25 16:46:57 -07:00
Makefile
module.c
pci_common.c
pci_impl.h
pci_iommu.c
pci_psycho.c
pci_sabre.c
pci_schizo.c [SPARC64]: Fix mask formation in tomatillo_wsync_handler() 2005-09-24 23:06:14 -07:00
pci.c
power.c [SPARC64]: Probe for power device on ISA bus too. 2005-10-06 20:43:54 -07:00
process.c
ptrace.c [SPARC64]: Fix several bugs in flush_ptrace_access(). 2005-09-29 18:50:34 -07:00
rtrap.S [SPARC64]: Fix userland FPU state corruption. 2005-10-07 13:30:49 -07:00
sbus.c
semaphore.c
setup.c [SPARC64]: Replace cheetah+ code patching with variables. 2005-10-04 15:23:20 -07:00
signal32.c
signal.c
smp.c [SPARC64]: Probe D/I/E-cache config and use. 2005-09-26 00:32:17 -07:00
sparc64_ksyms.c
starfire.c
sunos_ioctl32.c
sys32.S [SPARC64]: Fix fault handling in unaligned trap handler. 2005-09-28 20:41:45 -07:00
sys_sparc32.c
sys_sparc.c
sys_sunos32.c
systbls.S
time.c
trampoline.S [SPARC64]: Replace cheetah+ code patching with variables. 2005-10-04 15:23:20 -07:00
traps.c [SPARC64]: Rewrite convoluted physical memory probing. 2005-09-29 17:58:26 -07:00
ttable.S
una_asm.S [SPARC64]: Fix fault handling in unaligned trap handler. 2005-09-28 20:41:45 -07:00
unaligned.c [SPARC64]: Fix fault handling in unaligned trap handler. 2005-09-28 20:41:45 -07:00
us2e_cpufreq.c
us3_cpufreq.c [SPARC64]: Add missing IDs for newer cpus. 2005-09-27 22:50:06 -07:00
vmlinux.lds.S [SPARC64]: Add CONFIG_DEBUG_PAGEALLOC support. 2005-09-25 16:46:57 -07:00
winfixup.S [SPARC64]: Replace cheetah+ code patching with variables. 2005-10-04 15:23:20 -07:00