gencore: Zero-clear ELF header and memory range table

Change-Id: I0ff38c1b0e1e6ef204cb3605c0178848dbe40bfb
Fujitsu: POSTK_TEMP_FIX_63
This commit is contained in:
Masamichi Takagi
2019-01-29 09:42:49 +09:00
committed by Dominique Martinet
parent b8155cc618
commit 69846345de

View File

@ -310,9 +310,7 @@ int gencore(struct thread *thread, void *regs,
dkprintf("could not alloc a elf header table.\n");
goto fail;
}
#ifdef POSTK_DEBUG_TEMP_FIX_63 /* Add core table and elf header initialization */
memset(eh, 0, sizeof(*eh));
#endif /* POSTK_DEBUG_TEMP_FIX_63 */
offset += sizeof(*eh);
fill_elf_header(eh, segs);
@ -391,9 +389,7 @@ int gencore(struct thread *thread, void *regs,
dkprintf("could not alloc a coretable.\n");
goto fail;
}
#ifdef POSTK_DEBUG_TEMP_FIX_63 /* Add core table and elf header initialization */
memset(ct, 0, sizeof(*ct));
#endif /* POSTK_DEBUG_TEMP_FIX_63 */
#ifdef POSTK_DEBUG_TEMP_FIX_39
ct[0].addr = virt_to_phys(eh); /* ELF header */