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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [pic/] [pic.c] - Diff between revs 997 and 1308

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 997 Rev 1308
Line 27... Line 27...
 
 
#include "pic.h"
#include "pic.h"
#include "spr_defs.h"
#include "spr_defs.h"
#include "except.h"
#include "except.h"
#include "sprs.h"
#include "sprs.h"
 
#include "debug.h"
 
 
extern int cont_run;
extern int cont_run;
 
 
/* Reset. It initializes PIC registers. */
/* Reset. It initializes PIC registers. */
void pic_reset()
void pic_reset()
Line 55... Line 56...
void report_interrupt(int line)
void report_interrupt(int line)
{
{
  setsprbits(SPR_PMR, SPR_PMR_DME, 0); /* Disable doze mode */
  setsprbits(SPR_PMR, SPR_PMR_DME, 0); /* Disable doze mode */
  setsprbits(SPR_PMR, SPR_PMR_SME, 0); /* Disable sleep mode */
  setsprbits(SPR_PMR, SPR_PMR_SME, 0); /* Disable sleep mode */
 
 
  debug(4, "Asserting interrupt %d.\n", line);
  debug(4, "Asserting interrupt %d (%s).\n", line, getsprbit(SPR_PICMR, line) ? "Unmasked" : "Masked");
 
 
  if (getsprbit(SPR_PICMR, line) || line < 2)
  if (getsprbit(SPR_PICMR, line) || line < 2)
  setsprbit(SPR_PICSR, line, 1);
  setsprbit(SPR_PICSR, line, 1);
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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