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.


Avoid strict-aliasing related issues when compiling with optimization
[palacios.git] / symmods / capsule / binary.S
1 #;  -*- fundamental -*-
2
3 /* 
4  * This file is part of the Palacios Virtual Machine Monitor developed
5  * by the V3VEE Project with funding from the United States National 
6  * Science Foundation and the Department of Energy.  
7  *
8  * The V3VEE Project is a joint project between Northwestern University
9  * and the University of New Mexico.  You can find out more at 
10  * http://www.v3vee.org
11  *
12  * Copyright (c) 2010, Jack Lange <jarusl@cs.northwestern.edu>
13  * Copyright (c) 2010, The V3VEE Project <http://www.v3vee.org> 
14  * All rights reserved.
15  *
16  * Author: Jack Lange <jarusl@cs.northwestern.edu>
17  *
18  * This is free software.  You are permitted to use,
19  * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
20  */
21
22 .data
23
24 #define IDENT(str) str
25 #define TOSTR(str) #str 
26 #define XSTR(str) TOSTR(str)
27 #define MOD_PATH(dir, name)  TOSTR(dir/name)
28 #define MOD_NM(name) TOSTR(name)
29
30
31 mod_start:
32 .incbin MOD_PATH(MOD_DIR,MOD_OBJ)
33 mod_stop:
34
35 mod_name:
36 .ascii MOD_NM(MOD_NAME)
37
38
39 .section _v3_capsules, "a"
40 IDENT(#ifdef __x86_64__)
41 .quad mod_name 
42 .quad mod_start
43 .quad mod_stop 
44 .byte MOD_TYPE
45 .byte MOD_ARCH
46 .space 2
47 IDENT(#else)
48 .long mod_name
49 .space 4
50 .long mod_start
51 .space 4
52 .long mod_stop
53 .space 4
54 .byte MOD_TYPE 
55 .byte MOD_ARCH
56 .space 2
57 IDENT(#endif)