1 /* Copyright (c) 2013 Red Hat, Inc. All rights reserved.
3 This copyrighted material is made available to anyone wishing to use,
4 modify, copy, or redistribute it subject to the terms and conditions
5 of the BSD License. This program is distributed in the hope that
6 it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
7 including the implied warranties of MERCHANTABILITY or FITNESS FOR
8 A PARTICULAR PURPOSE. A copy of this license is available at
9 http://www.opensource.org/licenses. Any Red Hat trademarks that are
10 incorporated in the source code or documentation are not subject to
11 the BSD License and may only be used or replicated with the express
12 permission of Red Hat, Inc.
15 # setjmp/longjmp for msp430. The jmpbuf looks like this:
17 # Register Jmpbuf offset
32 ; Upon entry r12 points to the jump buffer.
33 ; Returns 0 to caller.
35 #if defined __MSP430X_LARGE__
49 ;; Get the return address off the stack
63 .size setjmp , . - setjmp
68 ; Upon entry r12 points to the jump buffer and
69 ; r13 contains the value to be returned by setjmp.
71 #if defined __MSP430X_LARGE__
92 ; If caller attempts to return 0, return 1 instead.
99 #if defined __MSP430X_LARGE__
106 .size longjmp , . - longjmp