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,13 @@
// Created by rick on 28-01-21.
//
#include <util/stream.h>
#include <libc/string.h>
#include <string.h>
#include <stdbool.h>
#include <attributes.h>
#include <tasks/task.h>
#include <libc/libc.h>
#include <libk/kprint.h>
#include <myke/util/stream.h>
#include <myke/attributes.h>
#include <myke/tasks/task.h>
#include <myke/libk/kprint.h>
#define MAX_HANDLERS 8
#define STREAM_SIZE (32*1024)

View File

@@ -2,12 +2,11 @@
// Created by rick on 02-02-21.
//
#include <stdbool.h>
#include <libk/kprint.h>
#include <attributes.h>
#include <libk/libk.h>
#include <myke/libk/kprint.h>
#include <myke/attributes.h>
#include <myke/libk/libk.h>
bool k_addr_in_kspace(void* addr) {
bool k_addr_in_kspace(void *addr) {
return addr > kernel_start && addr < kernel_end;
}
@@ -23,7 +22,7 @@ void noreturn k_panics(const char *msg) {
void noreturn k_panic() {
kprint_sync("PANIC!");
while (true) {
while (1) {
__asm__ __volatile__("cli;"
"hlt;");
}

View File

@@ -2,9 +2,10 @@
// Created by rick on 22-02-21.
//
#include <libk/syscall.h>
#include <types.h>
#include <attributes.h>
#include <sys/types.h>
#include <myke/libk/syscall.h>
#include <myke/attributes.h>
void syscall1(uint32_t arg1) {
__asm__("int $0x80"
@@ -28,7 +29,7 @@ void syscall_yield_job() {
}
void syscall_yield_irq(uint16_t irq) {
syscall2(SYSCALL_YIELD_IRQ, irq );
syscall2(SYSCALL_YIELD_IRQ, irq);
}
void syscall_job_suspend() {