diff options
| author | Nathan Scott <nathans@bruce> | 2006-01-11 21:34:47 -0500 |
|---|---|---|
| committer | Nathan Scott <nathans@bruce> | 2006-01-11 21:34:47 -0500 |
| commit | ddae9c2ea79449beb00027cf77fca6dc489f2d15 (patch) | |
| tree | 047c2d7c8d6cbb0721f017514e1d83a20e278d43 /include | |
| parent | 0d1335b3106687d87fcfa0e4d90f2a961bd7e1db (diff) | |
| parent | a4fc7ab1d065a9dd89ed0e74439ef87d4a16e980 (diff) | |
Merge HEAD from oss.sgi.com:/oss/git/linux-2.6.git
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-parisc/cache.h | 8 | ||||
| -rw-r--r-- | include/asm-parisc/io.h | 2 | ||||
| -rw-r--r-- | include/asm-parisc/page.h | 7 | ||||
| -rw-r--r-- | include/asm-parisc/pci.h | 8 | ||||
| -rw-r--r-- | include/asm-parisc/processor.h | 18 | ||||
| -rw-r--r-- | include/asm-parisc/tlbflush.h | 1 | ||||
| -rw-r--r-- | include/asm-powerpc/elf.h | 1 | ||||
| -rw-r--r-- | include/linux/cache.h | 2 | ||||
| -rw-r--r-- | include/linux/mm.h | 2 | ||||
| -rw-r--r-- | include/linux/mutex-debug.h | 2 | ||||
| -rw-r--r-- | include/linux/mutex.h | 3 |
11 files changed, 34 insertions, 20 deletions
diff --git a/include/asm-parisc/cache.h b/include/asm-parisc/cache.h index 38d201b5652d..93f179f13ce8 100644 --- a/include/asm-parisc/cache.h +++ b/include/asm-parisc/cache.h | |||
| @@ -29,14 +29,14 @@ | |||
| 29 | 29 | ||
| 30 | #define SMP_CACHE_BYTES L1_CACHE_BYTES | 30 | #define SMP_CACHE_BYTES L1_CACHE_BYTES |
| 31 | 31 | ||
| 32 | extern void flush_data_cache_local(void); /* flushes local data-cache only */ | 32 | extern void flush_data_cache_local(void *); /* flushes local data-cache only */ |
| 33 | extern void flush_instruction_cache_local(void); /* flushes local code-cache only */ | 33 | extern void flush_instruction_cache_local(void *); /* flushes local code-cache only */ |
| 34 | #ifdef CONFIG_SMP | 34 | #ifdef CONFIG_SMP |
| 35 | extern void flush_data_cache(void); /* flushes data-cache only (all processors) */ | 35 | extern void flush_data_cache(void); /* flushes data-cache only (all processors) */ |
| 36 | extern void flush_instruction_cache(void); /* flushes i-cache only (all processors) */ | 36 | extern void flush_instruction_cache(void); /* flushes i-cache only (all processors) */ |
| 37 | #else | 37 | #else |
| 38 | #define flush_data_cache flush_data_cache_local | 38 | #define flush_data_cache() flush_data_cache_local(NULL) |
| 39 | #define flush_instruction_cache flush_instruction_cache_local | 39 | #define flush_instruction_cache() flush_instruction_cache_local(NULL) |
| 40 | #endif | 40 | #endif |
| 41 | 41 | ||
| 42 | extern void parisc_cache_init(void); /* initializes cache-flushing */ | 42 | extern void parisc_cache_init(void); /* initializes cache-flushing */ |
diff --git a/include/asm-parisc/io.h b/include/asm-parisc/io.h index b9bb5946ecc9..0db00adc942a 100644 --- a/include/asm-parisc/io.h +++ b/include/asm-parisc/io.h | |||
| @@ -41,7 +41,7 @@ extern void __raw_bad_addr(const volatile void __iomem *addr); | |||
| 41 | #define __raw_check_addr(addr) \ | 41 | #define __raw_check_addr(addr) \ |
| 42 | if (((unsigned long)addr >> NYBBLE_SHIFT) != 0xe) \ | 42 | if (((unsigned long)addr >> NYBBLE_SHIFT) != 0xe) \ |
| 43 | __raw_bad_addr(addr); \ | 43 | __raw_bad_addr(addr); \ |
| 44 | addr = (void *)((unsigned long)addr | (0xfUL << NYBBLE_SHIFT)); | 44 | addr = (void __iomem *)((unsigned long)addr | (0xfUL << NYBBLE_SHIFT)); |
| 45 | #else | 45 | #else |
| 46 | #define gsc_check_addr(addr) | 46 | #define gsc_check_addr(addr) |
| 47 | #define __raw_check_addr(addr) | 47 | #define __raw_check_addr(addr) |
diff --git a/include/asm-parisc/page.h b/include/asm-parisc/page.h index 44eae9f8274d..4a6752b0afed 100644 --- a/include/asm-parisc/page.h +++ b/include/asm-parisc/page.h | |||
| @@ -135,6 +135,13 @@ extern int npmem_ranges; | |||
| 135 | #define pfn_valid(pfn) ((pfn) < max_mapnr) | 135 | #define pfn_valid(pfn) ((pfn) < max_mapnr) |
| 136 | #endif /* CONFIG_DISCONTIGMEM */ | 136 | #endif /* CONFIG_DISCONTIGMEM */ |
| 137 | 137 | ||
| 138 | #ifdef CONFIG_HUGETLB_PAGE | ||
| 139 | #define HPAGE_SHIFT 22 /* 4MB (is this fixed?) */ | ||
| 140 | #define HPAGE_SIZE ((1UL) << HPAGE_SHIFT) | ||
| 141 | #define HPAGE_MASK (~(HPAGE_SIZE - 1)) | ||
| 142 | #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT) | ||
| 143 | #endif | ||
| 144 | |||
| 138 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) | 145 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) |
| 139 | 146 | ||
| 140 | #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) | 147 | #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) |
diff --git a/include/asm-parisc/pci.h b/include/asm-parisc/pci.h index fa39d07d49e9..f277254159b7 100644 --- a/include/asm-parisc/pci.h +++ b/include/asm-parisc/pci.h | |||
| @@ -84,11 +84,17 @@ static __inline__ int pci_is_lmmio(struct pci_hba_data *hba, unsigned long a) | |||
| 84 | /* | 84 | /* |
| 85 | ** Convert between PCI (IO_VIEW) addresses and processor (PA_VIEW) addresses. | 85 | ** Convert between PCI (IO_VIEW) addresses and processor (PA_VIEW) addresses. |
| 86 | ** See pcibios.c for more conversions used by Generic PCI code. | 86 | ** See pcibios.c for more conversions used by Generic PCI code. |
| 87 | ** | ||
| 88 | ** Platform characteristics/firmware guarantee that | ||
| 89 | ** (1) PA_VIEW - IO_VIEW = lmmio_offset for both LMMIO and ELMMIO | ||
| 90 | ** (2) PA_VIEW == IO_VIEW for GMMIO | ||
| 87 | */ | 91 | */ |
| 88 | #define PCI_BUS_ADDR(hba,a) (PCI_IS_LMMIO(hba,a) \ | 92 | #define PCI_BUS_ADDR(hba,a) (PCI_IS_LMMIO(hba,a) \ |
| 89 | ? ((a) - hba->lmmio_space_offset) /* mangle LMMIO */ \ | 93 | ? ((a) - hba->lmmio_space_offset) /* mangle LMMIO */ \ |
| 90 | : (a)) /* GMMIO */ | 94 | : (a)) /* GMMIO */ |
| 91 | #define PCI_HOST_ADDR(hba,a) ((a) + hba->lmmio_space_offset) | 95 | #define PCI_HOST_ADDR(hba,a) (((a) & PCI_F_EXTEND) == 0 \ |
| 96 | ? (a) + hba->lmmio_space_offset \ | ||
| 97 | : (a)) | ||
| 92 | 98 | ||
| 93 | #else /* !CONFIG_64BIT */ | 99 | #else /* !CONFIG_64BIT */ |
| 94 | 100 | ||
diff --git a/include/asm-parisc/processor.h b/include/asm-parisc/processor.h index aae40e8c3aa8..89f2f1c16c12 100644 --- a/include/asm-parisc/processor.h +++ b/include/asm-parisc/processor.h | |||
| @@ -144,16 +144,16 @@ struct thread_struct { | |||
| 144 | }) | 144 | }) |
| 145 | 145 | ||
| 146 | #define INIT_THREAD { \ | 146 | #define INIT_THREAD { \ |
| 147 | regs: { gr: { 0, }, \ | 147 | .regs = { .gr = { 0, }, \ |
| 148 | fr: { 0, }, \ | 148 | .fr = { 0, }, \ |
| 149 | sr: { 0, }, \ | 149 | .sr = { 0, }, \ |
| 150 | iasq: { 0, }, \ | 150 | .iasq = { 0, }, \ |
| 151 | iaoq: { 0, }, \ | 151 | .iaoq = { 0, }, \ |
| 152 | cr27: 0, \ | 152 | .cr27 = 0, \ |
| 153 | }, \ | 153 | }, \ |
| 154 | task_size: DEFAULT_TASK_SIZE, \ | 154 | .task_size = DEFAULT_TASK_SIZE, \ |
| 155 | map_base: DEFAULT_MAP_BASE, \ | 155 | .map_base = DEFAULT_MAP_BASE, \ |
| 156 | flags: 0 \ | 156 | .flags = 0 \ |
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | /* | 159 | /* |
diff --git a/include/asm-parisc/tlbflush.h b/include/asm-parisc/tlbflush.h index c9ec39c6fc6c..825994a90e2d 100644 --- a/include/asm-parisc/tlbflush.h +++ b/include/asm-parisc/tlbflush.h | |||
| @@ -22,6 +22,7 @@ extern spinlock_t pa_tlb_lock; | |||
| 22 | #define purge_tlb_end(x) spin_unlock(&pa_tlb_lock) | 22 | #define purge_tlb_end(x) spin_unlock(&pa_tlb_lock) |
| 23 | 23 | ||
| 24 | extern void flush_tlb_all(void); | 24 | extern void flush_tlb_all(void); |
| 25 | extern void flush_tlb_all_local(void *); | ||
| 25 | 26 | ||
| 26 | /* | 27 | /* |
| 27 | * flush_tlb_mm() | 28 | * flush_tlb_mm() |
diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h index c5a635d9bba4..45f2af6f89c4 100644 --- a/include/asm-powerpc/elf.h +++ b/include/asm-powerpc/elf.h | |||
| @@ -92,7 +92,6 @@ | |||
| 92 | * as published by the Free Software Foundation; either version | 92 | * as published by the Free Software Foundation; either version |
| 93 | * 2 of the License, or (at your option) any later version. | 93 | * 2 of the License, or (at your option) any later version. |
| 94 | */ | 94 | */ |
| 95 | #include <asm/ptrace.h> | ||
| 96 | 95 | ||
| 97 | #define ELF_NGREG 48 /* includes nip, msr, lr, etc. */ | 96 | #define ELF_NGREG 48 /* includes nip, msr, lr, etc. */ |
| 98 | #define ELF_NFPREG 33 /* includes fpscr */ | 97 | #define ELF_NFPREG 33 /* includes fpscr */ |
diff --git a/include/linux/cache.h b/include/linux/cache.h index ffe52210fc4f..d22e632f41fb 100644 --- a/include/linux/cache.h +++ b/include/linux/cache.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #define SMP_CACHE_BYTES L1_CACHE_BYTES | 13 | #define SMP_CACHE_BYTES L1_CACHE_BYTES |
| 14 | #endif | 14 | #endif |
| 15 | 15 | ||
| 16 | #if defined(CONFIG_X86) || defined(CONFIG_SPARC64) || defined(CONFIG_IA64) | 16 | #if defined(CONFIG_X86) || defined(CONFIG_SPARC64) || defined(CONFIG_IA64) || defined(CONFIG_PARISC) |
| 17 | #define __read_mostly __attribute__((__section__(".data.read_mostly"))) | 17 | #define __read_mostly __attribute__((__section__(".data.read_mostly"))) |
| 18 | #else | 18 | #else |
| 19 | #define __read_mostly | 19 | #define __read_mostly |
diff --git a/include/linux/mm.h b/include/linux/mm.h index 3f1fafc0245e..e53d2c6fd5f4 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
| @@ -1027,7 +1027,7 @@ kernel_map_pages(struct page *page, int numpages, int enable) | |||
| 1027 | { | 1027 | { |
| 1028 | if (!PageHighMem(page) && !enable) | 1028 | if (!PageHighMem(page) && !enable) |
| 1029 | mutex_debug_check_no_locks_freed(page_address(page), | 1029 | mutex_debug_check_no_locks_freed(page_address(page), |
| 1030 | page_address(page + numpages)); | 1030 | numpages * PAGE_SIZE); |
| 1031 | } | 1031 | } |
| 1032 | #endif | 1032 | #endif |
| 1033 | 1033 | ||
diff --git a/include/linux/mutex-debug.h b/include/linux/mutex-debug.h index 8138d9eb58ec..8b5769f00467 100644 --- a/include/linux/mutex-debug.h +++ b/include/linux/mutex-debug.h | |||
| @@ -18,6 +18,6 @@ extern void FASTCALL(mutex_destroy(struct mutex *lock)); | |||
| 18 | extern void mutex_debug_show_all_locks(void); | 18 | extern void mutex_debug_show_all_locks(void); |
| 19 | extern void mutex_debug_show_held_locks(struct task_struct *filter); | 19 | extern void mutex_debug_show_held_locks(struct task_struct *filter); |
| 20 | extern void mutex_debug_check_no_locks_held(struct task_struct *task); | 20 | extern void mutex_debug_check_no_locks_held(struct task_struct *task); |
| 21 | extern void mutex_debug_check_no_locks_freed(const void *from, const void *to); | 21 | extern void mutex_debug_check_no_locks_freed(const void *from, unsigned long len); |
| 22 | 22 | ||
| 23 | #endif | 23 | #endif |
diff --git a/include/linux/mutex.h b/include/linux/mutex.h index 9bce0fee68d4..f1ac507fa20d 100644 --- a/include/linux/mutex.h +++ b/include/linux/mutex.h | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | #include <linux/list.h> | 13 | #include <linux/list.h> |
| 14 | #include <linux/spinlock_types.h> | 14 | #include <linux/spinlock_types.h> |
| 15 | #include <linux/linkage.h> | ||
| 15 | 16 | ||
| 16 | #include <asm/atomic.h> | 17 | #include <asm/atomic.h> |
| 17 | 18 | ||
| @@ -78,7 +79,7 @@ struct mutex_waiter { | |||
| 78 | # define mutex_debug_show_all_locks() do { } while (0) | 79 | # define mutex_debug_show_all_locks() do { } while (0) |
| 79 | # define mutex_debug_show_held_locks(p) do { } while (0) | 80 | # define mutex_debug_show_held_locks(p) do { } while (0) |
| 80 | # define mutex_debug_check_no_locks_held(task) do { } while (0) | 81 | # define mutex_debug_check_no_locks_held(task) do { } while (0) |
| 81 | # define mutex_debug_check_no_locks_freed(from, to) do { } while (0) | 82 | # define mutex_debug_check_no_locks_freed(from, len) do { } while (0) |
| 82 | #endif | 83 | #endif |
| 83 | 84 | ||
| 84 | #define __MUTEX_INITIALIZER(lockname) \ | 85 | #define __MUTEX_INITIALIZER(lockname) \ |
