diff --git a/BLD/build/HEADERS/CUR-9-vmkdrivers-asm-x64/vmkernel64/release/asm/current.h b/BLD/build/HEADERS/CUR-9-vmkdrivers-asm-x64/vmkernel64/release/asm/current.h new file mode 100644 index 0000000000000000000000000000000000000000..0b9e912a0ede21c944026fe9a008770ffa7cb38e --- /dev/null +++ b/BLD/build/HEADERS/CUR-9-vmkdrivers-asm-x64/vmkernel64/release/asm/current.h @@ -0,0 +1,60 @@ +/* + * Portions Copyright 2008-2010 VMware, Inc. + */ +#ifndef _X86_64_CURRENT_H +#define _X86_64_CURRENT_H + +#if !defined(__ASSEMBLY__) +struct task_struct; + +#include + +#if defined(__VMKLNX__) +#include +/** + * get_current - Gets current task pointer for the current world. + * + * Gets current task pointer for the current world. + * + * RETURN VALUE: + * Pointer to the task struct of the running process. + */ +/* _VMKLNX_CODECHECK_: get_current */ +static inline struct task_struct *get_current(void) +{ + return vmklnx_GetCurrent(); +} +#else /* !defined(__VMKLNX__) */ +static inline struct task_struct *get_current(void) +{ + struct task_struct *t = read_pda(pcurrent); + return t; +} +#endif /* defined(__VMKLNX__) */ + +/** + * current - Get current task pointer of current task + * + * Returns a pointer to the task struct of the running task + * + * SYNOPSIS: + * #define current + * + * RETURN VALUE: + * Pointer to current task of type task_struct + * + */ +/* _VMKLNX_CODECHECK_: current */ +#define current get_current() + +#else + +#ifndef ASM_OFFSET_H +#include +#endif + +#define GET_CURRENT(reg) movq %gs:(pda_pcurrent),reg + +#endif + +#endif /* !(_X86_64_CURRENT_H) */