-
vprb_mem
-
ER_BOOL vprb_mem ( VP base, SIZE size, ID tskid, MODE pmmode );
|
|
|
|
VP base;
|
Start address for checking
|
|
SIZE size;
|
Size of checking area (in bytes).
|
|
ID tskid;
|
Value: ID number of the task.
|
|
PMMODE pmmode;
|
|
This service call checks whether the task indicated by
tskid has the access permission indicated by
pmmode for the
memory area of
size bytes from the address specified by
base. This service call returns TRUE when the access is permitted and returns FALSE when the access is not permitted.
The following are specified for pmmode.
pmmode := ( TPM_READ | TPM_WRITE | TPM_EXEC )
-
TPM_READ ( = 0x0001)
Checks whether operand-read access is permitted.
-
TPM_WRITE ( = 0x0002)
Checks whether operand-write access is permitted.
-
TPM_EXEC ( = 0x0004)
Checks whether execution access is permitted.
Note This service call is the function outside
mITRON4.0 specification.
|
|
|
|
|
Normal completion. (The access is permitted.)
|
|
|
Normal completion.(The access is not permitted.)
|
|
|
- pmmode == 0, One of bits except bit0, bit1 and bit2 of pmmode is 1.
|
|
|
|
|
|
- This service call was issued in the CPU locked state.
- This service call was issued from non-task.
- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
|
|
|
- Stack pointer points out of user stack for invoking task.
|
|
|
- The task specified by tskid does not exist.
|