_ _GENTRAP Intrinsic (Generate Trap)

The _ _GENTRAP intrinsic has the following declaration:

void __PAL_GENTRAP( uint64 trap_code );

This intrinsic function reports run-time software conditions. The processor is switched to kernel mode and an exception is dispatched.

Math RTLs may use this mechanism. For example, integer divide by zero is signaled using GENTRAP.