OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [librdbg/] [include/] [rdbg/] [powerpc/] [rdbg_f.h] - Blame information for rev 261

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 **************************************************************************
3
 *
4
 * Component =   RDBG
5
 * Module =   rdbg_f.h
6
 *
7
 * Synopsis = Machine-dependent header file
8
 *
9
 * $Id: rdbg_f.h,v 1.2 2001-09-27 12:02:01 chris Exp $
10
 *
11
 **************************************************************************
12
 */
13
 
14
#ifndef RDBG_F_H
15
#define RDBG_F_H
16
 
17
#include <rtems.h>
18
#include <rdbg/remdeb.h>
19
 
20
static inline  int isRdbgException(Exception_context *ctx)
21
{
22
  if (
23
      ctx->ctx->_EXC_number != ASM_SYS_VECTOR &&
24
      ctx->ctx->_EXC_number != ASM_TRACE_VECTOR
25
      ) return 0;
26
  else return 1;
27
}
28
static inline int getExcNum(Exception_context *ctx)
29
{
30
  return ctx->ctx->_EXC_number;
31
}
32
 
33
extern void connect_rdbg_exception();
34
 
35
#endif
36
 
37
 
38
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.