Browse Source

Don't build relocate() under KEEP_IT_REAL

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
44eee81d11
2 changed files with 13 additions and 0 deletions
  1. 4
    0
      src/arch/i386/core/relocate.c
  2. 9
    0
      src/arch/i386/include/relocate.h

+ 4
- 0
src/arch/i386/core/relocate.c View File

@@ -4,6 +4,8 @@
4 4
 #include "etherboot.h"
5 5
 #include "relocate.h"
6 6
 
7
+#ifndef KEEP_IT_REAL
8
+
7 9
 /* by Eric Biederman */
8 10
 
9 11
 /* On some platforms etherboot is compiled as a shared library, and we use
@@ -191,3 +193,5 @@ void relocate ( void ) {
191 193
 		 */
192 194
 	}
193 195
 }
196
+
197
+#endif /* ! KEEP_IT_REAL */

+ 9
- 0
src/arch/i386/include/relocate.h View File

@@ -1,6 +1,15 @@
1 1
 #ifndef RELOCATE_H
2 2
 #define RELOCATE_H
3 3
 
4
+#ifdef KEEP_IT_REAL
5
+
6
+/* relocate() is conceptually impossible with KEEP_IT_REAL */
7
+#define relocate()
8
+
9
+#else
10
+
4 11
 extern void relocate ( void );
5 12
 
13
+#endif
14
+
6 15
 #endif /* RELOCATE_H */

Loading…
Cancel
Save