Skip to content

Commit

Permalink
Fix jmp_buf size to support arm-hf on nuttx
Browse files Browse the repository at this point in the history
Related issue : jerryscript-project#231

JerryScript-DCO-1.0-Signed-off-by: SaeHie Park [email protected]
  • Loading branch information
seanshpark committed Jul 3, 2015
1 parent 1b55630 commit 4150dcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jerry-libc/include/setjmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
* - return address (to jump to upon longjmp)
* - x87 control word
*
* ARMv7 (8 * 4 + 16 * 4 bytes):
* - r4 - r11
* ARMv7 (10 * 4 + 16 * 4 bytes):
* - r4 - r11, sp, lr
* - s16 - s31 (if hardfp enabled)
*
* See also:
* setjmp, longjmp
*/
typedef uint64_t jmp_buf[12];
typedef uint64_t jmp_buf[14];

extern EXTERN_C int setjmp (jmp_buf env);
extern EXTERN_C void longjmp (jmp_buf env, int val);
Expand Down

0 comments on commit 4150dcc

Please sign in to comment.