feat: implemented errno, strtol. Started ustar. Reformatted headers and
code. Added some self-tests. Started prepwork for vfs.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#ifndef NEW_KERNEL_CPU_H
|
||||
#define NEW_KERNEL_CPU_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#ifndef MY_KERNEL_IDT_H
|
||||
#define MY_KERNEL_IDT_H
|
||||
|
||||
#include <myke/attributes.h>
|
||||
|
||||
#define KERNEL_CS 0x08
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user