URL
https://opencores.org/ocsvn/aemb/aemb/trunk
[/] [aemb/] [trunk/] [sw/] [cc/] [aemb/] [heap.hh] - Diff between revs 121 and 137
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 121 |
Rev 137 |
Line 1... |
Line 1... |
/* $Id: heap.hh,v 1.2 2008-04-20 16:35:53 sybreon Exp $
|
/* $Id: heap.hh,v 1.3 2008-04-26 18:05:22 sybreon Exp $
|
**
|
**
|
** AEMB2 HI-PERFORMANCE CPU
|
** AEMB2 HI-PERFORMANCE CPU
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap
|
** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap
|
**
|
**
|
** This file is part of AEMB.
|
** This file is part of AEMB.
|
Line 25... |
Line 25... |
*/
|
*/
|
|
|
#ifndef AEMB_HEAP_HH
|
#ifndef AEMB_HEAP_HH
|
#define AEMB_HEAP_HH
|
#define AEMB_HEAP_HH
|
|
|
#ifdef __cplusplus
|
|
namespace aemb {
|
namespace aemb {
|
#endif
|
|
|
|
/**
|
/**
|
Extracts the heap size from the linker
|
Extracts the heap size from the linker
|
@return heap size
|
@return heap size
|
*/
|
*/
|
Line 64... |
Line 62... |
{
|
{
|
int tmp;
|
int tmp;
|
asm ("la %0, r0, _heap":"=r"(tmp));
|
asm ("la %0, r0, _heap":"=r"(tmp));
|
return tmp;
|
return tmp;
|
}
|
}
|
#ifdef __cplusplus
|
|
}
|
}
|
#endif
|
|
|
|
#endif
|
#endif
|
|
|
/*
|
/*
|
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
|
Revision 1.2 2008/04/20 16:35:53 sybreon
|
|
Added C/C++ compatible #ifdef statements
|
|
|
Revision 1.1 2008/04/09 19:48:37 sybreon
|
Revision 1.1 2008/04/09 19:48:37 sybreon
|
Added new C++ files
|
Added new C++ files
|
|
|
*/
|
*/
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.