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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mp3/] [sw/] [cache/] [support/] [support.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 lampret
/* Support file for or32 tests.  This file should is included
2
   in each test. It calls main() function and add support for
3
   basic functions */
4
 
5
#ifndef SUPPORT_H
6
#define SUPPORT_H
7
 
8
#include <stdarg.h>
9
#include <_ansi.h>
10
#include <stddef.h>
11
#include <limits.h>
12
 
13
#if OR1K
14
void printf(const char *fmt, ...);
15
 
16
/* For writing into SPR. */
17
void mtspr(unsigned long spr, unsigned long value);
18
 
19
/* For reading SPR. */
20
unsigned long mfspr(unsigned long spr);
21
 
22
#else /* OR1K */
23
 
24
#include <stdio.h>
25
 
26
#endif /* OR1K */
27
 
28
/* Function to be called at entry point - not defined here.  */
29
int main ();
30
 
31
/* Prints out a value */
32
void report(unsigned long value);
33
 
34
/* return value by making a syscall */
35
extern void exit (int i) __attribute__ ((__noreturn__));
36
 
37
/* memcpy clone */
38
extern void *memcpy (void *__restrict __dest,
39
                     __const void *__restrict __src, size_t __n);
40
 
41
/* Timer functions */
42
extern void start_timer(int);
43
extern unsigned int read_timer(int);
44
 
45
#endif

powered by: WebSVN 2.1.0

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