diff options
author | Russell King <rmk@arm.linux.org.uk> | 2016-03-14 22:29:08 +0000 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2018-03-20 14:58:05 +0000 |
commit | 7c78356e8f45ded79ceb9625e4990f61298113ba (patch) | |
tree | 5df6b4b1c1e39431892b716916711c77544d7c9e /kexec/crashdump-elf.c | |
parent | f57f0bf8975d24fe1e7c4936fdfb5c3b123ab75f (diff) |
remaining TI changesti-keystone2
Diffstat (limited to 'kexec/crashdump-elf.c')
-rw-r--r-- | kexec/crashdump-elf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kexec/crashdump-elf.c b/kexec/crashdump-elf.c index b8bb686..045f6b5 100644 --- a/kexec/crashdump-elf.c +++ b/kexec/crashdump-elf.c @@ -152,7 +152,7 @@ int FUNC(struct kexec_info *info, bufp += sizeof(PHDR); phdr->p_type = PT_NOTE; phdr->p_flags = 0; - phdr->p_offset = phdr->p_paddr = notes_addr; + phdr->p_offset = phdr->p_paddr = notes_addr - K2_ALIAS_OFFSET; phdr->p_vaddr = 0; phdr->p_filesz = phdr->p_memsz = notes_len; /* Do we need any alignment of segments? */ @@ -203,6 +203,8 @@ int FUNC(struct kexec_info *info, continue; mstart = range->start; mend = range->end; + if (mend >= 0x100000000ULL) + continue; if (!mstart && !mend) continue; phdr = (PHDR *) bufp; |