Re: [U-Boot] [PATCH v5 04/10] sandbox: Fix setjmp/longjmp

2018-06-24 Thread Simon Glass
Hi Alex, On 23 June 2018 at 01:36, Alexander Graf wrote: > > > On 22.06.18 21:28, Simon Glass wrote: >> Hi Alex, >> >> On 22 June 2018 at 06:44, Alexander Graf wrote: >>> In sandbox, longjmp returns to itself in an endless loop because >>> os_longjmp() calls into longjmp() which is provided by U

Re: [U-Boot] [PATCH v5 04/10] sandbox: Fix setjmp/longjmp

2018-06-23 Thread Alexander Graf
On 22.06.18 21:28, Simon Glass wrote: > Hi Alex, > > On 22 June 2018 at 06:44, Alexander Graf wrote: >> In sandbox, longjmp returns to itself in an endless loop because >> os_longjmp() calls into longjmp() which is provided by U-Boot which >> again calls os_longjmp(). >> >> Setjmp on the other

Re: [U-Boot] [PATCH v5 04/10] sandbox: Fix setjmp/longjmp

2018-06-22 Thread Simon Glass
Hi Alex, On 22 June 2018 at 06:44, Alexander Graf wrote: > In sandbox, longjmp returns to itself in an endless loop because > os_longjmp() calls into longjmp() which is provided by U-Boot which > again calls os_longjmp(). > > Setjmp on the other hand must not return because otherwise the > return

[U-Boot] [PATCH v5 04/10] sandbox: Fix setjmp/longjmp

2018-06-22 Thread Alexander Graf
In sandbox, longjmp returns to itself in an endless loop because os_longjmp() calls into longjmp() which is provided by U-Boot which again calls os_longjmp(). Setjmp on the other hand must not return because otherwise the return freees up stack elements that we need during longjmp(). The only str