source: svn/trunk/newcon3bcm2_21bu/dta/src/bootloader/fast_heap.h @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.3 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2010, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: $
11 * $brcm_Revision: $
12 * $brcm_Date: $
13 *
14 * Module Description:Simple and fast heap moduile for use in bootloader.
15 * Relies on unlimited memory being availabe since it will not free
16 * anything. This heap is only concerned with memory blocks not stepping
17 * on one another.
18 *
19 * Revision History:
20 *
21 * $brcm_Log: $
22 *
23 *
24 ***************************************************************************/
25#if !defined(__FAST_HEAP_H__)
26#define __FAST_HEAP_H__
27
28#include "bstd.h"
29
30void * malloc(size_t size);
31void * malloc_dbg(size_t size, char* file, int line);
32void free(void * ptr);
33void free_dbg(void *ptr, char* file, int line);
34
35void fast_heap_init(unsigned long heap_start);
36#if defined(BCM_DEBUG)
37#define malloc(size) malloc_dbg(size,__FILE__,__LINE__)
38#define free(ptr) free_dbg(ptr,__FILE__,__LINE__)
39#endif
40#endif
Note: See TracBrowser for help on using the repository browser.