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

Collapse All | Expand All

(-)b/sys/amd64/acpica/acpi_machdep.c (-2 / +4 lines)
Lines 119-126 table_map(vm_paddr_t pa, int offset, vm_offset_t length) Link Here
119
	off = pa & PAGE_MASK;
119
	off = pa & PAGE_MASK;
120
	length = round_page(length + off);
120
	length = round_page(length + off);
121
	pa = pa & PG_FRAME;
121
	pa = pa & PG_FRAME;
122
	va = (vm_offset_t)pmap_kenter_temporary(pa, offset) +
122
	va = (vm_offset_t)pmap_kenter_temporary(pa, offset);
123
	    (offset * PAGE_SIZE);
123
	KASSERT(va + ptoa(offset) + length <= va + ptoa(MAXDUMPPGS),
124
	    ("%s: pa %#lx offset %d length %#lx", __func__, pa, offset, length));
125
	va += offset * PAGE_SIZE;
124
	data = (void *)(va + off);
126
	data = (void *)(va + off);
125
	length -= PAGE_SIZE;
127
	length -= PAGE_SIZE;
126
	while (length > 0) {
128
	while (length > 0) {

Return to bug 248746