david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/arch/i386/include/relocate.h
Michael Brown 3bbf5f28a3 Use __unused instead of __used for static data structures.
Remove compiler.h defines from osdep.h
2005-05-17 12:16:28 +00:00

27 lines
686 B
C

#ifndef RELOCATE_H
#define RELOCATE_H
/* relocate() is conceptually impossible with KEEP_IT_REAL */
#ifndef KEEP_IT_REAL
#include "tables.h"
/* An entry in the post-relocation function table */
struct post_reloc_fn {
void ( *post_reloc ) ( void );
};
/* Use double digits to avoid problems with "10" < "9" on alphabetic sort */
#define POST_RELOC_LIBRM 00
/* Macro for creating a post-relocation function table entry */
#define POST_RELOC_FN( order, post_reloc_func ) \
static struct post_reloc_fn PREFIX_OBJECT(post_reloc_fn__) \
__table ( post_reloc_fn, order ) = { \
.post_reloc = post_reloc_func, \
};
#endif
#endif /* RELOCATE_H */