mirror of https://github.com/PCSX2/pcsx2.git
Linux: Added a console log regarding page protection, based on a hunch I have for what's causing Issue 220. [need a linux person to check it and see if the console logs the new error or not]
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1205 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
757098e66a
commit
c07a79741e
|
@ -382,10 +382,18 @@ namespace HostSys
|
|||
|
||||
void MemProtect( void* baseaddr, size_t size, PageProtectionMode mode, bool allowExecution )
|
||||
{
|
||||
// Breakpoint this to trap potentially inappropriate use of page protection, which would
|
||||
// be caused by failed aligned directives on global vars (dunno if it's happening or not yet)
|
||||
Console::Error(
|
||||
"*PCSX2/Linux Warning* Inappropriate use of page protection detected.\n"
|
||||
"\tbaseaddr not page aligned: 0x%08X", params (uptr)baseaddr
|
||||
);
|
||||
|
||||
int lnxmode = 0;
|
||||
|
||||
// make sure size is aligned to the system page size:
|
||||
// make sure base and size are aligned to the system page size:
|
||||
size = (size + m_pagemask) & ~m_pagemask;
|
||||
baseaddr = (void*)( ((uptr)baseaddr) & ~mpagemask );
|
||||
|
||||
switch( mode )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue