Skip to content

Commit 9674dcf

Browse files
htakataLinus Torvalds
authored andcommitted
[PATCH] m32r: build fix for processors without ISA_DSP_LEVEL2
Additional fixes for processors without ISA_DSP_LEVEL2. sigcontext_t does not have dummy_acc1h, dummy_acc1l members any longer. Signed-off-by: Hirokazu Takata <takata@linux-m32r.org> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2b5b09b commit 9674dcf

2 files changed

Lines changed: 5 additions & 23 deletions

File tree

‎arch/m32r/kernel/process.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void show_regs(struct pt_regs * regs)
174174
regs->acc1h, regs->acc1l);
175175
#elif defined(CONFIG_ISA_M32R2) || defined(CONFIG_ISA_M32R)
176176
printk("ACCH[%08lx]:ACCL[%08lx]\n", \
177-
regs->acch, regs->accl);
177+
regs->acc0h, regs->acc0l);
178178
#else
179179
#error unknown isa configuration
180180
#endif

‎arch/m32r/kernel/signal.c‎

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,10 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
109109
COPY(r10);
110110
COPY(r11);
111111
COPY(r12);
112-
#if defined(CONFIG_ISA_M32R2) && defined(CONFIG_ISA_DSP_LEVEL2)
113112
COPY(acc0h);
114113
COPY(acc0l);
115-
COPY(acc1h);
116-
COPY(acc1l);
117-
#elif defined(CONFIG_ISA_M32R2) || defined(CONFIG_ISA_M32R)
118-
COPY(acch);
119-
COPY(accl);
120-
COPY(dummy_acc1h);
121-
COPY(dummy_acc1l);
122-
#else
123-
#error unknown isa configuration
124-
#endif
114+
COPY(acc1h); /* ISA_DSP_LEVEL2 only */
115+
COPY(acc1l); /* ISA_DSP_LEVEL2 only */
125116
COPY(psw);
126117
COPY(bpc);
127118
COPY(bbpsw);
@@ -196,19 +187,10 @@ setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs,
196187
COPY(r10);
197188
COPY(r11);
198189
COPY(r12);
199-
#if defined(CONFIG_ISA_M32R2) && defined(CONFIG_ISA_DSP_LEVEL2)
200190
COPY(acc0h);
201191
COPY(acc0l);
202-
COPY(acc1h);
203-
COPY(acc1l);
204-
#elif defined(CONFIG_ISA_M32R2) || defined(CONFIG_ISA_M32R)
205-
COPY(acch);
206-
COPY(accl);
207-
COPY(dummy_acc1h);
208-
COPY(dummy_acc1l);
209-
#else
210-
#error unknown isa configuration
211-
#endif
192+
COPY(acc1h); /* ISA_DSP_LEVEL2 only */
193+
COPY(acc1l); /* ISA_DSP_LEVEL2 only */
212194
COPY(psw);
213195
COPY(bpc);
214196
COPY(bbpsw);

0 commit comments

Comments
 (0)