]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Add relocate.h
authorMichael Brown <mcb30@etherboot.org>
Sat, 9 Apr 2005 13:36:55 +0000 (13:36 +0000)
committerMichael Brown <mcb30@etherboot.org>
Sat, 9 Apr 2005 13:36:55 +0000 (13:36 +0000)
Note that we can't make real-mode calls immediately after relocate_to().

src/arch/i386/core/relocate.c

index 782062a880e2d17685046ca5920750ff3e339428..081ffe8b9555a3d5e1b31738a61f209495b2dd9e 100644 (file)
@@ -2,6 +2,7 @@
 #include "memsizes.h"
 #include "osdep.h"
 #include "etherboot.h"
+#include "relocate.h"
 
 /* by Eric Biederman */
 
@@ -182,5 +183,11 @@ void relocate ( void ) {
                      addr, addr + _end - _text );
 
                relocate_to ( addr );
+               /* Note that we cannot make real-mode calls
+                * (e.g. printf) at this point, because the pointer
+                * installed_librm uses a virtual address (in order
+                * that it can have a valid initialiser) and so is
+                * currently invalid.
+                */
        }
 }