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)
|
||||
|
||||
@@ -334,7 +334,7 @@ retry:
|
||||
cpu->proc_current = next;
|
||||
|
||||
if (user)
|
||||
do_sched (next, &cpu->lock, fc);
|
||||
do_sched (next, &cpu->lock);
|
||||
else
|
||||
spin_unlock (&cpu->lock, fc);
|
||||
} else {
|
||||
@@ -404,5 +404,5 @@ void proc_init (void) {
|
||||
proc_register (init, 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);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
#include <libk/std.h>
|
||||
#include <proc/proc.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);
|
||||
|
||||
#endif // _KERNEL_SYS_SCHED_H
|
||||
|
||||
@@ -1153,14 +1153,10 @@ DEFINE_SYSCALL (sys_volume_delete) {
|
||||
|
||||
/* int date_time (struct date_time* dt) */
|
||||
DEFINE_SYSCALL (sys_date_time) {
|
||||
uint64_t fpg, fp;
|
||||
uint64_t fp;
|
||||
|
||||
uintptr_t uvaddr_dt = a1;
|
||||
|
||||
struct limine_hhdm_response* hhdm = limine_hhdm_request.response;
|
||||
|
||||
uintptr_t out_paddr;
|
||||
|
||||
spin_lock (&proc->lock, &fp);
|
||||
struct procgroup* procgroup = proc->procgroup;
|
||||
spin_unlock (&proc->lock, fp);
|
||||
|
||||
Reference in New Issue
Block a user