summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/zka/src/PEFCodeMgr.cxx8
-rw-r--r--dev/zka/src/Semaphore.cxx8
-rw-r--r--dev/zka/src/User.cxx10
3 files changed, 13 insertions, 13 deletions
diff --git a/dev/zka/src/PEFCodeMgr.cxx b/dev/zka/src/PEFCodeMgr.cxx
index b1690abf..47643078 100644
--- a/dev/zka/src/PEFCodeMgr.cxx
+++ b/dev/zka/src/PEFCodeMgr.cxx
@@ -23,9 +23,9 @@ namespace Kernel
namespace Detail
{
/// @brief Get the PEF platform signature according to the compiled backebnd
- UInt32 rt_get_pef_platform(void) noexcept
+ UInt32 ldr_get_platform(void) noexcept
{
-#ifdef __ZKA_32X0__
+#if defined(__ZKA_32X0__)
return kPefArch32x0;
#elif defined(__ZKA_64X0__)
return kPefArch64x0;
@@ -64,7 +64,7 @@ namespace Kernel
PEFContainer* container = reinterpret_cast<PEFContainer*>(fCachedBlob);
- if (container->Cpu == Detail::rt_get_pef_platform() &&
+ if (container->Cpu == Detail::ldr_get_platform() &&
container->Magic[0] == kPefMagic[0] &&
container->Magic[1] == kPefMagic[1] &&
container->Magic[2] == kPefMagic[2] &&
@@ -155,7 +155,7 @@ namespace Kernel
{
if (container_header->Kind == kind)
{
- if (container_header->Cpu != Detail::rt_get_pef_platform())
+ if (container_header->Cpu != Detail::ldr_get_platform())
{
if (!this->fFatBinary)
{
diff --git a/dev/zka/src/Semaphore.cxx b/dev/zka/src/Semaphore.cxx
index 3e30cc31..9160228b 100644
--- a/dev/zka/src/Semaphore.cxx
+++ b/dev/zka/src/Semaphore.cxx
@@ -9,7 +9,7 @@
namespace Kernel
{
- bool Semaphore::Unlock() noexcept
+ Bool Semaphore::Unlock() noexcept
{
if (fLockingProcess)
fLockingProcess = nullptr;
@@ -17,7 +17,7 @@ namespace Kernel
return fLockingProcess == nullptr;
}
- bool Semaphore::Lock(UserProcess* process)
+ Bool Semaphore::Lock(UserProcess* process)
{
if (!process || fLockingProcess)
return false;
@@ -27,12 +27,12 @@ namespace Kernel
return true;
}
- bool Semaphore::IsLocked() const
+ Bool Semaphore::IsLocked() const
{
return fLockingProcess;
}
- bool Semaphore::LockOrWait(UserProcess* process, TimerInterface* timer)
+ Bool Semaphore::LockOrWait(UserProcess* process, TimerInterface* timer)
{
if (process == nullptr)
return false;
diff --git a/dev/zka/src/User.cxx b/dev/zka/src/User.cxx
index 1e4f9df9..be3bff2d 100644
--- a/dev/zka/src/User.cxx
+++ b/dev/zka/src/User.cxx
@@ -72,7 +72,7 @@ namespace Kernel
{
if (!password_to_fill ||
*password_to_fill == 0)
- return false;
+ return No;
SizeT len = rt_string_len(password_to_fill);
@@ -89,7 +89,7 @@ namespace Kernel
delete[] password;
password = nullptr;
- return false;
+ return No;
}
// then store password.
@@ -101,15 +101,15 @@ namespace Kernel
kcout << "Saved password...\r";
- return true;
+ return Yes;
}
- bool User::operator==(const User& lhs)
+ Bool User::operator==(const User& lhs)
{
return lhs.fRing == this->fRing;
}
- bool User::operator!=(const User& lhs)
+ Bool User::operator!=(const User& lhs)
{
return lhs.fRing != this->fRing;
}