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

27 lines
686 B
C
Raw Normal View History

2005-04-09 15:32:26 +02:00
#ifndef RELOCATE_H
#define RELOCATE_H
/* relocate() is conceptually impossible with KEEP_IT_REAL */
2005-04-10 20:18:37 +02:00
#ifndef KEEP_IT_REAL
2005-04-27 14:17:09 +02:00
#include "tables.h"
2005-04-10 20:18:37 +02:00
/* An entry in the post-relocation function table */
struct post_reloc_fn {
void ( *post_reloc ) ( void );
};
2005-04-10 20:18:37 +02:00
/* Use double digits to avoid problems with "10" < "9" on alphabetic sort */
#define POST_RELOC_LIBRM 00
2005-04-10 20:18:37 +02: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 ) = { \
2005-04-10 20:18:37 +02:00
.post_reloc = post_reloc_func, \
};
2005-04-09 15:32:26 +02:00
#endif
2005-04-09 15:32:26 +02:00
#endif /* RELOCATE_H */