All: Cleanup all files

Add newline to end of files and remove whitespace from end of lines
This commit is contained in:
2024-01-24 14:43:46 +02:00
parent 3441f63298
commit dfe5a2d665
226 changed files with 466 additions and 460 deletions

View File

@@ -63,7 +63,7 @@ namespace Kernel::GDT
uint8_t flags : 4;
uint8_t base3;
} __attribute__((packed));
struct
{
uint32_t low;
@@ -101,7 +101,7 @@ namespace Kernel::GDT
{
s_tss = new TaskStateSegment();
ASSERT(s_tss);
memset(s_tss, 0x00, sizeof(TaskStateSegment));
s_tss->ss0 = 0x10;
s_tss->esp0 = (uintptr_t)g_boot_stack_top;
@@ -127,7 +127,7 @@ namespace Kernel::GDT
void initialize()
{
constexpr uint32_t descriptor_count = 6;
s_gdt = new SegmentDescriptor[descriptor_count];
s_gdt = new SegmentDescriptor[descriptor_count];
ASSERT(s_gdt);
s_gdtr.address = (uint64_t)s_gdt;
@@ -144,4 +144,4 @@ namespace Kernel::GDT
flush_tss(0x28);
}
}
}

View File

@@ -123,7 +123,7 @@ namespace IDT
}
dprintln("Spurious irq");
return;
return;
found:
if (s_irq_handlers[irq])
s_irq_handlers[irq]();
@@ -174,7 +174,7 @@ found:
"addl $16, %esp;"
"popw %es;"
"popw %ds;"
// NOTE: following instructions are same as in 'popa', except we skip eax
// since it holds the return value of the syscall.
"popl %edi;"
@@ -185,7 +185,7 @@ found:
"popl %edx;"
"popl %ecx;"
"addl $4, %esp;"
"iret;"
);
@@ -267,4 +267,4 @@ found:
flush_idt();
}
}
}

View File

@@ -76,7 +76,7 @@ namespace Kernel
{
if (s_instance == nullptr)
return;
// Here we copy the s_instances paging structs since they are
// global for every process
@@ -84,7 +84,7 @@ namespace Kernel
uint64_t* pdpt = (uint64_t*)kmalloc(sizeof(uint64_t) * 4, 32);
ASSERT(pdpt);
for (uint32_t pdpte = 0; pdpte < 4; pdpte++)
{
if (!(global_pdpt[pdpte] & Flags::Present))

View File

@@ -16,4 +16,4 @@ spinlock_lock_asm:
spinlock_unlock_asm:
movl 4(%esp), %eax
movl $0, (%eax)
ret
ret

View File

@@ -25,4 +25,4 @@ SECTIONS
}
g_kernel_end = .;
}
}