Move most arch/i386 files to arch/x86, and adjust the contents of the Makefiles and the include/bits/*.h headers to reflect the new locations. This patch makes no substantive code changes, as can be seen using a rename-aware diff (e.g. "git show -M5"). This patch does not make the pcbios platform functional for x86_64; it merely allows it to compile without errors. Signed-off-by: Michael Brown <mcb30@ipxe.org>
29 lines
630 B
C
29 lines
630 B
C
#ifndef _RMSETJMP_H
|
|
#define _RMSETJMP_H
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|
|
|
#include <setjmp.h>
|
|
#include <realmode.h>
|
|
|
|
/** A real-mode-extended jump buffer */
|
|
typedef struct {
|
|
/** Jump buffer */
|
|
jmp_buf env;
|
|
/** Real-mode stack pointer */
|
|
segoff_t rm_stack;
|
|
} rmjmp_buf[1];
|
|
|
|
#define rmsetjmp( _env ) ( { \
|
|
(_env)->rm_stack.segment = rm_ss; \
|
|
(_env)->rm_stack.offset = rm_sp; \
|
|
setjmp ( (_env)->env ); } ) \
|
|
|
|
#define rmlongjmp( _env, _val ) do { \
|
|
rm_ss = (_env)->rm_stack.segment; \
|
|
rm_sp = (_env)->rm_stack.offset; \
|
|
longjmp ( (_env)->env, (_val) ); \
|
|
} while ( 0 )
|
|
|
|
#endif /* _RMSETJMP_H */
|