feat: reformatted code base to be more standard

This commit is contained in:
2021-03-10 22:01:13 +01:00
parent dc4bf71b5a
commit 586b8191b4
81 changed files with 431 additions and 338 deletions

View File

@@ -2,13 +2,14 @@
// Created by rick on 27-02-21.
//
#include <tasks/locking.h>
#include <mem/malloc.h>
#include <tasks/task.h>
#include <libk/syscall.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <libc/kprintf.h>
#include <libc/libc.h>
#include <string.h>
#include <myke/tasks/locking.h>
#include <myke/tasks/task.h>
#include <myke/libk/syscall.h>
typedef struct lock_fifo_entry {
uint32_t tid;

View File

@@ -2,15 +2,15 @@
// Created by rick on 22-02-21.
//
#include <tasks/task.h>
#include <cpu/cpu.h>
#include <stdlib.h>
#include <stdbool.h>
#include <libc/libc.h>
#include <mem/malloc.h>
#include <mem/pmm.h>
#include <string.h>
#include <attributes.h>
#include <libk/libk.h>
#include <myke/tasks/task.h>
#include <myke/cpu/cpu.h>
#include <myke/mem/pmm.h>
#include <myke/attributes.h>
#include <myke/libk/libk.h>
#define stack_end(task) ((task)->stack + ((task)->stack_page_count * PAGE_SIZE))
@@ -83,7 +83,7 @@ void task_lock_acquire() {
}
void task_lock_free() {
if (__sync_sub_and_fetch(&task_locked, 1) == UINT32_MAX) {
if (__sync_sub_and_fetch(&task_locked, 1) == UINT32_MAX) {
k_panics("To many task free's");
}
}