forked from ArchC/mips
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmips_syscall.H
40 lines (34 loc) · 1.51 KB
/
mips_syscall.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/******************************************************
* ArchC Architecture Dependent Syscall header file. *
* This file is automatically generated by ArchC *
* WITHOUT WARRANTY OF ANY KIND, either express *
* or implied. *
* For more information on ArchC, please visit: *
* http://www.archc.org *
* *
* The ArchC Team *
* Computer Systems Laboratory (LSC) *
* IC-UNICAMP *
* http://www.lsc.ic.unicamp.br *
******************************************************/
#ifndef mips_SYSCALL_H
#define mips_SYSCALL_H
#include "mips_arch.H"
#include "mips_arch_ref.H"
#include "mips_parms.H"
#include "ac_syscall.H"
//mips system calls
class mips_syscall : public ac_syscall<mips_parms::ac_word, mips_parms::ac_Hword>, public mips_arch_ref
{
public:
mips_syscall(mips_arch& ref) : ac_syscall<mips_parms::ac_word, mips_parms::ac_Hword>(ref, mips_parms::AC_RAMSIZE), mips_arch_ref(ref) {};
virtual ~mips_syscall() {};
void get_buffer(int argn, unsigned char* buf, unsigned int size);
void set_buffer(int argn, unsigned char* buf, unsigned int size);
void set_buffer_noinvert(int argn, unsigned char* buf, unsigned int size);
int get_int(int argn);
void set_int(int argn, int val);
void return_from_syscall();
void set_prog_args(int argc, char **argv);
};
#endif