forked from Imagelibrary/rtems
2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* umon/umonrtemsglue.c: Add flag to ensure that it umon connection is initialized twice, it is safe.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* umon/umonrtemsglue.c: Add flag to ensure that it umon connection is
|
||||||
|
initialized twice, it is safe.
|
||||||
|
|
||||||
2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* umon/monlib.h: Add umon.h to be installed as <rtems/umon.h> so umon
|
* umon/monlib.h: Add umon.h to be installed as <rtems/umon.h> so umon
|
||||||
|
|||||||
@@ -13,10 +13,17 @@
|
|||||||
|
|
||||||
/* XXX eventually add lock/unlock methods */
|
/* XXX eventually add lock/unlock methods */
|
||||||
|
|
||||||
|
static int rtems_umon_connected = 0;
|
||||||
|
|
||||||
void rtems_umon_connect(void)
|
void rtems_umon_connect(void)
|
||||||
{
|
{
|
||||||
void *moncomptr;
|
void *moncomptr;
|
||||||
|
|
||||||
|
if ( rtems_umon_connected )
|
||||||
|
return;
|
||||||
|
|
||||||
|
rtems_umon_connected = 1;
|
||||||
|
|
||||||
moncomptr = rtems_bsp_get_umon_monptr();
|
moncomptr = rtems_bsp_get_umon_monptr();
|
||||||
monConnect(
|
monConnect(
|
||||||
(int(*)())(*(unsigned long *)moncomptr), /* monitor base */
|
(int(*)())(*(unsigned long *)moncomptr), /* monitor base */
|
||||||
|
|||||||
Reference in New Issue
Block a user