Re: [PATCH 6/9] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-09-11 Thread AKASHI Takahiro
On Mon, Sep 11, 2017 at 02:47:54PM +0800, Dave Young wrote: > Hi, > > On 09/08/17 at 12:16pm, AKASHI Takahiro wrote: > > load_other_segments() sets up and adds all the memory segments necessary > > other than kernel, including initrd, device-tree blob and purgatory. > > Most of the code was borrow

Re: [PATCH 6/9] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-09-11 Thread Dave Young
> > +int arch_kimage_file_post_load_cleanup(struct kimage *image) > > +{ > > + vfree(image->arch.dtb_buf); > > + image->arch.dtb_buf = NULL; > > + > > + vfree(image->arch.elf_headers); > > + image->arch.elf_headers = NULL; > > + image->arch.elf_headers_sz = 0; > > + > > + if (!image->fo

Re: [PATCH 6/9] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-09-10 Thread Dave Young
Hi, On 09/08/17 at 12:16pm, AKASHI Takahiro wrote: > load_other_segments() sets up and adds all the memory segments necessary > other than kernel, including initrd, device-tree blob and purgatory. > Most of the code was borrowed from kexec-tools' counterpart. > > In addition, arch_kexec_image_pro