jmp fixes and be matching again

move to aurora fork
This commit is contained in:
dbalatoni13 2025-04-04 00:47:03 +02:00
parent 30d80d66a0
commit 4438f7d9c8
8 changed files with 45 additions and 21 deletions

View file

@ -164,10 +164,10 @@ s32 gcsetjmp(jmp_buf *jump);
s32 gclongjmp(jmp_buf *jump, s32 status);
#define SETJMP(jump) gcsetjmp(&(jump))
#define SETJMP(jump, status) gclongjump(&(jump), (status))
#define LONGJMP(jump, status) gclongjmp(&(jump), (status))
#define SETJMP_SET_IP(jump, func) jmp_buf->lr = (u32)func
#define SETJMP_SET_IP(jump, sp) jmp_buf->sp = (u32)sp
#define SETJMP_SET_IP(jump, func) jump.lr = (u32)func
#define SETJMP_SET_SP(jump, stack_ptr) jump.sp = (u32)stack_ptr
#endif
#endif