URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 148 |
Rev 158 |
/* system call template */
|
/* system call template */
|
|
|
/* Lots of system calls are trivial functions, so we build their source files
|
/* Lots of system calls are trivial functions, so we build their source files
|
from a template. New syscalls can be added simply by editing the
|
from a template. New syscalls can be added simply by editing the
|
Makefile!
|
Makefile!
|
|
|
Usage: Compile this file with "func" set to the name of the syscall. */
|
Usage: Compile this file with "func" set to the name of the syscall. */
|
|
|
#include "sys/syscallasm.h"
|
#include "sys/syscallasm.h"
|
|
|
#define concat(a,b) a##b
|
#define concat(a,b) a##b
|
#define makesys(a) concat (SYS_, a)
|
#define makesys(a) concat (SYS_, a)
|
|
|
defsyscall (func, makesys(func))
|
defsyscall (func, makesys(func))
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.