Re: [PATCH v2] riscv: ax25: bypass malloc when spl fit boots from ram

2023-01-03 Thread Rick Chen
> Hi Rick, > > On 1/3/23 02:20, Rick Chen wrote: > > When fit image boots from ram, the payload will > > be prepared in the address of SPL_LOAD_FIT_ADDRESS. > > In spl fit generic flow, it will malloc another > > memory address and copy whole fit image to this > > malloc address. But it is

Re: [PATCH v2] riscv: ax25: bypass malloc when spl fit boots from ram

2023-01-03 Thread Samuel Holland
Hi Rick, On 1/3/23 02:20, Rick Chen wrote: > When fit image boots from ram, the payload will > be prepared in the address of SPL_LOAD_FIT_ADDRESS. > In spl fit generic flow, it will malloc another > memory address and copy whole fit image to this > malloc address. But it is un-necessary for

[PATCH v2] riscv: ax25: bypass malloc when spl fit boots from ram

2023-01-03 Thread Rick Chen
When fit image boots from ram, the payload will be prepared in the address of SPL_LOAD_FIT_ADDRESS. In spl fit generic flow, it will malloc another memory address and copy whole fit image to this malloc address. But it is un-necessary for booting from RAM. This patch improves this flow by