mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
14 lines
237 B
C
14 lines
237 B
C
#ifndef _SETJMP_H
|
|
#define _SETJMP_H
|
|
|
|
typedef struct {
|
|
void* _bp; // Base pointer
|
|
void* _sp; // Stack pointer
|
|
void* _pc; // Program counter
|
|
} jmp_buf;
|
|
|
|
int setjmp(jmp_buf env);
|
|
void longjmp(jmp_buf env, int value);
|
|
|
|
#endif
|