Re: [PATCH v3 1/2] riscv: ax25: bypass malloc when spl fit boots from ram

2023-01-31 Thread Leo Liang
On Wed, Jan 04, 2023 at 09:55:43AM +0800, 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-nece

[PATCH v3 1/2] 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 declare