Native threads almost working
[cacao.git] / headers.c
index e4dd1bfcaec2b43d9f0d647b915d292ec4877f6c..33222b2607369bdd1e7ef51359bd5a0da9c17411 100644 (file)
--- a/headers.c
+++ b/headers.c
@@ -29,7 +29,7 @@
    Changes: Mark Probst
             Philipp Tomsich
 
-   $Id: headers.c 960 2004-03-14 23:41:11Z twisti $
+   $Id: headers.c 991 2004-03-29 11:22:34Z stefan $
 
 */
 
@@ -52,6 +52,7 @@
 /* replace command line options */
 
 bool verbose =  false;
+bool verboseexception =  false;
 bool compileall = false;
 bool runverbose = false;
 bool collectverbose = false;
@@ -113,7 +114,6 @@ void stringtable_update() { }
 void synchronize_caches() { }
 void asm_call_jit_compiler() { }
 void asm_calljavafunction() { }
-void asm_dumpregistersandcall() { }
 s4 asm_builtin_checkcast(java_objectheader *obj, classinfo *class) { return 0; }
 
 s4 asm_builtin_idiv(s4 a, s4 b) {return 0;}
@@ -146,7 +146,7 @@ u1 *oldcreatenativestub(functionptr f, methodinfo *m) {return NULL;}
 void removecompilerstub(u1 *stub) {}
 void removenativestub(u1 *stub) {}
 
-void asm_perform_threadswitch(u1 **from, u1 **to) {}
+void asm_perform_threadswitch(u1 **from, u1 **to, u1 **stackTop) {}
 u1* asm_initialize_thread_stack(void *func, u1 *stack) { return NULL; }
 void asm_switchstackandcall() {}
 void asm_handle_builtin_exception(classinfo *c) {}
@@ -651,6 +651,9 @@ int main(int argc, char **argv)
    
        tables_init();
        heap_init(heapsize, heapsize, &dummy);
+#if defined(USE_THREADS) && defined(NATIVE_THREADS)
+       initThreadsEarly();
+#endif
        loader_init();