sh: pci memory range checking code