summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/src
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Kernel/src')
-rw-r--r--dev/Kernel/src/ACPIFactoryInterface.cc16
-rw-r--r--dev/Kernel/src/BitMapMgr.cc18
-rw-r--r--dev/Kernel/src/DriveMgr.cc2
-rw-r--r--dev/Kernel/src/FS/NeFS.cc56
-rw-r--r--dev/Kernel/src/IndexableProperty.cc2
-rw-r--r--dev/Kernel/src/MemoryMgr.cc6
-rw-r--r--dev/Kernel/src/UserProcessScheduler.cc10
7 files changed, 55 insertions, 55 deletions
diff --git a/dev/Kernel/src/ACPIFactoryInterface.cc b/dev/Kernel/src/ACPIFactoryInterface.cc
index 0faaa46e..56f450ef 100644
--- a/dev/Kernel/src/ACPIFactoryInterface.cc
+++ b/dev/Kernel/src/ACPIFactoryInterface.cc
@@ -43,10 +43,10 @@ namespace NeOS
this->fEntries = num;
- kout << "ACPI: Number of entries: " << number(this->fEntries) << endl;
- kout << "ACPI: Revision: " << number(xsdt->Revision) << endl;
- kout << "ACPI: Signature: " << xsdt->Signature << endl;
- kout << "ACPI: Address of XSDT: " << hex_number((UIntPtr)xsdt) << endl;
+ kout << "ACPI: Number of entries: " << number(this->fEntries) << kendl;
+ kout << "ACPI: Revision: " << number(xsdt->Revision) << kendl;
+ kout << "ACPI: Signature: " << xsdt->Signature << kendl;
+ kout << "ACPI: Address of XSDT: " << hex_number((UIntPtr)xsdt) << kendl;
const short cAcpiSignatureLength = 4;
@@ -54,8 +54,8 @@ namespace NeOS
{
SDT* sdt = reinterpret_cast<SDT*>(xsdt->AddressArr[index]);
- kout << "ACPI: Checksum: " << number(sdt->Checksum) << endl;
- kout << "ACPI: Revision: " << number(sdt->Revision) << endl;
+ kout << "ACPI: Checksum: " << number(sdt->Checksum) << kendl;
+ kout << "ACPI: Revision: " << number(sdt->Revision) << kendl;
for (short signature_index = 0; signature_index < cAcpiSignatureLength; ++signature_index)
{
@@ -64,8 +64,8 @@ namespace NeOS
if (signature_index == (cAcpiSignatureLength - 1))
{
- kout << "ACPI: SDT Signature: " << sdt->Signature << endl;
- kout << "ACPI: SDT OEM ID: " << sdt->OemId << endl;
+ kout << "ACPI: SDT Signature: " << sdt->Signature << kendl;
+ kout << "ACPI: SDT OEM ID: " << sdt->OemId << kendl;
return ErrorOr<voidPtr>(reinterpret_cast<voidPtr>(xsdt->AddressArr[index]));
}
}
diff --git a/dev/Kernel/src/BitMapMgr.cc b/dev/Kernel/src/BitMapMgr.cc
index 5a7f4561..18b1a156 100644
--- a/dev/Kernel/src/BitMapMgr.cc
+++ b/dev/Kernel/src/BitMapMgr.cc
@@ -141,18 +141,18 @@ namespace NeOS
{
if (!this->IsBitMap(ptr_bit_set))
{
- kout << "Not a BitMap: " << hex_number((UIntPtr)ptr_bit_set) << endl;
+ kout << "Not a BitMap: " << hex_number((UIntPtr)ptr_bit_set) << kendl;
return;
}
- kout << "Magic Number: " << hex_number(ptr_bit_set[kBitMapMagIdx]) << endl;
- kout << "Is Allocated: " << (ptr_bit_set[kBitMapUsedIdx] ? "Yes" : "No") << endl;
- kout << "Size of BitMap (B): " << number(ptr_bit_set[kBitMapSizeIdx]) << endl;
- kout << "Size of BitMap (KIB): " << number(KIB(ptr_bit_set[kBitMapSizeIdx])) << endl;
- kout << "Size of BitMap (MIB): " << number(MIB(ptr_bit_set[kBitMapSizeIdx])) << endl;
- kout << "Size of BitMap (GIB): " << number(GIB(ptr_bit_set[kBitMapSizeIdx])) << endl;
- kout << "Size of BitMap (TIB): " << number(TIB(ptr_bit_set[kBitMapSizeIdx])) << endl;
- kout << "Address Of BitMap Header: " << hex_number((UIntPtr)ptr_bit_set) << endl;
+ kout << "Magic Number: " << hex_number(ptr_bit_set[kBitMapMagIdx]) << kendl;
+ kout << "Is Allocated: " << (ptr_bit_set[kBitMapUsedIdx] ? "Yes" : "No") << kendl;
+ kout << "Size of BitMap (B): " << number(ptr_bit_set[kBitMapSizeIdx]) << kendl;
+ kout << "Size of BitMap (KIB): " << number(KIB(ptr_bit_set[kBitMapSizeIdx])) << kendl;
+ kout << "Size of BitMap (MIB): " << number(MIB(ptr_bit_set[kBitMapSizeIdx])) << kendl;
+ kout << "Size of BitMap (GIB): " << number(GIB(ptr_bit_set[kBitMapSizeIdx])) << kendl;
+ kout << "Size of BitMap (TIB): " << number(TIB(ptr_bit_set[kBitMapSizeIdx])) << kendl;
+ kout << "Address Of BitMap Header: " << hex_number((UIntPtr)ptr_bit_set) << kendl;
}
};
} // namespace Detail
diff --git a/dev/Kernel/src/DriveMgr.cc b/dev/Kernel/src/DriveMgr.cc
index 5c5f853a..77dee353 100644
--- a/dev/Kernel/src/DriveMgr.cc
+++ b/dev/Kernel/src/DriveMgr.cc
@@ -202,7 +202,7 @@ namespace NeOS
}
else
{
- kout << "Scheme Found: " << block_struct.Name << endl;
+ kout << "Scheme Found: " << block_struct.Name << kendl;
}
}
diff --git a/dev/Kernel/src/FS/NeFS.cc b/dev/Kernel/src/FS/NeFS.cc
index 6a1191cc..f5fdf63f 100644
--- a/dev/Kernel/src/FS/NeFS.cc
+++ b/dev/Kernel/src/FS/NeFS.cc
@@ -74,7 +74,7 @@ _Output BOOL NeFileSystemParser::CreateFork(_Input NEFS_FORK_STRUCT& the_fork)
Lba lba = catalog->DataFork;
- kout << "Fork LBA: " << hex_number(lba) << endl;
+ kout << "Fork LBA: " << hex_number(lba) << kendl;
if (lba < kNeFSCatalogStartAddress)
return NO;
@@ -95,7 +95,7 @@ _Output BOOL NeFileSystemParser::CreateFork(_Input NEFS_FORK_STRUCT& the_fork)
drv.fInput(drv.fPacket);
- kout << "Next fork: " << hex_number(cur_fork.NextSibling) << endl;
+ kout << "Next fork: " << hex_number(cur_fork.NextSibling) << kendl;
if (cur_fork.Flags & kNeFSFlagCreated)
{
@@ -148,9 +148,9 @@ _Output BOOL NeFileSystemParser::CreateFork(_Input NEFS_FORK_STRUCT& the_fork)
/// log what we have now.
kout << "Fork offset is at: " << hex_number(the_fork.DataOffset)
- << endl;
+ << kendl;
- kout << "Wrote fork metadata at: " << hex_number(lba) << endl;
+ kout << "Wrote fork metadata at: " << hex_number(lba) << kendl;
return YES;
}
@@ -428,9 +428,9 @@ _Output NEFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char
drive.fOutput(drive.fPacket);
kout << "Create new catalog with flags: "
- << hex_number(child_catalog->Flags) << endl;
+ << hex_number(child_catalog->Flags) << kendl;
kout << "Create new catalog with name: " << child_catalog->Name
- << endl;
+ << kendl;
delete catalog;
catalog = nullptr;
@@ -597,14 +597,14 @@ bool NeFileSystemParser::Format(_Input _Output DriveTrait* drive, _Input const L
drive->fOutput(drive->fPacket);
- kout << "drive kind: " << drive->fDriveKind() << endl;
+ kout << "drive kind: " << drive->fDriveKind() << kendl;
- kout << "partition name: " << part_block->PartitionName << endl;
- kout << "start: " << hex_number(part_block->StartCatalog) << endl;
- kout << "number of catalogs: " << hex_number(part_block->CatalogCount) << endl;
- kout << "free catalog: " << hex_number(part_block->FreeCatalog) << endl;
- kout << "free sectors: " << hex_number(part_block->FreeSectors) << endl;
- kout << "sector size: " << hex_number(part_block->SectorSize) << endl;
+ kout << "partition name: " << part_block->PartitionName << kendl;
+ kout << "start: " << hex_number(part_block->StartCatalog) << kendl;
+ kout << "number of catalogs: " << hex_number(part_block->CatalogCount) << kendl;
+ kout << "free catalog: " << hex_number(part_block->FreeCatalog) << kendl;
+ kout << "free sectors: " << hex_number(part_block->FreeSectors) << kendl;
+ kout << "sector size: " << hex_number(part_block->SectorSize) << kendl;
// write the root catalog.
this->CreateCatalog(kNeFSRoot, 0, kNeFSCatalogKindDir);
@@ -663,7 +663,7 @@ bool NeFileSystemParser::WriteCatalog(_Input const Char* catalog_name, Bool is_r
NEFS_FORK_STRUCT* fork_data_input = new NEFS_FORK_STRUCT();
NEFS_FORK_STRUCT prev_fork{};
- kout << hex_number(startFork) << endl;
+ kout << hex_number(startFork) << kendl;
// sanity check of the fork position as the condition to run the loop.
while (startFork >= kNeFSCatalogStartAddress)
@@ -674,13 +674,13 @@ bool NeFileSystemParser::WriteCatalog(_Input const Char* catalog_name, Bool is_r
drive.fInput(drive.fPacket);
- kout << hex_number(fork_data_input->DataSize) << endl;
- kout << hex_number(size_of_data) << endl;
- kout << hex_number(fork_data_input->Flags) << endl;
- kout << fork_name << endl;
- kout << fork_data_input->ForkName << endl;
- kout << fork_data_input->CatalogName << endl;
- kout << catalog_name << endl;
+ kout << hex_number(fork_data_input->DataSize) << kendl;
+ kout << hex_number(size_of_data) << kendl;
+ kout << hex_number(fork_data_input->Flags) << kendl;
+ kout << fork_name << kendl;
+ kout << fork_data_input->ForkName << kendl;
+ kout << fork_data_input->CatalogName << kendl;
+ kout << catalog_name << kendl;
if ((fork_data_input->Flags & kNeFSFlagCreated) &&
StringBuilder::Equals(fork_data_input->ForkName, fork_name) &&
@@ -695,11 +695,11 @@ bool NeFileSystemParser::WriteCatalog(_Input const Char* catalog_name, Bool is_r
drive.fPacket.fPacketSize = size_of_data;
drive.fPacket.fPacketLba = fork_data_input->DataOffset;
- kout << "data offset: " << hex_number(fork_data_input->DataOffset) << endl;
+ kout << "data offset: " << hex_number(fork_data_input->DataOffset) << kendl;
drive.fOutput(drive.fPacket);
- kout << "wrote data at offset: " << hex_number(fork_data_input->DataOffset) << endl;
+ kout << "wrote data at offset: " << hex_number(fork_data_input->DataOffset) << kendl;
delete fork_data_input;
delete[] buf;
@@ -839,8 +839,8 @@ kNeFSSearchThroughCatalogList:
goto NeFSContinueSearch;
}
- kout << "Found available catalog at: " << hex_number(start_catalog_lba) << endl;
- kout << "Found available catalog at: " << temporary_catalog.Name << endl;
+ kout << "Found available catalog at: " << hex_number(start_catalog_lba) << kendl;
+ kout << "Found available catalog at: " << temporary_catalog.Name << kendl;
NEFS_CATALOG_STRUCT* catalog_ptr = new NEFS_CATALOG_STRUCT();
rt_copy_memory(&temporary_catalog, catalog_ptr, sizeof(NEFS_CATALOG_STRUCT));
@@ -978,7 +978,7 @@ VoidPtr NeFileSystemParser::ReadCatalog(_Input _Output NEFS_CATALOG_STRUCT* cata
Size dataForkSize = (!is_rsrc_fork) ? catalog->DataForkSize : catalog->ResourceForkSize;
kout << "catalog " << catalog->Name
- << ", fork: " << hex_number(dataForkLba) << endl;
+ << ", fork: " << hex_number(dataForkLba) << kendl;
NEFS_FORK_STRUCT* fs_buf = new NEFS_FORK_STRUCT();
auto& drive = kMountpoint.A();
@@ -998,8 +998,8 @@ VoidPtr NeFileSystemParser::ReadCatalog(_Input _Output NEFS_CATALOG_STRUCT* cata
fs_fork_data = fs_buf;
- kout << "ForkName: " << fs_fork_data->ForkName << endl;
- kout << "CatalogName: " << fs_fork_data->CatalogName << endl;
+ kout << "ForkName: " << fs_fork_data->ForkName << kendl;
+ kout << "CatalogName: " << fs_fork_data->CatalogName << kendl;
if (StringBuilder::Equals(forkName, fs_fork_data->ForkName) &&
StringBuilder::Equals(catalog->Name, fs_fork_data->CatalogName))
diff --git a/dev/Kernel/src/IndexableProperty.cc b/dev/Kernel/src/IndexableProperty.cc
index 166570e5..404cddc3 100644
--- a/dev/Kernel/src/IndexableProperty.cc
+++ b/dev/Kernel/src/IndexableProperty.cc
@@ -50,7 +50,7 @@ namespace NeOS
indexer.AddFlag(kIndexerClaimed);
rt_copy_memory((VoidPtr)indexer.Leak().Path, (VoidPtr)filename, filenameLen);
- kout << "FSKit: Indexed new file: " << filename << endl;
+ kout << "FSKit: Indexed new file: " << filename << kendl;
}
}
} // namespace Indexer
diff --git a/dev/Kernel/src/MemoryMgr.cc b/dev/Kernel/src/MemoryMgr.cc
index 26fadb83..0035d65f 100644
--- a/dev/Kernel/src/MemoryMgr.cc
+++ b/dev/Kernel/src/MemoryMgr.cc
@@ -144,7 +144,7 @@ namespace NeOS
auto result = reinterpret_cast<VoidPtr>(heap_info_ptr->fOffset);
- kout << "Registered heap address: " << hex_number(reinterpret_cast<UIntPtr>(heap_info_ptr)) << endl;
+ kout << "Registered heap address: " << hex_number(reinterpret_cast<UIntPtr>(heap_info_ptr)) << kendl;
return result;
}
@@ -166,7 +166,7 @@ namespace NeOS
heap_info_ptr->fPage = true;
- kout << "Registered page address: " << hex_number(reinterpret_cast<UIntPtr>(heap_info_ptr)) << endl;
+ kout << "Registered page address: " << hex_number(reinterpret_cast<UIntPtr>(heap_info_ptr)) << kendl;
return kErrorSuccess;
}
@@ -238,7 +238,7 @@ namespace NeOS
PageMgr heap_mgr;
heap_mgr.Free(pte_address);
- kout << "Address has been successfully freed." << endl;
+ kout << "Address has been successfully freed." << kendl;
return kErrorSuccess;
}
diff --git a/dev/Kernel/src/UserProcessScheduler.cc b/dev/Kernel/src/UserProcessScheduler.cc
index b76e8799..a8315496 100644
--- a/dev/Kernel/src/UserProcessScheduler.cc
+++ b/dev/Kernel/src/UserProcessScheduler.cc
@@ -57,7 +57,7 @@ namespace NeOS
if (this->Status != ProcessStatusKind::kRunning)
return;
- kout << this->Name << ": crashed, error id: " << number(kErrorProcessFault) << endl;
+ kout << this->Name << ": crashed, error id: " << number(kErrorProcessFault) << kendl;
this->Exit(kErrorProcessFault);
}
@@ -338,7 +338,7 @@ namespace NeOS
MUST_PASS(process.DylibDelegate);
}
default: {
- kout << "Unknown process kind: " << hex_number(process.Kind) << endl;
+ kout << "Unknown process kind: " << hex_number(process.Kind) << kendl;
break;
}
}
@@ -365,8 +365,8 @@ namespace NeOS
process.Status = ProcessStatusKind::kStarting;
process.PTime = (UIntPtr)AffinityKind::kStandard;
- kout << "PID: " << number(process.ProcessId) << endl;
- kout << "Name: " << process.Name << endl;
+ kout << "PID: " << number(process.ProcessId) << kendl;
+ kout << "Name: " << process.Name << kendl;
return pid;
}
@@ -437,7 +437,7 @@ namespace NeOS
return 0UL;
}
- kout << "UserProcessScheduler::Run(): This team has a process capacity of: " << hex_number(mTeam.mProcessList.Capacity()) << endl;
+ kout << "UserProcessScheduler::Run(): This team has a process capacity of: " << hex_number(mTeam.mProcessList.Capacity()) << kendl;
for (; process_index < mTeam.AsArray().Capacity(); ++process_index)
{