#
# Really Simple Threads package.  Copyright Robert S. Thau 1996.
# This code may be used for any purpose.  It may be redistributed on
# the following terms: 1) this paragraph and the next must appear
# unaltered in any source distribution, and be prominently displayed
# in the supporting documentation for any source or binary
# distribution; 2) if you wish to distribute modified or derived
# works, each such work must bear a notice of who last altered the
# included version of Really Simple Threads, and when.  The notice of
# alterations shall be attached to the derivative works in the same
# manner as these two paragraphs, and shall be at least as prominent.
# Redistribution for any purpose is otherwise unrestricted.
#
# THIS CODE IS IN AN UNFINISHED STATE, AND HAS NOT BEEN TESTED
# TO THE POINT THAT THE AUTHOR BELIEVES IT CAN BE EXPECTED TO
# WORK RELIABLY.  IT IS SUITABLE, AT THIS POINT, FOR EXPERIMENTATION
# AND DEBUGGING ONLY.  TREAT ACCORDINGLY.

# The following was written for AIX 3.2, and may not work on newer releases!
# The AIX _longjmp routine, which athreads uses for context-switches, does
# a little checking to be sure that you aren't trying to _longjmp back to
# a function which has already returned.  Unfortunately, rsthreads context
# switches fail the check, so we have to short-circuit it as follows.

# The rst_trick business is a kludge to force this file to get linked in...

.globl ._longjmp
.globl .longjmperror
.globl rst_trick
rst_trick:	
.longjmperror: b ._longjmp+28
