From f2626beb39dc416ceebfa35076d89cd291e2b903 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Tue, 23 Aug 2022 03:26:49 +0000 Subject: 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> --- i386/i386/io_perm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'i386') 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. */ -- cgit v1.2.3