mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 17:42:47 +03:00
Initial revision
This commit is contained in:
35
src/arch/i386/core/hooks.c
Normal file
35
src/arch/i386/core/hooks.c
Normal file
@@ -0,0 +1,35 @@
|
||||
#include "etherboot.h"
|
||||
#include "callbacks.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
void arch_main ( in_call_data_t *data __unused, va_list params __unused )
|
||||
{
|
||||
#ifdef PCBIOS
|
||||
/* Deallocate base memory used for the prefix, if applicable
|
||||
*/
|
||||
forget_prefix_base_memory();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void arch_relocated_from (unsigned long old_addr )
|
||||
{
|
||||
|
||||
#ifdef PCBIOS
|
||||
/* Deallocate base memory used for the Etherboot runtime,
|
||||
* if applicable
|
||||
*/
|
||||
forget_runtime_base_memory( old_addr );
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void arch_on_exit ( int exit_status __unused )
|
||||
{
|
||||
#ifdef PCBIOS
|
||||
/* Deallocate the real-mode stack now. We will reallocate
|
||||
* the stack if are going to use it after this point.
|
||||
*/
|
||||
forget_real_mode_stack();
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user