mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 18:30:28 +03:00
Add relocate.h
Note that we can't make real-mode calls immediately after relocate_to().
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#include "memsizes.h"
|
#include "memsizes.h"
|
||||||
#include "osdep.h"
|
#include "osdep.h"
|
||||||
#include "etherboot.h"
|
#include "etherboot.h"
|
||||||
|
#include "relocate.h"
|
||||||
|
|
||||||
/* by Eric Biederman */
|
/* by Eric Biederman */
|
||||||
|
|
||||||
@@ -182,5 +183,11 @@ void relocate ( void ) {
|
|||||||
addr, addr + _end - _text );
|
addr, addr + _end - _text );
|
||||||
|
|
||||||
relocate_to ( addr );
|
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.
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user