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.


imported SEABIOS source tree
[palacios.git] / bios / seabios / src / gen-defs.h
1 // Tool for building defintions accessible from assembler code.  This
2 // is based on code from the Linux Kernel.
3 #ifndef __GEN_DEFS_H
4 #define __GEN_DEFS_H
5
6
7 #define DEFINE(sym, val) \
8     asm volatile("\n->" #sym " %0 " #val : : "i" (val))
9
10 #define BLANK() \
11     asm volatile("\n->" : : )
12
13 #define OFFSET(sym, str, mem) \
14     DEFINE(sym, offsetof(struct str, mem))
15
16 #define COMMENT(x) \
17     asm volatile("\n->#" x)
18
19 #endif // gen-defs.h