diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-12-07 16:35:17 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-12-07 16:35:17 -0500 |
commit | 21b4e736922f546e0f1aa7b9d6c442f309a2444a (patch) | |
tree | e1be8645297f8ebe87445251743ebcc52081a20d /include/asm-frv | |
parent | 34161db6b14d984fb9b06c735b7b42f8803f6851 (diff) | |
parent | 68380b581383c028830f79ec2670f4a193854aa6 (diff) |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/ into merge_linus
Diffstat (limited to 'include/asm-frv')
-rw-r--r-- | include/asm-frv/dma-mapping.h | 4 | ||||
-rw-r--r-- | include/asm-frv/highmem.h | 5 | ||||
-rw-r--r-- | include/asm-frv/param.h | 1 | ||||
-rw-r--r-- | include/asm-frv/setup.h | 6 | ||||
-rw-r--r-- | include/asm-frv/unistd.h | 119 |
5 files changed, 10 insertions, 125 deletions
diff --git a/include/asm-frv/dma-mapping.h b/include/asm-frv/dma-mapping.h index e9fc1d47797e..bcb2df68496e 100644 --- a/include/asm-frv/dma-mapping.h +++ b/include/asm-frv/dma-mapping.h | |||
@@ -172,10 +172,10 @@ int dma_get_cache_alignment(void) | |||
172 | return 1 << L1_CACHE_SHIFT; | 172 | return 1 << L1_CACHE_SHIFT; |
173 | } | 173 | } |
174 | 174 | ||
175 | #define dma_is_consistent(d) (1) | 175 | #define dma_is_consistent(d, h) (1) |
176 | 176 | ||
177 | static inline | 177 | static inline |
178 | void dma_cache_sync(void *vaddr, size_t size, | 178 | void dma_cache_sync(struct device *dev, void *vaddr, size_t size, |
179 | enum dma_data_direction direction) | 179 | enum dma_data_direction direction) |
180 | { | 180 | { |
181 | flush_write_buffers(); | 181 | flush_write_buffers(); |
diff --git a/include/asm-frv/highmem.h b/include/asm-frv/highmem.h index 0f390f41f816..ff4d6cdeb152 100644 --- a/include/asm-frv/highmem.h +++ b/include/asm-frv/highmem.h | |||
@@ -115,7 +115,7 @@ static inline void *kmap_atomic(struct page *page, enum km_type type) | |||
115 | { | 115 | { |
116 | unsigned long paddr; | 116 | unsigned long paddr; |
117 | 117 | ||
118 | inc_preempt_count(); | 118 | pagefault_disable(); |
119 | paddr = page_to_phys(page); | 119 | paddr = page_to_phys(page); |
120 | 120 | ||
121 | switch (type) { | 121 | switch (type) { |
@@ -170,8 +170,7 @@ static inline void kunmap_atomic(void *kvaddr, enum km_type type) | |||
170 | default: | 170 | default: |
171 | BUG(); | 171 | BUG(); |
172 | } | 172 | } |
173 | dec_preempt_count(); | 173 | pagefault_enable(); |
174 | preempt_check_resched(); | ||
175 | } | 174 | } |
176 | 175 | ||
177 | #endif /* !__ASSEMBLY__ */ | 176 | #endif /* !__ASSEMBLY__ */ |
diff --git a/include/asm-frv/param.h b/include/asm-frv/param.h index 168381ebb41a..365653b1726c 100644 --- a/include/asm-frv/param.h +++ b/include/asm-frv/param.h | |||
@@ -18,6 +18,5 @@ | |||
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ | 20 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ |
21 | #define COMMAND_LINE_SIZE 512 | ||
22 | 21 | ||
23 | #endif /* _ASM_PARAM_H */ | 22 | #endif /* _ASM_PARAM_H */ |
diff --git a/include/asm-frv/setup.h b/include/asm-frv/setup.h index 0d293b9a5857..afd787ceede6 100644 --- a/include/asm-frv/setup.h +++ b/include/asm-frv/setup.h | |||
@@ -12,6 +12,10 @@ | |||
12 | #ifndef _ASM_SETUP_H | 12 | #ifndef _ASM_SETUP_H |
13 | #define _ASM_SETUP_H | 13 | #define _ASM_SETUP_H |
14 | 14 | ||
15 | #define COMMAND_LINE_SIZE 512 | ||
16 | |||
17 | #ifdef __KERNEL__ | ||
18 | |||
15 | #include <linux/init.h> | 19 | #include <linux/init.h> |
16 | 20 | ||
17 | #ifndef __ASSEMBLY__ | 21 | #ifndef __ASSEMBLY__ |
@@ -22,4 +26,6 @@ extern unsigned long __initdata num_mappedpages; | |||
22 | 26 | ||
23 | #endif /* !__ASSEMBLY__ */ | 27 | #endif /* !__ASSEMBLY__ */ |
24 | 28 | ||
29 | #endif /* __KERNEL__ */ | ||
30 | |||
25 | #endif /* _ASM_SETUP_H */ | 31 | #endif /* _ASM_SETUP_H */ |
diff --git a/include/asm-frv/unistd.h b/include/asm-frv/unistd.h index 725e854928cf..584c0417ae4d 100644 --- a/include/asm-frv/unistd.h +++ b/include/asm-frv/unistd.h | |||
@@ -320,125 +320,6 @@ | |||
320 | #ifdef __KERNEL__ | 320 | #ifdef __KERNEL__ |
321 | 321 | ||
322 | #define NR_syscalls 310 | 322 | #define NR_syscalls 310 |
323 | #include <linux/err.h> | ||
324 | |||
325 | /* | ||
326 | * process the return value of a syscall, consigning it to one of two possible fates | ||
327 | * - user-visible error numbers are in the range -1 - -4095: see <asm-frv/errno.h> | ||
328 | */ | ||
329 | #undef __syscall_return | ||
330 | #define __syscall_return(type, res) \ | ||
331 | do { \ | ||
332 | unsigned long __sr2 = (res); \ | ||
333 | if (__builtin_expect(__sr2 >= (unsigned long)(-MAX_ERRNO), 0)) { \ | ||
334 | errno = (-__sr2); \ | ||
335 | __sr2 = ~0UL; \ | ||
336 | } \ | ||
337 | return (type) __sr2; \ | ||
338 | } while (0) | ||
339 | |||
340 | /* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */ | ||
341 | |||
342 | #undef _syscall0 | ||
343 | #define _syscall0(type,name) \ | ||
344 | type name(void) \ | ||
345 | { \ | ||
346 | register unsigned long __scnum __asm__ ("gr7") = (__NR_##name); \ | ||
347 | register unsigned long __sc0 __asm__ ("gr8"); \ | ||
348 | __asm__ __volatile__ ("tira gr0,#0" \ | ||
349 | : "=r" (__sc0) \ | ||
350 | : "r" (__scnum)); \ | ||
351 | __syscall_return(type, __sc0); \ | ||
352 | } | ||
353 | |||
354 | #undef _syscall1 | ||
355 | #define _syscall1(type,name,type1,arg1) \ | ||
356 | type name(type1 arg1) \ | ||
357 | { \ | ||
358 | register unsigned long __scnum __asm__ ("gr7") = (__NR_##name); \ | ||
359 | register unsigned long __sc0 __asm__ ("gr8") = (unsigned long) arg1; \ | ||
360 | __asm__ __volatile__ ("tira gr0,#0" \ | ||
361 | : "+r" (__sc0) \ | ||
362 | : "r" (__scnum)); \ | ||
363 | __syscall_return(type, __sc0); \ | ||
364 | } | ||
365 | |||
366 | #undef _syscall2 | ||
367 | #define _syscall2(type,name,type1,arg1,type2,arg2) \ | ||
368 | type name(type1 arg1,type2 arg2) \ | ||
369 | { \ | ||
370 | register unsigned long __scnum __asm__ ("gr7") = (__NR_##name); \ | ||
371 | register unsigned long __sc0 __asm__ ("gr8") = (unsigned long) arg1; \ | ||
372 | register unsigned long __sc1 __asm__ ("gr9") = (unsigned long) arg2; \ | ||
373 | __asm__ __volatile__ ("tira gr0,#0" \ | ||
374 | : "+r" (__sc0) \ | ||
375 | : "r" (__scnum), "r" (__sc1)); \ | ||
376 | __syscall_return(type, __sc0); \ | ||
377 | } | ||
378 | |||
379 | #undef _syscall3 | ||
380 | #define _syscall3(type,name,type1,arg1,type2,arg2,type3,arg3) \ | ||
381 | type name(type1 arg1,type2 arg2,type3 arg3) \ | ||
382 | { \ | ||
383 | register unsigned long __scnum __asm__ ("gr7") = (__NR_##name); \ | ||
384 | register unsigned long __sc0 __asm__ ("gr8") = (unsigned long) arg1; \ | ||
385 | register unsigned long __sc1 __asm__ ("gr9") = (unsigned long) arg2; \ | ||
386 | register unsigned long __sc2 __asm__ ("gr10") = (unsigned long) arg3; \ | ||
387 | __asm__ __volatile__ ("tira gr0,#0" \ | ||
388 | : "+r" (__sc0) \ | ||
389 | : "r" (__scnum), "r" (__sc1), "r" (__sc2)); \ | ||
390 | __syscall_return(type, __sc0); \ | ||
391 | } | ||
392 | |||
393 | #undef _syscall4 | ||
394 | #define _syscall4(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4) \ | ||
395 | type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \ | ||
396 | { \ | ||
397 | register unsigned long __scnum __asm__ ("gr7") = (__NR_##name); \ | ||
398 | register unsigned long __sc0 __asm__ ("gr8") = (unsigned long) arg1; \ | ||
399 | register unsigned long __sc1 __asm__ ("gr9") = (unsigned long) arg2; \ | ||
400 | register unsigned long __sc2 __asm__ ("gr10") = (unsigned long) arg3; \ | ||
401 | register unsigned long __sc3 __asm__ ("gr11") = (unsigned long) arg4; \ | ||
402 | __asm__ __volatile__ ("tira gr0,#0" \ | ||
403 | : "+r" (__sc0) \ | ||
404 | : "r" (__scnum), "r" (__sc1), "r" (__sc2), "r" (__sc3)); \ | ||
405 | __syscall_return(type, __sc0); \ | ||
406 | } | ||
407 | |||
408 | #undef _syscall5 | ||
409 | #define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5) \ | ||
410 | type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \ | ||
411 | { \ | ||
412 | register unsigned long __scnum __asm__ ("gr7") = (__NR_##name); \ | ||
413 | register unsigned long __sc0 __asm__ ("gr8") = (unsigned long) arg1; \ | ||
414 | register unsigned long __sc1 __asm__ ("gr9") = (unsigned long) arg2; \ | ||
415 | register unsigned long __sc2 __asm__ ("gr10") = (unsigned long) arg3; \ | ||
416 | register unsigned long __sc3 __asm__ ("gr11") = (unsigned long) arg4; \ | ||
417 | register unsigned long __sc4 __asm__ ("gr12") = (unsigned long) arg5; \ | ||
418 | __asm__ __volatile__ ("tira gr0,#0" \ | ||
419 | : "+r" (__sc0) \ | ||
420 | : "r" (__scnum), "r" (__sc1), "r" (__sc2), \ | ||
421 | "r" (__sc3), "r" (__sc4)); \ | ||
422 | __syscall_return(type, __sc0); \ | ||
423 | } | ||
424 | |||
425 | #undef _syscall6 | ||
426 | #define _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5, type6, arg6) \ | ||
427 | type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6) \ | ||
428 | { \ | ||
429 | register unsigned long __scnum __asm__ ("gr7") = (__NR_##name); \ | ||
430 | register unsigned long __sc0 __asm__ ("gr8") = (unsigned long) arg1; \ | ||
431 | register unsigned long __sc1 __asm__ ("gr9") = (unsigned long) arg2; \ | ||
432 | register unsigned long __sc2 __asm__ ("gr10") = (unsigned long) arg3; \ | ||
433 | register unsigned long __sc3 __asm__ ("gr11") = (unsigned long) arg4; \ | ||
434 | register unsigned long __sc4 __asm__ ("gr12") = (unsigned long) arg5; \ | ||
435 | register unsigned long __sc5 __asm__ ("gr13") = (unsigned long) arg6; \ | ||
436 | __asm__ __volatile__ ("tira gr0,#0" \ | ||
437 | : "+r" (__sc0) \ | ||
438 | : "r" (__scnum), "r" (__sc1), "r" (__sc2), \ | ||
439 | "r" (__sc3), "r" (__sc4), "r" (__sc5)); \ | ||
440 | __syscall_return(type, __sc0); \ | ||
441 | } | ||
442 | 323 | ||
443 | #define __ARCH_WANT_IPC_PARSE_VERSION | 324 | #define __ARCH_WANT_IPC_PARSE_VERSION |
444 | /* #define __ARCH_WANT_OLD_READDIR */ | 325 | /* #define __ARCH_WANT_OLD_READDIR */ |