kexec-tools: 1k alignment comment
This patch adds the 1k alignment comment as suggested by Vivek.
Signed-off-by: Magnus Damm <[EMAIL PROTECTED]>
---
kexec/crashdump-elf.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
--- 0001/kexec/crashdump-elf.c
+++ work/kexec/crashdump-elf.c 2006-11-27 15:06:11.000000000 +0900
@@ -11,10 +11,9 @@ int FUNC(struct kexec_info *info,
{
EHDR *elf;
PHDR *phdr;
- int i, sz;
+ int i, sz, align;
char *bufp;
long int nr_cpus = 0;
- int align = 1024;
uint64_t notes_addr, notes_len;
int (*get_note_info)(int cpu, uint64_t *addr, uint64_t *len);
@@ -53,6 +52,13 @@ int FUNC(struct kexec_info *info,
sz += sizeof(PHDR);
}
+ /*
+ * The kernel command line option memmap= requires 1k granularity,
+ * therefore we align the size to 1024 here.
+ */
+
+ align = 1024;
+
sz += align - 1;
sz &= ~(align - 1);
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot