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.


*** empty log message ***
[palacios.releases.git] / palacios / src / geekos / symbol.asm
1 ; Symbol mangling macros
2 ; Copyright (c) 2001, David H. Hovemeyer <daveho@cs.umd.edu>
3 ; $Revision: 1.2 $
4
5 ; This file defines macros for dealing with externally-visible
6 ; symbols that must be mangled for some object file formats.
7 ; For example, PECOFF requires a leading underscore, while
8 ; ELF does not.
9
10 ; EXPORT defines a symbol as global
11 ; IMPORT references a symbol defined in another module
12
13 ; Thanks to Christopher Giese for providing the NASM macros
14 ; (thus saving me hours of frustration).
15
16 %ifndef __VMM_SYMBOL_ASM
17 %define __VMM_SYMBOL_ASM
18
19 %ifdef NEED_UNDERSCORE
20
21 %macro EXPORT 1
22 [GLOBAL _%1]
23 %define %1 _%1
24 %endmacro
25
26 %macro IMPORT 1
27 [EXTERN _%1]
28 %define %1 _%1
29 %endmacro
30
31 %else
32
33 %macro EXPORT 1
34 [GLOBAL %1]
35 %endmacro
36
37 %macro IMPORT 1
38 [EXTERN %1]
39 %endmacro
40
41 %endif
42
43 %endif