linux/arch/mips/kernel
Markos Chandras 8a574cfa26 MIPS: mcount: Adjust stack pointer for static trace in MIPS32
Every mcount() call in the MIPS 32-bit kernel is done as follows:

[...]
move at, ra
jal _mcount
addiu sp, sp, -8
[...]

but upon returning from the mcount() function, the stack pointer
is not adjusted properly. This is explained in details in 58b69401c7
(MIPS: Function tracer: Fix broken function tracing).

Commit ad8c396936 ("MIPS: Unbreak function tracer for 64-bit kernel.)
fixed the stack manipulation for 64-bit but it didn't fix it completely
for MIPS32.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: <stable@vger.kernel.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7792/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2014-09-26 11:41:17 +02:00
..
.gitignore
8250-platform.c
asm-offsets.c
binfmt_elfn32.c
binfmt_elfo32.c
bmips_vec.S
branch.c
cevt-bcm1480.c
cevt-ds1287.c
cevt-gic.c
cevt-gt641xx.c
cevt-r4k.c
cevt-sb1250.c
cevt-txx9.c
cps-vec.S MIPS: CPS: Initialize EVA before bringing up VPEs from secondary cores 2014-08-26 02:18:57 +02:00
cpu-bugs64.c
cpu-probe.c
crash_dump.c
crash.c
csrc-bcm1480.c
csrc-gic.c
csrc-ioasic.c
csrc-r4k.c
csrc-sb1250.c
early_printk_8250.c
early_printk.c
entry.S
ftrace.c
genex.S
gpio_txx9.c
head.S
i8253.c
i8259.c
idle.c
irq_cpu.c
irq_txx9.c
irq-gic.c
irq-gt641xx.c
irq-msc01.c
irq-rm7000.c
irq.c
jump_label.c
kgdb.c
kprobes.c
linux32.c
machine_kexec.c MIPS: kdump: Set correct value to kexec_indirection_page variable 2014-08-25 16:33:44 +02:00
Makefile
mcount.S MIPS: mcount: Adjust stack pointer for static trace in MIPS32 2014-09-26 11:41:17 +02:00
mips_ksyms.c
mips_machine.c
mips-cm.c
mips-cpc.c
mips-mt-fpaff.c
mips-mt.c
module-rela.c
module.c
octeon_switch.S
perf_event_mipsxx.c MIPS: perf: Mark pmu interupt IRQF_NO_THREAD 2014-08-26 02:18:51 +02:00
perf_event.c
pm-cps.c
pm.c
proc.c
process.c
prom.c
ptrace32.c
ptrace.c
r4k_fpu.S
r4k_switch.S
r2300_fpu.S
r2300_switch.S
r6000_fpu.S
relocate_kernel.S
reset.c
rtlx-cmp.c
rtlx-mt.c
rtlx.c
scall32-o32.S MIPS: Wire up new syscalls getrandom and memfd_create. 2014-08-26 03:03:40 +02:00
scall64-64.S MIPS: Wire up new syscalls getrandom and memfd_create. 2014-08-26 03:03:40 +02:00
scall64-n32.S MIPS: Wire up new syscalls getrandom and memfd_create. 2014-08-26 03:03:40 +02:00
scall64-o32.S MIPS: Wire up new syscalls getrandom and memfd_create. 2014-08-26 03:03:40 +02:00
segment.c
setup.c
signal32.c
signal_n32.c
signal-common.h
signal.c
smp-bmips.c
smp-cmp.c
smp-cps.c
smp-gic.c
smp-mt.c
smp-up.c
smp.c
spinlock_test.c
spram.c
stacktrace.c
sync-r4k.c
syscall.c
time.c
topology.c
traps.c
unaligned.c
vdso.c
vmlinux.lds.S
vpe-cmp.c
vpe-mt.c
vpe.c
watch.c