diff options
Diffstat (limited to 'arch/ia64/kernel')
-rw-r--r-- | arch/ia64/kernel/acpi.c | 4 | ||||
-rw-r--r-- | arch/ia64/kernel/asm-offsets.c | 32 | ||||
-rw-r--r-- | arch/ia64/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/head.S | 3 | ||||
-rw-r--r-- | arch/ia64/kernel/nr-irqs.c | 4 | ||||
-rw-r--r-- | arch/ia64/kernel/paravirt_inst.h | 3 | ||||
-rw-r--r-- | arch/ia64/kernel/paravirt_patchlist.h | 4 | ||||
-rw-r--r-- | arch/ia64/kernel/uncached.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/vmlinux.lds.S | 6 |
9 files changed, 3 insertions, 57 deletions
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index 59d52e3aef12..07d209c9507f 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c | |||
@@ -53,7 +53,6 @@ | |||
53 | #include <asm/numa.h> | 53 | #include <asm/numa.h> |
54 | #include <asm/sal.h> | 54 | #include <asm/sal.h> |
55 | #include <asm/cyclone.h> | 55 | #include <asm/cyclone.h> |
56 | #include <asm/xen/hypervisor.h> | ||
57 | 56 | ||
58 | #define BAD_MADT_ENTRY(entry, end) ( \ | 57 | #define BAD_MADT_ENTRY(entry, end) ( \ |
59 | (!entry) || (unsigned long)entry + sizeof(*entry) > end || \ | 58 | (!entry) || (unsigned long)entry + sizeof(*entry) > end || \ |
@@ -61,7 +60,6 @@ | |||
61 | 60 | ||
62 | #define PREFIX "ACPI: " | 61 | #define PREFIX "ACPI: " |
63 | 62 | ||
64 | u32 acpi_rsdt_forced; | ||
65 | unsigned int acpi_cpei_override; | 63 | unsigned int acpi_cpei_override; |
66 | unsigned int acpi_cpei_phys_cpuid; | 64 | unsigned int acpi_cpei_phys_cpuid; |
67 | 65 | ||
@@ -120,8 +118,6 @@ acpi_get_sysname(void) | |||
120 | return "uv"; | 118 | return "uv"; |
121 | else | 119 | else |
122 | return "sn2"; | 120 | return "sn2"; |
123 | } else if (xen_pv_domain() && !strcmp(hdr->oem_id, "XEN")) { | ||
124 | return "xen"; | ||
125 | } | 121 | } |
126 | 122 | ||
127 | #ifdef CONFIG_INTEL_IOMMU | 123 | #ifdef CONFIG_INTEL_IOMMU |
diff --git a/arch/ia64/kernel/asm-offsets.c b/arch/ia64/kernel/asm-offsets.c index 46c9e3007315..60ef83e6db71 100644 --- a/arch/ia64/kernel/asm-offsets.c +++ b/arch/ia64/kernel/asm-offsets.c | |||
@@ -16,9 +16,6 @@ | |||
16 | #include <asm/sigcontext.h> | 16 | #include <asm/sigcontext.h> |
17 | #include <asm/mca.h> | 17 | #include <asm/mca.h> |
18 | 18 | ||
19 | #include <asm/xen/interface.h> | ||
20 | #include <asm/xen/hypervisor.h> | ||
21 | |||
22 | #include "../kernel/sigframe.h" | 19 | #include "../kernel/sigframe.h" |
23 | #include "../kernel/fsyscall_gtod_data.h" | 20 | #include "../kernel/fsyscall_gtod_data.h" |
24 | 21 | ||
@@ -290,33 +287,4 @@ void foo(void) | |||
290 | DEFINE(IA64_ITC_LASTCYCLE_OFFSET, | 287 | DEFINE(IA64_ITC_LASTCYCLE_OFFSET, |
291 | offsetof (struct itc_jitter_data_t, itc_lastcycle)); | 288 | offsetof (struct itc_jitter_data_t, itc_lastcycle)); |
292 | 289 | ||
293 | #ifdef CONFIG_XEN | ||
294 | BLANK(); | ||
295 | |||
296 | DEFINE(XEN_NATIVE_ASM, XEN_NATIVE); | ||
297 | DEFINE(XEN_PV_DOMAIN_ASM, XEN_PV_DOMAIN); | ||
298 | |||
299 | #define DEFINE_MAPPED_REG_OFS(sym, field) \ | ||
300 | DEFINE(sym, (XMAPPEDREGS_OFS + offsetof(struct mapped_regs, field))) | ||
301 | |||
302 | DEFINE_MAPPED_REG_OFS(XSI_PSR_I_ADDR_OFS, interrupt_mask_addr); | ||
303 | DEFINE_MAPPED_REG_OFS(XSI_IPSR_OFS, ipsr); | ||
304 | DEFINE_MAPPED_REG_OFS(XSI_IIP_OFS, iip); | ||
305 | DEFINE_MAPPED_REG_OFS(XSI_IFS_OFS, ifs); | ||
306 | DEFINE_MAPPED_REG_OFS(XSI_PRECOVER_IFS_OFS, precover_ifs); | ||
307 | DEFINE_MAPPED_REG_OFS(XSI_ISR_OFS, isr); | ||
308 | DEFINE_MAPPED_REG_OFS(XSI_IFA_OFS, ifa); | ||
309 | DEFINE_MAPPED_REG_OFS(XSI_IIPA_OFS, iipa); | ||
310 | DEFINE_MAPPED_REG_OFS(XSI_IIM_OFS, iim); | ||
311 | DEFINE_MAPPED_REG_OFS(XSI_IHA_OFS, iha); | ||
312 | DEFINE_MAPPED_REG_OFS(XSI_ITIR_OFS, itir); | ||
313 | DEFINE_MAPPED_REG_OFS(XSI_PSR_IC_OFS, interrupt_collection_enabled); | ||
314 | DEFINE_MAPPED_REG_OFS(XSI_BANKNUM_OFS, banknum); | ||
315 | DEFINE_MAPPED_REG_OFS(XSI_BANK0_R16_OFS, bank0_regs[0]); | ||
316 | DEFINE_MAPPED_REG_OFS(XSI_BANK1_R16_OFS, bank1_regs[0]); | ||
317 | DEFINE_MAPPED_REG_OFS(XSI_B0NATS_OFS, vbnat); | ||
318 | DEFINE_MAPPED_REG_OFS(XSI_B1NATS_OFS, vnat); | ||
319 | DEFINE_MAPPED_REG_OFS(XSI_ITC_OFFSET_OFS, itc_offset); | ||
320 | DEFINE_MAPPED_REG_OFS(XSI_ITC_LAST_OFS, itc_last); | ||
321 | #endif /* CONFIG_XEN */ | ||
322 | } | 290 | } |
diff --git a/arch/ia64/kernel/entry.S b/arch/ia64/kernel/entry.S index ddea607f948a..fa8d61a312a7 100644 --- a/arch/ia64/kernel/entry.S +++ b/arch/ia64/kernel/entry.S | |||
@@ -1773,6 +1773,8 @@ sys_call_table: | |||
1773 | data8 sys_process_vm_writev | 1773 | data8 sys_process_vm_writev |
1774 | data8 sys_accept4 | 1774 | data8 sys_accept4 |
1775 | data8 sys_finit_module // 1335 | 1775 | data8 sys_finit_module // 1335 |
1776 | data8 sys_sched_setattr | ||
1777 | data8 sys_sched_getattr | ||
1776 | 1778 | ||
1777 | .org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls | 1779 | .org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls |
1778 | #endif /* __IA64_ASM_PARAVIRTUALIZED_NATIVE */ | 1780 | #endif /* __IA64_ASM_PARAVIRTUALIZED_NATIVE */ |
diff --git a/arch/ia64/kernel/head.S b/arch/ia64/kernel/head.S index 991ca336b8a2..e6f80fcf013b 100644 --- a/arch/ia64/kernel/head.S +++ b/arch/ia64/kernel/head.S | |||
@@ -416,8 +416,6 @@ start_ap: | |||
416 | 416 | ||
417 | default_setup_hook = 0 // Currently nothing needs to be done. | 417 | default_setup_hook = 0 // Currently nothing needs to be done. |
418 | 418 | ||
419 | .weak xen_setup_hook | ||
420 | |||
421 | .global hypervisor_type | 419 | .global hypervisor_type |
422 | hypervisor_type: | 420 | hypervisor_type: |
423 | data8 PARAVIRT_HYPERVISOR_TYPE_DEFAULT | 421 | data8 PARAVIRT_HYPERVISOR_TYPE_DEFAULT |
@@ -426,7 +424,6 @@ hypervisor_type: | |||
426 | 424 | ||
427 | hypervisor_setup_hooks: | 425 | hypervisor_setup_hooks: |
428 | data8 default_setup_hook | 426 | data8 default_setup_hook |
429 | data8 xen_setup_hook | ||
430 | num_hypervisor_hooks = (. - hypervisor_setup_hooks) / 8 | 427 | num_hypervisor_hooks = (. - hypervisor_setup_hooks) / 8 |
431 | .previous | 428 | .previous |
432 | 429 | ||
diff --git a/arch/ia64/kernel/nr-irqs.c b/arch/ia64/kernel/nr-irqs.c index ee564575148e..f6769cd54bd9 100644 --- a/arch/ia64/kernel/nr-irqs.c +++ b/arch/ia64/kernel/nr-irqs.c | |||
@@ -10,15 +10,11 @@ | |||
10 | #include <linux/kbuild.h> | 10 | #include <linux/kbuild.h> |
11 | #include <linux/threads.h> | 11 | #include <linux/threads.h> |
12 | #include <asm/native/irq.h> | 12 | #include <asm/native/irq.h> |
13 | #include <asm/xen/irq.h> | ||
14 | 13 | ||
15 | void foo(void) | 14 | void foo(void) |
16 | { | 15 | { |
17 | union paravirt_nr_irqs_max { | 16 | union paravirt_nr_irqs_max { |
18 | char ia64_native_nr_irqs[IA64_NATIVE_NR_IRQS]; | 17 | char ia64_native_nr_irqs[IA64_NATIVE_NR_IRQS]; |
19 | #ifdef CONFIG_XEN | ||
20 | char xen_nr_irqs[XEN_NR_IRQS]; | ||
21 | #endif | ||
22 | }; | 18 | }; |
23 | 19 | ||
24 | DEFINE(NR_IRQS, sizeof (union paravirt_nr_irqs_max)); | 20 | DEFINE(NR_IRQS, sizeof (union paravirt_nr_irqs_max)); |
diff --git a/arch/ia64/kernel/paravirt_inst.h b/arch/ia64/kernel/paravirt_inst.h index 64d6d810c64b..1ad7512b5f65 100644 --- a/arch/ia64/kernel/paravirt_inst.h +++ b/arch/ia64/kernel/paravirt_inst.h | |||
@@ -22,9 +22,6 @@ | |||
22 | 22 | ||
23 | #ifdef __IA64_ASM_PARAVIRTUALIZED_PVCHECK | 23 | #ifdef __IA64_ASM_PARAVIRTUALIZED_PVCHECK |
24 | #include <asm/native/pvchk_inst.h> | 24 | #include <asm/native/pvchk_inst.h> |
25 | #elif defined(__IA64_ASM_PARAVIRTUALIZED_XEN) | ||
26 | #include <asm/xen/inst.h> | ||
27 | #include <asm/xen/minstate.h> | ||
28 | #else | 25 | #else |
29 | #include <asm/native/inst.h> | 26 | #include <asm/native/inst.h> |
30 | #endif | 27 | #endif |
diff --git a/arch/ia64/kernel/paravirt_patchlist.h b/arch/ia64/kernel/paravirt_patchlist.h index 0684aa6c6507..67cffc3643a3 100644 --- a/arch/ia64/kernel/paravirt_patchlist.h +++ b/arch/ia64/kernel/paravirt_patchlist.h | |||
@@ -20,9 +20,5 @@ | |||
20 | * | 20 | * |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #if defined(__IA64_GATE_PARAVIRTUALIZED_XEN) | ||
24 | #include <asm/xen/patchlist.h> | ||
25 | #else | ||
26 | #include <asm/native/patchlist.h> | 23 | #include <asm/native/patchlist.h> |
27 | #endif | ||
28 | 24 | ||
diff --git a/arch/ia64/kernel/uncached.c b/arch/ia64/kernel/uncached.c index a96bcf83a735..20e8a9b21d75 100644 --- a/arch/ia64/kernel/uncached.c +++ b/arch/ia64/kernel/uncached.c | |||
@@ -98,7 +98,7 @@ static int uncached_add_chunk(struct uncached_pool *uc_pool, int nid) | |||
98 | /* attempt to allocate a granule's worth of cached memory pages */ | 98 | /* attempt to allocate a granule's worth of cached memory pages */ |
99 | 99 | ||
100 | page = alloc_pages_exact_node(nid, | 100 | page = alloc_pages_exact_node(nid, |
101 | GFP_KERNEL | __GFP_ZERO | GFP_THISNODE, | 101 | GFP_KERNEL | __GFP_ZERO | __GFP_THISNODE, |
102 | IA64_GRANULE_SHIFT-PAGE_SHIFT); | 102 | IA64_GRANULE_SHIFT-PAGE_SHIFT); |
103 | if (!page) { | 103 | if (!page) { |
104 | mutex_unlock(&uc_pool->add_chunk_mutex); | 104 | mutex_unlock(&uc_pool->add_chunk_mutex); |
diff --git a/arch/ia64/kernel/vmlinux.lds.S b/arch/ia64/kernel/vmlinux.lds.S index 0ccb28fab27e..84f8a52ac5ae 100644 --- a/arch/ia64/kernel/vmlinux.lds.S +++ b/arch/ia64/kernel/vmlinux.lds.S | |||
@@ -182,12 +182,6 @@ SECTIONS { | |||
182 | __start_gate_section = .; | 182 | __start_gate_section = .; |
183 | *(.data..gate) | 183 | *(.data..gate) |
184 | __stop_gate_section = .; | 184 | __stop_gate_section = .; |
185 | #ifdef CONFIG_XEN | ||
186 | . = ALIGN(PAGE_SIZE); | ||
187 | __xen_start_gate_section = .; | ||
188 | *(.data..gate.xen) | ||
189 | __xen_stop_gate_section = .; | ||
190 | #endif | ||
191 | } | 185 | } |
192 | /* | 186 | /* |
193 | * make sure the gate page doesn't expose | 187 | * make sure the gate page doesn't expose |