Last change
on this file since 130 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
447 bytes
|
Line | |
---|
1 | #include "../include/Sim2OS.h" |
---|
2 | |
---|
3 | namespace environment { |
---|
4 | namespace sim2os { |
---|
5 | |
---|
6 | /* |
---|
7 | * Add a new parameter |
---|
8 | * if num_reg == 0, it's the number of service |
---|
9 | * else it's a arguments |
---|
10 | */ |
---|
11 | void Sim2OS ::parameter (uint32_t num_reg, |
---|
12 | void * val) |
---|
13 | { |
---|
14 | if (num_reg == 0) |
---|
15 | num_service = int2service(static_cast<int32_t>(reinterpret_cast<int64_t>(val))); |
---|
16 | else |
---|
17 | arguments[num_reg] = val; |
---|
18 | }; |
---|
19 | |
---|
20 | }; |
---|
21 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.