Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARCv2: save r30 on kernel entry as gcc uses it for code-gen

This is not exposed to userspace debugers yet, which can be done
independently as a seperate patch !

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

+3 -1
+2
arch/arc/include/asm/entry-arcv2.h
··· 16 16 ; 17 17 ; Now manually save: r12, sp, fp, gp, r25 18 18 19 + PUSH r30 19 20 PUSH r12 20 21 21 22 ; Saving pt_regs->sp correctly requires some extra work due to the way ··· 73 72 POPAX AUX_USER_SP 74 73 1: 75 74 POP r12 75 + POP r30 76 76 77 77 .endm 78 78
+1 -1
arch/arc/include/asm/ptrace.h
··· 84 84 unsigned long fp; 85 85 unsigned long sp; /* user/kernel sp depending on where we came from */ 86 86 87 - unsigned long r12; 87 + unsigned long r12, r30; 88 88 89 89 /*------- Below list auto saved by h/w -----------*/ 90 90 unsigned long r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11;