ソースを参照

Add relocate.h

Note that we can't make real-mode calls immediately after relocate_to().
tags/v0.9.3
Michael Brown 21年前
コミット
29f43896aa
1個のファイルの変更7行の追加0行の削除
  1. 7
    0
      src/arch/i386/core/relocate.c

+ 7
- 0
src/arch/i386/core/relocate.c ファイルの表示

2
 #include "memsizes.h"
2
 #include "memsizes.h"
3
 #include "osdep.h"
3
 #include "osdep.h"
4
 #include "etherboot.h"
4
 #include "etherboot.h"
5
+#include "relocate.h"
5
 
6
 
6
 /* by Eric Biederman */
7
 /* by Eric Biederman */
7
 
8
 
182
 		      addr, addr + _end - _text );
183
 		      addr, addr + _end - _text );
183
 
184
 
184
 		relocate_to ( addr );
185
 		relocate_to ( addr );
186
+		/* Note that we cannot make real-mode calls
187
+		 * (e.g. printf) at this point, because the pointer
188
+		 * installed_librm uses a virtual address (in order
189
+		 * that it can have a valid initialiser) and so is
190
+		 * currently invalid.
191
+		 */
185
 	}
192
 	}
186
 }
193
 }

読み込み中…
キャンセル
保存