diff options
Diffstat (limited to 'arch/ia64/include')
-rw-r--r-- | arch/ia64/include/asm/acpi.h | 26 | ||||
-rw-r--r-- | arch/ia64/include/asm/atomic.h | 4 | ||||
-rw-r--r-- | arch/ia64/include/asm/bitops.h | 11 | ||||
-rw-r--r-- | arch/ia64/include/asm/compat.h | 3 | ||||
-rw-r--r-- | arch/ia64/include/asm/dmi.h | 1 | ||||
-rw-r--r-- | arch/ia64/include/asm/elf.h | 52 | ||||
-rw-r--r-- | arch/ia64/include/asm/ia32.h | 40 | ||||
-rw-r--r-- | arch/ia64/include/asm/mmzone.h | 4 | ||||
-rw-r--r-- | arch/ia64/include/asm/pci.h | 14 | ||||
-rw-r--r-- | arch/ia64/include/asm/percpu.h | 7 | ||||
-rw-r--r-- | arch/ia64/include/asm/pgtable.h | 2 | ||||
-rw-r--r-- | arch/ia64/include/asm/processor.h | 46 | ||||
-rw-r--r-- | arch/ia64/include/asm/ptrace.h | 4 | ||||
-rw-r--r-- | arch/ia64/include/asm/scatterlist.h | 26 | ||||
-rw-r--r-- | arch/ia64/include/asm/syscall.h | 81 | ||||
-rw-r--r-- | arch/ia64/include/asm/system.h | 11 | ||||
-rw-r--r-- | arch/ia64/include/asm/thread_info.h | 2 | ||||
-rw-r--r-- | arch/ia64/include/asm/topology.h | 5 | ||||
-rw-r--r-- | arch/ia64/include/asm/unistd.h | 14 | ||||
-rw-r--r-- | arch/ia64/include/asm/xen/events.h | 4 |
20 files changed, 50 insertions, 307 deletions
diff --git a/arch/ia64/include/asm/acpi.h b/arch/ia64/include/asm/acpi.h index 7ae58892ba8d..837dc82a013e 100644 --- a/arch/ia64/include/asm/acpi.h +++ b/arch/ia64/include/asm/acpi.h | |||
@@ -97,8 +97,34 @@ ia64_acpi_release_global_lock (unsigned int *lock) | |||
97 | #endif | 97 | #endif |
98 | #define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */ | 98 | #define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */ |
99 | static inline void disable_acpi(void) { } | 99 | static inline void disable_acpi(void) { } |
100 | static inline void pci_acpi_crs_quirks(void) { } | ||
100 | 101 | ||
102 | #ifdef CONFIG_IA64_GENERIC | ||
101 | const char *acpi_get_sysname (void); | 103 | const char *acpi_get_sysname (void); |
104 | #else | ||
105 | static inline const char *acpi_get_sysname (void) | ||
106 | { | ||
107 | # if defined (CONFIG_IA64_HP_SIM) | ||
108 | return "hpsim"; | ||
109 | # elif defined (CONFIG_IA64_HP_ZX1) | ||
110 | return "hpzx1"; | ||
111 | # elif defined (CONFIG_IA64_HP_ZX1_SWIOTLB) | ||
112 | return "hpzx1_swiotlb"; | ||
113 | # elif defined (CONFIG_IA64_SGI_SN2) | ||
114 | return "sn2"; | ||
115 | # elif defined (CONFIG_IA64_SGI_UV) | ||
116 | return "uv"; | ||
117 | # elif defined (CONFIG_IA64_DIG) | ||
118 | return "dig"; | ||
119 | # elif defined (CONFIG_IA64_XEN_GUEST) | ||
120 | return "xen"; | ||
121 | # elif defined(CONFIG_IA64_DIG_VTD) | ||
122 | return "dig_vtd"; | ||
123 | # else | ||
124 | # error Unknown platform. Fix acpi.c. | ||
125 | # endif | ||
126 | } | ||
127 | #endif | ||
102 | int acpi_request_vector (u32 int_type); | 128 | int acpi_request_vector (u32 int_type); |
103 | int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); | 129 | int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); |
104 | 130 | ||
diff --git a/arch/ia64/include/asm/atomic.h b/arch/ia64/include/asm/atomic.h index 88405cb0832a..4e1948447a00 100644 --- a/arch/ia64/include/asm/atomic.h +++ b/arch/ia64/include/asm/atomic.h | |||
@@ -21,8 +21,8 @@ | |||
21 | #define ATOMIC_INIT(i) ((atomic_t) { (i) }) | 21 | #define ATOMIC_INIT(i) ((atomic_t) { (i) }) |
22 | #define ATOMIC64_INIT(i) ((atomic64_t) { (i) }) | 22 | #define ATOMIC64_INIT(i) ((atomic64_t) { (i) }) |
23 | 23 | ||
24 | #define atomic_read(v) ((v)->counter) | 24 | #define atomic_read(v) (*(volatile int *)&(v)->counter) |
25 | #define atomic64_read(v) ((v)->counter) | 25 | #define atomic64_read(v) (*(volatile long *)&(v)->counter) |
26 | 26 | ||
27 | #define atomic_set(v,i) (((v)->counter) = (i)) | 27 | #define atomic_set(v,i) (((v)->counter) = (i)) |
28 | #define atomic64_set(v,i) (((v)->counter) = (i)) | 28 | #define atomic64_set(v,i) (((v)->counter) = (i)) |
diff --git a/arch/ia64/include/asm/bitops.h b/arch/ia64/include/asm/bitops.h index 6ebc229a1c51..9da3df6f1a52 100644 --- a/arch/ia64/include/asm/bitops.h +++ b/arch/ia64/include/asm/bitops.h | |||
@@ -437,17 +437,18 @@ __fls (unsigned long x) | |||
437 | * hweightN: returns the hamming weight (i.e. the number | 437 | * hweightN: returns the hamming weight (i.e. the number |
438 | * of bits set) of a N-bit word | 438 | * of bits set) of a N-bit word |
439 | */ | 439 | */ |
440 | static __inline__ unsigned long | 440 | static __inline__ unsigned long __arch_hweight64(unsigned long x) |
441 | hweight64 (unsigned long x) | ||
442 | { | 441 | { |
443 | unsigned long result; | 442 | unsigned long result; |
444 | result = ia64_popcnt(x); | 443 | result = ia64_popcnt(x); |
445 | return result; | 444 | return result; |
446 | } | 445 | } |
447 | 446 | ||
448 | #define hweight32(x) (unsigned int) hweight64((x) & 0xfffffffful) | 447 | #define __arch_hweight32(x) ((unsigned int) __arch_hweight64((x) & 0xfffffffful)) |
449 | #define hweight16(x) (unsigned int) hweight64((x) & 0xfffful) | 448 | #define __arch_hweight16(x) ((unsigned int) __arch_hweight64((x) & 0xfffful)) |
450 | #define hweight8(x) (unsigned int) hweight64((x) & 0xfful) | 449 | #define __arch_hweight8(x) ((unsigned int) __arch_hweight64((x) & 0xfful)) |
450 | |||
451 | #include <asm-generic/bitops/const_hweight.h> | ||
451 | 452 | ||
452 | #endif /* __KERNEL__ */ | 453 | #endif /* __KERNEL__ */ |
453 | 454 | ||
diff --git a/arch/ia64/include/asm/compat.h b/arch/ia64/include/asm/compat.h index dfcf75b8426d..f90edc85b509 100644 --- a/arch/ia64/include/asm/compat.h +++ b/arch/ia64/include/asm/compat.h | |||
@@ -5,7 +5,8 @@ | |||
5 | */ | 5 | */ |
6 | #include <linux/types.h> | 6 | #include <linux/types.h> |
7 | 7 | ||
8 | #define COMPAT_USER_HZ 100 | 8 | #define COMPAT_USER_HZ 100 |
9 | #define COMPAT_UTS_MACHINE "i686\0\0\0" | ||
9 | 10 | ||
10 | typedef u32 compat_size_t; | 11 | typedef u32 compat_size_t; |
11 | typedef s32 compat_ssize_t; | 12 | typedef s32 compat_ssize_t; |
diff --git a/arch/ia64/include/asm/dmi.h b/arch/ia64/include/asm/dmi.h index 00eb1b130b63..1ed4c8fedb83 100644 --- a/arch/ia64/include/asm/dmi.h +++ b/arch/ia64/include/asm/dmi.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef _ASM_DMI_H | 1 | #ifndef _ASM_DMI_H |
2 | #define _ASM_DMI_H 1 | 2 | #define _ASM_DMI_H 1 |
3 | 3 | ||
4 | #include <linux/slab.h> | ||
4 | #include <asm/io.h> | 5 | #include <asm/io.h> |
5 | 6 | ||
6 | /* Use normal IO mappings for DMI */ | 7 | /* Use normal IO mappings for DMI */ |
diff --git a/arch/ia64/include/asm/elf.h b/arch/ia64/include/asm/elf.h index e14108b19c09..b5298eb09adb 100644 --- a/arch/ia64/include/asm/elf.h +++ b/arch/ia64/include/asm/elf.h | |||
@@ -201,7 +201,9 @@ extern void ia64_elf_core_copy_regs (struct pt_regs *src, elf_gregset_t dst); | |||
201 | relevant until we have real hardware to play with... */ | 201 | relevant until we have real hardware to play with... */ |
202 | #define ELF_PLATFORM NULL | 202 | #define ELF_PLATFORM NULL |
203 | 203 | ||
204 | #define SET_PERSONALITY(ex) set_personality(PER_LINUX) | 204 | #define SET_PERSONALITY(ex) \ |
205 | set_personality((current->personality & ~PER_MASK) | PER_LINUX) | ||
206 | |||
205 | #define elf_read_implies_exec(ex, executable_stack) \ | 207 | #define elf_read_implies_exec(ex, executable_stack) \ |
206 | ((executable_stack!=EXSTACK_DISABLE_X) && ((ex).e_flags & EF_IA_64_LINUX_EXECUTABLE_STACK) != 0) | 208 | ((executable_stack!=EXSTACK_DISABLE_X) && ((ex).e_flags & EF_IA_64_LINUX_EXECUTABLE_STACK) != 0) |
207 | 209 | ||
@@ -217,54 +219,6 @@ do { \ | |||
217 | NEW_AUX_ENT(AT_SYSINFO_EHDR, (unsigned long) GATE_EHDR); \ | 219 | NEW_AUX_ENT(AT_SYSINFO_EHDR, (unsigned long) GATE_EHDR); \ |
218 | } while (0) | 220 | } while (0) |
219 | 221 | ||
220 | |||
221 | /* | ||
222 | * These macros parameterize elf_core_dump in fs/binfmt_elf.c to write out | ||
223 | * extra segments containing the gate DSO contents. Dumping its | ||
224 | * contents makes post-mortem fully interpretable later without matching up | ||
225 | * the same kernel and hardware config to see what PC values meant. | ||
226 | * Dumping its extra ELF program headers includes all the other information | ||
227 | * a debugger needs to easily find how the gate DSO was being used. | ||
228 | */ | ||
229 | #define ELF_CORE_EXTRA_PHDRS (GATE_EHDR->e_phnum) | ||
230 | #define ELF_CORE_WRITE_EXTRA_PHDRS \ | ||
231 | do { \ | ||
232 | const struct elf_phdr *const gate_phdrs = \ | ||
233 | (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); \ | ||
234 | int i; \ | ||
235 | Elf64_Off ofs = 0; \ | ||
236 | for (i = 0; i < GATE_EHDR->e_phnum; ++i) { \ | ||
237 | struct elf_phdr phdr = gate_phdrs[i]; \ | ||
238 | if (phdr.p_type == PT_LOAD) { \ | ||
239 | phdr.p_memsz = PAGE_ALIGN(phdr.p_memsz); \ | ||
240 | phdr.p_filesz = phdr.p_memsz; \ | ||
241 | if (ofs == 0) { \ | ||
242 | ofs = phdr.p_offset = offset; \ | ||
243 | offset += phdr.p_filesz; \ | ||
244 | } \ | ||
245 | else \ | ||
246 | phdr.p_offset = ofs; \ | ||
247 | } \ | ||
248 | else \ | ||
249 | phdr.p_offset += ofs; \ | ||
250 | phdr.p_paddr = 0; /* match other core phdrs */ \ | ||
251 | DUMP_WRITE(&phdr, sizeof(phdr)); \ | ||
252 | } \ | ||
253 | } while (0) | ||
254 | #define ELF_CORE_WRITE_EXTRA_DATA \ | ||
255 | do { \ | ||
256 | const struct elf_phdr *const gate_phdrs = \ | ||
257 | (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); \ | ||
258 | int i; \ | ||
259 | for (i = 0; i < GATE_EHDR->e_phnum; ++i) { \ | ||
260 | if (gate_phdrs[i].p_type == PT_LOAD) { \ | ||
261 | DUMP_WRITE((void *) gate_phdrs[i].p_vaddr, \ | ||
262 | PAGE_ALIGN(gate_phdrs[i].p_memsz)); \ | ||
263 | break; \ | ||
264 | } \ | ||
265 | } \ | ||
266 | } while (0) | ||
267 | |||
268 | /* | 222 | /* |
269 | * format for entries in the Global Offset Table | 223 | * format for entries in the Global Offset Table |
270 | */ | 224 | */ |
diff --git a/arch/ia64/include/asm/ia32.h b/arch/ia64/include/asm/ia32.h deleted file mode 100644 index 2390ee145aa1..000000000000 --- a/arch/ia64/include/asm/ia32.h +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | #ifndef _ASM_IA64_IA32_H | ||
2 | #define _ASM_IA64_IA32_H | ||
3 | |||
4 | |||
5 | #include <asm/ptrace.h> | ||
6 | #include <asm/signal.h> | ||
7 | |||
8 | #define IA32_NR_syscalls 285 /* length of syscall table */ | ||
9 | #define IA32_PAGE_SHIFT 12 /* 4KB pages */ | ||
10 | |||
11 | #ifndef __ASSEMBLY__ | ||
12 | |||
13 | # ifdef CONFIG_IA32_SUPPORT | ||
14 | |||
15 | #define IA32_PAGE_OFFSET 0xc0000000 | ||
16 | |||
17 | extern void ia32_cpu_init (void); | ||
18 | extern void ia32_mem_init (void); | ||
19 | extern void ia32_gdt_init (void); | ||
20 | extern int ia32_exception (struct pt_regs *regs, unsigned long isr); | ||
21 | extern int ia32_intercept (struct pt_regs *regs, unsigned long isr); | ||
22 | extern int ia32_clone_tls (struct task_struct *child, struct pt_regs *childregs); | ||
23 | |||
24 | # endif /* !CONFIG_IA32_SUPPORT */ | ||
25 | |||
26 | /* Declare this unconditionally, so we don't get warnings for unreachable code. */ | ||
27 | extern int ia32_setup_frame1 (int sig, struct k_sigaction *ka, siginfo_t *info, | ||
28 | sigset_t *set, struct pt_regs *regs); | ||
29 | #if PAGE_SHIFT > IA32_PAGE_SHIFT | ||
30 | extern int ia32_copy_ia64_partial_page_list(struct task_struct *, | ||
31 | unsigned long); | ||
32 | extern void ia32_drop_ia64_partial_page_list(struct task_struct *); | ||
33 | #else | ||
34 | # define ia32_copy_ia64_partial_page_list(a1, a2) 0 | ||
35 | # define ia32_drop_ia64_partial_page_list(a1) do { ; } while (0) | ||
36 | #endif | ||
37 | |||
38 | #endif /* !__ASSEMBLY__ */ | ||
39 | |||
40 | #endif /* _ASM_IA64_IA32_H */ | ||
diff --git a/arch/ia64/include/asm/mmzone.h b/arch/ia64/include/asm/mmzone.h index f2ca32069b3f..e0de61709cf1 100644 --- a/arch/ia64/include/asm/mmzone.h +++ b/arch/ia64/include/asm/mmzone.h | |||
@@ -19,16 +19,12 @@ | |||
19 | 19 | ||
20 | static inline int pfn_to_nid(unsigned long pfn) | 20 | static inline int pfn_to_nid(unsigned long pfn) |
21 | { | 21 | { |
22 | #ifdef CONFIG_NUMA | ||
23 | extern int paddr_to_nid(unsigned long); | 22 | extern int paddr_to_nid(unsigned long); |
24 | int nid = paddr_to_nid(pfn << PAGE_SHIFT); | 23 | int nid = paddr_to_nid(pfn << PAGE_SHIFT); |
25 | if (nid < 0) | 24 | if (nid < 0) |
26 | return 0; | 25 | return 0; |
27 | else | 26 | else |
28 | return nid; | 27 | return nid; |
29 | #else | ||
30 | return 0; | ||
31 | #endif | ||
32 | } | 28 | } |
33 | 29 | ||
34 | #ifdef CONFIG_IA64_DIG /* DIG systems are small */ | 30 | #ifdef CONFIG_IA64_DIG /* DIG systems are small */ |
diff --git a/arch/ia64/include/asm/pci.h b/arch/ia64/include/asm/pci.h index 55281aabe5f2..73b5f785e70c 100644 --- a/arch/ia64/include/asm/pci.h +++ b/arch/ia64/include/asm/pci.h | |||
@@ -56,20 +56,6 @@ pcibios_penalize_isa_irq (int irq, int active) | |||
56 | 56 | ||
57 | #include <asm-generic/pci-dma-compat.h> | 57 | #include <asm-generic/pci-dma-compat.h> |
58 | 58 | ||
59 | /* pci_unmap_{single,page} is not a nop, thus... */ | ||
60 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) \ | ||
61 | dma_addr_t ADDR_NAME; | ||
62 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) \ | ||
63 | __u32 LEN_NAME; | ||
64 | #define pci_unmap_addr(PTR, ADDR_NAME) \ | ||
65 | ((PTR)->ADDR_NAME) | ||
66 | #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) \ | ||
67 | (((PTR)->ADDR_NAME) = (VAL)) | ||
68 | #define pci_unmap_len(PTR, LEN_NAME) \ | ||
69 | ((PTR)->LEN_NAME) | ||
70 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) \ | ||
71 | (((PTR)->LEN_NAME) = (VAL)) | ||
72 | |||
73 | #ifdef CONFIG_PCI | 59 | #ifdef CONFIG_PCI |
74 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | 60 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, |
75 | enum pci_dma_burst_strategy *strat, | 61 | enum pci_dma_burst_strategy *strat, |
diff --git a/arch/ia64/include/asm/percpu.h b/arch/ia64/include/asm/percpu.h index 35d9aeb6d85f..14aa1c58912b 100644 --- a/arch/ia64/include/asm/percpu.h +++ b/arch/ia64/include/asm/percpu.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #define PERCPU_ENOUGH_ROOM PERCPU_PAGE_SIZE | 9 | #define PERCPU_ENOUGH_ROOM PERCPU_PAGE_SIZE |
10 | 10 | ||
11 | #ifdef __ASSEMBLY__ | 11 | #ifdef __ASSEMBLY__ |
12 | # define THIS_CPU(var) (per_cpu__##var) /* use this to mark accesses to per-CPU variables... */ | 12 | # define THIS_CPU(var) (var) /* use this to mark accesses to per-CPU variables... */ |
13 | #else /* !__ASSEMBLY__ */ | 13 | #else /* !__ASSEMBLY__ */ |
14 | 14 | ||
15 | 15 | ||
@@ -39,7 +39,10 @@ extern void *per_cpu_init(void); | |||
39 | * On the positive side, using __ia64_per_cpu_var() instead of __get_cpu_var() is slightly | 39 | * On the positive side, using __ia64_per_cpu_var() instead of __get_cpu_var() is slightly |
40 | * more efficient. | 40 | * more efficient. |
41 | */ | 41 | */ |
42 | #define __ia64_per_cpu_var(var) per_cpu__##var | 42 | #define __ia64_per_cpu_var(var) (*({ \ |
43 | __verify_pcpu_ptr(&(var)); \ | ||
44 | ((typeof(var) __kernel __force *)&(var)); \ | ||
45 | })) | ||
43 | 46 | ||
44 | #include <asm-generic/percpu.h> | 47 | #include <asm-generic/percpu.h> |
45 | 48 | ||
diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h index 69bf13857a9f..c3286f42e501 100644 --- a/arch/ia64/include/asm/pgtable.h +++ b/arch/ia64/include/asm/pgtable.h | |||
@@ -462,7 +462,7 @@ pte_same (pte_t a, pte_t b) | |||
462 | return pte_val(a) == pte_val(b); | 462 | return pte_val(a) == pte_val(b); |
463 | } | 463 | } |
464 | 464 | ||
465 | #define update_mmu_cache(vma, address, pte) do { } while (0) | 465 | #define update_mmu_cache(vma, address, ptep) do { } while (0) |
466 | 466 | ||
467 | extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; | 467 | extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; |
468 | extern void paging_init (void); | 468 | extern void paging_init (void); |
diff --git a/arch/ia64/include/asm/processor.h b/arch/ia64/include/asm/processor.h index 7fa90f73f6be..348e44d08ce3 100644 --- a/arch/ia64/include/asm/processor.h +++ b/arch/ia64/include/asm/processor.h | |||
@@ -270,23 +270,6 @@ typedef struct { | |||
270 | (int __user *) (addr)); \ | 270 | (int __user *) (addr)); \ |
271 | }) | 271 | }) |
272 | 272 | ||
273 | #ifdef CONFIG_IA32_SUPPORT | ||
274 | struct desc_struct { | ||
275 | unsigned int a, b; | ||
276 | }; | ||
277 | |||
278 | #define desc_empty(desc) (!((desc)->a | (desc)->b)) | ||
279 | #define desc_equal(desc1, desc2) (((desc1)->a == (desc2)->a) && ((desc1)->b == (desc2)->b)) | ||
280 | |||
281 | #define GDT_ENTRY_TLS_ENTRIES 3 | ||
282 | #define GDT_ENTRY_TLS_MIN 6 | ||
283 | #define GDT_ENTRY_TLS_MAX (GDT_ENTRY_TLS_MIN + GDT_ENTRY_TLS_ENTRIES - 1) | ||
284 | |||
285 | #define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8) | ||
286 | |||
287 | struct ia64_partial_page_list; | ||
288 | #endif | ||
289 | |||
290 | struct thread_struct { | 273 | struct thread_struct { |
291 | __u32 flags; /* various thread flags (see IA64_THREAD_*) */ | 274 | __u32 flags; /* various thread flags (see IA64_THREAD_*) */ |
292 | /* writing on_ustack is performance-critical, so it's worth spending 8 bits on it... */ | 275 | /* writing on_ustack is performance-critical, so it's worth spending 8 bits on it... */ |
@@ -298,29 +281,6 @@ struct thread_struct { | |||
298 | __u64 rbs_bot; /* the base address for the RBS */ | 281 | __u64 rbs_bot; /* the base address for the RBS */ |
299 | int last_fph_cpu; /* CPU that may hold the contents of f32-f127 */ | 282 | int last_fph_cpu; /* CPU that may hold the contents of f32-f127 */ |
300 | 283 | ||
301 | #ifdef CONFIG_IA32_SUPPORT | ||
302 | __u64 eflag; /* IA32 EFLAGS reg */ | ||
303 | __u64 fsr; /* IA32 floating pt status reg */ | ||
304 | __u64 fcr; /* IA32 floating pt control reg */ | ||
305 | __u64 fir; /* IA32 fp except. instr. reg */ | ||
306 | __u64 fdr; /* IA32 fp except. data reg */ | ||
307 | __u64 old_k1; /* old value of ar.k1 */ | ||
308 | __u64 old_iob; /* old IOBase value */ | ||
309 | struct ia64_partial_page_list *ppl; /* partial page list for 4K page size issue */ | ||
310 | /* cached TLS descriptors. */ | ||
311 | struct desc_struct tls_array[GDT_ENTRY_TLS_ENTRIES]; | ||
312 | |||
313 | # define INIT_THREAD_IA32 .eflag = 0, \ | ||
314 | .fsr = 0, \ | ||
315 | .fcr = 0x17800000037fULL, \ | ||
316 | .fir = 0, \ | ||
317 | .fdr = 0, \ | ||
318 | .old_k1 = 0, \ | ||
319 | .old_iob = 0, \ | ||
320 | .ppl = NULL, | ||
321 | #else | ||
322 | # define INIT_THREAD_IA32 | ||
323 | #endif /* CONFIG_IA32_SUPPORT */ | ||
324 | #ifdef CONFIG_PERFMON | 284 | #ifdef CONFIG_PERFMON |
325 | void *pfm_context; /* pointer to detailed PMU context */ | 285 | void *pfm_context; /* pointer to detailed PMU context */ |
326 | unsigned long pfm_needs_checking; /* when >0, pending perfmon work on kernel exit */ | 286 | unsigned long pfm_needs_checking; /* when >0, pending perfmon work on kernel exit */ |
@@ -342,7 +302,6 @@ struct thread_struct { | |||
342 | .rbs_bot = STACK_TOP - DEFAULT_USER_STACK_SIZE, \ | 302 | .rbs_bot = STACK_TOP - DEFAULT_USER_STACK_SIZE, \ |
343 | .task_size = DEFAULT_TASK_SIZE, \ | 303 | .task_size = DEFAULT_TASK_SIZE, \ |
344 | .last_fph_cpu = -1, \ | 304 | .last_fph_cpu = -1, \ |
345 | INIT_THREAD_IA32 \ | ||
346 | INIT_THREAD_PM \ | 305 | INIT_THREAD_PM \ |
347 | .dbr = {0, }, \ | 306 | .dbr = {0, }, \ |
348 | .ibr = {0, }, \ | 307 | .ibr = {0, }, \ |
@@ -485,11 +444,6 @@ extern void __ia64_load_fpu (struct ia64_fpreg *fph); | |||
485 | extern void ia64_save_debug_regs (unsigned long *save_area); | 444 | extern void ia64_save_debug_regs (unsigned long *save_area); |
486 | extern void ia64_load_debug_regs (unsigned long *save_area); | 445 | extern void ia64_load_debug_regs (unsigned long *save_area); |
487 | 446 | ||
488 | #ifdef CONFIG_IA32_SUPPORT | ||
489 | extern void ia32_save_state (struct task_struct *task); | ||
490 | extern void ia32_load_state (struct task_struct *task); | ||
491 | #endif | ||
492 | |||
493 | #define ia64_fph_enable() do { ia64_rsm(IA64_PSR_DFH); ia64_srlz_d(); } while (0) | 447 | #define ia64_fph_enable() do { ia64_rsm(IA64_PSR_DFH); ia64_srlz_d(); } while (0) |
494 | #define ia64_fph_disable() do { ia64_ssm(IA64_PSR_DFH); ia64_srlz_d(); } while (0) | 448 | #define ia64_fph_disable() do { ia64_ssm(IA64_PSR_DFH); ia64_srlz_d(); } while (0) |
495 | 449 | ||
diff --git a/arch/ia64/include/asm/ptrace.h b/arch/ia64/include/asm/ptrace.h index 14055c636adf..7ae9c3f15a1c 100644 --- a/arch/ia64/include/asm/ptrace.h +++ b/arch/ia64/include/asm/ptrace.h | |||
@@ -319,11 +319,7 @@ static inline unsigned long user_stack_pointer(struct pt_regs *regs) | |||
319 | ptrace_attach_sync_user_rbs(child) | 319 | ptrace_attach_sync_user_rbs(child) |
320 | 320 | ||
321 | #define arch_has_single_step() (1) | 321 | #define arch_has_single_step() (1) |
322 | extern void user_enable_single_step(struct task_struct *); | ||
323 | extern void user_disable_single_step(struct task_struct *); | ||
324 | |||
325 | #define arch_has_block_step() (1) | 322 | #define arch_has_block_step() (1) |
326 | extern void user_enable_block_step(struct task_struct *); | ||
327 | 323 | ||
328 | #endif /* !__KERNEL__ */ | 324 | #endif /* !__KERNEL__ */ |
329 | 325 | ||
diff --git a/arch/ia64/include/asm/scatterlist.h b/arch/ia64/include/asm/scatterlist.h index d6f57874041d..f299a4fb25c8 100644 --- a/arch/ia64/include/asm/scatterlist.h +++ b/arch/ia64/include/asm/scatterlist.h | |||
@@ -1,25 +1,7 @@ | |||
1 | #ifndef _ASM_IA64_SCATTERLIST_H | 1 | #ifndef _ASM_IA64_SCATTERLIST_H |
2 | #define _ASM_IA64_SCATTERLIST_H | 2 | #define _ASM_IA64_SCATTERLIST_H |
3 | 3 | ||
4 | /* | 4 | #include <asm-generic/scatterlist.h> |
5 | * Modified 1998-1999, 2001-2002, 2004 | ||
6 | * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co | ||
7 | */ | ||
8 | |||
9 | #include <asm/types.h> | ||
10 | |||
11 | struct scatterlist { | ||
12 | #ifdef CONFIG_DEBUG_SG | ||
13 | unsigned long sg_magic; | ||
14 | #endif | ||
15 | unsigned long page_link; | ||
16 | unsigned int offset; | ||
17 | unsigned int length; /* buffer length */ | ||
18 | |||
19 | dma_addr_t dma_address; | ||
20 | unsigned int dma_length; | ||
21 | }; | ||
22 | |||
23 | /* | 5 | /* |
24 | * It used to be that ISA_DMA_THRESHOLD had something to do with the | 6 | * It used to be that ISA_DMA_THRESHOLD had something to do with the |
25 | * DMA-limits of ISA-devices. Nowadays, its only remaining use (apart | 7 | * DMA-limits of ISA-devices. Nowadays, its only remaining use (apart |
@@ -29,10 +11,6 @@ struct scatterlist { | |||
29 | * that's 4GB - 1. | 11 | * that's 4GB - 1. |
30 | */ | 12 | */ |
31 | #define ISA_DMA_THRESHOLD 0xffffffff | 13 | #define ISA_DMA_THRESHOLD 0xffffffff |
32 | 14 | #define ARCH_HAS_SG_CHAIN | |
33 | #define sg_dma_len(sg) ((sg)->dma_length) | ||
34 | #define sg_dma_address(sg) ((sg)->dma_address) | ||
35 | |||
36 | #define ARCH_HAS_SG_CHAIN | ||
37 | 15 | ||
38 | #endif /* _ASM_IA64_SCATTERLIST_H */ | 16 | #endif /* _ASM_IA64_SCATTERLIST_H */ |
diff --git a/arch/ia64/include/asm/syscall.h b/arch/ia64/include/asm/syscall.h index 2f758a42f94b..a7ff1c6ab068 100644 --- a/arch/ia64/include/asm/syscall.h +++ b/arch/ia64/include/asm/syscall.h | |||
@@ -22,33 +22,18 @@ static inline long syscall_get_nr(struct task_struct *task, | |||
22 | if ((long)regs->cr_ifs < 0) /* Not a syscall */ | 22 | if ((long)regs->cr_ifs < 0) /* Not a syscall */ |
23 | return -1; | 23 | return -1; |
24 | 24 | ||
25 | #ifdef CONFIG_IA32_SUPPORT | ||
26 | if (IS_IA32_PROCESS(regs)) | ||
27 | return regs->r1; | ||
28 | #endif | ||
29 | |||
30 | return regs->r15; | 25 | return regs->r15; |
31 | } | 26 | } |
32 | 27 | ||
33 | static inline void syscall_rollback(struct task_struct *task, | 28 | static inline void syscall_rollback(struct task_struct *task, |
34 | struct pt_regs *regs) | 29 | struct pt_regs *regs) |
35 | { | 30 | { |
36 | #ifdef CONFIG_IA32_SUPPORT | ||
37 | if (IS_IA32_PROCESS(regs)) | ||
38 | regs->r8 = regs->r1; | ||
39 | #endif | ||
40 | |||
41 | /* do nothing */ | 31 | /* do nothing */ |
42 | } | 32 | } |
43 | 33 | ||
44 | static inline long syscall_get_error(struct task_struct *task, | 34 | static inline long syscall_get_error(struct task_struct *task, |
45 | struct pt_regs *regs) | 35 | struct pt_regs *regs) |
46 | { | 36 | { |
47 | #ifdef CONFIG_IA32_SUPPORT | ||
48 | if (IS_IA32_PROCESS(regs)) | ||
49 | return regs->r8; | ||
50 | #endif | ||
51 | |||
52 | return regs->r10 == -1 ? regs->r8:0; | 37 | return regs->r10 == -1 ? regs->r8:0; |
53 | } | 38 | } |
54 | 39 | ||
@@ -62,13 +47,6 @@ static inline void syscall_set_return_value(struct task_struct *task, | |||
62 | struct pt_regs *regs, | 47 | struct pt_regs *regs, |
63 | int error, long val) | 48 | int error, long val) |
64 | { | 49 | { |
65 | #ifdef CONFIG_IA32_SUPPORT | ||
66 | if (IS_IA32_PROCESS(regs)) { | ||
67 | regs->r8 = (long) error ? error : val; | ||
68 | return; | ||
69 | } | ||
70 | #endif | ||
71 | |||
72 | if (error) { | 50 | if (error) { |
73 | /* error < 0, but ia64 uses > 0 return value */ | 51 | /* error < 0, but ia64 uses > 0 return value */ |
74 | regs->r8 = -error; | 52 | regs->r8 = -error; |
@@ -89,37 +67,6 @@ static inline void syscall_get_arguments(struct task_struct *task, | |||
89 | { | 67 | { |
90 | BUG_ON(i + n > 6); | 68 | BUG_ON(i + n > 6); |
91 | 69 | ||
92 | #ifdef CONFIG_IA32_SUPPORT | ||
93 | if (IS_IA32_PROCESS(regs)) { | ||
94 | switch (i + n) { | ||
95 | case 6: | ||
96 | if (!n--) break; | ||
97 | *args++ = regs->r13; | ||
98 | case 5: | ||
99 | if (!n--) break; | ||
100 | *args++ = regs->r15; | ||
101 | case 4: | ||
102 | if (!n--) break; | ||
103 | *args++ = regs->r14; | ||
104 | case 3: | ||
105 | if (!n--) break; | ||
106 | *args++ = regs->r10; | ||
107 | case 2: | ||
108 | if (!n--) break; | ||
109 | *args++ = regs->r9; | ||
110 | case 1: | ||
111 | if (!n--) break; | ||
112 | *args++ = regs->r11; | ||
113 | case 0: | ||
114 | if (!n--) break; | ||
115 | default: | ||
116 | BUG(); | ||
117 | break; | ||
118 | } | ||
119 | |||
120 | return; | ||
121 | } | ||
122 | #endif | ||
123 | ia64_syscall_get_set_arguments(task, regs, i, n, args, 0); | 70 | ia64_syscall_get_set_arguments(task, regs, i, n, args, 0); |
124 | } | 71 | } |
125 | 72 | ||
@@ -130,34 +77,6 @@ static inline void syscall_set_arguments(struct task_struct *task, | |||
130 | { | 77 | { |
131 | BUG_ON(i + n > 6); | 78 | BUG_ON(i + n > 6); |
132 | 79 | ||
133 | #ifdef CONFIG_IA32_SUPPORT | ||
134 | if (IS_IA32_PROCESS(regs)) { | ||
135 | switch (i + n) { | ||
136 | case 6: | ||
137 | if (!n--) break; | ||
138 | regs->r13 = *args++; | ||
139 | case 5: | ||
140 | if (!n--) break; | ||
141 | regs->r15 = *args++; | ||
142 | case 4: | ||
143 | if (!n--) break; | ||
144 | regs->r14 = *args++; | ||
145 | case 3: | ||
146 | if (!n--) break; | ||
147 | regs->r10 = *args++; | ||
148 | case 2: | ||
149 | if (!n--) break; | ||
150 | regs->r9 = *args++; | ||
151 | case 1: | ||
152 | if (!n--) break; | ||
153 | regs->r11 = *args++; | ||
154 | case 0: | ||
155 | if (!n--) break; | ||
156 | } | ||
157 | |||
158 | return; | ||
159 | } | ||
160 | #endif | ||
161 | ia64_syscall_get_set_arguments(task, regs, i, n, args, 1); | 80 | ia64_syscall_get_set_arguments(task, regs, i, n, args, 1); |
162 | } | 81 | } |
163 | #endif /* _ASM_SYSCALL_H */ | 82 | #endif /* _ASM_SYSCALL_H */ |
diff --git a/arch/ia64/include/asm/system.h b/arch/ia64/include/asm/system.h index 927a381c20ca..9f342a574ce8 100644 --- a/arch/ia64/include/asm/system.h +++ b/arch/ia64/include/asm/system.h | |||
@@ -191,15 +191,6 @@ do { \ | |||
191 | 191 | ||
192 | #ifdef __KERNEL__ | 192 | #ifdef __KERNEL__ |
193 | 193 | ||
194 | #ifdef CONFIG_IA32_SUPPORT | ||
195 | # define IS_IA32_PROCESS(regs) (ia64_psr(regs)->is != 0) | ||
196 | #else | ||
197 | # define IS_IA32_PROCESS(regs) 0 | ||
198 | struct task_struct; | ||
199 | static inline void ia32_save_state(struct task_struct *t __attribute__((unused))){} | ||
200 | static inline void ia32_load_state(struct task_struct *t __attribute__((unused))){} | ||
201 | #endif | ||
202 | |||
203 | /* | 194 | /* |
204 | * Context switch from one thread to another. If the two threads have | 195 | * Context switch from one thread to another. If the two threads have |
205 | * different address spaces, schedule() has already taken care of | 196 | * different address spaces, schedule() has already taken care of |
@@ -233,7 +224,7 @@ extern void ia64_account_on_switch (struct task_struct *prev, struct task_struct | |||
233 | 224 | ||
234 | #define IA64_HAS_EXTRA_STATE(t) \ | 225 | #define IA64_HAS_EXTRA_STATE(t) \ |
235 | ((t)->thread.flags & (IA64_THREAD_DBG_VALID|IA64_THREAD_PM_VALID) \ | 226 | ((t)->thread.flags & (IA64_THREAD_DBG_VALID|IA64_THREAD_PM_VALID) \ |
236 | || IS_IA32_PROCESS(task_pt_regs(t)) || PERFMON_IS_SYSWIDE()) | 227 | || PERFMON_IS_SYSWIDE()) |
237 | 228 | ||
238 | #define __switch_to(prev,next,last) do { \ | 229 | #define __switch_to(prev,next,last) do { \ |
239 | IA64_ACCOUNT_ON_SWITCH(prev, next); \ | 230 | IA64_ACCOUNT_ON_SWITCH(prev, next); \ |
diff --git a/arch/ia64/include/asm/thread_info.h b/arch/ia64/include/asm/thread_info.h index 8ce2e388e37c..b6a5ba2aca34 100644 --- a/arch/ia64/include/asm/thread_info.h +++ b/arch/ia64/include/asm/thread_info.h | |||
@@ -102,7 +102,7 @@ struct thread_info { | |||
102 | #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */ | 102 | #define TIF_SINGLESTEP 4 /* restore singlestep on return to user mode */ |
103 | #define TIF_NOTIFY_RESUME 6 /* resumption notification requested */ | 103 | #define TIF_NOTIFY_RESUME 6 /* resumption notification requested */ |
104 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ | 104 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ |
105 | #define TIF_MEMDIE 17 | 105 | #define TIF_MEMDIE 17 /* is terminating due to OOM killer */ |
106 | #define TIF_MCA_INIT 18 /* this task is processing MCA or INIT */ | 106 | #define TIF_MCA_INIT 18 /* this task is processing MCA or INIT */ |
107 | #define TIF_DB_DISABLED 19 /* debug trap disabled for fsyscall */ | 107 | #define TIF_DB_DISABLED 19 /* debug trap disabled for fsyscall */ |
108 | #define TIF_FREEZE 20 /* is freezing for suspend */ | 108 | #define TIF_FREEZE 20 /* is freezing for suspend */ |
diff --git a/arch/ia64/include/asm/topology.h b/arch/ia64/include/asm/topology.h index d323071d0f91..09f646753d1a 100644 --- a/arch/ia64/include/asm/topology.h +++ b/arch/ia64/include/asm/topology.h | |||
@@ -26,11 +26,6 @@ | |||
26 | #define RECLAIM_DISTANCE 15 | 26 | #define RECLAIM_DISTANCE 15 |
27 | 27 | ||
28 | /* | 28 | /* |
29 | * Returns the number of the node containing CPU 'cpu' | ||
30 | */ | ||
31 | #define cpu_to_node(cpu) (int)(cpu_to_node_map[cpu]) | ||
32 | |||
33 | /* | ||
34 | * Returns a bitmask of CPUs on Node 'node'. | 29 | * Returns a bitmask of CPUs on Node 'node'. |
35 | */ | 30 | */ |
36 | #define cpumask_of_node(node) ((node) == -1 ? \ | 31 | #define cpumask_of_node(node) ((node) == -1 ? \ |
diff --git a/arch/ia64/include/asm/unistd.h b/arch/ia64/include/asm/unistd.h index 10a8f21ca9e3..bb8b0fff32b3 100644 --- a/arch/ia64/include/asm/unistd.h +++ b/arch/ia64/include/asm/unistd.h | |||
@@ -335,20 +335,6 @@ | |||
335 | #define __ARCH_WANT_SYS_RT_SIGACTION | 335 | #define __ARCH_WANT_SYS_RT_SIGACTION |
336 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND | 336 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
337 | 337 | ||
338 | #ifdef CONFIG_IA32_SUPPORT | ||
339 | # define __ARCH_WANT_SYS_FADVISE64 | ||
340 | # define __ARCH_WANT_SYS_GETPGRP | ||
341 | # define __ARCH_WANT_SYS_LLSEEK | ||
342 | # define __ARCH_WANT_SYS_NICE | ||
343 | # define __ARCH_WANT_SYS_OLD_GETRLIMIT | ||
344 | # define __ARCH_WANT_SYS_OLDUMOUNT | ||
345 | # define __ARCH_WANT_SYS_PAUSE | ||
346 | # define __ARCH_WANT_SYS_SIGPENDING | ||
347 | # define __ARCH_WANT_SYS_SIGPROCMASK | ||
348 | # define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND | ||
349 | # define __ARCH_WANT_COMPAT_SYS_TIME | ||
350 | #endif | ||
351 | |||
352 | #if !defined(__ASSEMBLY__) && !defined(ASSEMBLER) | 338 | #if !defined(__ASSEMBLY__) && !defined(ASSEMBLER) |
353 | 339 | ||
354 | #include <linux/types.h> | 340 | #include <linux/types.h> |
diff --git a/arch/ia64/include/asm/xen/events.h b/arch/ia64/include/asm/xen/events.h index b8370c8b6198..baa74c82aa71 100644 --- a/arch/ia64/include/asm/xen/events.h +++ b/arch/ia64/include/asm/xen/events.h | |||
@@ -36,10 +36,6 @@ static inline int xen_irqs_disabled(struct pt_regs *regs) | |||
36 | return !(ia64_psr(regs)->i); | 36 | return !(ia64_psr(regs)->i); |
37 | } | 37 | } |
38 | 38 | ||
39 | static inline void handle_irq(int irq, struct pt_regs *regs) | ||
40 | { | ||
41 | __do_IRQ(irq); | ||
42 | } | ||
43 | #define irq_ctx_init(cpu) do { } while (0) | 39 | #define irq_ctx_init(cpu) do { } while (0) |
44 | 40 | ||
45 | #endif /* _ASM_IA64_XEN_EVENTS_H */ | 41 | #endif /* _ASM_IA64_XEN_EVENTS_H */ |