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 arch/tile: big-endian: properly bswap instruction bundles when backtracing 2012-06-18 13:11:21 -04:00
compat_signal.c tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
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
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 arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
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_trace.c tile: provide traceability for hypervisor calls 2013-08-13 16:26:31 -04:00
hvglue.S 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 arch/tile: support kexec() for tilegx 2012-05-25 12:48:25 -04:00
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_gx.c tile PCI RC: reduce driver's vmalloc space usage 2013-08-06 12:56:12 -04:00
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
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 Disintegrate asm/system.h for Tile 2012-03-28 18:30:03 +01:00
regs_64.S Disintegrate asm/system.h for Tile 2012-03-28 18:30:03 +01:00
relocate_kernel_32.S arch/tile: support kexec() for tilegx 2012-05-25 12:48:25 -04:00
relocate_kernel_64.S arch/tile: support kexec() for tilegx 2012-05-25 12:48:25 -04:00
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 arch/tile: allow querying cpu module information from the hypervisor 2012-05-25 12:48:28 -04:00
tile-desc_32.c arch/tile: factor out <arch/opcode.h> header 2011-11-03 16:58:54 -04:00
tile-desc_64.c arch/tile: factor out <arch/opcode.h> header 2011-11-03 16:58:54 -04:00
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