kernel remove unused variables
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 2m21s
Build documentation / build-and-deploy (push) Successful in 58s

This commit is contained in:
2026-04-23 22:45:09 +02:00
parent 83509fbe6a
commit 34f7809a2d
7 changed files with 8 additions and 12 deletions

View File

@@ -53,8 +53,6 @@ static uint8_t rtc_bcd_to_bin (uint8_t value) { return (value & 0xF) + (value >>
static uint8_t rtc_bin_to_bcd (uint8_t value) { return ((value / 10) << 4) + (value % 10); }
void rtc_init (void) {
struct limine_hhdm_response* hhdm = limine_hhdm_request.response;
struct uacpi_table fadt_table;
uacpi_status status = uacpi_table_find_by_signature (ACPI_FADT_SIGNATURE, &fadt_table);
if (status != UACPI_STATUS_OK) {

View File

@@ -11,7 +11,7 @@
#include <sys/mm.h>
#include <sys/smp.h>
void do_sched (struct proc* proc, spin_lock_t* cpu_lock, uint64_t lockflags) {
void do_sched (struct proc* proc, spin_lock_t* cpu_lock) {
uint64_t fp;
__asm__ volatile ("cli");

View File

@@ -117,7 +117,7 @@ static void smp_bootstrap (struct limine_mp_info* mp_info) {
proc_register (spin_proc, thiscpu, &rctx);
spin_lock (&spin_proc->cpu->lock, &fc);
do_sched (spin_proc, &spin_proc->cpu->lock, fc);
do_sched (spin_proc, &spin_proc->cpu->lock);
for (;;)
;

View File

@@ -5,6 +5,8 @@
static uint32_t systicks = 0;
void systick_irq (void* arg, void* regs, bool user, struct reschedule_ctx* rctx) {
(void)arg, (void)regs, (void)user, (void)rctx;
systicks++;
if (systicks % 5 == 0)