kernel-ark/arch/tile
Chris Metcalf 35f059761c tilegx: change how we find the kernel stack
Previously, we used a special-purpose register (SPR_SYSTEM_SAVE_K_0)
to hold the CPU number and the top of the current kernel stack
by using the low bits to hold the CPU number, and using the high
bits to hold the address of the page just above where we'd want
the kernel stack to be.  That way we could initialize a new SP
when first entering the kernel by just masking the SPR value and
subtracting a couple of words.

However, it's actually more useful to be able to place an arbitrary
kernel-top value in the SPR.  This allows us to create a new stack
context (e.g. for virtualization) with an arbitrary top-of-stack VA.
To make this work, we now store the CPU number in the high bits,
above the highest legal VA bit (42 bits in the current tilegx
microarchitecture).  The full 42 bits are thus available to store the
top of stack value.  Getting the current cpu (a relatively common
operation) is still fast; it's now a shift rather than a mask.

We make this change only for tilegx, since tilepro has too few SPR
bits to do this, and we don't need this support on tilepro anyway.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2013-08-30 11:56:58 -04:00
..
configs md: remove CONFIG_MULTICORE_RAID456 entirely 2013-03-20 13:21:14 +11:00
gxio tile PCI RC: support more MSI-X interrupt vectors 2013-08-06 12:55:24 -04:00
include tilegx: change how we find the kernel stack 2013-08-30 11:56:58 -04:00
kernel tilegx: change how we find the kernel stack 2013-08-30 11:56:58 -04:00
kvm arch/tile/kvm: remove depends on CONFIG_EXPERIMENTAL 2013-01-17 12:11:26 -08:00
lib tile: fix strncpy_from_user bug 2013-08-30 11:56:42 -04:00
mm tile: remove set/clear_fixmap APIs 2013-08-30 11:56:38 -04:00
Kbuild
Kconfig tile: support kprobes on tilegx 2013-08-30 11:55:53 -04:00
Kconfig.debug tile: provide traceability for hypervisor calls 2013-08-13 16:26:31 -04:00
Makefile arch/tile: avoid generating .eh_frame information in modules 2012-10-23 10:21:43 -04:00