OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [OpenRISC_SIM_GCC/] [arch/] [support.h] - Rev 623

Compare with Previous | Blame | View Log

/* Support file for or32 tests.  This file should is included
   in each test. It calls main() function and add support for
   basic functions */
 
#ifndef SUPPORT_H
#define SUPPORT_H
 
#include <stdarg.h>
#include <stddef.h>
#include <limits.h>
 
/* Register access macros */
#define REG8(add)	*((volatile unsigned char *)(add))
#define REG16(add) 	*((volatile unsigned short *)(add))
#define REG32(add) 	*((volatile unsigned long *)(add))
 
/* For writing into SPR. */
void mtspr(unsigned long spr, unsigned long value);
 
/* For reading SPR. */
unsigned long mfspr(unsigned long spr);
 
/* Function to be called at entry point - not defined here.  */
int main(int argc, char **argv);
 
/* Prints out a value */
void report(unsigned long value);
 
/* return value by making a syscall */
extern void or32_exit (int i) __attribute__ ((__noreturn__));
 
#endif /* SUPPORT_H */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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