blob: 82392405de66bb85c3424536ce5c430bc843ac23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* Modified by Fernando Nicodemos <fgnicodemos@terra.com.br>
* from NCB - Sistemas Embarcados Ltda. (Brazil)
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#include <rtems/umon.h>
/* XXX eventually add lock/unlock methods */
static int rtems_umon_connected = 0;
void rtems_umon_connect(void)
{
void *moncomptr;
if ( rtems_umon_connected )
return;
rtems_umon_connected = 1;
moncomptr = rtems_bsp_get_umon_monptr();
monConnect(
(int(*)())(*(unsigned long *)moncomptr), /* monitor base */
(void *)0, /* lock */
(void *)0 /* unlock */
);
}
|