URL
https://opencores.org/ocsvn/aemb/aemb/trunk
[/] [aemb/] [trunk/] [sw/] [cc/] [aemb/] [hook.hh] - Diff between revs 121 and 128
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 121 |
Rev 128 |
Line 1... |
Line 1... |
/* $Id: hook.hh,v 1.4 2008-04-20 16:35:53 sybreon Exp $
|
/* $Id: hook.hh,v 1.5 2008-04-23 14:19:39 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 41... |
Line 41... |
void _program_clean();
|
void _program_clean();
|
void __malloc_lock();
|
void __malloc_lock();
|
void __malloc_unlock();
|
void __malloc_unlock();
|
void __env_lock();
|
void __env_lock();
|
void __env_unlock();
|
void __env_unlock();
|
|
|
}
|
}
|
#else
|
#else
|
void _program_init();
|
void _program_init();
|
void _program_clean();
|
void _program_clean();
|
void __malloc_lock();
|
void __malloc_lock();
|
Line 91... |
Line 92... |
}
|
}
|
|
|
signalMutex(); // exit critical section
|
signalMutex(); // exit critical section
|
}
|
}
|
|
|
|
semaphore __malloc_mutex = 1;
|
|
|
/**
|
/**
|
Heap Lock
|
Heap Lock
|
|
|
This function is called during malloc() to lock out the shared
|
This function is called during malloc() to lock out the shared
|
heap to avoid data corruption.
|
heap to avoid data corruption.
|
Line 127... |
Line 130... |
OPTIMISATION_REQUIRED XXX
|
OPTIMISATION_REQUIRED XXX
|
#endif
|
#endif
|
|
|
/*
|
/*
|
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
|
Revision 1.4 2008/04/20 16:35:53 sybreon
|
|
Added C/C++ compatible #ifdef statements
|
|
|
Revision 1.3 2008/04/12 13:46:02 sybreon
|
Revision 1.3 2008/04/12 13:46:02 sybreon
|
Added malloc() lock and unlock routines
|
Added malloc() lock and unlock routines
|
|
|
Revision 1.2 2008/04/11 15:20:31 sybreon
|
Revision 1.2 2008/04/11 15:20:31 sybreon
|
added static assert hack
|
added static assert hack
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.