Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Kernel/Core/Kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "Panic.h"
#include "UserMode.h"
#include "../Drivers/Io.h"
#include "../Memory/VMem.h"

#define NULL ((void*)0)
#define true 1
Expand Down Expand Up @@ -312,7 +313,6 @@ void KernelMain(uint32_t magic, uint32_t info) {
PrintKernelHex(info);
PrintKernel("\n\n");
SystemInitialize();

// Create the security manager process (PID 1)
PrintKernel("[INFO] Creating security manager process...\n");
uint64_t security_pid = CreateSecureProcess(SecureKernelIntegritySubsystem, PROC_PRIV_SYSTEM);
Expand All @@ -327,7 +327,7 @@ void KernelMain(uint32_t magic, uint32_t info) {
PrintKernelSuccess("[KERNEL] Core system modules loaded\n");
PrintKernelSuccess("[KERNEL] Kernel initialization complete\n");
PrintKernelSuccess("[SYSTEM] Transferring control to SecureKernelIntegritySubsystem...\n\n");

// Enable interrupts
asm volatile("sti");

Expand Down
4 changes: 2 additions & 2 deletions Kernel/Core/Panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void __attribute__((noreturn)) Panic(const char* message) {
// CurrentLine = 0;
// CurrentColumn = 0;
// No busy-wait, just halt
PrintKernelError("[FATAL] - [----KERNEL PANIC----]\n\n");
PrintKernelError("\n[FATAL] - [----KERNEL PANIC----]\n\n");
PrintKernelError(message);
PrintKernelError("\nCalling KernelPanicHandler()...\n");
KernelPanicHandler();
Expand All @@ -32,7 +32,7 @@ void __attribute__((noreturn)) PanicWithCode(const char* message, uint64_t error
// CurrentLine = 0;
// CurrentColumn = 0;
// No busy-wait, just halt
PrintKernelError("[FATAL] - [----KERNEL PANIC----]\n");
PrintKernelError("\n[FATAL] - [----KERNEL PANIC----]\n");
PrintKernelError(message);
PrintKernelError("\nError Code: ");
PrintKernelHex(error_code);
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Drivers/Interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

static uint64_t tick_count = 0;

void itoa(uint64_t num, char* str) {
char * itoa(uint64_t num) {
char* str;
int i = 0;
if (num == 0) {
str[i++] = '0';
Expand All @@ -29,6 +30,7 @@ void itoa(uint64_t num, char* str) {
start++;
end--;
}
return str;
}

// Fast tick display using direct memory write
Expand Down
1 change: 1 addition & 0 deletions Kernel/Drivers/Interrupts.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
char * itoa(uint64_t num);
Loading