IOReturn AppleARMNMI::handleInterrupt(void * /*refCon */ , IOService * /*nub */ , int /*source */ ) { if (enable_debugger == TRUE) Debugger("NMI"); // This is a direct call to the Debugger else PE_enter_debugger("NMI"); // This is a indirect call the Debugger that is dependent on the debug flag return kIOReturnSuccess; }
/* * Routine: flipc_msg_size_from_kmsg(ipc_kmsg_t kmsg) * Purpose: * Compute the size of the buffer needed to hold the translated flipc * message. All identifiers are converted to flipc_names which are 64b. * If this node's pointers are a different size, we have to allow for * expansion of the descriptors as appropriate. * Conditions: * Nothing locked. * Returns: * size of the message as it would be sent over the flipc link. */ static mach_msg_size_t flipc_msg_size_from_kmsg(ipc_kmsg_t kmsg) { mach_msg_size_t fsize = kmsg->ikm_header->msgh_size; if (kmsg->ikm_header->msgh_bits & MACH_MSGH_BITS_COMPLEX) PE_enter_debugger("flipc_msg_size_from_kmsg(): Complex messages not supported."); return fsize; }