1 // Generate assembler offsets.
3 #include "gen-defs.h" // OFFSET
4 #include "bregs.h" // struct bregs
5 #include "biosvar.h" // struct bios_data_area_s
7 /* workaround for a warning with -Wmissing-prototypes */
8 void foo(void) VISIBLE16;
13 OFFSET(BREGS_es, bregs, es);
14 OFFSET(BREGS_ds, bregs, ds);
15 OFFSET(BREGS_eax, bregs, eax);
16 OFFSET(BREGS_ebx, bregs, ebx);
17 OFFSET(BREGS_ecx, bregs, ecx);
18 OFFSET(BREGS_edx, bregs, edx);
19 OFFSET(BREGS_ebp, bregs, ebp);
20 OFFSET(BREGS_esi, bregs, esi);
21 OFFSET(BREGS_edi, bregs, edi);
22 OFFSET(BREGS_flags, bregs, flags);
23 OFFSET(BREGS_code, bregs, code);
26 OFFSET(BDA_ebda_seg, bios_data_area_s, ebda_seg);
29 DEFINE(EBDA_OFFSET_TOP_STACK, EBDA_OFFSET_TOP_STACK);
30 DEFINE(EBDA_SEGMENT_START, EBDA_SEGMENT_START);