trap.c 285 B

1234567891011121314151617
  1. /*
  2. * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
  3. * Licensed under the GPL
  4. */
  5. #include <setjmp.h>
  6. #include <signal.h>
  7. #include "kern_util.h"
  8. #include "user_util.h"
  9. #include "os.h"
  10. void do_longjmp(void *b, int val)
  11. {
  12. sigjmp_buf *buf = b;
  13. siglongjmp(*buf, val);
  14. }