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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [error.c] - Blame information for rev 254

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

Line No. Rev Author Line
1 8 hellwig
/*
2
 * error.c -- error handler
3
 */
4
 
5
 
6
#include <stdio.h>
7
#include <stdlib.h>
8
#include <string.h>
9
#include <stdarg.h>
10
 
11
#include "common.h"
12
#include "console.h"
13
#include "error.h"
14
#include "cpu.h"
15
#include "mmu.h"
16
#include "memory.h"
17
#include "timer.h"
18
#include "dspkbd.h"
19 246 hellwig
#include "serial.h"
20 8 hellwig
#include "disk.h"
21
#include "output.h"
22 25 hellwig
#include "shutdown.h"
23 8 hellwig
#include "graph.h"
24
 
25
 
26
void error(char *fmt, ...) {
27
  va_list ap;
28
 
29
  cpuExit();
30
  mmuExit();
31
  memoryExit();
32
  timerExit();
33
  displayExit();
34
  keyboardExit();
35 246 hellwig
  serialExit();
36 8 hellwig
  diskExit();
37
  outputExit();
38 25 hellwig
  shutdownExit();
39 8 hellwig
  graphExit();
40
  cExit();
41
  va_start(ap, fmt);
42
  fprintf(stderr, "Error: ");
43
  vfprintf(stderr, fmt, ap);
44
  fprintf(stderr, "\n");
45
  va_end(ap);
46
  exit(1);
47
}

powered by: WebSVN 2.1.0

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