intel_utils.c (ebf5747bdb4c8c502d56f86f341be0f2a9080109) intel_utils.c (d12c44655065633dd8b8c249ec271a1d8ba63ba4)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2013 The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * This software was developed by Konstantin Belousov <kib@FreeBSD.org>
8 * under sponsorship from the FreeBSD Foundation.

--- 354 unchanged lines hidden (view full) ---

363{
364
365 if (DMAR_IS_COHERENT(unit))
366 return;
367 /*
368 * If DMAR does not snoop paging structures accesses, flush
369 * CPU cache to memory.
370 */
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2013 The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * This software was developed by Konstantin Belousov <kib@FreeBSD.org>
8 * under sponsorship from the FreeBSD Foundation.

--- 354 unchanged lines hidden (view full) ---

363{
364
365 if (DMAR_IS_COHERENT(unit))
366 return;
367 /*
368 * If DMAR does not snoop paging structures accesses, flush
369 * CPU cache to memory.
370 */
371 pmap_invalidate_cache_range((uintptr_t)dst, (uintptr_t)dst + sz,
372 TRUE);
371 pmap_force_invalidate_cache_range((uintptr_t)dst, (uintptr_t)dst + sz);
373}
374
375void
376dmar_flush_pte_to_ram(struct dmar_unit *unit, dmar_pte_t *dst)
377{
378
379 dmar_flush_transl_to_ram(unit, dst, sizeof(*dst));
380}

--- 298 unchanged lines hidden ---
372}
373
374void
375dmar_flush_pte_to_ram(struct dmar_unit *unit, dmar_pte_t *dst)
376{
377
378 dmar_flush_transl_to_ram(unit, dst, sizeof(*dst));
379}

--- 298 unchanged lines hidden ---