diff options
| author | Michael Brown | 2007-01-14 01:53:56 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-14 01:53:56 +0100 |
| commit | dca369ddc33d5a7b068182a3ef6f1ca71fbf4960 (patch) | |
| tree | 4af7aea56ba10175bb39c1964a144abf7875e1c5 /src/core | |
| parent | Make shutdown functions callable by OS image's exec methods. (diff) | |
| download | ipxe-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')
| -rw-r--r-- | src/core/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c index 185e44b2f..64e098ca3 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(); } /** |
