diff options
Diffstat (limited to 'arch/sh/include')
| -rw-r--r-- | arch/sh/include/asm/Kbuild | 1 | ||||
| -rw-r--r-- | arch/sh/include/asm/dma-mapping.h | 1 | ||||
| -rw-r--r-- | arch/sh/include/asm/elf.h | 4 | ||||
| -rw-r--r-- | arch/sh/include/asm/io.h | 2 | ||||
| -rw-r--r-- | arch/sh/include/asm/processor_32.h | 7 | ||||
| -rw-r--r-- | arch/sh/include/asm/processor_64.h | 7 | ||||
| -rw-r--r-- | arch/sh/include/asm/syscalls_32.h | 14 | ||||
| -rw-r--r-- | arch/sh/include/asm/syscalls_64.h | 17 | ||||
| -rw-r--r-- | arch/sh/include/asm/unistd.h | 3 | ||||
| -rw-r--r-- | arch/sh/include/mach-kfr2r09/mach/kfr2r09.h | 6 | ||||
| -rw-r--r-- | arch/sh/include/uapi/asm/ioctls.h | 3 | ||||
| -rw-r--r-- | arch/sh/include/uapi/asm/unistd_32.h | 3 | ||||
| -rw-r--r-- | arch/sh/include/uapi/asm/unistd_64.h | 3 |
13 files changed, 19 insertions, 52 deletions
diff --git a/arch/sh/include/asm/Kbuild b/arch/sh/include/asm/Kbuild index 29f83beeef7a..280bea9e5e2b 100644 --- a/arch/sh/include/asm/Kbuild +++ b/arch/sh/include/asm/Kbuild | |||
| @@ -31,5 +31,6 @@ generic-y += socket.h | |||
| 31 | generic-y += statfs.h | 31 | generic-y += statfs.h |
| 32 | generic-y += termbits.h | 32 | generic-y += termbits.h |
| 33 | generic-y += termios.h | 33 | generic-y += termios.h |
| 34 | generic-y += trace_clock.h | ||
| 34 | generic-y += ucontext.h | 35 | generic-y += ucontext.h |
| 35 | generic-y += xor.h | 36 | generic-y += xor.h |
diff --git a/arch/sh/include/asm/dma-mapping.h b/arch/sh/include/asm/dma-mapping.h index 8bd965e00a15..b437f2c780b8 100644 --- a/arch/sh/include/asm/dma-mapping.h +++ b/arch/sh/include/asm/dma-mapping.h | |||
| @@ -46,6 +46,7 @@ static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) | |||
| 46 | { | 46 | { |
| 47 | struct dma_map_ops *ops = get_dma_ops(dev); | 47 | struct dma_map_ops *ops = get_dma_ops(dev); |
| 48 | 48 | ||
| 49 | debug_dma_mapping_error(dev, dma_addr); | ||
| 49 | if (ops->mapping_error) | 50 | if (ops->mapping_error) |
| 50 | return ops->mapping_error(dev, dma_addr); | 51 | return ops->mapping_error(dev, dma_addr); |
| 51 | 52 | ||
diff --git a/arch/sh/include/asm/elf.h b/arch/sh/include/asm/elf.h index 37924afa8d8a..bf9f44f17c29 100644 --- a/arch/sh/include/asm/elf.h +++ b/arch/sh/include/asm/elf.h | |||
| @@ -203,9 +203,9 @@ extern void __kernel_vsyscall; | |||
| 203 | if (vdso_enabled) \ | 203 | if (vdso_enabled) \ |
| 204 | NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \ | 204 | NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \ |
| 205 | else \ | 205 | else \ |
| 206 | NEW_AUX_ENT(AT_IGNORE, 0); | 206 | NEW_AUX_ENT(AT_IGNORE, 0) |
| 207 | #else | 207 | #else |
| 208 | #define VSYSCALL_AUX_ENT | 208 | #define VSYSCALL_AUX_ENT NEW_AUX_ENT(AT_IGNORE, 0) |
| 209 | #endif /* CONFIG_VSYSCALL */ | 209 | #endif /* CONFIG_VSYSCALL */ |
| 210 | 210 | ||
| 211 | #ifdef CONFIG_SH_FPU | 211 | #ifdef CONFIG_SH_FPU |
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index 73a23f4617a3..629db2ad7916 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h | |||
| @@ -382,7 +382,7 @@ static inline int iounmap_fixed(void __iomem *addr) { return -EINVAL; } | |||
| 382 | #define xlate_dev_kmem_ptr(p) p | 382 | #define xlate_dev_kmem_ptr(p) p |
| 383 | 383 | ||
| 384 | #define ARCH_HAS_VALID_PHYS_ADDR_RANGE | 384 | #define ARCH_HAS_VALID_PHYS_ADDR_RANGE |
| 385 | int valid_phys_addr_range(unsigned long addr, size_t size); | 385 | int valid_phys_addr_range(phys_addr_t addr, size_t size); |
| 386 | int valid_mmap_phys_addr_range(unsigned long pfn, size_t size); | 386 | int valid_mmap_phys_addr_range(unsigned long pfn, size_t size); |
| 387 | 387 | ||
| 388 | #endif /* __KERNEL__ */ | 388 | #endif /* __KERNEL__ */ |
diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h index b6311fd2d066..e699a12cdcca 100644 --- a/arch/sh/include/asm/processor_32.h +++ b/arch/sh/include/asm/processor_32.h | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | /* This decides where the kernel will search for a free chunk of vm | 39 | /* This decides where the kernel will search for a free chunk of vm |
| 40 | * space during mmap's. | 40 | * space during mmap's. |
| 41 | */ | 41 | */ |
| 42 | #define TASK_UNMAPPED_BASE (TASK_SIZE / 3) | 42 | #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) |
| 43 | 43 | ||
| 44 | /* | 44 | /* |
| 45 | * Bit of SR register | 45 | * Bit of SR register |
| @@ -126,11 +126,6 @@ extern void start_thread(struct pt_regs *regs, unsigned long new_pc, unsigned lo | |||
| 126 | /* Free all resources held by a thread. */ | 126 | /* Free all resources held by a thread. */ |
| 127 | extern void release_thread(struct task_struct *); | 127 | extern void release_thread(struct task_struct *); |
| 128 | 128 | ||
| 129 | /* | ||
| 130 | * create a kernel thread without removing it from tasklists | ||
| 131 | */ | ||
| 132 | extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); | ||
| 133 | |||
| 134 | /* Copy and release all segment info associated with a VM */ | 129 | /* Copy and release all segment info associated with a VM */ |
| 135 | #define copy_segments(p, mm) do { } while(0) | 130 | #define copy_segments(p, mm) do { } while(0) |
| 136 | #define release_segments(mm) do { } while(0) | 131 | #define release_segments(mm) do { } while(0) |
diff --git a/arch/sh/include/asm/processor_64.h b/arch/sh/include/asm/processor_64.h index cd6029fb2c01..1cc7d3197143 100644 --- a/arch/sh/include/asm/processor_64.h +++ b/arch/sh/include/asm/processor_64.h | |||
| @@ -47,7 +47,7 @@ pc; }) | |||
| 47 | /* This decides where the kernel will search for a free chunk of vm | 47 | /* This decides where the kernel will search for a free chunk of vm |
| 48 | * space during mmap's. | 48 | * space during mmap's. |
| 49 | */ | 49 | */ |
| 50 | #define TASK_UNMAPPED_BASE (TASK_SIZE / 3) | 50 | #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) |
| 51 | 51 | ||
| 52 | /* | 52 | /* |
| 53 | * Bit of SR register | 53 | * Bit of SR register |
| @@ -159,11 +159,6 @@ struct mm_struct; | |||
| 159 | 159 | ||
| 160 | /* Free all resources held by a thread. */ | 160 | /* Free all resources held by a thread. */ |
| 161 | extern void release_thread(struct task_struct *); | 161 | extern void release_thread(struct task_struct *); |
| 162 | /* | ||
| 163 | * create a kernel thread without removing it from tasklists | ||
| 164 | */ | ||
| 165 | extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); | ||
| 166 | |||
| 167 | 162 | ||
| 168 | /* Copy and release all segment info associated with a VM */ | 163 | /* Copy and release all segment info associated with a VM */ |
| 169 | #define copy_segments(p, mm) do { } while (0) | 164 | #define copy_segments(p, mm) do { } while (0) |
diff --git a/arch/sh/include/asm/syscalls_32.h b/arch/sh/include/asm/syscalls_32.h index 6c1fa559753c..cc25485996bb 100644 --- a/arch/sh/include/asm/syscalls_32.h +++ b/arch/sh/include/asm/syscalls_32.h | |||
| @@ -9,20 +9,6 @@ | |||
| 9 | 9 | ||
| 10 | struct pt_regs; | 10 | struct pt_regs; |
| 11 | 11 | ||
| 12 | asmlinkage int sys_fork(unsigned long r4, unsigned long r5, | ||
| 13 | unsigned long r6, unsigned long r7, | ||
| 14 | struct pt_regs __regs); | ||
| 15 | asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, | ||
| 16 | unsigned long parent_tidptr, | ||
| 17 | unsigned long child_tidptr, | ||
| 18 | struct pt_regs __regs); | ||
| 19 | asmlinkage int sys_vfork(unsigned long r4, unsigned long r5, | ||
| 20 | unsigned long r6, unsigned long r7, | ||
| 21 | struct pt_regs __regs); | ||
| 22 | asmlinkage int sys_execve(const char __user *ufilename, | ||
| 23 | const char __user *const __user *uargv, | ||
| 24 | const char __user *const __user *uenvp, | ||
| 25 | unsigned long r7, struct pt_regs __regs); | ||
| 26 | asmlinkage int sys_sigsuspend(old_sigset_t mask); | 12 | asmlinkage int sys_sigsuspend(old_sigset_t mask); |
| 27 | asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act, | 13 | asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act, |
| 28 | struct old_sigaction __user *oact); | 14 | struct old_sigaction __user *oact); |
diff --git a/arch/sh/include/asm/syscalls_64.h b/arch/sh/include/asm/syscalls_64.h index ee519f41d950..d62e8eb22f74 100644 --- a/arch/sh/include/asm/syscalls_64.h +++ b/arch/sh/include/asm/syscalls_64.h | |||
| @@ -9,23 +9,6 @@ | |||
| 9 | 9 | ||
| 10 | struct pt_regs; | 10 | struct pt_regs; |
| 11 | 11 | ||
| 12 | asmlinkage int sys_fork(unsigned long r2, unsigned long r3, | ||
| 13 | unsigned long r4, unsigned long r5, | ||
| 14 | unsigned long r6, unsigned long r7, | ||
| 15 | struct pt_regs *pregs); | ||
| 16 | asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, | ||
| 17 | unsigned long r4, unsigned long r5, | ||
| 18 | unsigned long r6, unsigned long r7, | ||
| 19 | struct pt_regs *pregs); | ||
| 20 | asmlinkage int sys_vfork(unsigned long r2, unsigned long r3, | ||
| 21 | unsigned long r4, unsigned long r5, | ||
| 22 | unsigned long r6, unsigned long r7, | ||
| 23 | struct pt_regs *pregs); | ||
| 24 | asmlinkage int sys_execve(const char *ufilename, char **uargv, | ||
| 25 | char **uenvp, unsigned long r5, | ||
| 26 | unsigned long r6, unsigned long r7, | ||
| 27 | struct pt_regs *pregs); | ||
| 28 | |||
| 29 | /* Misc syscall related bits */ | 12 | /* Misc syscall related bits */ |
| 30 | asmlinkage long long do_syscall_trace_enter(struct pt_regs *regs); | 13 | asmlinkage long long do_syscall_trace_enter(struct pt_regs *regs); |
| 31 | asmlinkage void do_syscall_trace_leave(struct pt_regs *regs); | 14 | asmlinkage void do_syscall_trace_leave(struct pt_regs *regs); |
diff --git a/arch/sh/include/asm/unistd.h b/arch/sh/include/asm/unistd.h index 38956dfa76f7..012004ed3330 100644 --- a/arch/sh/include/asm/unistd.h +++ b/arch/sh/include/asm/unistd.h | |||
| @@ -28,6 +28,9 @@ | |||
| 28 | # define __ARCH_WANT_SYS_SIGPENDING | 28 | # define __ARCH_WANT_SYS_SIGPENDING |
| 29 | # define __ARCH_WANT_SYS_SIGPROCMASK | 29 | # define __ARCH_WANT_SYS_SIGPROCMASK |
| 30 | # define __ARCH_WANT_SYS_RT_SIGACTION | 30 | # define __ARCH_WANT_SYS_RT_SIGACTION |
| 31 | # define __ARCH_WANT_SYS_FORK | ||
| 32 | # define __ARCH_WANT_SYS_VFORK | ||
| 33 | # define __ARCH_WANT_SYS_CLONE | ||
| 31 | 34 | ||
| 32 | /* | 35 | /* |
| 33 | * "Conditional" syscalls | 36 | * "Conditional" syscalls |
diff --git a/arch/sh/include/mach-kfr2r09/mach/kfr2r09.h b/arch/sh/include/mach-kfr2r09/mach/kfr2r09.h index ba3d93d333f8..c20c9e5f5eab 100644 --- a/arch/sh/include/mach-kfr2r09/mach/kfr2r09.h +++ b/arch/sh/include/mach-kfr2r09/mach/kfr2r09.h | |||
| @@ -4,15 +4,13 @@ | |||
| 4 | #include <video/sh_mobile_lcdc.h> | 4 | #include <video/sh_mobile_lcdc.h> |
| 5 | 5 | ||
| 6 | #if defined(CONFIG_FB_SH_MOBILE_LCDC) || defined(CONFIG_FB_SH_MOBILE_LCDC_MODULE) | 6 | #if defined(CONFIG_FB_SH_MOBILE_LCDC) || defined(CONFIG_FB_SH_MOBILE_LCDC_MODULE) |
| 7 | void kfr2r09_lcd_on(void); | 7 | int kfr2r09_lcd_set_brightness(int brightness); |
| 8 | void kfr2r09_lcd_off(void); | ||
| 9 | int kfr2r09_lcd_setup(void *sys_ops_handle, | 8 | int kfr2r09_lcd_setup(void *sys_ops_handle, |
| 10 | struct sh_mobile_lcdc_sys_bus_ops *sys_ops); | 9 | struct sh_mobile_lcdc_sys_bus_ops *sys_ops); |
| 11 | void kfr2r09_lcd_start(void *sys_ops_handle, | 10 | void kfr2r09_lcd_start(void *sys_ops_handle, |
| 12 | struct sh_mobile_lcdc_sys_bus_ops *sys_ops); | 11 | struct sh_mobile_lcdc_sys_bus_ops *sys_ops); |
| 13 | #else | 12 | #else |
| 14 | static void kfr2r09_lcd_on(void) {} | 13 | static int kfr2r09_lcd_set_brightness(int brightness) {} |
| 15 | static void kfr2r09_lcd_off(void) {} | ||
| 16 | static int kfr2r09_lcd_setup(void *sys_ops_handle, | 14 | static int kfr2r09_lcd_setup(void *sys_ops_handle, |
| 17 | struct sh_mobile_lcdc_sys_bus_ops *sys_ops) | 15 | struct sh_mobile_lcdc_sys_bus_ops *sys_ops) |
| 18 | { | 16 | { |
diff --git a/arch/sh/include/uapi/asm/ioctls.h b/arch/sh/include/uapi/asm/ioctls.h index a6769f352bf6..342241079760 100644 --- a/arch/sh/include/uapi/asm/ioctls.h +++ b/arch/sh/include/uapi/asm/ioctls.h | |||
| @@ -88,6 +88,9 @@ | |||
| 88 | #define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */ | 88 | #define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */ |
| 89 | #define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */ | 89 | #define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */ |
| 90 | #define TIOCVHANGUP _IO('T', 0x37) | 90 | #define TIOCVHANGUP _IO('T', 0x37) |
| 91 | #define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */ | ||
| 92 | #define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */ | ||
| 93 | #define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */ | ||
| 91 | 94 | ||
| 92 | #define TIOCSERCONFIG _IO('T', 83) /* 0x5453 */ | 95 | #define TIOCSERCONFIG _IO('T', 83) /* 0x5453 */ |
| 93 | #define TIOCSERGWILD _IOR('T', 84, int) /* 0x5454 */ | 96 | #define TIOCSERGWILD _IOR('T', 84, int) /* 0x5454 */ |
diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h index 9e465f246dc1..d13a1d623736 100644 --- a/arch/sh/include/uapi/asm/unistd_32.h +++ b/arch/sh/include/uapi/asm/unistd_32.h | |||
| @@ -379,7 +379,8 @@ | |||
| 379 | #define __NR_process_vm_readv 365 | 379 | #define __NR_process_vm_readv 365 |
| 380 | #define __NR_process_vm_writev 366 | 380 | #define __NR_process_vm_writev 366 |
| 381 | #define __NR_kcmp 367 | 381 | #define __NR_kcmp 367 |
| 382 | #define __NR_finit_module 368 | ||
| 382 | 383 | ||
| 383 | #define NR_syscalls 368 | 384 | #define NR_syscalls 369 |
| 384 | 385 | ||
| 385 | #endif /* __ASM_SH_UNISTD_32_H */ | 386 | #endif /* __ASM_SH_UNISTD_32_H */ |
diff --git a/arch/sh/include/uapi/asm/unistd_64.h b/arch/sh/include/uapi/asm/unistd_64.h index 8e3a2edd284e..e6820c86e8c7 100644 --- a/arch/sh/include/uapi/asm/unistd_64.h +++ b/arch/sh/include/uapi/asm/unistd_64.h | |||
| @@ -399,7 +399,8 @@ | |||
| 399 | #define __NR_process_vm_readv 376 | 399 | #define __NR_process_vm_readv 376 |
| 400 | #define __NR_process_vm_writev 377 | 400 | #define __NR_process_vm_writev 377 |
| 401 | #define __NR_kcmp 378 | 401 | #define __NR_kcmp 378 |
| 402 | #define __NR_finit_module 379 | ||
| 402 | 403 | ||
| 403 | #define NR_syscalls 379 | 404 | #define NR_syscalls 380 |
| 404 | 405 | ||
| 405 | #endif /* __ASM_SH_UNISTD_64_H */ | 406 | #endif /* __ASM_SH_UNISTD_64_H */ |
