summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Sources
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-08 10:32:50 +0200
committerAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-08 10:32:50 +0200
commitdf1b19604b3fcb9508d27d1d7e41bd3616eb78e5 (patch)
treed7a54666312153410dc0c46f4c76f1cb94607c49 /Kernel/Sources
parent9994b8f3f88131f41be1061fb0947177e66dc7b0 (diff)
MHR-28: Implement SMP support.
Now we need to feed the core code to finish our scheduler. Signed-off-by: Amlal EL Mahrouss <amlal@softwarelabs.com>
Diffstat (limited to 'Kernel/Sources')
-rw-r--r--Kernel/Sources/AppMain.cxx20
-rw-r--r--Kernel/Sources/FileManager.cxx2
2 files changed, 11 insertions, 11 deletions
diff --git a/Kernel/Sources/AppMain.cxx b/Kernel/Sources/AppMain.cxx
index 62795893..41619673 100644
--- a/Kernel/Sources/AppMain.cxx
+++ b/Kernel/Sources/AppMain.cxx
@@ -49,7 +49,7 @@ namespace NewOS::Detail
NewOS::FilesystemManagerInterface::Mount(fNewFS);
- if (fNewFS->GetImpl())
+ if (fNewFS->GetParser())
{
constexpr auto cFolderInfo = "Metadata";
const auto cDirCount = 8;
@@ -59,7 +59,7 @@ namespace NewOS::Detail
for (NewOS::SizeT dirIndx = 0UL; dirIndx < cDirCount; ++dirIndx)
{
- auto catalogDir = fNewFS->GetImpl()->GetCatalog(cDirStr[dirIndx]);
+ auto catalogDir = fNewFS->GetParser()->GetCatalog(cDirStr[dirIndx]);
if (catalogDir)
{
@@ -67,7 +67,7 @@ namespace NewOS::Detail
continue;
}
- catalogDir = fNewFS->GetImpl()->CreateCatalog(cDirStr[dirIndx], 0,
+ catalogDir = fNewFS->GetParser()->CreateCatalog(cDirStr[dirIndx], 0,
kNewFSCatalogKindDir);
NewFork theFork{0};
@@ -100,11 +100,11 @@ namespace NewOS::Detail
const NewOS::SizeT metadataSz = kNewFSSectorSz;
- auto catalogSystem = fNewFS->GetImpl()->GetCatalog(cDirStr[dirIndx]);
+ auto catalogSystem = fNewFS->GetParser()->GetCatalog(cDirStr[dirIndx]);
- fNewFS->GetImpl()->CreateFork(catalogSystem, theFork);
+ fNewFS->GetParser()->CreateFork(catalogSystem, theFork);
- fNewFS->GetImpl()->WriteCatalog(
+ fNewFS->GetParser()->WriteCatalog(
catalogSystem, (NewOS::VoidPtr)(metadataFolder.CData()),
metadataSz, cFolderInfo);
@@ -113,13 +113,13 @@ namespace NewOS::Detail
}
NewCatalog* catalogDisk =
- this->fNewFS->GetImpl()->GetCatalog("/Mount/This Disk");
+ this->fNewFS->GetParser()->GetCatalog("/Mount/This Disk");
const NewOS::Char* cSrcName = "DiskInfo";
if (catalogDisk)
{
- auto bufferInfoDisk = (NewOS::Char*)this->fNewFS->GetImpl()->ReadCatalog(catalogDisk, kNewFSSectorSz, cSrcName);
+ auto bufferInfoDisk = (NewOS::Char*)this->fNewFS->GetParser()->ReadCatalog(catalogDisk, kNewFSSectorSz, cSrcName);
NewOS::kcout << bufferInfoDisk << NewOS::end_line();
delete bufferInfoDisk;
@@ -155,8 +155,8 @@ namespace NewOS::Detail
theDiskFork.ResourceKind = NewOS::kNewFSRsrcForkKind;
theDiskFork.Kind = NewOS::kNewFSDataForkKind;
- fNewFS->GetImpl()->CreateFork(catalogDisk, theDiskFork);
- fNewFS->GetImpl()->WriteCatalog(catalogDisk,
+ fNewFS->GetParser()->CreateFork(catalogDisk, theDiskFork);
+ fNewFS->GetParser()->WriteCatalog(catalogDisk,
(NewOS::VoidPtr)diskFolder.CData(),
kNewFSSectorSz, cSrcName);
diff --git a/Kernel/Sources/FileManager.cxx b/Kernel/Sources/FileManager.cxx
index 1aeae426..0ea463ec 100644
--- a/Kernel/Sources/FileManager.cxx
+++ b/Kernel/Sources/FileManager.cxx
@@ -163,7 +163,7 @@ namespace NewOS
/// @brief Returns the filesystem parser.
/// @return the Filesystem parser class.
- NewFSParser* NewFilesystemManager::GetImpl() noexcept
+ NewFSParser* NewFilesystemManager::GetParser() noexcept
{
return fImpl;
}