From dca369ddc33d5a7b068182a3ef6f1ca71fbf4960 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 14 Jan 2007 00:53:56 +0000 Subject: Call hide_etherboot() from startup(), rather than requiring the prefix to do it. --- src/core/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core') 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 #include #include +#include #include /** @@ -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(); } /** -- cgit v1.2.3-55-g7522