OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

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

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
#define EFLAGS_TF 0x00100
21
 
22
static inline int isRdbgException(Exception_context *ctx)
23
{
24
  if (
25
      ctx->ctx->idtIndex != I386_EXCEPTION_DEBUG &&
26
      ctx->ctx->idtIndex != I386_EXCEPTION_BREAKPOINT &&
27
      ctx->ctx->idtIndex != I386_EXCEPTION_ENTER_RDBG
28
      ) return 0;
29
  else return 1;
30
}
31
static inline int getExcNum(Exception_context *ctx)
32
{
33
  return ctx->ctx->idtIndex;
34
}
35
 
36
extern void connect_rdbg_exception();
37
 
38
#endif
39
 
40
 
41
 

powered by: WebSVN 2.1.0

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