]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
BSS is now zeroed by libprefix (along with the otherwise non-zeroable
authorMichael Brown <mcb30@etherboot.org>
Tue, 2 May 2006 21:10:45 +0000 (21:10 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 2 May 2006 21:10:45 +0000 (21:10 +0000)
portions such as the stack) during the installation process.

init_fns() are called from main().  We need to think about initial
control flow some more.

src/arch/i386/prefix/dskprefix.S
src/core/main.c

index a2f621981489d1f086e883f0549788ab02635e20..fff0be411707ad2aa5916e4cff82d99fd6071193 100644 (file)
@@ -356,9 +356,6 @@ start_runtime:
        lret
        .section ".text16", "awx", @progbits
 1:
-       pushl   $initialise
-       data32 call     prot_call
-       popl    %eax /* discard */
        pushl   $main
        data32 call     prot_call
        popl    %eax /* discard */
index f6448e805e49f272d6e78ed6f1433217b962f5a8..13aae4cf8a6d2a55580c14be40116bebcb2c2985 100644 (file)
@@ -141,21 +141,6 @@ static int exit_status;
 static int initialized;
 
 
-/**************************************************************************
- * initialise() - perform any C-level initialisation
- *
- * This does not include initialising the NIC, but it does include
- * e.g. getting the memory map, relocating to high memory,
- * initialising the console, etc.
- **************************************************************************
- */
-void initialise ( void ) {
-       /* Zero the BSS */
-       memset ( _bss, 0, _ebss - _bss );
-
-       /* Call all registered initialisation functions */
-       call_init_fns ();
-}
 
 /**************************************************************************
 MAIN - Kick off routine
@@ -165,6 +150,9 @@ int main ( void ) {
        void *image_context;
        int skip = 0;
 
+       /* Call all registered initialisation functions */
+       call_init_fns ();
+
        /* Print out configuration */
        print_config();