add return traces to GlobalMemoryStatus, GetSystemInfo

Andreas Mohr andi at rhlx01.fht-esslingen.de
Fri Mar 29 12:51:56 CST 2002


Hi all,

- add return traces to GlobalMemoryStatus, GetSystemInfo
- make sure to yell about unsupported systems in GetSystemInfo

-- 
Andreas Mohr                        Stauferstr. 6, D-71272 Renningen, Germany
-------------- next part --------------
Determining best CVS host...
Using CVSROOT :pserver:cvs at rhlx01.fht-esslingen.de:/home/wine
Index: memory/global.c
===================================================================
RCS file: /home/wine/wine/memory/global.c,v
retrieving revision 1.62
diff -u -r1.62 global.c
--- memory/global.c	10 Mar 2002 00:18:34 -0000	1.62
+++ memory/global.c	29 Mar 2002 16:48:17 -0000
@@ -1600,6 +1600,8 @@
 
     if(lpmem->dwAvailPageFile==0)
         lpmem->dwAvailPageFile++;
+
+    TRACE("<-- LPMEMORYSTATUS: dwLength %ld, dwMemoryLoad %ld, dwTotalPhys %ld, dwAvailPhys %ld, dwTotalPageFile %ld, dwAvailPageFile %ld, dwTotalVirtual %ld, dwAvailVirtual %ld\n", lpmem->dwLength, lpmem->dwMemoryLoad, lpmem->dwTotalPhys, lpmem->dwAvailPhys, lpmem->dwTotalPageFile, lpmem->dwAvailPageFile, lpmem->dwTotalVirtual, lpmem->dwAvailVirtual);
 }
 
 /***********************************************************************
Index: misc/cpu.c
===================================================================
RCS file: /home/wine/wine/misc/cpu.c,v
retrieving revision 1.25
diff -u -r1.25 cpu.c
--- misc/cpu.c	10 Mar 2002 00:18:34 -0000	1.25
+++ misc/cpu.c	29 Mar 2002 16:48:22 -0000
@@ -237,8 +237,7 @@
 	}
 	memcpy(si,&cachedsi,sizeof(*si));
 #else  /* linux */
-	/* FIXME: how do we do this on other systems? */
-
+	FIXME("not yet supported on this system !!\n");
 	RegCreateKeyA(hkey,"0",&xhkey);
 	RegSetValueExA(xhkey,"Identifier",0,REG_SZ,"CPU 386",strlen("CPU 386"));
 #endif  /* !linux */
@@ -246,6 +245,7 @@
 		RegCloseKey(xhkey);
 	if (hkey)
 		RegCloseKey(hkey);
+	TRACE("<- CPU arch %d, res'd %d, pagesize %ld, minappaddr %p, maxappaddr %p, act.cpumask %08lx, numcpus %ld, CPU type %ld, allocgran. %ld, CPU level %d, CPU rev %d\n", si->u.s.wProcessorArchitecture, si->u.s.wReserved, si->dwPageSize, si->lpMinimumApplicationAddress, si->lpMaximumApplicationAddress, si->dwActiveProcessorMask, si->dwNumberOfProcessors, si->dwProcessorType, si->dwAllocationGranularity, si->wProcessorLevel, si->wProcessorRevision);
 }
 
 


More information about the wine-patches mailing list