blob: 576bf343f7f0e94a5d7da4a4b79fb3ba076e36f2 [file] [log] [blame]
Kevin O'Connor952974e2008-11-16 18:14:33 -05001// Generate assembler offsets.
2
Kevin O'Connor18e38b22008-12-10 20:40:13 -05003#include "gen-defs.h" // OFFSET
4#include "bregs.h" // struct bregs
Kevin O'Connor952974e2008-11-16 18:14:33 -05005
6/* workaround for a warning with -Wmissing-prototypes */
7void foo(void) VISIBLE16;
8
9void foo(void)
10{
Kevin O'Connor18e38b22008-12-10 20:40:13 -050011 COMMENT("BREGS");
Kevin O'Connor952974e2008-11-16 18:14:33 -050012 OFFSET(BREGS_es, bregs, es);
13 OFFSET(BREGS_ds, bregs, ds);
14 OFFSET(BREGS_eax, bregs, eax);
15 OFFSET(BREGS_ebx, bregs, ebx);
16 OFFSET(BREGS_ecx, bregs, ecx);
17 OFFSET(BREGS_edx, bregs, edx);
Kevin O'Connor7da210c2009-05-16 23:57:08 -040018 OFFSET(BREGS_ebp, bregs, ebp);
Kevin O'Connor952974e2008-11-16 18:14:33 -050019 OFFSET(BREGS_esi, bregs, esi);
20 OFFSET(BREGS_edi, bregs, edi);
21 OFFSET(BREGS_flags, bregs, flags);
Kevin O'Connor9f985422009-09-09 11:34:39 -040022 OFFSET(BREGS_code, bregs, code);
Kevin O'Connorecdc6552012-05-28 14:25:15 -040023 DEFINE(BREGS_size, sizeof(struct bregs));
Kevin O'Connor952974e2008-11-16 18:14:33 -050024}