fix very very insidious bug with mapping physical memory (TLB corruption). fix weirdness reported by michael (underlying cause: using cpu_ClockFrequency instead of wcpu_*; that made the timer run at freq=0)

mahaf: now disabled on Win2k because we can't prevent the TLB bug there.
removed the CopyPhysical API.
wutil: allow querying windows version via number

View: fix warning

This was SVN commit r5169.
This commit is contained in:
janwas
2007-06-12 23:29:27 +00:00
parent 52aa29681c
commit f331b7313d
23 changed files with 137 additions and 126 deletions
+1 -2
View File
@@ -22,7 +22,6 @@
#include "lib/posix/posix_pthread.h"
#include "lib/sysdep/cpu.h" // CAS
#include "lib/sysdep/sysdep.h"
#include "lib/res/file/file.h" // FILE_ACCESS
// some functions here are called from within mmgr; disable its hooks
// so that our allocations don't cause infinite recursion.
#ifdef REDEFINED_NEW
@@ -237,7 +236,7 @@ LibError debug_write_crashlog(const wchar_t* text)
if(!f)
{
in_progress = 0;
WARN_RETURN(ERR::FILE_ACCESS);
WARN_RETURN(ERR::FAIL);
}
fputwc(0xfeff, f); // BOM