feat: implemented errno, strtol. Started ustar. Reformatted headers and

code. Added some self-tests. Started prepwork for vfs.
This commit is contained in:
2021-03-14 21:14:22 +01:00
parent 586b8191b4
commit 77c8dca72a
39 changed files with 504 additions and 60 deletions

View File

@@ -4,6 +4,7 @@
#ifndef NEW_KERNEL_CPU_H
#define NEW_KERNEL_CPU_H
#include <sys/types.h>
typedef struct {

View File

@@ -36,7 +36,7 @@ typedef struct {
bool xsave: 1;
bool osxsave: 1;
bool avx: 1;
} cpu_features_ecx ;
} cpu_features_ecx;
typedef struct {
bool fpu: 1;
@@ -72,7 +72,7 @@ typedef struct {
bool ia64: 1;
bool pbe: 1;
} cpu_features_edx ;
} cpu_features_edx;
enum cpu_features {
CPUID_FEAT_ECX_SSE3 = 1 << 0,

View File

@@ -5,6 +5,7 @@
#ifndef MY_KERNEL_IDT_H
#define MY_KERNEL_IDT_H
#include <myke/attributes.h>
#define KERNEL_CS 0x08

View File

@@ -126,7 +126,7 @@ extern void isr128();
#define IRQ14 46
#define IRQ15 47
typedef void (*isr_t)(isr_registers_t*);
typedef void (*isr_t)(isr_registers_t *);
void register_interrupt_handler(uint8_t n, isr_t handler);

View File

@@ -4,6 +4,7 @@
#ifndef NEW_KERNEL_SYSCALL_HANDLER_H
#define NEW_KERNEL_SYSCALL_HANDLER_H
#include <myke/cpu/cpu.h>
void syscall_handle(isr_registers_t *registers);