alistair23-linux/arch/tile/kernel
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
..
vdso tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
asm-offsets.c tile: support CONFIG_PREEMPT 2013-08-13 16:26:01 -04:00
backtrace.c
compat.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2013-05-01 07:21:43 -07:00
compat_signal.c tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
early_printk.c tile: various console improvements 2013-08-12 14:46:18 -04:00
entry.S tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
ftrace.c tile: support ftrace on tilegx 2013-08-30 10:20:13 -04:00
futex_64.S
hardwall.c tile: support CONFIG_PREEMPT 2013-08-13 16:26:01 -04:00
head_32.S tilegx: change how we find the kernel stack 2013-08-30 11:56:58 -04:00
head_64.S tilegx: change how we find the kernel stack 2013-08-30 11:56:58 -04:00
hvglue.S tile: provide traceability for hypervisor calls 2013-08-13 16:26:31 -04:00
hvglue_trace.c tile: provide traceability for hypervisor calls 2013-08-13 16:26:31 -04:00
intvec_32.S tilegx: change how we find the kernel stack 2013-08-30 11:56:58 -04:00
intvec_64.S tilegx: change how we find the kernel stack 2013-08-30 11:56:58 -04:00
irq.c tile: fix panic with large IRQ number 2013-08-30 11:56:16 -04:00
kprobes.c tile: support kprobes on tilegx 2013-08-30 11:55:53 -04:00
machine_kexec.c
Makefile tile: support kprobes on tilegx 2013-08-30 11:55:53 -04:00
mcount_64.S tile: support ftrace on tilegx 2013-08-30 10:20:13 -04:00
messaging.c
module.c modules: don't hand 0 to vmalloc. 2012-12-14 13:06:43 +10:30
pci-dma.c tile PCI DMA: fix bug in non-page-aligned accessors 2013-08-06 12:56:04 -04:00
pci.c tile PCI RC: support pci=off boot arg for tilepro 2013-08-05 16:12:57 -04:00
pci_gx.c tile PCI RC: reduce driver's vmalloc space usage 2013-08-06 12:56:12 -04:00
proc.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
process.c tile: don't call show_regs_print_info() with corrupt current 2013-08-30 11:56:54 -04:00
ptrace.c tile: correct r1 value during syscall tracing 2013-08-30 11:56:20 -04:00
reboot.c tile: various console improvements 2013-08-12 14:46:18 -04:00
regs_32.S
regs_64.S
relocate_kernel_32.S
relocate_kernel_64.S
setup.c tile: allow "initrd" boot argument for kexec 2013-08-30 11:56:30 -04:00
signal.c tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
single_step.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
smp.c tile: support kprobes on tilegx 2013-08-30 11:55:53 -04:00
smpboot.c tile: support CONFIG_PREEMPT 2013-08-13 16:26:01 -04:00
stack.c tilegx: change how we find the kernel stack 2013-08-30 11:56:58 -04:00
sys.c tile: support CONFIG_PREEMPT 2013-08-13 16:26:01 -04:00
sysfs.c
tile-desc_32.c
tile-desc_64.c
time.c tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
tlb.c tile: do less L1 I-cache eviction 2013-08-30 11:56:34 -04:00
traps.c tile: support kprobes on tilegx 2013-08-30 11:55:53 -04:00
unaligned.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
usb.c usb: add host support for the tilegx architecture 2012-07-18 16:40:29 -04:00
vdso.c tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
vmlinux.lds.S tile: group .hottext* sections properly in vmlinux.lds 2013-08-30 11:56:46 -04:00