blob: fdd7540a6e0d732d49cb040d22be936c811e9892 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001
2/* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */
3/* This file is released under the LGPL, any version you like */
4
5#define _ASM
6#define _SETJMP_H
7#include <bits/setjmp.h>
8#include "m68k_pic.S"
9
10.globl setjmp;
11.type setjmp,@function
12.align 4;
13
14setjmp:
15 moveal %sp@(4), %a0
16 movel %sp@(0), %a0@(JB_PC)
17 moveml %d2-%d7/%a2-%a7, %a0@(JB_REGS)
18#if defined(__HAVE_68881__) || defined(__HAVE_FPU__)
19 fmovemx %fp2-%fp7, %a0@(JB_FPREGS)
20#endif
21 clrl %d0
22 JUMP __sigjmp_save,%a0
23