[platform][pc] get working on legacy 386 PC

-Add support for x86 legacy mode, designed for 386+ instead of pentium+
-Fixup uart driver to support com2
-Stub out PCI driver properly
-Fixup IDE driver to detect legacy disks
This commit is contained in:
Travis Geiselbrecht
2018-12-30 21:03:27 -08:00
parent be72298b9c
commit 1fbb67228d
22 changed files with 301 additions and 77 deletions

View File

@@ -84,8 +84,10 @@ void arch_thread_initialize(thread_t *t)
frame->rflags = 0x3002; /* IF = 0, NT = 0, IOPL = 3 */
#endif
#if X86_WITH_FPU
// initialize the saved fpu state
fpu_init_thread_states(t);
#endif
// set the stack pointer
t->arch.sp = (vaddr_t)frame;