mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Refactoring of the OpenBIOS source code, as discussed on the mailing list. The primary aim of this process is to try and arrange
the source files into a structure whereby it is easier to find the relationship between a forth package word and its C implementation, while also creating a libopenbios library into which more common code from the arch/ tree can eventually be moved. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@685 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
0d5f749065
commit
dbf16392cc
53
packages/init.c
Normal file
53
packages/init.c
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Creation Date: <2003/12/23 00:28:05 samuel>
|
||||
* Time-stamp: <2003/12/28 19:43:41 samuel>
|
||||
*
|
||||
* <init.c>
|
||||
*
|
||||
* Module intialization
|
||||
*
|
||||
* Copyright (C) 2003 Samuel Rydh (samuel@ibrium.se)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2
|
||||
*
|
||||
*/
|
||||
|
||||
#include "openbios/config.h"
|
||||
#include "openbios/kernel.h"
|
||||
#include "packages.h"
|
||||
|
||||
void
|
||||
modules_init( void )
|
||||
{
|
||||
#ifdef CONFIG_CMDLINE
|
||||
cmdline_init();
|
||||
#endif
|
||||
#ifdef CONFIG_DEBLOCKER
|
||||
deblocker_init();
|
||||
#endif
|
||||
#ifdef CONFIG_DISK_LABEL
|
||||
disklabel_init();
|
||||
#endif
|
||||
#ifdef CONFIG_FS
|
||||
files_init();
|
||||
#endif
|
||||
#ifdef CONFIG_MAC_PARTS
|
||||
macparts_init();
|
||||
#endif
|
||||
#ifdef CONFIG_PC_PARTS
|
||||
pcparts_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SUN_PARTS
|
||||
sunparts_init();
|
||||
#endif
|
||||
#ifdef CONFIG_PPC
|
||||
elf_loader_init();
|
||||
xcoff_loader_init();
|
||||
bootinfo_loader_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SPARC64
|
||||
elf_loader_init();
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user