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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [sw/] [support/] [support.h] - Diff between revs 2 and 36

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

Rev 2 Rev 36
Line 14... Line 14...
/* Register access macros */
/* Register access macros */
#define REG8(add) *((volatile unsigned char *)(add))
#define REG8(add) *((volatile unsigned char *)(add))
#define REG16(add) *((volatile unsigned short *)(add))
#define REG16(add) *((volatile unsigned short *)(add))
#define REG32(add) *((volatile unsigned long *)(add))
#define REG32(add) *((volatile unsigned long *)(add))
 
 
void printf(const char *fmt, ...);
void or32_printf(const char *fmt, ...);
 
 
/* For writing into SPR. */
/* For writing into SPR. */
void mtspr(unsigned long spr, unsigned long value);
void mtspr(unsigned long spr, unsigned long value);
 
 
/* For reading SPR. */
/* For reading SPR. */
Line 28... Line 28...
 
 
#include <stdio.h>
#include <stdio.h>
 
 
#endif /* OR1K */
#endif /* OR1K */
 
 
 
#define printf  or32_printf
 
 
/* Function to be called at entry point - not defined here.  */
/* Function to be called at entry point - not defined here.  */
int main ();
int main ();
 
 
/* Prints out a value */
/* Prints out a value */
void report(unsigned long value);
void report(unsigned long value);
Line 61... Line 63...
extern unsigned long excpt_range;
extern unsigned long excpt_range;
extern unsigned long excpt_syscall;
extern unsigned long excpt_syscall;
extern unsigned long excpt_break;
extern unsigned long excpt_break;
extern unsigned long excpt_trap;
extern unsigned long excpt_trap;
 
 
#endif
 
 
#endif /* SUPPORT_H */
 
 
 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.