acpi_machdep.c (83ef78be9591275896b8a0bda1d2155becca3f3c) | acpi_machdep.c (9a52756044676370f20527b85d450d5fc3ac32e5) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2001 Mitsuru IWASAKI 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 120 unchanged lines hidden (view full) --- 129static void * 130table_map(vm_paddr_t pa, int offset, vm_offset_t length) 131{ 132 vm_offset_t va, off; 133 void *data; 134 135 off = pa & PAGE_MASK; 136 length = round_page(length + off); | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2001 Mitsuru IWASAKI 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 120 unchanged lines hidden (view full) --- 129static void * 130table_map(vm_paddr_t pa, int offset, vm_offset_t length) 131{ 132 vm_offset_t va, off; 133 void *data; 134 135 off = pa & PAGE_MASK; 136 length = round_page(length + off); |
137 pa = pa & PG_FRAME; | 137 pa = pmap_pg_frame(pa); |
138 va = (vm_offset_t)pmap_kenter_temporary(pa, offset) + 139 (offset * PAGE_SIZE); 140 data = (void *)(va + off); 141 length -= PAGE_SIZE; 142 while (length > 0) { 143 va += PAGE_SIZE; 144 pa += PAGE_SIZE; 145 length -= PAGE_SIZE; --- 244 unchanged lines hidden --- | 138 va = (vm_offset_t)pmap_kenter_temporary(pa, offset) + 139 (offset * PAGE_SIZE); 140 data = (void *)(va + off); 141 length -= PAGE_SIZE; 142 while (length > 0) { 143 va += PAGE_SIZE; 144 pa += PAGE_SIZE; 145 length -= PAGE_SIZE; --- 244 unchanged lines hidden --- |