1 /* 2 Language Independent Runtime Library 3 4 Copyright 1983-2009 by Green Hills Software,Inc. 5 6 This program is the property of Green Hills Software, Inc, 7 its contents are proprietary information and no part of it 8 is to be disclosed to anyone except employees of Green Hills 9 Software, Inc., or as agreed in writing signed by the President 10 of Green Hills Software, Inc. 11 */ 12 #if defined(EMBEDDED) || defined(__OSE) 13 #if defined(__ARM) || defined(__mips) 14 #if defined(__ARM) 15 #include <arm_ghs.h> 16 #elif defined(__mips) 17 #include <mips_ghs.h> 18 #endif 19 extern void __ghs_indgcount(void *head, void **ptail); __ghs_gcount(void * tail)20void __ghs_gcount(void *tail) { 21 void *head = __builtin_return_address(0); 22 __ghs_indgcount(head, &tail); 23 } 24 #else 25 #error "ind_gcnt.c is not valid. write a version for your target." 26 #endif 27 #endif 28