From a5e04eec80639e937af6745546bda73b4dede892 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Thu, 9 Oct 2003 11:56:24 +0000 Subject: use malloc instead of allocate_memory for linux --- iprofile.s | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/iprofile.s b/iprofile.s index 87205ba..4072e41 100644 --- a/iprofile.s +++ b/iprofile.s @@ -30,8 +30,11 @@ .global profile_t .global write_profile_information .global write_profile_stack - +#ifdef LINUX + .global @malloc +#else .global @allocate_memory +#endif .global __STRING__ .global openF .global closeF @@ -427,7 +430,11 @@ allocate_function_profile_record: push a1 pushl $128*FunctionProfile +#ifdef LINUX + call @malloc +#else call @allocate_memory +#endif add $4,sp test d0,d0 @@ -690,7 +697,11 @@ init_profiler: jz no_tsc_error pushl @ab_stack_size +#ifdef LINUX + call @malloc +#else call @allocate_memory +#endif add $4,sp test d0,d0 @@ -758,7 +769,7 @@ profile_file_name: align (2) #ifdef MODULE_NAMES # if 0 -/ m_system also defined in cgistartup.s +/ m_system also defined in istartup.s m_system: .long 6 .ascii "System" -- cgit v1.2.3