diff options
author | Simon Horman <horms@verge.net.au> | 2008-10-08 17:08:51 +1100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-10-08 17:08:51 +1100 |
commit | 7210dc1f75575412b6c29b004614194b9d3ce956 (patch) | |
tree | 487326365418397d204789774380afafbb73cdeb | |
parent | 4bd67d530f92313fd66bb462d96e3995b8e08af3 (diff) |
ia64: use generic put_unaligned()
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/ia64/kexec-elf-rel-ia64.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/kexec/arch/ia64/kexec-elf-rel-ia64.c b/kexec/arch/ia64/kexec-elf-rel-ia64.c index 84cfd3c..cfb1061 100644 --- a/kexec/arch/ia64/kexec-elf-rel-ia64.c +++ b/kexec/arch/ia64/kexec-elf-rel-ia64.c @@ -66,15 +66,6 @@ ia64_patch (uint64_t insn_addr, uint64_t mask, uint64_t val) b[1] = (b1 & ~m1) | (v1 & m1); } -static void -put_unaligned64(unsigned long val, unsigned char *location) -{ - unsigned char *src = (unsigned char *)&val; - int i; - for (i = 0; i < sizeof(long); i++) - *location++ = *src++; -} - static inline uint64_t bundle (const uint64_t insn) { @@ -136,7 +127,7 @@ void machine_apply_elf_rel(struct mem_ehdr *ehdr, unsigned long r_type, break; case R_IA64_PCREL64LSB: { value = value - address; - put_unaligned64(value, location); + put_unaligned(value, (uint64_t *)location); } break; case R_IA64_GPREL22: case R_IA64_LTOFF22X: |