From 650266b3af2f337d3aa5d014d39a4fe22f3f4b1f Mon Sep 17 00:00:00 2001 From: "Pierre-Emmanuel Gob." Date: Sat, 19 Sep 2026 23:07:45 +0200 Subject: [PATCH] docs: removed unceccessary comments --- .gitignore | 2 -- kernel/arch/x86_64/console.c | 1 - kernel/arch/x86_64/keyboard.c | 2 -- kernel/arch/x86_64/serial.c | 1 - 4 files changed, 6 deletions(-) diff --git a/.gitignore b/.gitignore index 1a169c1..fec4a51 100644 --- a/.gitignore +++ b/.gitignore @@ -13,12 +13,10 @@ compile_commands.json .vscode/ .idea/ *~ -.pyc *.pyc # QEMU / debug *.log -qemu*.log *.core # For contributors using ai agents diff --git a/kernel/arch/x86_64/console.c b/kernel/arch/x86_64/console.c index dd3a9a4..e365a4a 100644 --- a/kernel/arch/x86_64/console.c +++ b/kernel/arch/x86_64/console.c @@ -18,7 +18,6 @@ static uint8_t cursor_col; * store in order. */ static volatile uint16_t *const vga = (uint16_t *)VGA_ADDR; -/* Move every line one row up and blank the last line */ static void scroll(void) { for (uint8_t row = 1; row < VGA_HEIGHT; row++) { diff --git a/kernel/arch/x86_64/keyboard.c b/kernel/arch/x86_64/keyboard.c index 3c462d9..06e86f3 100644 --- a/kernel/arch/x86_64/keyboard.c +++ b/kernel/arch/x86_64/keyboard.c @@ -89,8 +89,6 @@ static uint8_t k_shift; static uint8_t k_caps; static uint8_t k_e0; -/* Queue helpers below; port I/O comes from io.h. */ - /* Drop-newest on full: keeps the consumer's prefix intact for editing. */ static void enqueue(char c) { diff --git a/kernel/arch/x86_64/serial.c b/kernel/arch/x86_64/serial.c index ebc3810..d076d67 100644 --- a/kernel/arch/x86_64/serial.c +++ b/kernel/arch/x86_64/serial.c @@ -41,7 +41,6 @@ void serial_putchar(char c) /* Spin until THR is empty; hangs only if hardware is absent/wedged, * which is why callers gate on serial_ok() when unsure. */ while ((inb(COM_LSR) & LSR_TX_EMPTY) == 0) { - /* Poll. */ } outb(COM_DATA, (uint8_t)c); }