_ram_call Function (Macro Constructor)

doors.h

#define _ram_call(ind,type) ((type)(&_RAM_CALL_##ind))

Performs a kernel-mode RAM call with a cast.

_ram_call uses _ram_call_addr to get a void pointer to the location in memory defined by the kernel as RAM call ind, and then casts it to the type type. To avoid prescan of ind, _ram_call_addr is written out.