Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Minor compile warning fixup and error checks
[palacios.git] / bios / seabios / src / asm-offsets.c
1 // Generate assembler offsets.
2
3 #include "gen-defs.h" // OFFSET
4 #include "bregs.h" // struct bregs
5 #include "biosvar.h" // struct bios_data_area_s
6
7 /* workaround for a warning with -Wmissing-prototypes */
8 void foo(void) VISIBLE16;
9
10 void foo(void)
11 {
12     COMMENT("BREGS");
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);
24
25     COMMENT("BDA");
26     OFFSET(BDA_ebda_seg, bios_data_area_s, ebda_seg);
27
28     COMMENT("EBDA");
29     DEFINE(EBDA_OFFSET_TOP_STACK, EBDA_OFFSET_TOP_STACK);
30     DEFINE(EBDA_SEGMENT_START, EBDA_SEGMENT_START);
31 }