Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

kdcmsup.c

Go to the documentation of this file.
00001 /*++ 00002 00003 Copyright (c) 1990 Microsoft Corporation 00004 00005 Module Name: 00006 00007 kdcmsup.c 00008 00009 Abstract: 00010 00011 Com support. Code to init a com port, store port state, map 00012 portable procedures to x86 procedures. 00013 00014 Author: 00015 00016 Bryan M. Willman (bryanwi) 24-Sep-90 00017 00018 Revision History: 00019 00020 Shielin Tzong (shielint) 10-Apr-91 00021 Add packet control protocol. 00022 00023 --*/ 00024 00025 #include "kdp.h" 00026 00027 LARGE_INTEGER 00028 KdpQueryPerformanceCounter ( 00029 IN PKTRAP_FRAME TrapFrame 00030 ); 00031 00032 #ifdef ALLOC_PRAGMA 00033 #pragma alloc_text(PAGEKD, KdpQueryPerformanceCounter) 00034 #endif 00035 00036 LARGE_INTEGER 00037 KdpQueryPerformanceCounter ( 00038 IN PKTRAP_FRAME TrapFrame 00039 ) 00040 /*++ 00041 00042 Routine Description: 00043 00044 This function optionaly calls KeQueryPerformanceCounter for 00045 the debugger. If the trap had interrupts off, then no call 00046 to KeQueryPerformanceCounter is possible and a NULL is returned. 00047 00048 Return Value: 00049 00050 returns KeQueryPerformanceCounter if possible. 00051 otherwise 0 00052 --*/ 00053 { 00054 00055 if (!(TrapFrame->EFlags & EFLAGS_INTERRUPT_MASK)) { 00056 LARGE_INTEGER LargeIntegerZero; 00057 00058 LargeIntegerZero.QuadPart = 0; 00059 return LargeIntegerZero; 00060 } else { 00061 return KeQueryPerformanceCounter(0); 00062 } 00063 } 00064 

Generated on Sat May 15 19:40:34 2004 for test by doxygen 1.3.7