浏览代码

Don't build relocate() under KEEP_IT_REAL

tags/v0.9.3
Michael Brown 19 年前
父节点
当前提交
44eee81d11
共有 2 个文件被更改,包括 13 次插入0 次删除
  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 查看文件

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

+ 9
- 0
src/arch/i386/include/relocate.h 查看文件

1
 #ifndef RELOCATE_H
1
 #ifndef RELOCATE_H
2
 #define RELOCATE_H
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
 extern void relocate ( void );
11
 extern void relocate ( void );
5
 
12
 
13
+#endif
14
+
6
 #endif /* RELOCATE_H */
15
 #endif /* RELOCATE_H */

正在加载...
取消
保存