make -B format_kernel
All checks were successful
Build documentation / build-and-deploy (push) Successful in 32s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 32s
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
#include <limine/requests.h>
|
||||
#include <sys/debug.h>
|
||||
#include <sys/mm.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/spin.h>
|
||||
#include <sys/time.h>
|
||||
#include <uacpi/acpi.h>
|
||||
#include <uacpi/status.h>
|
||||
#include <uacpi/tables.h>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#include <aux/elf.h>
|
||||
#include <libk/std.h>
|
||||
#include <libk/string.h>
|
||||
#include <sync/spin_lock.h>
|
||||
#include <mm/pmm.h>
|
||||
#include <mm/liballoc.h>
|
||||
#include <mm/pmm.h>
|
||||
#include <proc/proc.h>
|
||||
#include <aux/elf.h>
|
||||
#include <sync/spin_lock.h>
|
||||
|
||||
struct proc* proc_from_elf (uint8_t* elf_contents) {
|
||||
struct proc* proc = malloc (sizeof (*proc));
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
#include <sync/spin_lock.h>
|
||||
#include <sys/debug.h>
|
||||
#include <sys/mm.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sched.h>
|
||||
#include <sys/smp.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/spin.h>
|
||||
|
||||
#if defined(__x86_64__)
|
||||
#include <amd64/intr_defs.h>
|
||||
#include <amd64/intr_defs.h>
|
||||
#endif
|
||||
|
||||
static struct procw* procs;
|
||||
@@ -131,9 +131,9 @@ static void proc_register (struct proc* proc) {
|
||||
spin_unlock (&procs_lock);
|
||||
}
|
||||
|
||||
static struct proc *proc_find_sched (void) {
|
||||
struct proc *start = thiscpu->proc_current;
|
||||
struct proc *proc = start->next;
|
||||
static struct proc* proc_find_sched (void) {
|
||||
struct proc* start = thiscpu->proc_current;
|
||||
struct proc* proc = start->next;
|
||||
|
||||
for (;;) {
|
||||
if (proc == NULL) {
|
||||
@@ -154,7 +154,7 @@ static struct proc *proc_find_sched (void) {
|
||||
}
|
||||
|
||||
void proc_sched (void) {
|
||||
struct proc *next = NULL;
|
||||
struct proc* next = NULL;
|
||||
|
||||
spin_lock (&thiscpu->lock);
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
/// Process marked garbage collection
|
||||
#define PROC_DEAD 1
|
||||
|
||||
|
||||
struct cpu;
|
||||
|
||||
struct proc_mapping {
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
#define _KERNEL_SYS_SPIN_H
|
||||
|
||||
#if defined(__x86_64__)
|
||||
extern void amd64_spin (void);
|
||||
#define spin amd64_spin
|
||||
extern void amd64_spin (void);
|
||||
#define spin amd64_spin
|
||||
#endif
|
||||
|
||||
#endif // _KERNEL_SYS_SPIN_H
|
||||
|
||||
Reference in New Issue
Block a user