summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit/DeviceManager.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-03 09:20:28 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-03 09:20:28 +0200
commit3facc32b746a44b0e3a91cbe1897127194396d1b (patch)
tree0725ebbf35a18e6933596ea5c765ac81adf7834f /Private/KernelKit/DeviceManager.hpp
parentefc6b5d169d2b6eaabe7384141cec6054ae622a0 (diff)
MHR-3: See main changes below.
Kernel: Improve Disk interfaces regarding the struct they're using (all of them are using MountpountInterface now) SystemLib: Start adding PowerPC code to the SystemLib to be cross compiled as a PEF FAT binary. Kernel: Adding new builtins to support a wide range of hardware. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/KernelKit/DeviceManager.hpp')
-rw-r--r--Private/KernelKit/DeviceManager.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Private/KernelKit/DeviceManager.hpp b/Private/KernelKit/DeviceManager.hpp
index 10d23604..0935c5b3 100644
--- a/Private/KernelKit/DeviceManager.hpp
+++ b/Private/KernelKit/DeviceManager.hpp
@@ -21,8 +21,10 @@
#include <NewKit/ErrorOr.hpp>
#include <NewKit/Ref.hpp>
+#define kDriveManagerCount 4U
+
// Last Rev
-// Sat Feb 24 CET 2024
+// Wed, Apr 3, 2024 9:09:41 AM
namespace NewOS {
template <typename T>
@@ -41,12 +43,12 @@ class DeviceInterface {
DeviceInterface(const DeviceInterface<T> &) = default;
public:
- DeviceInterface<T> &operator<<(T Data) {
+ virtual DeviceInterface<T> &operator<<(T Data) {
m_Out(Data);
return *this;
}
- DeviceInterface<T> &operator>>(T Data) {
+ virtual DeviceInterface<T> &operator>>(T Data) {
m_In(Data);
return *this;
}