Add setjmp and longjmp functions for nuttx-stm32f4 target. (#1743)
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -376,28 +376,3 @@ jerry_port_get_current_time (void)
|
||||
{
|
||||
return 0;
|
||||
} /* jerry_port_get_current_time */
|
||||
|
||||
/**
|
||||
* Compiler built-in setjmp function.
|
||||
*
|
||||
* @return 0 when called the first time
|
||||
* 1 when returns from a longjmp call
|
||||
*/
|
||||
int
|
||||
setjmp (jmp_buf buf)
|
||||
{
|
||||
return __builtin_setjmp (buf);
|
||||
} /* setjmp */
|
||||
|
||||
/**
|
||||
* Compiler built-in longjmp function.
|
||||
*
|
||||
* Note:
|
||||
* ignores value argument
|
||||
*/
|
||||
void
|
||||
longjmp (jmp_buf buf, int value)
|
||||
{
|
||||
/* Must be called with 1. */
|
||||
__builtin_longjmp (buf, 1);
|
||||
} /* longjmp */
|
||||
|
||||
Reference in New Issue
Block a user