Skip to content

Commit aa8b550

Browse files
committed
Merge tag 'sh-for-linus' of git://github.com/pmundt/linux-sh
Pull SuperH fixes from Paul Mundt. * tag 'sh-for-linus' of git://github.com/pmundt/linux-sh: sh: ecovec: add sample amixer settings sh: Fix up stack debugging build. sh: wire up finit_module syscall. sh: Fix FDPIC binary loader sh: clkfwk: bugfix: sh_clk_div_enable() care sh_clk_div_set_rate() if div6 sh: define TASK_UNMAPPED_BASE as a page aligned constant
2 parents a6d3bd2 + 035688d commit aa8b550

File tree

10 files changed

+28
-6
lines changed

10 files changed

+28
-6
lines changed

arch/sh/boards/mach-ecovec24/setup.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@
7070
* OFF-ON : MMC
7171
*/
7272

73+
/*
74+
* FSI - DA7210
75+
*
76+
* it needs amixer settings for playing
77+
*
78+
* amixer set 'HeadPhone' 80
79+
* amixer set 'Out Mixer Left DAC Left' on
80+
* amixer set 'Out Mixer Right DAC Right' on
81+
*/
82+
7383
/* Heartbeat */
7484
static unsigned char led_pos[] = { 0, 1, 2, 3 };
7585

arch/sh/include/asm/elf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ extern void __kernel_vsyscall;
203203
if (vdso_enabled) \
204204
NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \
205205
else \
206-
NEW_AUX_ENT(AT_IGNORE, 0);
206+
NEW_AUX_ENT(AT_IGNORE, 0)
207207
#else
208-
#define VSYSCALL_AUX_ENT
208+
#define VSYSCALL_AUX_ENT NEW_AUX_ENT(AT_IGNORE, 0)
209209
#endif /* CONFIG_VSYSCALL */
210210

211211
#ifdef CONFIG_SH_FPU

arch/sh/include/asm/processor_32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
/* This decides where the kernel will search for a free chunk of vm
4040
* space during mmap's.
4141
*/
42-
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
42+
#define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
4343

4444
/*
4545
* Bit of SR register

arch/sh/include/asm/processor_64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pc; })
4747
/* This decides where the kernel will search for a free chunk of vm
4848
* space during mmap's.
4949
*/
50-
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
50+
#define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
5151

5252
/*
5353
* Bit of SR register

arch/sh/include/uapi/asm/unistd_32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@
379379
#define __NR_process_vm_readv 365
380380
#define __NR_process_vm_writev 366
381381
#define __NR_kcmp 367
382+
#define __NR_finit_module 368
382383

383-
#define NR_syscalls 368
384+
#define NR_syscalls 369
384385

385386
#endif /* __ASM_SH_UNISTD_32_H */

arch/sh/include/uapi/asm/unistd_64.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@
399399
#define __NR_process_vm_readv 376
400400
#define __NR_process_vm_writev 377
401401
#define __NR_kcmp 378
402+
#define __NR_finit_module 379
402403

403-
#define NR_syscalls 379
404+
#define NR_syscalls 380
404405

405406
#endif /* __ASM_SH_UNISTD_64_H */

arch/sh/kernel/syscalls_32.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,3 +385,4 @@ ENTRY(sys_call_table)
385385
.long sys_process_vm_readv /* 365 */
386386
.long sys_process_vm_writev
387387
.long sys_kcmp
388+
.long sys_finit_module

arch/sh/kernel/syscalls_64.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,3 +405,4 @@ sys_call_table:
405405
.long sys_process_vm_readv
406406
.long sys_process_vm_writev
407407
.long sys_kcmp
408+
.long sys_finit_module

arch/sh/lib/mcount.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ stack_panic:
294294
.align 2
295295
.L_init_thread_union:
296296
.long init_thread_union
297+
.L_ebss:
298+
.long __bss_stop
297299
.Lpanic:
298300
.long panic
299301
.Lpanic_s:

drivers/sh/clk/cpg.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ static int sh_clk_div_set_rate(struct clk *clk, unsigned long rate)
126126

127127
static int sh_clk_div_enable(struct clk *clk)
128128
{
129+
if (clk->div_mask == SH_CLK_DIV6_MSK) {
130+
int ret = sh_clk_div_set_rate(clk, clk->rate);
131+
if (ret < 0)
132+
return ret;
133+
}
134+
129135
sh_clk_write(sh_clk_read(clk) & ~CPG_CKSTP_BIT, clk);
130136
return 0;
131137
}

0 commit comments

Comments
 (0)