Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: [IA64] prevent ia64 from invoking irq handlers on offline CPUs [IA64] arch/ia64/sn/pci/tioca_provider.c: introduce missing kfree [IA64] fix up bte.h [IA64] fix compile failure with non modular builds
This commit is contained in:
commit
c529b7e2db
|
@ -266,4 +266,19 @@ do { \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* format for entries in the Global Offset Table
|
||||||
|
*/
|
||||||
|
struct got_entry {
|
||||||
|
uint64_t val;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Layout of the Function Descriptor
|
||||||
|
*/
|
||||||
|
struct fdesc {
|
||||||
|
uint64_t ip;
|
||||||
|
uint64_t gp;
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* _ASM_IA64_ELF_H */
|
#endif /* _ASM_IA64_ELF_H */
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
* David Mosberger-Tang <davidm@hpl.hp.com>
|
* David Mosberger-Tang <davidm@hpl.hp.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <linux/elf.h>
|
||||||
|
#include <linux/uaccess.h>
|
||||||
#include <asm-generic/sections.h>
|
#include <asm-generic/sections.h>
|
||||||
|
|
||||||
extern char __per_cpu_start[], __per_cpu_end[], __phys_per_cpu_start[];
|
extern char __per_cpu_start[], __per_cpu_end[], __phys_per_cpu_start[];
|
||||||
|
@ -22,7 +24,16 @@ extern char __start_unwind[], __end_unwind[];
|
||||||
extern char __start_ivt_text[], __end_ivt_text[];
|
extern char __start_ivt_text[], __end_ivt_text[];
|
||||||
|
|
||||||
#undef dereference_function_descriptor
|
#undef dereference_function_descriptor
|
||||||
void *dereference_function_descriptor(void *);
|
static inline void *dereference_function_descriptor(void *ptr)
|
||||||
|
{
|
||||||
|
struct fdesc *desc = ptr;
|
||||||
|
void *p;
|
||||||
|
|
||||||
|
if (!probe_kernel_address(&desc->ip, p))
|
||||||
|
ptr = p;
|
||||||
|
return ptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif /* _ASM_IA64_SECTIONS_H */
|
#endif /* _ASM_IA64_SECTIONS_H */
|
||||||
|
|
||||||
|
|
|
@ -223,10 +223,11 @@ extern void bte_error_handler(unsigned long);
|
||||||
* until the transfer is complete. In order to get the asynch
|
* until the transfer is complete. In order to get the asynch
|
||||||
* version of bte_copy, you must perform this check yourself.
|
* version of bte_copy, you must perform this check yourself.
|
||||||
*/
|
*/
|
||||||
#define BTE_UNALIGNED_COPY(src, dest, len, mode) \
|
#define BTE_UNALIGNED_COPY(src, dest, len, mode) \
|
||||||
(((len & L1_CACHE_MASK) || (src & L1_CACHE_MASK) || \
|
(((len & (L1_CACHE_BYTES - 1)) || \
|
||||||
(dest & L1_CACHE_MASK)) ? \
|
(src & (L1_CACHE_BYTES - 1)) || \
|
||||||
bte_unaligned_copy(src, dest, len, mode) : \
|
(dest & (L1_CACHE_BYTES - 1))) ? \
|
||||||
|
bte_unaligned_copy(src, dest, len, mode) : \
|
||||||
bte_copy(src, dest, len, mode, NULL))
|
bte_copy(src, dest, len, mode, NULL))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,9 @@
|
||||||
#include <linux/elf.h>
|
#include <linux/elf.h>
|
||||||
#include <linux/moduleloader.h>
|
#include <linux/moduleloader.h>
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
#include <linux/uaccess.h>
|
|
||||||
#include <linux/vmalloc.h>
|
#include <linux/vmalloc.h>
|
||||||
|
|
||||||
#include <asm/patch.h>
|
#include <asm/patch.h>
|
||||||
#include <asm/sections.h>
|
|
||||||
#include <asm/unaligned.h>
|
#include <asm/unaligned.h>
|
||||||
|
|
||||||
#define ARCH_MODULE_DEBUG 0
|
#define ARCH_MODULE_DEBUG 0
|
||||||
|
@ -137,15 +135,6 @@ static const char *reloc_name[256] = {
|
||||||
|
|
||||||
#undef N
|
#undef N
|
||||||
|
|
||||||
struct got_entry {
|
|
||||||
uint64_t val;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct fdesc {
|
|
||||||
uint64_t ip;
|
|
||||||
uint64_t gp;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Opaque struct for insns, to protect against derefs. */
|
/* Opaque struct for insns, to protect against derefs. */
|
||||||
struct insn;
|
struct insn;
|
||||||
|
|
||||||
|
@ -943,13 +932,3 @@ module_arch_cleanup (struct module *mod)
|
||||||
if (mod->arch.core_unw_table)
|
if (mod->arch.core_unw_table)
|
||||||
unw_remove_unwind_table(mod->arch.core_unw_table);
|
unw_remove_unwind_table(mod->arch.core_unw_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *dereference_function_descriptor(void *ptr)
|
|
||||||
{
|
|
||||||
struct fdesc *desc = ptr;
|
|
||||||
void *p;
|
|
||||||
|
|
||||||
if (!probe_kernel_address(&desc->ip, p))
|
|
||||||
ptr = p;
|
|
||||||
return ptr;
|
|
||||||
}
|
|
||||||
|
|
|
@ -741,16 +741,14 @@ int __cpu_disable(void)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu_clear(cpu, cpu_online_map);
|
|
||||||
|
|
||||||
if (migrate_platform_irqs(cpu)) {
|
if (migrate_platform_irqs(cpu)) {
|
||||||
cpu_set(cpu, cpu_online_map);
|
cpu_set(cpu, cpu_online_map);
|
||||||
return (-EBUSY);
|
return (-EBUSY);
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_siblinginfo(cpu);
|
remove_siblinginfo(cpu);
|
||||||
cpu_clear(cpu, cpu_online_map);
|
|
||||||
fixup_irqs();
|
fixup_irqs();
|
||||||
|
cpu_clear(cpu, cpu_online_map);
|
||||||
local_flush_tlb_all();
|
local_flush_tlb_all();
|
||||||
cpu_clear(cpu, cpu_callin_map);
|
cpu_clear(cpu, cpu_callin_map);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -420,8 +420,10 @@ tioca_dma_mapped(struct pci_dev *pdev, u64 paddr, size_t req_size)
|
||||||
entry = find_next_zero_bit(map, mapsize, last_entry);
|
entry = find_next_zero_bit(map, mapsize, last_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entry > mapsize)
|
if (entry > mapsize) {
|
||||||
|
kfree(ca_dmamap);
|
||||||
goto map_return;
|
goto map_return;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < entries; i++)
|
for (i = 0; i < entries; i++)
|
||||||
set_bit(entry + i, map);
|
set_bit(entry + i, map);
|
||||||
|
|
Loading…
Reference in New Issue