View | Details | Raw Unified | Return to bug 236838 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/amd64/amd64/pmap.c (-1 / +1 lines)
Lines 390-396 static struct pmap_preinit_mapping { Link Here
390
	vm_size_t	sz;
390
	vm_size_t	sz;
391
	int		mode;
391
	int		mode;
392
} pmap_preinit_mapping[PMAP_PREINIT_MAPPING_COUNT];
392
} pmap_preinit_mapping[PMAP_PREINIT_MAPPING_COUNT];
393
static int pmap_initialized;
393
int pmap_initialized;
394
394
395
/*
395
/*
396
 * Data for the pv entry allocation mechanism.
396
 * Data for the pv entry allocation mechanism.
(-)b/sys/amd64/include/pmap.h (+1 lines)
Lines 414-419 extern vm_offset_t virtual_end; Link Here
414
extern vm_paddr_t dmaplimit;
414
extern vm_paddr_t dmaplimit;
415
extern int pmap_pcid_enabled;
415
extern int pmap_pcid_enabled;
416
extern int invpcid_works;
416
extern int invpcid_works;
417
extern int pmap_initialized;
417
418
418
#define	pmap_page_get_memattr(m)	((vm_memattr_t)(m)->md.pat_mode)
419
#define	pmap_page_get_memattr(m)	((vm_memattr_t)(m)->md.pat_mode)
419
#define	pmap_page_is_write_mapped(m)	(((m)->aflags & PGA_WRITEABLE) != 0)
420
#define	pmap_page_is_write_mapped(m)	(((m)->aflags & PGA_WRITEABLE) != 0)
(-)b/sys/amd64/pci/pci_cfgreg.c (+3 lines)
Lines 84-89 pci_cfgregopen(void) Link Here
84
		return (1);
84
		return (1);
85
	cfgmech = CFGMECH_1;
85
	cfgmech = CFGMECH_1;
86
86
87
	if (!pmap_initialized)
88
		return (1);
89
87
	/*
90
	/*
88
	 * Grope around in the PCI config space to see if this is a
91
	 * Grope around in the PCI config space to see if this is a
89
	 * chipset that is capable of doing memory-mapped config cycles.
92
	 * chipset that is capable of doing memory-mapped config cycles.

Return to bug 236838