Back to index

glibc  2.9
Functions
longjmp-ts.c File Reference
#include <hurd/signal.h>
#include <setjmp.h>
#include <mach/thread_status.h>

Go to the source code of this file.

Functions

void _hurd_longjmp_thread_state (void *state, jmp_buf env, int val)

Function Documentation

void _hurd_longjmp_thread_state ( void *  state,
jmp_buf  env,
int  val 
)

Definition at line 28 of file longjmp-ts.c.

{
  struct mips_thread_state *ts = state;

  ts->r16 = env[0].__jmpbuf[0].__regs[0];
  ts->r17 = env[0].__jmpbuf[0].__regs[1];
  ts->r18 = env[0].__jmpbuf[0].__regs[2];
  ts->r19 = env[0].__jmpbuf[0].__regs[3];
  ts->r20 = env[0].__jmpbuf[0].__regs[4];
  ts->r21 = env[0].__jmpbuf[0].__regs[5];
  ts->r22 = env[0].__jmpbuf[0].__regs[6];
  ts->r23 = env[0].__jmpbuf[0].__regs[7];
  ts->r28 = (int) env[0].__jmpbuf[0].__gp;
  ts->r29 = (int) env[0].__jmpbuf[0].__sp;
  ts->r30 = (int) env[0].__jmpbuf[0].__fp;
  ts->pc = (int) env[0].__jmpbuf[0].__pc;
  ts->r2 = val ?: 1;
}