git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Big bugfixes from trying a Clone/fork bomb
[tpg/acess2.git]
/
Kernel
/
modules.c
diff --git
a/Kernel/modules.c
b/Kernel/modules.c
index
0409711
..
58521ba
100644
(file)
--- a/
Kernel/modules.c
+++ b/
Kernel/modules.c
@@
-32,7
+32,7
@@
extern void gKernelModulesEnd;
// === GLOBALS ===
int giNumBuiltinModules = 0;
// === GLOBALS ===
int giNumBuiltinModules = 0;
-tS
pinlock
glModuleSpinlock;
+tS
hortSpinlock
glModuleSpinlock;
tModule *gLoadedModules = NULL;
tModuleLoader *gModule_Loaders = NULL;
tModule *gLoadingModules = NULL;
tModule *gLoadedModules = NULL;
tModuleLoader *gModule_Loaders = NULL;
tModule *gLoadingModules = NULL;
@@
-180,10
+180,10
@@
int Module_int_Initialise(tModule *Module, char *ArgString)
LOG("ret = %i", ret);
// Add to loaded list
LOG("ret = %i", ret);
// Add to loaded list
- LOCK( &glModuleSpinlock );
+
SHORT
LOCK( &glModuleSpinlock );
Module->Next = gLoadedModules;
gLoadedModules = Module;
Module->Next = gLoadedModules;
gLoadedModules = Module;
-
RELEASE
( &glModuleSpinlock );
+
SHORTREL
( &glModuleSpinlock );
LEAVE_RET('i', 0);
}
LEAVE_RET('i', 0);
}
@@
-254,7
+254,8
@@
void Modules_LoadBuiltins()
/**
* \brief Initialise a builtin module given it's name
/**
* \brief Initialise a builtin module given it's name
- * \example Used by VTerm to load an alternate video driver at runtime
+ *
+ * E.g. Used by VTerm to load an alternate video driver at runtime
*/
int Modules_InitialiseBuiltin(const char *Name)
{
*/
int Modules_InitialiseBuiltin(const char *Name)
{
UCC
git Repository :: git.ucc.asn.au