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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [sw/] [mmu/] [mmu.c] - Diff between revs 25 and 52

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

Rev 25 Rev 52
Line 125... Line 125...
  immu_disable ();
  immu_disable ();
  dmmu_disable ();
  dmmu_disable ();
 
 
  report(line);
  report(line);
  report (0xeeeeeeee);
  report (0xeeeeeeee);
  exit (1);
  or32_exit (1);
}
}
 
 
void call(unsigned long add)
void call(unsigned long add)
{
{
        asm("l.jalr\t\t%0" : : "r" (add) : "r9", "r11");
        asm("l.jalr\t\t%0" : : "r" (add) : "r9", "r11");
Line 152... Line 152...
void bus_err_handler (void)
void bus_err_handler (void)
{
{
  /* This shouldn't happend */
  /* This shouldn't happend */
  debug("Test failed: Bus error\n");
  debug("Test failed: Bus error\n");
  report (0xeeeeeeee);
  report (0xeeeeeeee);
  exit (1);
  or32_exit (1);
}
}
 
 
/* Illegal insn exception handler */
/* Illegal insn exception handler */
void ill_insn_handler (void)
void ill_insn_handler (void)
{
{
  /* This shouldn't happend */
  /* This shouldn't happend */
  debug("Test failed: Illegal insn\n");
  debug("Test failed: Illegal insn\n");
  report (0xeeeeeeee);
  report (0xeeeeeeee);
  exit (1);
  or32_exit (1);
}
}
 
 
/* Sys call exception handler */
/* Sys call exception handler */
void sys_call_handler (void)
void sys_call_handler (void)
{
{
Line 1202... Line 1202...
 
 
#endif
#endif
#endif
#endif
 
 
  report (0xdeaddead);
  report (0xdeaddead);
  exit (0);
  or32_exit (0);
  return 0;
  return 0;
}
}
 
 
 
 
 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.