blob: 8f17c045caff4998563cdae6827744f1475304dc [file] [log] [blame]
Kevin O'Connor952974e2008-11-16 18:14:33 -05001// Generate assembler offsets.
2
3#include "gen-defs.h"
4#include "bregs.h"
5
6/* workaround for a warning with -Wmissing-prototypes */
7void foo(void) VISIBLE16;
8
9void foo(void)
10{
11 OFFSET(BREGS_es, bregs, es);
12 OFFSET(BREGS_ds, bregs, ds);
13 OFFSET(BREGS_eax, bregs, eax);
14 OFFSET(BREGS_ebx, bregs, ebx);
15 OFFSET(BREGS_ecx, bregs, ecx);
16 OFFSET(BREGS_edx, bregs, edx);
17 OFFSET(BREGS_esi, bregs, esi);
18 OFFSET(BREGS_edi, bregs, edi);
19 OFFSET(BREGS_flags, bregs, flags);
20 OFFSET(BREGS_ip, bregs, ip);
21}