Changes: Christian Thalinger
Edwin Steiner
- $Id: asmpart.h 4619 2006-03-15 20:42:00Z edwin $
+ $Id: asmpart.h 4920 2006-05-15 13:13:22Z twisti $
*/
#if defined(USE_THREADS)
# if defined(NATIVE_THREADS)
# include "threads/native/threads.h"
+# include "threads/native/critical.h"
# else
# include "threads/green/threads.h"
# endif
#include "vm/linker.h"
#include "vm/resolve.h"
#include "vm/vm.h"
-#include "vm/jit/stacktrace.h"
#include "vm/jit/replace.h"
+#include "vm/jit/stacktrace.h"
/* some macros ****************************************************************/
/* function prototypes ********************************************************/
/* machine dependent initialization */
-s4 asm_md_init(void);
-
-void asm_sync_instruction_cache(void);
-
+s4 asm_md_init(void);
/*
invokes the compiler for untranslated JavaVM methods.
*/
void asm_call_jit_compiler(void);
-
#if defined(ENABLE_JIT)
java_objectheader *asm_vm_call_method(methodinfo *m, s4 vmargscount,
vm_arg *vmargs);
s8 asm_vm_call_method_long(methodinfo *m, s4 vmargscount, vm_arg *vmargs);
float asm_vm_call_method_float(methodinfo *m, s4 vmargscount, vm_arg *vmargs);
double asm_vm_call_method_double(methodinfo *m, s4 vmargscount, vm_arg *vmargs);
+
+void asm_vm_call_method_exception_handler(void);
#endif
#if defined(ENABLE_INTRP)
vm_arg *vmargs);
#endif
-
-/* We need these two labels in codegen.inc to add the asm_calljavafunction*'s
- into the methodtable */
-#if defined(__I386__) || defined(__X86_64__)
-void calljava_xhandler2(void);
-#endif
-
/* exception handling functions */
#if defined(ENABLE_JIT)
void *asm_switchstackandcall(void *stack, void *func, void **stacktopsave, void * p);
#if defined(USE_THREADS) && defined(NATIVE_THREADS)
-extern threadcritnode asm_criticalsections;
+extern critical_section_node_t asm_criticalsections;
#endif
u1* asm_initialize_thread_stack(void *func, u1 *stack);
#endif
-/* may be required on some architectures (at least for PowerPC and ARM) */
-void asm_cacheflush(void *p, s4 size);
+/* cache flush function */
+void asm_cacheflush(u1 *addr, s4 nbytes);
+
+u8 asm_get_cycle_count(void);
#endif /* _ASMPART_H */