kernel remove unused variables
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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 (;;)
|
||||
;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user