summaryrefslogtreecommitdiffstats
path: root/src/arch/i386
diff options
context:
space:
mode:
authorMichael Brown2005-04-09 15:36:55 +0200
committerMichael Brown2005-04-09 15:36:55 +0200
commit29f43896aa71dbaf6916348fd0ed83c712f50eab (patch)
treecdeba8fdea1cd958d9452c8b29b58991de95c417 /src/arch/i386
parentFirst version (diff)
downloadipxe-29f43896aa71dbaf6916348fd0ed83c712f50eab.tar.gz
ipxe-29f43896aa71dbaf6916348fd0ed83c712f50eab.tar.xz
ipxe-29f43896aa71dbaf6916348fd0ed83c712f50eab.zip
Add relocate.h
Note that we can't make real-mode calls immediately after relocate_to().
Diffstat (limited to 'src/arch/i386')
-rw-r--r--src/arch/i386/core/relocate.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/i386/core/relocate.c b/src/arch/i386/core/relocate.c
index 782062a88..081ffe8b9 100644
--- a/src/arch/i386/core/relocate.c
+++ b/src/arch/i386/core/relocate.c
@@ -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.
+ */
}
}