mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
powerpc: Enable the BUS_DMA_NOCACHE flag handling
The flag handling was committed commented out 7 years ago. It works, and is needed for LinuxKPI-based DRM drivers. Also mark a local as potentially unusable, as it's only really used when KTR is enabled. Submitted by: mmacy
This commit is contained in:
parent
a1601073bf
commit
69a277d98e
1 changed files with 1 additions and 3 deletions
|
|
@ -350,7 +350,7 @@ bus_dma_tag_set_domain(bus_dma_tag_t dmat, int domain)
|
|||
int
|
||||
bus_dma_tag_destroy(bus_dma_tag_t dmat)
|
||||
{
|
||||
bus_dma_tag_t dmat_copy;
|
||||
bus_dma_tag_t dmat_copy __unused;
|
||||
int error;
|
||||
|
||||
error = 0;
|
||||
|
|
@ -515,11 +515,9 @@ bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags,
|
|||
|
||||
if (flags & BUS_DMA_ZERO)
|
||||
mflags |= M_ZERO;
|
||||
#ifdef NOTYET
|
||||
if (flags & BUS_DMA_NOCACHE)
|
||||
attr = VM_MEMATTR_UNCACHEABLE;
|
||||
else
|
||||
#endif
|
||||
attr = VM_MEMATTR_DEFAULT;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue