Finished basic task switching mechansim

PCB is local to a process's address space.
Context switches are written in assembly.
Moved x86 headers to include/x86
This commit is contained in:
2021-04-19 03:40:33 -05:00
parent 086dfe546a
commit 5efc389935
22 changed files with 246 additions and 162 deletions

27
include/x86/isr.h Normal file
View File

@@ -0,0 +1,27 @@
#pragma once
struct interrupt_frame_t;
__attribute__ ((interrupt))
void isr_generic(struct interrupt_frame_t *frame);
__attribute__ ((interrupt))
void isr_division_by_zero(struct interrupt_frame_t *frame);
__attribute__ ((interrupt))
void isr_gp_fault(struct interrupt_frame_t *frame, unsigned int error);
__attribute__ ((interrupt))
void isr_page_fault(struct interrupt_frame_t *frame, unsigned int error);
__attribute__ ((interrupt))
void isr_double_fault(struct interrupt_frame_t *frame, unsigned int error);
__attribute__ ((interrupt))
void isr_timer(struct interrupt_frame_t *frame);
__attribute__ ((naked))
void isr_preempt(struct interrupt_frame_t *frame);
__attribute__ ((interrupt))
void isr_syscall(struct interrupt_frame_t *frame);