From 263987655706186a27d4c158ea30a00924f47f7d Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 15 Jul 2010 23:29:50 +0800 Subject: [PATCH] Cleaning up some old code --- Kernel/bin/elf.c | 1 - Kernel/modules.c | 29 +---------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/Kernel/bin/elf.c b/Kernel/bin/elf.c index 90a092f6..c524cf81 100644 --- a/Kernel/bin/elf.c +++ b/Kernel/bin/elf.c @@ -9,7 +9,6 @@ #define DEBUG_WARN 1 - // === PROTOTYPES === tBinary *Elf_Load(int fp); int Elf_Relocate(void *Base); diff --git a/Kernel/modules.c b/Kernel/modules.c index 9f6d3c54..92dd8d31 100644 --- a/Kernel/modules.c +++ b/Kernel/modules.c @@ -349,39 +349,12 @@ int Module_LoadFile(char *Path, char *ArgString) return 0; } - #if 1 + // Initialise (and register) if( Module_int_Initialise( info, ArgString ) ) { Binary_Unload(base); return 0; } - #else - // Resolve Dependencies - if( !Module_int_ResolveDeps(info) ) { - Binary_Unload(base); - return 0; - } - - Log_Log("Module", "Initialising %p '%s' v%i.%i...", - info, - info->Name, - info->Version>>8, info->Version & 0xFF - ); - - // Call Initialiser - //if( info->Init( ArgString ) != 0 ) - if( info->Init( NULL ) == 0 ) - { - Binary_Unload(base); - return 0; - } - - // Add to list - LOCK( &glModuleSpinlock ); - info->Next = gLoadedModules; - gLoadedModules = info; - RELEASE( &glModuleSpinlock ); - #endif return 1; } -- 2.20.1