beautypg.com

Renesas Stub Generator V.1.00 User Manual

Page 73

background image

Section 6 Definitions of Server Functions

Rev. 1.01 Mar. 17, 2008 Page 61 of 128

REJ10J1822-0101

Without the REF specification, the data indicated by the pointer variable specified with PTR, STR,
or ARY are transferred. The transferred pointer points to a different area from that before the
transfer.

With the REF specification, the pointer variable is transferred. In this case, the pointer points to
the same area even after the transfer.

Note:

When the device in use does not provide a facility for cache-snooping between the CPU cores (as
is the case for the SH2A-DUAL etc.), the server parameter area must be allocated in a non-
cacheable area.

Example:

Specification of a server function

int func(struct ST *ptr);

*ptr is passed to func as the input. ptr is sure to keep pointing to a non-cacheable area.

Definition of the server function

int ret = func([IN REF PTR]struct ST *ptr);

This manual is related to the following products: