diff options
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/Kconfig | 3 | ||||
-rw-r--r-- | arch/frv/include/asm/dma-mapping.h | 15 | ||||
-rw-r--r-- | arch/frv/include/asm/signal.h | 7 | ||||
-rw-r--r-- | arch/frv/include/asm/unistd.h | 2 | ||||
-rw-r--r-- | arch/frv/include/uapi/asm/socket.h | 4 | ||||
-rw-r--r-- | arch/frv/kernel/signal.c | 55 | ||||
-rw-r--r-- | arch/frv/mb93090-mb00/pci-frv.h | 1 | ||||
-rw-r--r-- | arch/frv/mb93090-mb00/pci-vdk.c | 4 |
8 files changed, 23 insertions, 68 deletions
diff --git a/arch/frv/Kconfig b/arch/frv/Kconfig index 9d262645f667..2d0509d4cfee 100644 --- a/arch/frv/Kconfig +++ b/arch/frv/Kconfig | |||
@@ -3,7 +3,6 @@ config FRV | |||
3 | default y | 3 | default y |
4 | select HAVE_IDE | 4 | select HAVE_IDE |
5 | select HAVE_ARCH_TRACEHOOK | 5 | select HAVE_ARCH_TRACEHOOK |
6 | select HAVE_IRQ_WORK | ||
7 | select HAVE_PERF_EVENTS | 6 | select HAVE_PERF_EVENTS |
8 | select HAVE_UID16 | 7 | select HAVE_UID16 |
9 | select HAVE_GENERIC_HARDIRQS | 8 | select HAVE_GENERIC_HARDIRQS |
@@ -12,6 +11,8 @@ config FRV | |||
12 | select ARCH_HAVE_NMI_SAFE_CMPXCHG | 11 | select ARCH_HAVE_NMI_SAFE_CMPXCHG |
13 | select GENERIC_CPU_DEVICES | 12 | select GENERIC_CPU_DEVICES |
14 | select ARCH_WANT_IPC_PARSE_VERSION | 13 | select ARCH_WANT_IPC_PARSE_VERSION |
14 | select OLD_SIGSUSPEND3 | ||
15 | select OLD_SIGACTION | ||
15 | 16 | ||
16 | config ZONE_DMA | 17 | config ZONE_DMA |
17 | bool | 18 | bool |
diff --git a/arch/frv/include/asm/dma-mapping.h b/arch/frv/include/asm/dma-mapping.h index dfb811002c64..1746a2b8e6e7 100644 --- a/arch/frv/include/asm/dma-mapping.h +++ b/arch/frv/include/asm/dma-mapping.h | |||
@@ -132,4 +132,19 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size, | |||
132 | flush_write_buffers(); | 132 | flush_write_buffers(); |
133 | } | 133 | } |
134 | 134 | ||
135 | /* Not supported for now */ | ||
136 | static inline int dma_mmap_coherent(struct device *dev, | ||
137 | struct vm_area_struct *vma, void *cpu_addr, | ||
138 | dma_addr_t dma_addr, size_t size) | ||
139 | { | ||
140 | return -EINVAL; | ||
141 | } | ||
142 | |||
143 | static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt, | ||
144 | void *cpu_addr, dma_addr_t dma_addr, | ||
145 | size_t size) | ||
146 | { | ||
147 | return -EINVAL; | ||
148 | } | ||
149 | |||
135 | #endif /* _ASM_DMA_MAPPING_H */ | 150 | #endif /* _ASM_DMA_MAPPING_H */ |
diff --git a/arch/frv/include/asm/signal.h b/arch/frv/include/asm/signal.h index 599500a31025..eca0abcb79d6 100644 --- a/arch/frv/include/asm/signal.h +++ b/arch/frv/include/asm/signal.h | |||
@@ -3,11 +3,4 @@ | |||
3 | 3 | ||
4 | #include <uapi/asm/signal.h> | 4 | #include <uapi/asm/signal.h> |
5 | 5 | ||
6 | struct old_sigaction { | ||
7 | __sighandler_t sa_handler; | ||
8 | old_sigset_t sa_mask; | ||
9 | unsigned long sa_flags; | ||
10 | __sigrestore_t sa_restorer; | ||
11 | }; | ||
12 | |||
13 | #endif /* _ASM_SIGNAL_H */ | 6 | #endif /* _ASM_SIGNAL_H */ |
diff --git a/arch/frv/include/asm/unistd.h b/arch/frv/include/asm/unistd.h index d685da17f5fb..4cfcc7bba25a 100644 --- a/arch/frv/include/asm/unistd.h +++ b/arch/frv/include/asm/unistd.h | |||
@@ -27,8 +27,6 @@ | |||
27 | #define __ARCH_WANT_SYS_OLDUMOUNT | 27 | #define __ARCH_WANT_SYS_OLDUMOUNT |
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 | ||
31 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND | ||
32 | #define __ARCH_WANT_SYS_FORK | 30 | #define __ARCH_WANT_SYS_FORK |
33 | #define __ARCH_WANT_SYS_VFORK | 31 | #define __ARCH_WANT_SYS_VFORK |
34 | #define __ARCH_WANT_SYS_CLONE | 32 | #define __ARCH_WANT_SYS_CLONE |
diff --git a/arch/frv/include/uapi/asm/socket.h b/arch/frv/include/uapi/asm/socket.h index 871f89b7fbda..595391f0f98c 100644 --- a/arch/frv/include/uapi/asm/socket.h +++ b/arch/frv/include/uapi/asm/socket.h | |||
@@ -22,7 +22,7 @@ | |||
22 | #define SO_PRIORITY 12 | 22 | #define SO_PRIORITY 12 |
23 | #define SO_LINGER 13 | 23 | #define SO_LINGER 13 |
24 | #define SO_BSDCOMPAT 14 | 24 | #define SO_BSDCOMPAT 14 |
25 | /* To add :#define SO_REUSEPORT 15 */ | 25 | #define SO_REUSEPORT 15 |
26 | #define SO_PASSCRED 16 | 26 | #define SO_PASSCRED 16 |
27 | #define SO_PEERCRED 17 | 27 | #define SO_PEERCRED 17 |
28 | #define SO_RCVLOWAT 18 | 28 | #define SO_RCVLOWAT 18 |
@@ -70,5 +70,7 @@ | |||
70 | /* Instruct lower device to use last 4-bytes of skb data as FCS */ | 70 | /* Instruct lower device to use last 4-bytes of skb data as FCS */ |
71 | #define SO_NOFCS 43 | 71 | #define SO_NOFCS 43 |
72 | 72 | ||
73 | #define SO_LOCK_FILTER 44 | ||
74 | |||
73 | #endif /* _ASM_SOCKET_H */ | 75 | #endif /* _ASM_SOCKET_H */ |
74 | 76 | ||
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c index 535810a3217a..d822700d4f15 100644 --- a/arch/frv/kernel/signal.c +++ b/arch/frv/kernel/signal.c | |||
@@ -33,55 +33,6 @@ struct fdpic_func_descriptor { | |||
33 | }; | 33 | }; |
34 | 34 | ||
35 | /* | 35 | /* |
36 | * Atomically swap in the new signal mask, and wait for a signal. | ||
37 | */ | ||
38 | asmlinkage int sys_sigsuspend(int history0, int history1, old_sigset_t mask) | ||
39 | { | ||
40 | sigset_t blocked; | ||
41 | siginitset(&blocked, mask); | ||
42 | return sigsuspend(&blocked); | ||
43 | } | ||
44 | |||
45 | asmlinkage int sys_sigaction(int sig, | ||
46 | const struct old_sigaction __user *act, | ||
47 | struct old_sigaction __user *oact) | ||
48 | { | ||
49 | struct k_sigaction new_ka, old_ka; | ||
50 | int ret; | ||
51 | |||
52 | if (act) { | ||
53 | old_sigset_t mask; | ||
54 | if (!access_ok(VERIFY_READ, act, sizeof(*act)) || | ||
55 | __get_user(new_ka.sa.sa_handler, &act->sa_handler) || | ||
56 | __get_user(new_ka.sa.sa_restorer, &act->sa_restorer) || | ||
57 | __get_user(new_ka.sa.sa_flags, &act->sa_flags) || | ||
58 | __get_user(mask, &act->sa_mask)) | ||
59 | return -EFAULT; | ||
60 | siginitset(&new_ka.sa.sa_mask, mask); | ||
61 | } | ||
62 | |||
63 | ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); | ||
64 | |||
65 | if (!ret && oact) { | ||
66 | if (!access_ok(VERIFY_WRITE, oact, sizeof(*oact)) || | ||
67 | __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || | ||
68 | __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer) || | ||
69 | __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || | ||
70 | __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) | ||
71 | return -EFAULT; | ||
72 | } | ||
73 | |||
74 | return ret; | ||
75 | } | ||
76 | |||
77 | asmlinkage | ||
78 | int sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss) | ||
79 | { | ||
80 | return do_sigaltstack(uss, uoss, __frame->sp); | ||
81 | } | ||
82 | |||
83 | |||
84 | /* | ||
85 | * Do a signal return; undo the signal stack. | 36 | * Do a signal return; undo the signal stack. |
86 | */ | 37 | */ |
87 | 38 | ||
@@ -173,7 +124,7 @@ asmlinkage int sys_rt_sigreturn(void) | |||
173 | if (restore_sigcontext(&frame->uc.uc_mcontext, &gr8)) | 124 | if (restore_sigcontext(&frame->uc.uc_mcontext, &gr8)) |
174 | goto badframe; | 125 | goto badframe; |
175 | 126 | ||
176 | if (do_sigaltstack(&frame->uc.uc_stack, NULL, __frame->sp) == -EFAULT) | 127 | if (restore_altstack(&frame->uc.uc_stack)) |
177 | goto badframe; | 128 | goto badframe; |
178 | 129 | ||
179 | return gr8; | 130 | return gr8; |
@@ -345,9 +296,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
345 | /* Create the ucontext. */ | 296 | /* Create the ucontext. */ |
346 | if (__put_user(0, &frame->uc.uc_flags) || | 297 | if (__put_user(0, &frame->uc.uc_flags) || |
347 | __put_user(NULL, &frame->uc.uc_link) || | 298 | __put_user(NULL, &frame->uc.uc_link) || |
348 | __put_user((void __user *)current->sas_ss_sp, &frame->uc.uc_stack.ss_sp) || | 299 | __save_altstack(&frame->uc.uc_stack, __frame->sp)) |
349 | __put_user(sas_ss_flags(__frame->sp), &frame->uc.uc_stack.ss_flags) || | ||
350 | __put_user(current->sas_ss_size, &frame->uc.uc_stack.ss_size)) | ||
351 | goto give_sigsegv; | 300 | goto give_sigsegv; |
352 | 301 | ||
353 | if (setup_sigcontext(&frame->uc.uc_mcontext, set->sig[0])) | 302 | if (setup_sigcontext(&frame->uc.uc_mcontext, set->sig[0])) |
diff --git a/arch/frv/mb93090-mb00/pci-frv.h b/arch/frv/mb93090-mb00/pci-frv.h index 089eeba4f3bc..76c4e73d643d 100644 --- a/arch/frv/mb93090-mb00/pci-frv.h +++ b/arch/frv/mb93090-mb00/pci-frv.h | |||
@@ -31,7 +31,6 @@ void pcibios_resource_survey(void); | |||
31 | /* pci-vdk.c */ | 31 | /* pci-vdk.c */ |
32 | 32 | ||
33 | extern int __nongpreldata pcibios_last_bus; | 33 | extern int __nongpreldata pcibios_last_bus; |
34 | extern struct pci_bus *__nongpreldata pci_root_bus; | ||
35 | extern struct pci_ops *__nongpreldata pci_root_ops; | 34 | extern struct pci_ops *__nongpreldata pci_root_ops; |
36 | 35 | ||
37 | /* pci-irq.c */ | 36 | /* pci-irq.c */ |
diff --git a/arch/frv/mb93090-mb00/pci-vdk.c b/arch/frv/mb93090-mb00/pci-vdk.c index d186b254ce99..0aa35f0eb0db 100644 --- a/arch/frv/mb93090-mb00/pci-vdk.c +++ b/arch/frv/mb93090-mb00/pci-vdk.c | |||
@@ -26,7 +26,6 @@ | |||
26 | unsigned int __nongpreldata pci_probe = 1; | 26 | unsigned int __nongpreldata pci_probe = 1; |
27 | 27 | ||
28 | int __nongpreldata pcibios_last_bus = -1; | 28 | int __nongpreldata pcibios_last_bus = -1; |
29 | struct pci_bus *__nongpreldata pci_root_bus; | ||
30 | struct pci_ops *__nongpreldata pci_root_ops; | 29 | struct pci_ops *__nongpreldata pci_root_ops; |
31 | 30 | ||
32 | /* | 31 | /* |
@@ -416,8 +415,7 @@ int __init pcibios_init(void) | |||
416 | printk("PCI: Probing PCI hardware\n"); | 415 | printk("PCI: Probing PCI hardware\n"); |
417 | pci_add_resource(&resources, &pci_ioport_resource); | 416 | pci_add_resource(&resources, &pci_ioport_resource); |
418 | pci_add_resource(&resources, &pci_iomem_resource); | 417 | pci_add_resource(&resources, &pci_iomem_resource); |
419 | pci_root_bus = pci_scan_root_bus(NULL, 0, pci_root_ops, NULL, | 418 | pci_scan_root_bus(NULL, 0, pci_root_ops, NULL, &resources); |
420 | &resources); | ||
421 | 419 | ||
422 | pcibios_irq_init(); | 420 | pcibios_irq_init(); |
423 | pcibios_fixup_peer_bridges(); | 421 | pcibios_fixup_peer_bridges(); |