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

Subversion Repositories eco32

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

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
#include "term.h"
20
#include "disk.h"
21
#include "output.h"
22
#include "graph.h"
23
 
24
 
25
void error(char *fmt, ...) {
26
  va_list ap;
27
 
28
  cpuExit();
29
  mmuExit();
30
  memoryExit();
31
  timerExit();
32
  displayExit();
33
  keyboardExit();
34
  termExit();
35
  diskExit();
36
  outputExit();
37
  graphExit();
38
  cExit();
39
  va_start(ap, fmt);
40
  fprintf(stderr, "Error: ");
41
  vfprintf(stderr, fmt, ap);
42
  fprintf(stderr, "\n");
43
  va_end(ap);
44
  exit(1);
45
}

powered by: WebSVN 2.1.0

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