116 #if defined (OPENSSL_SYS_NETWARE)
118 #if defined(NETWARE_LIBC)
119 #include <nks/thread.h>
121 #include <nwthread.h>
124 extern int GetProcessSwitchCount(
void);
125 #if !defined(NETWARE_LIBC) || (CURRENT_NDK_THRESHOLD < 509220000)
126 extern void *RunningProcess;
127 extern unsigned long GetSuperHighResolutionTimer(
void);
148 l = GetProcessSwitchCount();
152 l = (
unsigned long)RunningProcess;
163 #elif defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
164 asm volatile(
"rdtsc":
"=a"(tsc)::
"edx");
169 l = GetSuperHighResolutionTimer();
172 # if defined(NETWARE_LIBC)
175 ThreadSwitchWithDelay();