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
SpiderScript: Added line numbers to tAST_Node, cleaned up a bit
[tpg/acess2.git]
/
Kernel
/
binary.c
diff --git
a/Kernel/binary.c
b/Kernel/binary.c
index
72e8210
..
b3040a5
100644
(file)
--- a/
Kernel/binary.c
+++ b/
Kernel/binary.c
@@
-45,11
+45,11
@@
Uint Binary_GetSymbolEx(char *Name, Uint *Value);
Uint Binary_FindSymbol(void *Base, char *Name, Uint *Val);
// === GLOBALS ===
Uint Binary_FindSymbol(void *Base, char *Name, Uint *Val);
// === GLOBALS ===
-
int glBinListLock = 0
;
+
tShortSpinlock glBinListLock
;
tBinary *glLoadedBinaries = NULL;
char **gsaRegInterps = NULL;
int giRegInterps = 0;
tBinary *glLoadedBinaries = NULL;
char **gsaRegInterps = NULL;
int giRegInterps = 0;
-
int glKBinListLock = 0
;
+
tShortSpinlock glKBinListLock
;
tKernelBin *glLoadedKernelLibs;
tBinaryType *gRegBinTypes = &gELF_Info;
tKernelBin *glLoadedKernelLibs;
tBinaryType *gRegBinTypes = &gELF_Info;
@@
-501,10
+501,10
@@
tBinary *Binary_DoLoad(char *truePath)
VFS_Close(fp);
// Add to the list
VFS_Close(fp);
// Add to the list
- LOCK(&glBinListLock);
+
SHORT
LOCK(&glBinListLock);
pBinary->Next = glLoadedBinaries;
glLoadedBinaries = pBinary;
pBinary->Next = glLoadedBinaries;
glLoadedBinaries = pBinary;
-
RELEASE
(&glBinListLock);
+
SHORTREL
(&glBinListLock);
// Return
LEAVE('p', pBinary);
// Return
LEAVE('p', pBinary);
@@
-745,10
+745,10
@@
void *Binary_LoadKernel(char *File)
pKBinary = malloc(sizeof(*pKBinary));
pKBinary->Base = (void*)base;
pKBinary->Info = pBinary;
pKBinary = malloc(sizeof(*pKBinary));
pKBinary->Base = (void*)base;
pKBinary->Info = pBinary;
- LOCK( &glKBinListLock );
+
SHORT
LOCK( &glKBinListLock );
pKBinary->Next = glLoadedKernelLibs;
glLoadedKernelLibs = pKBinary;
pKBinary->Next = glLoadedKernelLibs;
glLoadedKernelLibs = pKBinary;
-
RELEASE
( &glKBinListLock );
+
SHORTREL
( &glKBinListLock );
LEAVE('p', base);
return (void*)base;
LEAVE('p', base);
return (void*)base;
UCC
git Repository :: git.ucc.asn.au