summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/src
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Kernel/src')
-rw-r--r--dev/Kernel/src/CodeMgr.cc2
-rw-r--r--dev/Kernel/src/DriveMgr.cc2
-rw-r--r--dev/Kernel/src/FS/NeFS.cc30
-rw-r--r--dev/Kernel/src/FileMgr.cc2
-rw-r--r--dev/Kernel/src/KernelMain.cc10
-rw-r--r--dev/Kernel/src/Mgr/SwapMgr.cc34
-rw-r--r--dev/Kernel/src/NeFS+FileMgr.cc4
-rw-r--r--dev/Kernel/src/SoftwareTimer.cc2
8 files changed, 43 insertions, 43 deletions
diff --git a/dev/Kernel/src/CodeMgr.cc b/dev/Kernel/src/CodeMgr.cc
index 74d4dd84..53576b2c 100644
--- a/dev/Kernel/src/CodeMgr.cc
+++ b/dev/Kernel/src/CodeMgr.cc
@@ -16,7 +16,7 @@ namespace Kernel
/// @param main the start of the process.
/// @return if the process was started or not.
/***********************************************************************************/
-
+
ProcessID rtl_create_process(rtl_main_kind main, const Char* process_name) noexcept
{
if (!process_name ||
diff --git a/dev/Kernel/src/DriveMgr.cc b/dev/Kernel/src/DriveMgr.cc
index b2098e5e..b588bb0a 100644
--- a/dev/Kernel/src/DriveMgr.cc
+++ b/dev/Kernel/src/DriveMgr.cc
@@ -175,7 +175,7 @@ namespace Kernel
{
trait->fPacket.fPacketReadOnly = NO;
trait->fKind = kMassStorageDisc | kEPMDrive;
-
+
kcout << "Formatted Disc is EPM (and Mass Storage too.)\r";
}
else
diff --git a/dev/Kernel/src/FS/NeFS.cc b/dev/Kernel/src/FS/NeFS.cc
index 57ef103f..27a027cd 100644
--- a/dev/Kernel/src/FS/NeFS.cc
+++ b/dev/Kernel/src/FS/NeFS.cc
@@ -61,7 +61,7 @@ STATIC MountpointInterface kDiskMountpoint;
/// @return the fork
/***********************************************************************************/
_Output NFS_FORK_STRUCT* NeFileSystemParser::CreateFork(_Input NFS_CATALOG_STRUCT* catalog,
- _Input NFS_FORK_STRUCT& the_fork)
+ _Input NFS_FORK_STRUCT& the_fork)
{
if (catalog && the_fork.ForkName[0] != 0 &&
the_fork.DataSize <= kNeFSForkDataSz)
@@ -170,8 +170,8 @@ _Output NFS_FORK_STRUCT* NeFileSystemParser::CreateFork(_Input NFS_CATALOG_STRUC
/// @return the fork.
/***********************************************************************************/
_Output NFS_FORK_STRUCT* NeFileSystemParser::FindFork(_Input NFS_CATALOG_STRUCT* catalog,
- _Input const Char* name,
- Boolean isDataFork)
+ _Input const Char* name,
+ Boolean isDataFork)
{
auto drv = kDiskMountpoint.A();
NFS_FORK_STRUCT* the_fork = nullptr;
@@ -236,9 +236,9 @@ _Output NFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char*
/// @param kind the catalog kind.
/// @return catalog pointer.
/***********************************************************************************/
-_Output NFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char* name,
- _Input const Int32& flags,
- _Input const Int32& kind)
+_Output NFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char* name,
+ _Input const Int32& flags,
+ _Input const Int32& kind)
{
kcout << "CreateCatalog(...)\r";
@@ -509,8 +509,8 @@ bool NeFileSystemParser::Format(_Input _Output DriveTrait* drive, _Input const L
rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(kFsName)), epm_boot->Fs, rt_string_len(kFsName));
epm_boot->FsVersion = kNeFSVersionInteger;
- epm_boot->LbaStart = start;
- epm_boot->SectorSz = kNeFSSectorSz;
+ epm_boot->LbaStart = start;
+ epm_boot->SectorSz = kNeFSSectorSz;
rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(kBlockName)), epm_boot->Name, rt_string_len(kBlockName));
rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(kEPMMagic)), epm_boot->Magic, rt_string_len(kEPMMagic));
@@ -537,7 +537,7 @@ bool NeFileSystemParser::Format(_Input _Output DriveTrait* drive, _Input const L
if (epm_boot->LbaStart)
epm_boot->LbaStart = outEpmLba;
- epm_boot->LbaEnd = endLba;
+ epm_boot->LbaEnd = endLba;
epm_boot->NumBlocks = cnt;
drive->fPacket.fPacketContent = bufEpmHdr;
@@ -720,7 +720,7 @@ bool NeFileSystemParser::WriteCatalog(_Input _Output NFS_CATALOG_STRUCT* catalog
/// @param catalog_name the catalog name.
/// @return the newly found catalog.
_Output NFS_CATALOG_STRUCT* NeFileSystemParser::FindCatalog(_Input const Char* catalog_name,
- Lba& out_lba)
+ Lba& out_lba)
{
if (!catalog_name ||
*catalog_name == 0)
@@ -742,7 +742,7 @@ _Output NFS_CATALOG_STRUCT* NeFileSystemParser::FindCatalog(_Input const Char* c
NFS_ROOT_PARTITION_BLOCK* part = (NFS_ROOT_PARTITION_BLOCK*)&fs_buf;
- auto start_catalog_lba = part->StartCatalog;
+ auto start_catalog_lba = part->StartCatalog;
const auto kStartCatalogList = start_catalog_lba;
auto localSearchFirst = false;
@@ -838,7 +838,7 @@ NeFSSearchThroughCatalogList:
if (localSearchFirst)
{
- localSearchFirst = false;
+ localSearchFirst = false;
start_catalog_lba = kStartCatalogList;
goto NeFSSearchThroughCatalogList;
@@ -938,9 +938,9 @@ Boolean NeFileSystemParser::RemoveCatalog(_Input const Char* catalog_name)
/***********************************************************************************/
VoidPtr NeFileSystemParser::ReadCatalog(_Input _Output NFS_CATALOG_STRUCT* catalog,
- _Input Bool is_rsrc_fork,
- _Input SizeT dataSz,
- _Input const Char* forkName)
+ _Input Bool is_rsrc_fork,
+ _Input SizeT dataSz,
+ _Input const Char* forkName)
{
if (!catalog)
{
diff --git a/dev/Kernel/src/FileMgr.cc b/dev/Kernel/src/FileMgr.cc
index e316286a..1b806d2c 100644
--- a/dev/Kernel/src/FileMgr.cc
+++ b/dev/Kernel/src/FileMgr.cc
@@ -28,7 +28,7 @@ namespace Kernel
if (kMountedFilesystem)
{
auto mount = kMountedFilesystem;
- kMountedFilesystem = nullptr;
+ kMountedFilesystem = nullptr;
return mount;
}
diff --git a/dev/Kernel/src/KernelMain.cc b/dev/Kernel/src/KernelMain.cc
index 900bb944..d62fe3b2 100644
--- a/dev/Kernel/src/KernelMain.cc
+++ b/dev/Kernel/src/KernelMain.cc
@@ -42,8 +42,8 @@ namespace Kernel::Detail
{
mJournal.CreateJournal(mNeFS);
- constexpr auto kFolderInfo = "META-XML";
- const SizeT kFolderCount = 7;
+ constexpr auto kFolderInfo = "META-XML";
+ const SizeT kFolderCount = 7;
const Char* kFolderStr[kFolderCount] = {
"/Boot/", "/System/", "/Support/", "/Applications/",
"/Users/", "/Library/", "/Mount/"};
@@ -61,7 +61,7 @@ namespace Kernel::Detail
}
catalog_folder = mNeFS->CreateCatalog(kFolderStr[dir_index], 0,
- kNeFSCatalogKindDir);
+ kNeFSCatalogKindDir);
NFS_FORK_STRUCT fork_folder{0};
@@ -90,7 +90,7 @@ namespace Kernel::Detail
Kernel::KString folder_name(2048);
folder_name += catalog_folder->Name;
- mJournal.Commit(mNeFS, folder_metadata,folder_name);
+ mJournal.Commit(mNeFS, folder_metadata, folder_name);
const Kernel::SizeT kMetaDataSz = kNeFSSectorSz;
@@ -110,7 +110,7 @@ namespace Kernel::Detail
{
if (mNeFS)
delete mNeFS;
-
+
mNeFS = nullptr;
}
diff --git a/dev/Kernel/src/Mgr/SwapMgr.cc b/dev/Kernel/src/Mgr/SwapMgr.cc
index a45913c2..a909846f 100644
--- a/dev/Kernel/src/Mgr/SwapMgr.cc
+++ b/dev/Kernel/src/Mgr/SwapMgr.cc
@@ -9,20 +9,20 @@
namespace Kernel
{
- class SwapMgrDiskMgr;
-
- class SwapMgrDiskMgr final
- {
- static BOOL DumpToDisk(const Char* fork_name, const SizeT fork_name_len, VoidPtr data, const SizeT data_len)
- {
- if (!fork_name || !fork_name_len)
- return NO;
-
- FileStream file(kSwapMgrPageFile, "wb");
-
- file.Write(fork_name, data, data_len);
-
- return YES;
- }
- }
-} \ No newline at end of file
+ class SwapMgrDiskMgr;
+
+ class SwapMgrDiskMgr final
+ {
+ static BOOL DumpToDisk(const Char* fork_name, const SizeT fork_name_len, VoidPtr data, const SizeT data_len)
+ {
+ if (!fork_name || !fork_name_len)
+ return NO;
+
+ FileStream file(kSwapMgrPageFile, "wb");
+
+ file.Write(fork_name, data, data_len);
+
+ return YES;
+ }
+ }
+} // namespace Kernel \ No newline at end of file
diff --git a/dev/Kernel/src/NeFS+FileMgr.cc b/dev/Kernel/src/NeFS+FileMgr.cc
index 4530a1e5..ba3e6718 100644
--- a/dev/Kernel/src/NeFS+FileMgr.cc
+++ b/dev/Kernel/src/NeFS+FileMgr.cc
@@ -170,7 +170,7 @@ namespace Kernel
if ((reinterpret_cast<NFS_CATALOG_STRUCT*>(node))->Kind == kNeFSCatalogKindFile)
mParser->WriteCatalog(reinterpret_cast<NFS_CATALOG_STRUCT*>(node), (flags & kFileFlagRsrc ? true : false), data, size,
- name);
+ name);
}
_Output VoidPtr NeFileSystemMgr::Read(_Input const Char* name,
@@ -188,7 +188,7 @@ namespace Kernel
if ((reinterpret_cast<NFS_CATALOG_STRUCT*>(node))->Kind == kNeFSCatalogKindFile)
return mParser->ReadCatalog(reinterpret_cast<NFS_CATALOG_STRUCT*>(node), (flags & kFileFlagRsrc ? true : false), sz,
- name);
+ name);
return nullptr;
}
diff --git a/dev/Kernel/src/SoftwareTimer.cc b/dev/Kernel/src/SoftwareTimer.cc
index 1bd2bc2a..5d401b09 100644
--- a/dev/Kernel/src/SoftwareTimer.cc
+++ b/dev/Kernel/src/SoftwareTimer.cc
@@ -21,7 +21,7 @@ SoftwareTimer::~SoftwareTimer()
{
delete fDigitalTimer;
fDigitalTimer = nullptr;
-
+
fWaitFor = 0;
}