diff options
Diffstat (limited to 'include/asm-generic')
| -rw-r--r-- | include/asm-generic/io.h | 2 | ||||
| -rw-r--r-- | include/asm-generic/unistd.h | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index aba53083297d..ac9da00e9f2c 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h | |||
| @@ -346,6 +346,7 @@ extern void ioport_unmap(void __iomem *p); | |||
| 346 | #define xlate_dev_kmem_ptr(p) p | 346 | #define xlate_dev_kmem_ptr(p) p |
| 347 | #define xlate_dev_mem_ptr(p) __va(p) | 347 | #define xlate_dev_mem_ptr(p) __va(p) |
| 348 | 348 | ||
| 349 | #ifdef CONFIG_VIRT_TO_BUS | ||
| 349 | #ifndef virt_to_bus | 350 | #ifndef virt_to_bus |
| 350 | static inline unsigned long virt_to_bus(volatile void *address) | 351 | static inline unsigned long virt_to_bus(volatile void *address) |
| 351 | { | 352 | { |
| @@ -357,6 +358,7 @@ static inline void *bus_to_virt(unsigned long address) | |||
| 357 | return (void *) address; | 358 | return (void *) address; |
| 358 | } | 359 | } |
| 359 | #endif | 360 | #endif |
| 361 | #endif | ||
| 360 | 362 | ||
| 361 | #ifndef memset_io | 363 | #ifndef memset_io |
| 362 | #define memset_io(a, b, c) memset(__io_virt(a), (b), (c)) | 364 | #define memset_io(a, b, c) memset(__io_virt(a), (b), (c)) |
diff --git a/include/asm-generic/unistd.h b/include/asm-generic/unistd.h index 257c55ec4f77..4077b5d9ff81 100644 --- a/include/asm-generic/unistd.h +++ b/include/asm-generic/unistd.h | |||
| @@ -17,5 +17,12 @@ | |||
| 17 | * but it doesn't work on all toolchains, so we just do it by hand | 17 | * but it doesn't work on all toolchains, so we just do it by hand |
| 18 | */ | 18 | */ |
| 19 | #ifndef cond_syscall | 19 | #ifndef cond_syscall |
| 20 | #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") | 20 | #ifdef CONFIG_SYMBOL_PREFIX |
| 21 | #define __SYMBOL_PREFIX CONFIG_SYMBOL_PREFIX | ||
| 22 | #else | ||
| 23 | #define __SYMBOL_PREFIX | ||
| 24 | #endif | ||
| 25 | #define cond_syscall(x) asm(".weak\t" __SYMBOL_PREFIX #x "\n\t" \ | ||
| 26 | ".set\t" __SYMBOL_PREFIX #x "," \ | ||
| 27 | __SYMBOL_PREFIX "sys_ni_syscall") | ||
| 21 | #endif | 28 | #endif |
