feat: introduced tasking, added paging (no vm), moved malloc, added
syscalls, other stuff
This commit is contained in:
20
kernel/cpu/cpu.h
Normal file
20
kernel/cpu/cpu.h
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Created by rick on 22-02-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_CPU_H
|
||||
#define NEW_KERNEL_CPU_H
|
||||
#include <types.h>
|
||||
|
||||
typedef struct {
|
||||
uint32_t edi, esi, ebx, ebp, eip;
|
||||
} task_registers_t;
|
||||
|
||||
typedef struct {
|
||||
uint32_t ds; // pushed in common handler
|
||||
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax; // pusha/popa
|
||||
uint32_t int_no, err_code; // pushed by handlers
|
||||
uint32_t eip, cs, eflags, useresp, ss; // isr/iret
|
||||
} isr_registers_t;
|
||||
|
||||
#endif //NEW_KERNEL_CPU_H
|
||||
Reference in New Issue
Block a user