FreeCalypso > hg > freecalypso-citrine
comparison g23m-aci/aci/aci_mem.c @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : | |
4 | Modul : J:\g23m-aci\aci\aci_mem.c | |
5 +----------------------------------------------------------------------------- | |
6 | Copyright 2002 Texas Instruments Berlin, AG | |
7 | All rights reserved. | |
8 | | |
9 | This file is confidential and a trade secret of Texas | |
10 | Instruments Berlin, AG | |
11 | The receipt of or possession of this file does not convey | |
12 | any rights to reproduce or disclose its contents or to | |
13 | manufacture, use, or sell anything it may describe, in | |
14 | whole, or in part, without the specific written consent of | |
15 | Texas Instruments Berlin, AG. | |
16 +----------------------------------------------------------------------------- | |
17 | Purpose : | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 #ifndef ACI_MEM_C | |
21 #define ACI_MEM_C | |
22 #endif | |
23 | |
24 #include "config.h" | |
25 #include "fixedconf.h" | |
26 #include "condat-features.h" | |
27 #include "aci_conf.h" | |
28 | |
29 #include "aci_all.h" | |
30 | |
31 #include "aci_mem.h" | |
32 | |
33 #ifdef ACI_MEMORY_TRACE | |
34 | |
35 GLOBAL void aci_mfree (void *ptr, char *file, int line) | |
36 { | |
37 TRACE_EVENT_P3 ("MFREE : 0x%X (%d : %s)", ptr, line, file); | |
38 MFREE (ptr); | |
39 } | |
40 | |
41 GLOBAL void *aci_malloc (USHORT size, char *file, int line) | |
42 { | |
43 void *newP; | |
44 | |
45 MALLOC (newP, size); | |
46 TRACE_EVENT_P4 ("MALLOC: 0x%X %d (%d : %s)", | |
47 newP, size, line, file); | |
48 return(newP); | |
49 } | |
50 | |
51 #if (CHIPSET==15) | |
52 GLOBAL void *aci_malloc_nb (USHORT size, char *file, int line) | |
53 { | |
54 void *newP; | |
55 | |
56 MALLOC_NB (newP, size); | |
57 TRACE_EVENT_P4 ("MALLOC_NB: 0x%X %d (%d : %s)", | |
58 newP, size, line, file); | |
59 return(newP); | |
60 } | |
61 #endif /* (CHIPSET==15) */ | |
62 | |
63 #endif /* ACI_MEMORY_TRACE */ |