summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-04-18 10:30:03 +0200
committerLinus Groh <mail@linusgroh.de>2021-04-18 10:30:03 +0200
commit2b0c361d04b519b20bfb70a34c07de579a93fafd (patch)
treef2a4d12d02801fe5bd0abf1ac2c068b540d75a45 /Kernel
parentcebd3f740b6fd2fd0da30ed92310a968cf6df44a (diff)
downloadserenity-2b0c361d04b519b20bfb70a34c07de579a93fafd.zip
Everywhere: Fix a bunch of typos
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Arch/i386/CPU.cpp6
-rw-r--r--Kernel/Arch/x86_64/Boot/boot.S2
-rw-r--r--Kernel/Storage/AHCIPort.cpp2
-rw-r--r--Kernel/Storage/ATA.h2
-rw-r--r--Kernel/Storage/IDEChannel.cpp2
-rw-r--r--Kernel/Syscalls/mmap.cpp2
-rw-r--r--Kernel/UBSanitizer.cpp4
-rw-r--r--Kernel/VirtIO/VirtIO.cpp2
-rw-r--r--Kernel/VirtIO/VirtIOQueue.cpp4
9 files changed, 13 insertions, 13 deletions
diff --git a/Kernel/Arch/i386/CPU.cpp b/Kernel/Arch/i386/CPU.cpp
index 4a3dba9529..7217caba51 100644
--- a/Kernel/Arch/i386/CPU.cpp
+++ b/Kernel/Arch/i386/CPU.cpp
@@ -498,8 +498,8 @@ void unregister_generic_interrupt_handler(u8 interrupt_number, GenericInterruptH
UNMAP_AFTER_INIT void register_interrupt_handler(u8 index, void (*handler)())
{
// FIXME: Why is that with selector 8?
- // FIXME: Is the Gate Type really required to be an Interupt
- // FIXME: Whats up with that storage segment 0?
+ // FIXME: Is the Gate Type really required to be an Interrupt
+ // FIXME: What's up with that storage segment 0?
s_idt[index] = IDTEntry((FlatPtr)handler, 8, IDTEntryType::InterruptGate32, 0, 0);
}
@@ -507,7 +507,7 @@ UNMAP_AFTER_INIT void register_user_callable_interrupt_handler(u8 index, void (*
{
// FIXME: Why is that with selector 8?
// FIXME: Is the Gate Type really required to be a Trap
- // FIXME: Whats up with that storage segment 0?
+ // FIXME: What's up with that storage segment 0?
s_idt[index] = IDTEntry((FlatPtr)handler, 8, IDTEntryType::TrapGate32, 0, 3);
}
diff --git a/Kernel/Arch/x86_64/Boot/boot.S b/Kernel/Arch/x86_64/Boot/boot.S
index c9a64e0e85..8e1d9d27ba 100644
--- a/Kernel/Arch/x86_64/Boot/boot.S
+++ b/Kernel/Arch/x86_64/Boot/boot.S
@@ -222,7 +222,7 @@ start:
movl %cr0, %eax
orl $0x80000000, %eax
movl %eax, %cr0
- /* Now we are in 32-bit compatablity mode, We still need to load a 64-bit GDT */
+ /* Now we are in 32-bit compatibility mode, We still need to load a 64-bit GDT */
/* set up stack */
mov $stack_top, %esp
diff --git a/Kernel/Storage/AHCIPort.cpp b/Kernel/Storage/AHCIPort.cpp
index 1ef3317e05..c9249ad6c4 100644
--- a/Kernel/Storage/AHCIPort.cpp
+++ b/Kernel/Storage/AHCIPort.cpp
@@ -516,7 +516,7 @@ bool AHCIPort::spin_until_ready() const
spin++;
}
if (spin == 100) {
- dbgln_if(AHCI_DEBUG, "AHCI Port {}: SPIN exceeded 100 miliseconds threshold", representative_port_index());
+ dbgln_if(AHCI_DEBUG, "AHCI Port {}: SPIN exceeded 100 milliseconds threshold", representative_port_index());
return false;
}
return true;
diff --git a/Kernel/Storage/ATA.h b/Kernel/Storage/ATA.h
index e74dae6317..d4c5910040 100644
--- a/Kernel/Storage/ATA.h
+++ b/Kernel/Storage/ATA.h
@@ -122,7 +122,7 @@ struct [[gnu::packed]] ATAIdentifyBlock {
u16 maximum_logical_sectors_per_drq;
u16 trusted_computing_features;
- u16 capabilites[2];
+ u16 capabilities[2];
u16 obsolete5[2];
u16 validity_flags;
u16 obsolete6[5];
diff --git a/Kernel/Storage/IDEChannel.cpp b/Kernel/Storage/IDEChannel.cpp
index 14debe1dc7..215cac3269 100644
--- a/Kernel/Storage/IDEChannel.cpp
+++ b/Kernel/Storage/IDEChannel.cpp
@@ -357,7 +357,7 @@ UNMAP_AFTER_INIT void IDEChannel::detect_disks()
volatile ATAIdentifyBlock& identify_block = (volatile ATAIdentifyBlock&)(*wbuf.data());
- u16 capabilities = identify_block.capabilites[0];
+ u16 capabilities = identify_block.capabilities[0];
// If the drive is so old that it doesn't support LBA, ignore it.
if (!(capabilities & ATA_CAP_LBA))
diff --git a/Kernel/Syscalls/mmap.cpp b/Kernel/Syscalls/mmap.cpp
index 477fe14aef..9d44a0c673 100644
--- a/Kernel/Syscalls/mmap.cpp
+++ b/Kernel/Syscalls/mmap.cpp
@@ -506,7 +506,7 @@ KResultOr<int> Process::sys$munmap(Userspace<void*> addr, size_t size)
// slow: without caching
const auto& regions = space().find_regions_intersecting(range_to_unmap);
- // check if any of the regions is not mmaped, to not accientally
+ // check if any of the regions is not mmapped, to not accientally
// error-out with just half a region map left
for (auto* region : regions) {
if (!region->is_mmap())
diff --git a/Kernel/UBSanitizer.cpp b/Kernel/UBSanitizer.cpp
index 78c0fa05f6..7f08dec7a6 100644
--- a/Kernel/UBSanitizer.cpp
+++ b/Kernel/UBSanitizer.cpp
@@ -132,7 +132,7 @@ void __ubsan_handle_shift_out_of_bounds(const ShiftOutOfBoundsData& data, ValueH
void __ubsan_handle_divrem_overflow(const OverflowData&, ValueHandle lhs, ValueHandle rhs);
void __ubsan_handle_divrem_overflow(const OverflowData& data, ValueHandle, ValueHandle)
{
- dbgln("KUBSAN: divrem overlow, {} ({}-bit)", data.type.name(), data.type.bit_width());
+ dbgln("KUBSAN: divrem overflow, {} ({}-bit)", data.type.name(), data.type.bit_width());
print_location(data.location);
}
@@ -189,7 +189,7 @@ void __ubsan_handle_alignment_assumption(const AlignmentAssumptionData& data, Va
"of type {} failed",
alignment, pointer, data.type.name());
}
- // dbgln("KUBSAN: Assumption of pointer allignment failed");
+ // dbgln("KUBSAN: Assumption of pointer alignment failed");
print_location(data.location);
}
diff --git a/Kernel/VirtIO/VirtIO.cpp b/Kernel/VirtIO/VirtIO.cpp
index f11698ebbe..203a529986 100644
--- a/Kernel/VirtIO/VirtIO.cpp
+++ b/Kernel/VirtIO/VirtIO.cpp
@@ -345,7 +345,7 @@ void VirtIODevice::finish_init()
{
VERIFY(m_did_accept_features); // ensure features were negotiated
VERIFY(m_did_setup_queues); // ensure queues were set-up
- VERIFY(!(m_status & DEVICE_STATUS_DRIVER_OK)); // ensure we didnt already finish the initialization
+ VERIFY(!(m_status & DEVICE_STATUS_DRIVER_OK)); // ensure we didn't already finish the initialization
set_status_bit(DEVICE_STATUS_DRIVER_OK);
dbgln_if(VIRTIO_DEBUG, "{}: Finished initialization", m_class_name);
diff --git a/Kernel/VirtIO/VirtIOQueue.cpp b/Kernel/VirtIO/VirtIOQueue.cpp
index 014d414ab2..b82f2dc5ae 100644
--- a/Kernel/VirtIO/VirtIOQueue.cpp
+++ b/Kernel/VirtIO/VirtIOQueue.cpp
@@ -82,7 +82,7 @@ bool VirtIOQueue::supply_buffer(Badge<VirtIODevice>, const ScatterGatherList& sc
last_index = descriptor_index;
descriptor_index = m_descriptors[descriptor_index].next; // ensure we place the buffer in chain order
});
- m_descriptors[last_index].flags &= ~(VIRTQ_DESC_F_NEXT); // last descriptor in chain doesnt have a next descriptor
+ m_descriptors[last_index].flags &= ~(VIRTQ_DESC_F_NEXT); // last descriptor in chain doesn't have a next descriptor
m_driver->rings[m_driver_index_shadow % m_queue_size] = m_free_head; // m_driver_index_shadow is used to prevent accesses to index before the rings are updated
m_tokens[m_free_head] = token;
@@ -139,7 +139,7 @@ void VirtIOQueue::pop_buffer(u16 descriptor_index)
m_free_buffers++;
i = m_descriptors[i].next;
}
- m_free_buffers++; // the last descriptor in the chain doesnt have the NEXT flag
+ m_free_buffers++; // the last descriptor in the chain doesn't have the NEXT flag
m_descriptors[i].next = m_free_head; // empend the popped descriptors to the free chain
m_free_head = descriptor_index;