blob: bc6af6b8701b2f90eb20b0c3aa3475b5e94955fa [file] [log] [blame]
// Given a function pointer, return the code address.
// If the plabel bit is set, mask it off and return the code from the
// first word of the function descriptor. Otherwise, the function
// pointer is the code address.
#define UNWRAP_FUNCTION_DESCRIPTOR(X) *(void **)((unsigned long) (X) + 16)