opnsense-src/sys/powerpc/powerpc
John Baldwin 2db99100a4 Improve the handling of static DMA buffers that use non-default memory
attributes (currently just BUS_DMA_NOCACHE):
- Don't call pmap_change_attr() on the returned address, instead use
  kmem_alloc_contig() to ask the VM system for memory with the requested
  attribute.
- As a result, always use kmem_alloc_contig() for non-default memory
  attributes, even for sub-page allocations.  This requires adjusting
  bus_dmamem_free()'s logic for determining which free routine to use.
- For x86, add a new dummy bus_dmamap that is used for static DMA
  buffers allocated via kmem_alloc_contig().  bus_dmamem_free() can then
  use the map pointer to determine which free routine to use.
- For powerpc, add a new flag to the allocated map (bus_dmamem_alloc()
  always creates a real map on powerpc) to indicate which free routine
  should be used.

Note that the BUS_DMA_NOCACHE handling in powerpc is currently #ifdef'd out.
I have left it disabled but updated it to match x86.

Reviewed by:	scottl
MFC after:	1 month
2012-08-03 13:50:29 +00:00
..
altivec.c Add Altivec support for supported CPUs. This is derived from the FPU support 2009-02-20 17:48:40 +00:00
autoconf.c Add suppport for ISA and ISA interrupts to make the ATA 2009-04-24 03:51:11 +00:00
bcopy.c MFppc64: 2010-07-09 14:01:18 +00:00
bus_machdep.c Replace eieio; sync for creating bus-space memory barriers with sync. 2012-04-22 18:54:51 +00:00
busdma_machdep.c Improve the handling of static DMA buffers that use non-default memory 2012-08-03 13:50:29 +00:00
copystr.c
cpu.c Let us manage differences of Book-E PowerPC variations i.e. vendor / 2012-05-27 10:25:20 +00:00
db_disasm.c
db_hwwatch.c Move the prototypes of db_md_set_watchpoint(), db_md_clr_watchpoint() 2005-09-10 03:01:25 +00:00
db_interface.c MFppc64: 2010-07-13 05:32:19 +00:00
db_trace.c Let us manage differences of Book-E PowerPC variations i.e. vendor / 2012-05-27 10:25:20 +00:00
dump_machdep.c Add the watchdogs patting during the (shutdown time) disk syncing and 2011-04-28 16:02:05 +00:00
elf32_machdep.c Extend struct sysvec with new method sv_schedtail, which is used for an 2011-03-08 19:01:45 +00:00
elf64_machdep.c Extend struct sysvec with new method sv_schedtail, which is used for an 2011-03-08 19:01:45 +00:00
exec_machdep.c Do not restore the register holding the TLS pointer when doing various 2012-04-11 00:00:40 +00:00
fpu.c
fuswintr.c
gdb_machdep.c Let us manage differences of Book-E PowerPC variations i.e. vendor / 2012-05-27 10:25:20 +00:00
genassym.c Let us manage differences of Book-E PowerPC variations i.e. vendor / 2012-05-27 10:25:20 +00:00
in_cksum.c MFppc64: 2010-07-13 05:32:19 +00:00
intr_machdep.c Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. 2011-11-07 06:44:47 +00:00
iommu_if.m - Change contigmalloc() to use the vm_paddr_t type instead of an unsigned 2012-03-01 19:58:34 +00:00
mem.c Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set(). 2011-01-17 22:58:28 +00:00
mmu_if.m Avoid recursion on the pvh global lock in the aim oea pmap. 2012-07-10 22:10:21 +00:00
mp_machdep.c MFC 2011-06-24 16:35:40 +00:00
openpic.c Make the intended change. 2011-05-10 13:48:21 +00:00
openpic_fdt.c Move OpenPIC FDT bus glue to a shared location, so that other PowerPC 2012-05-26 21:02:49 +00:00
pic_if.m Add the powerpc support. 2011-05-09 16:16:15 +00:00
platform.c Fix physical address type to vm_paddr_t. 2012-05-24 21:13:24 +00:00
platform_if.m Add some platform KOBJ extensions and continue integrating PowerPC 2010-11-12 04:18:19 +00:00
pmap_dispatch.c Fix physical address type to vm_paddr_t. 2012-05-24 21:13:24 +00:00
sc_machdep.c
setjmp.S This commit adds profiling support for powerpc64. Now we can do application 2012-01-20 22:34:19 +00:00
sigcode32.S MFppc64: 2010-07-13 05:32:19 +00:00
sigcode64.S MFppc64: 2010-07-13 05:32:19 +00:00
stack_machdep.c MFppc64: 2010-07-13 05:32:19 +00:00
suswintr.c
syncicache.c MFppc64: 2010-07-13 05:32:19 +00:00
sys_machdep.c MFppc64: 2010-07-13 05:32:19 +00:00
uio_machdep.c Put the general logic for being a CPU hog into a new function 2011-02-02 16:35:10 +00:00