aboutsummaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2022-08-23 03:26:49 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-23 12:40:39 +0200
commitf2626beb39dc416ceebfa35076d89cd291e2b903 (patch)
tree721d6a3e32aef1a2cf64d3c2129bc06570045417 /i386
parenta14feb6ffadd6902ba09f23122beda08beb970ad (diff)
downloadgnumach-f2626beb39dc416ceebfa35076d89cd291e2b903.tar.gz
gnumach-f2626beb39dc416ceebfa35076d89cd291e2b903.tar.bz2
gnumach-f2626beb39dc416ceebfa35076d89cd291e2b903.zip
gnumach: Remove PCI_CFG2_* as a reserved ioport range
PCI CONF2 access method was deprecated in PCI v2.0 Also, the conf2 ioport range is only activated for use as pci configuration space when conf1 registers are accessed in a particular sequence. Since the pci-arbiter does not access the conf1 forwarding register, we are safe to remove this completely from gnumach to allow normal I/O use of the conf2 range as modern hardware expects. Message-Id: <20220823032638.292813-1-damien@zamaudio.com>
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/io_perm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/i386/i386/io_perm.c b/i386/i386/io_perm.c
index c966102c..6db60f73 100644
--- a/i386/i386/io_perm.c
+++ b/i386/i386/io_perm.c
@@ -70,12 +70,9 @@
#define PCI_CFG1_START 0xcf8
#define PCI_CFG1_END 0xcff
-#define PCI_CFG2_START 0xc000
-#define PCI_CFG2_END 0xcfff
#define CONTAINS_PCI_CFG(from, to) \
- ( ( ( from <= PCI_CFG1_END ) && ( to >= PCI_CFG1_START ) ) || \
- ( ( from <= PCI_CFG2_END ) && ( to >= PCI_CFG2_START ) ) )
+ ( ( from <= PCI_CFG1_END ) && ( to >= PCI_CFG1_START ) )
/* Our device emulation ops. See below, at the bottom of this file. */