Division bug hidden, now only shows when 64-bit division is needed
[tpg/acess2.git] / Kernel / include / modules.h
index 8862112..fb737be 100644 (file)
@@ -36,7 +36,7 @@
 #if ARCHDIR == x86
 # define MODULE_ARCH_ID        1
 // IA64 - Architecture 2
-#elif ARCHDIR == x64
+#elif ARCHDIR == x86_64
 # define MODULE_ARCH_ID        2
 #else
 # error "Unknown architecture when determining MODULE_ARCH_ID ('" #ARCHDIR "')"
@@ -73,7 +73,7 @@ typedef struct sModule
        struct sModule  *Next;  //!< Next module in list (not to be touched by the driver)
        char    *Name;  //!< Module Name/Identifier
         int    (*Init)(char **Arguments);      //!< Module initialiser / entrypoint
-       void    (*Deinit)();    //!< Cleanup Function
+       void    (*Deinit)(void);        //!< Cleanup Function
        char    **Dependencies; //!< NULL terminated list of dependencies
 } PACKED tModule;
 
@@ -87,6 +87,7 @@ enum eModuleErrors
        MODULE_ERR_NOTNEEDED,   //!< Module not needed
        MODULE_ERR_MALLOC,      //!< Error with malloc/realloc/calloc
        
+       MODULE_ERR_BADMODULE,   //!< Bad module (only used by loader)
        MODULE_ERR_MAX  //!< Maximum defined error code
 };
 

UCC git Repository :: git.ucc.asn.au