|
Last change
on this file since 83 was 81, checked in by rosiere, 18 years ago |
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords
set to
Id
|
|
File size:
405 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((int)(val));
|
|---|
| 16 | else
|
|---|
| 17 | arguments[num_reg] = val;
|
|---|
| 18 | };
|
|---|
| 19 |
|
|---|
| 20 | };
|
|---|
| 21 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.