Changed VMTranslationMap::Lock()/Unlock() return types to the usual.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35075 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-01-14 20:44:29 +00:00
parent b55a57da71
commit c6aa013564
4 changed files with 12 additions and 14 deletions

View File

@ -22,8 +22,8 @@ struct VMTranslationMap {
virtual status_t InitPostSem() = 0;
virtual status_t Lock() = 0;
virtual status_t Unlock() = 0;
virtual bool Lock() = 0;
virtual void Unlock() = 0;
virtual addr_t MappedSize() const = 0;
virtual size_t MaxPagesNeededToMap(addr_t start,

View File

@ -129,8 +129,8 @@ struct PPCVMTranslationMap : VMTranslationMap {
virtual status_t InitPostSem();
virtual status_t Lock();
virtual status_t Unlock();
virtual bool Lock();
virtual void Unlock();
virtual addr_t MappedSize() const;
virtual size_t MaxPagesNeededToMap(addr_t start,
@ -353,19 +353,18 @@ PPCVMTranslationMap::InitPostSem()
}
status_t
bool
PPCVMTranslationMap::Lock()
{
recursive_lock_lock(&fLock);
return 0;
return true;
}
status_t
void
PPCVMTranslationMap::Unlock()
{
recursive_lock_unlock(&fLock);
return 0;
}

View File

@ -22,8 +22,8 @@ struct X86VMTranslationMap : VMTranslationMap {
virtual status_t InitPostSem();
virtual status_t Lock();
virtual status_t Unlock();
virtual bool Lock();
virtual void Unlock();
virtual addr_t MappedSize() const;
virtual size_t MaxPagesNeededToMap(addr_t start,

View File

@ -349,7 +349,7 @@ X86VMTranslationMap::InitPostSem()
/*! Acquires the map's recursive lock, and resets the invalidate pages counter
in case it's the first locking recursion.
*/
status_t
bool
X86VMTranslationMap::Lock()
{
TRACE(("lock_tmap: map %p\n", map));
@ -361,7 +361,7 @@ X86VMTranslationMap::Lock()
fArchData->num_invalidate_pages = 0;
}
return B_OK;
return true;
}
@ -369,7 +369,7 @@ X86VMTranslationMap::Lock()
flush all pending changes of this map (ie. flush TLB caches as
needed).
*/
status_t
void
X86VMTranslationMap::Unlock()
{
TRACE(("unlock_tmap: map %p\n", map));
@ -380,7 +380,6 @@ X86VMTranslationMap::Unlock()
}
recursive_lock_unlock(&fLock);
return B_OK;
}