Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-30 Thread Simon Glass
Hi Masahiro, On 28 May 2018 at 23:16, Masahiro Yamada wrote: > 2018-05-26 11:06 GMT+09:00 Simon Glass : >> +Masahiro >> >> On 25 May 2018 at 02:50, Ley Foon Tan wrote: >>> >>> On Fri, May 25, 2018 at 11:33 AM, Simon Glass wrote: >>> > Hi, >>> > >>> > On 24 May 2018 at 21:24, Ley Foon Tan wrote

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-28 Thread Masahiro Yamada
2018-05-26 11:06 GMT+09:00 Simon Glass : > +Masahiro > > On 25 May 2018 at 02:50, Ley Foon Tan wrote: >> >> On Fri, May 25, 2018 at 11:33 AM, Simon Glass wrote: >> > Hi, >> > >> > On 24 May 2018 at 21:24, Ley Foon Tan wrote: >> >> >> >> On Thu, May 24, 2018 at 12:33 AM, Simon Glass wrote: >> >>

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-25 Thread Simon Glass
+Masahiro On 25 May 2018 at 02:50, Ley Foon Tan wrote: > > On Fri, May 25, 2018 at 11:33 AM, Simon Glass wrote: > > Hi, > > > > On 24 May 2018 at 21:24, Ley Foon Tan wrote: > >> > >> On Thu, May 24, 2018 at 12:33 AM, Simon Glass wrote: > >> > Hi, > >> > > >> > On 23 May 2018 at 00:32, Ley Foon

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-25 Thread Ley Foon Tan
On Fri, May 25, 2018 at 11:33 AM, Simon Glass wrote: > Hi, > > On 24 May 2018 at 21:24, Ley Foon Tan wrote: >> >> On Thu, May 24, 2018 at 12:33 AM, Simon Glass wrote: >> > Hi, >> > >> > On 23 May 2018 at 00:32, Ley Foon Tan wrote: >> >> On Sat, May 19, 2018 at 10:37 PM, Simon Glass wrote: >> >

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-24 Thread Simon Glass
Hi, On 24 May 2018 at 21:24, Ley Foon Tan wrote: > > On Thu, May 24, 2018 at 12:33 AM, Simon Glass wrote: > > Hi, > > > > On 23 May 2018 at 00:32, Ley Foon Tan wrote: > >> On Sat, May 19, 2018 at 10:37 PM, Simon Glass wrote: > >>> Hi Ley, > >>> > >>> On 18 May 2018 at 04:03, Ley Foon Tan wrot

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-24 Thread Ley Foon Tan
On Thu, May 24, 2018 at 12:33 AM, Simon Glass wrote: > Hi, > > On 23 May 2018 at 00:32, Ley Foon Tan wrote: >> On Sat, May 19, 2018 at 10:37 PM, Simon Glass wrote: >>> Hi Ley, >>> >>> On 18 May 2018 at 04:03, Ley Foon Tan wrote: Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_I

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-23 Thread Simon Glass
Hi, On 23 May 2018 at 00:32, Ley Foon Tan wrote: > On Sat, May 19, 2018 at 10:37 PM, Simon Glass wrote: >> Hi Ley, >> >> On 18 May 2018 at 04:03, Ley Foon Tan wrote: >>> Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_INIT flag and >>> use >>> malloc_simple if GD_FLG_FULL_MALLOC_IN

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-22 Thread Ley Foon Tan
On Sat, May 19, 2018 at 10:37 PM, Simon Glass wrote: > Hi Ley, > > On 18 May 2018 at 04:03, Ley Foon Tan wrote: >> Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_INIT flag and use >> malloc_simple if GD_FLG_FULL_MALLOC_INIT is unset. Adjust the malloc bytes >> to align with the reque

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-19 Thread Simon Glass
Hi Ley, On 18 May 2018 at 04:03, Ley Foon Tan wrote: > Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_INIT flag and use > malloc_simple if GD_FLG_FULL_MALLOC_INIT is unset. Adjust the malloc bytes > to align with the requested alignment. > > The original memalign() function will acce

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-18 Thread Marek Vasut
On 05/18/2018 12:03 PM, Ley Foon Tan wrote: > Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_INIT flag and use > malloc_simple if GD_FLG_FULL_MALLOC_INIT is unset. Adjust the malloc bytes > to align with the requested alignment. > > The original memalign() function will access mchunkp

[U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-17 Thread Ley Foon Tan
Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_INIT flag and use malloc_simple if GD_FLG_FULL_MALLOC_INIT is unset. Adjust the malloc bytes to align with the requested alignment. The original memalign() function will access mchunkptr struct to adjust the alignment if there is misalign