[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

@@ -2,8 +2,6 @@
#
ARCH := x86
SUBARCH := x86-64
TARGET := pc-x86
MODULES += \
app/shell
include project/target/pc.mk
include project/virtual/test.mk

View File

@@ -0,0 +1,6 @@
# top level project rules for the pc-x86-legacy-test project
#
ARCH := x86
include project/target/pc-legacy.mk
include project/virtual/test.mk

View File

@@ -1,20 +1,7 @@
# top level project rules for the pc-x86-test project
#
LOCAL_DIR := $(GET_LOCAL_DIR)
ARCH := x86
SUBARCH := x86-32
TARGET := pc-x86
MODULES += \
app/shell \
app/pcitests
# extra rules to copy the pc-x86.conf file to the build dir
#$(BUILDDIR)/pc-x86.conf: $(LOCAL_DIR)/pc-x86.conf
# @echo copy $< to $@
# $(NOECHO)cp $< $@
#EXTRA_BUILDDEPS += $(BUILDDIR)/pc-x86.conf
#GENERATED += $(BUILDDIR)/pc-x86.conf
include project/target/pc.mk
include project/virtual/test.mk

View File

@@ -0,0 +1,10 @@
# top level project rules for the pc virtual project
#
ARCH ?= x86
SUBARCH ?= x86-32
TARGET := pc-x86
CPU ?= legacy
MODULES += \
app/shell

8
project/target/pc.mk Normal file
View File

@@ -0,0 +1,8 @@
# top level project rules for the pc virtual project
#
ARCH ?= x86
SUBARCH ?= x86-32
TARGET := pc-x86
MODULES += \
app/shell \
app/pcitests

View File

@@ -8,7 +8,6 @@ MODULES += \
lib/aes/test \
lib/cksum \
lib/debugcommands \
lib/libm \
lib/version \
WITH_CPP_SUPPORT=true