mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
Everywhere: Fix a bunch of typos
This commit is contained in:
parent
cebd3f740b
commit
2b0c361d04
30 changed files with 42 additions and 42 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue