summaryrefslogtreecommitdiffstats
path: root/src/core/main.c
diff options
context:
space:
mode:
authorMichael Brown2007-01-14 01:53:56 +0100
committerMichael Brown2007-01-14 01:53:56 +0100
commitdca369ddc33d5a7b068182a3ef6f1ca71fbf4960 (patch)
tree4af7aea56ba10175bb39c1964a144abf7875e1c5 /src/core/main.c
parentMake shutdown functions callable by OS image's exec methods. (diff)
downloadipxe-dca369ddc33d5a7b068182a3ef6f1ca71fbf4960.tar.gz
ipxe-dca369ddc33d5a7b068182a3ef6f1ca71fbf4960.tar.xz
ipxe-dca369ddc33d5a7b068182a3ef6f1ca71fbf4960.zip
Call hide_etherboot() from startup(), rather than requiring the prefix to
do it.
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 185e44b2..64e098ca 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -20,6 +20,7 @@ Literature dealing with the network protocols:
#include <gpxe/shell.h>
#include <gpxe/shell_banner.h>
#include <gpxe/shutdown.h>
+#include <gpxe/hidemem.h>
#include <usr/autoboot.h>
/**
@@ -28,8 +29,9 @@ Literature dealing with the network protocols:
* Call this function only once, before doing (almost) anything else.
*/
static void startup ( void ) {
+ hide_etherboot();
init_heap();
- call_init_fns ();
+ call_init_fns();
probe_devices();
}
@@ -41,7 +43,8 @@ static void startup ( void ) {
*/
void shutdown ( void ) {
remove_devices();
- call_exit_fns ();
+ call_exit_fns();
+ unhide_etherboot();
}
/**