[Vm-dev] [commit][2746] add call to initGlobalStructure for global
register suport
commits at squeakvm.org
commits at squeakvm.org
Thu Jul 4 02:40:46 UTC 2013
Revision: 2746
Author: rowledge
Date: 2013-07-03 19:40:44 -0700 (Wed, 03 Jul 2013)
Log Message:
-----------
add call to initGlobalStructure for global register suport
Modified Paths:
--------------
branches/Cog/platforms/unix/vm/sqUnixMain.c
Modified: branches/Cog/platforms/unix/vm/sqUnixMain.c
===================================================================
--- branches/Cog/platforms/unix/vm/sqUnixMain.c 2013-06-23 00:21:44 UTC (rev 2745)
+++ branches/Cog/platforms/unix/vm/sqUnixMain.c 2013-07-04 02:40:44 UTC (rev 2746)
@@ -1736,6 +1736,8 @@
# define mtfsfi(fpscr)
#endif
+extern void initGlobalStructure(void); // this is effectively null if a global register is not being used
+
int
main(int argc, char **argv, char **envp)
{
@@ -1757,7 +1759,9 @@
}
#endif
- /* Allocate arrays to store copies of pointers to command line
+ initGlobalStructure();
+
+ /* Allocate arrays to store copies of pointers to command line
arguments. Used by getAttributeIntoLength(). */
if ((vmArgVec= calloc(argc + 1, sizeof(char *))) == 0)
More information about the Vm-dev
mailing list