/[pcsx2_0.9.7]/trunk/common/src/Utilities/Linux/LnxMisc.cpp
ViewVC logotype

Diff of /trunk/common/src/Utilities/Linux/LnxMisc.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/common/src/Utilities/Linux/LnxMisc.cpp	2010/12/23 11:48:33	279
+++ trunk/common/src/Utilities/Linux/LnxMisc.cpp	2010/12/23 12:02:12	280
@@ -20,11 +20,18 @@
 #include <sys/time.h>
 #include <wx/utils.h>
 
-extern "C" __aligned16 u8 _xmm_backup[16*2];
-extern "C" __aligned16 u8 _mmx_backup[8*4];
+// Returns 0 on failure (not supported by the operating system).
+u64 GetPhysicalMemory()
+{
+	u64 pages		= 0;
+
+#ifdef _SC_PHYS_PAGES
+	pages = sysconf(_SC_PHYS_PAGES);
+#endif
+
+	return pages * getpagesize();
+}
 
-u8 _xmm_backup[16*2];
-u8 _mmx_backup[8*4];
 
 void InitCPUTicks()
 {

 

  ViewVC Help
Powered by ViewVC 1.1.22