kernel-ark/arch
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
..
alpha
arm [ARM] 2968/1: defconfig for the ARM Collie platform 2005-10-10 18:24:09 +01:00
arm26
cris [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
frv
h8300
i386 [PATCH] i386: fix stack alignment for signal handlers 2005-10-10 08:45:06 -07:00
ia64
m32r
m68k
m68knommu
mips
parisc
ppc
ppc64 [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
s390
sh
sh64
sparc
sparc64 [SPARC64]: Fix Ultra5, Ultra60, et al. boot failures. 2005-10-10 16:12:13 -07:00
um [PATCH] uml: fix x86_64 with !CONFIG_FRAME_POINTER 2005-10-10 08:37:59 -07:00
v850
x86_64 [PATCH] i386: fix stack alignment for signal handlers 2005-10-10 08:45:06 -07:00
xtensa