summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/ZKA/HALKit/AMD64/HalBMPMgr.cxx18
-rw-r--r--dev/ZKA/NewKit/Defines.hxx12
2 files changed, 17 insertions, 13 deletions
diff --git a/dev/ZKA/HALKit/AMD64/HalBMPMgr.cxx b/dev/ZKA/HALKit/AMD64/HalBMPMgr.cxx
index 1e2d697c..bdca5c9f 100644
--- a/dev/ZKA/HALKit/AMD64/HalBMPMgr.cxx
+++ b/dev/ZKA/HALKit/AMD64/HalBMPMgr.cxx
@@ -109,7 +109,7 @@ namespace Kernel
base_ptr = reinterpret_cast<VoidPtr>(reinterpret_cast<UIntPtr>(base_ptr) + (ptr_bit_set[0] != cBitMpMagic ? size : ptr_bit_set[1]));
- if ((UIntPtr)base_ptr < (base + kHandoverHeader->f_BitMapSize))
+ if ((UIntPtr)base_ptr < ((base) + kHandoverHeader->f_BitMapSize))
return nullptr;
}
@@ -121,18 +121,18 @@ namespace Kernel
{
if (!this->IsBitMap(ptr_bit_set))
{
- kcout << "Not a BMP: " << hex_number((UIntPtr)ptr_bit_set) << endl;
+ kcout << "Not a BitMap: " << hex_number((UIntPtr)ptr_bit_set) << endl;
return;
}
- kcout << "Magic Number: " << hex_number(ptr_bit_set[cBitMapMagIdx]) << endl;
+ kcout << "Magic BitMap Number: " << hex_number(ptr_bit_set[cBitMapMagIdx]) << endl;
kcout << "Allocated: " << (ptr_bit_set[cBitMapUsedIdx] ? "Yes" : "No") << endl;
- kcout << "Size of pointer (B): " << number(ptr_bit_set[cBitMapSizeIdx]) << endl;
- kcout << "Size of pointer (KIB): " << number(KIB(ptr_bit_set[cBitMapSizeIdx])) << endl;
- kcout << "Size of pointer (MIB): " << number(MIB(ptr_bit_set[cBitMapSizeIdx])) << endl;
- kcout << "Size of pointer (GIB): " << number(GIB(ptr_bit_set[cBitMapSizeIdx])) << endl;
- kcout << "Size of pointer (TIB): " << number(TIB(ptr_bit_set[cBitMapSizeIdx])) << endl;
- kcout << "Address Of BMP: " << hex_number((UIntPtr)ptr_bit_set) << endl;
+ kcout << "Size of BitMap (B): " << number(ptr_bit_set[cBitMapSizeIdx]) << endl;
+ kcout << "Size of BitMap (KIB): " << number(KIB(ptr_bit_set[cBitMapSizeIdx])) << endl;
+ kcout << "Size of BitMap (MIB): " << number(MIB(ptr_bit_set[cBitMapSizeIdx])) << endl;
+ kcout << "Size of BitMap (GIB): " << number(GIB(ptr_bit_set[cBitMapSizeIdx])) << endl;
+ kcout << "Size of BitMap (TIB): " << number(TIB(ptr_bit_set[cBitMapSizeIdx])) << endl;
+ kcout << "Address Of BitMap: " << hex_number((UIntPtr)ptr_bit_set) << endl;
}
};
} // namespace Detail
diff --git a/dev/ZKA/NewKit/Defines.hxx b/dev/ZKA/NewKit/Defines.hxx
index 395b14a5..b77e94f3 100644
--- a/dev/ZKA/NewKit/Defines.hxx
+++ b/dev/ZKA/NewKit/Defines.hxx
@@ -103,13 +103,13 @@ namespace Kernel
return static_cast<Args&&>(arg);
}
- /// @brief Coder/Decoder class, used as a proxy to convert T to Char*
+ /// @brief Encoding interface, used as a proxy to convert T to Char*
/// Used to cast A to B or B to A.
- class IEncoderObject final
+ class IEncoderObject
{
public:
explicit IEncoderObject() = default;
- ~IEncoderObject() = default;
+ virtual ~IEncoderObject() = default;
IEncoderObject& operator=(const IEncoderObject&) = default;
IEncoderObject(const IEncoderObject&) = default;
@@ -133,7 +133,7 @@ namespace Kernel
template <typename T, typename Y>
Y As(T type) noexcept
{
- if (type.IsCastable())
+ if (type.IsSerializable())
{
return reinterpret_cast<Char*>(type);
}
@@ -142,6 +142,7 @@ namespace Kernel
}
};
+ /// \brief Scheduler interface, represents a scheduler object.
class ISchedulerObject
{
public:
@@ -151,16 +152,19 @@ namespace Kernel
ISchedulerObject& operator=(const ISchedulerObject&) = default;
ISchedulerObject(const ISchedulerObject&) = default;
+ /// @brief Is this object only accepting user tasks?
virtual const Bool IsUser()
{
return false;
}
+ /// @brief Is this object only accepting kernel tasks?
virtual const Bool IsKernel()
{
return false;
}
+ /// @brief Is this object offloading to another CPU?
virtual const Bool HasMP()
{
return false;