freebsd-skq/sys/sun4v/include
Alan Cox 3153e878dd Add support to the virtual memory system for configuring machine-
dependent memory attributes:

Rename vm_cache_mode_t to vm_memattr_t.  The new name reflects the
fact that there are machine-dependent memory attributes that have
nothing to do with controlling the cache's behavior.

Introduce vm_object_set_memattr() for setting the default memory
attributes that will be given to an object's pages.

Introduce and use pmap_page_{get,set}_memattr() for getting and
setting a page's machine-dependent memory attributes.  Add full
support for these functions on amd64 and i386 and stubs for them on
the other architectures.  The function pmap_page_set_memattr() is also
responsible for any other machine-dependent aspects of changing a
page's memory attributes, such as flushing the cache or updating the
direct map.  The uses include kmem_alloc_contig(), vm_page_alloc(),
and the device pager:

  kmem_alloc_contig() can now be used to allocate kernel memory with
  non-default memory attributes on amd64 and i386.

  vm_page_alloc() and the device pager will set the memory attributes
  for the real or fictitious page according to the object's default
  memory attributes.

Update the various pmap functions on amd64 and i386 that map pages to
incorporate each page's memory attributes in the mapping.

Notes: (1) Inherent to this design are safety features that prevent
the specification of inconsistent memory attributes by different
mappings on amd64 and i386.  In addition, the device pager provides a
warning when a device driver creates a fictitious page with memory
attributes that are inconsistent with the real page that the
fictitious page is an alias for. (2) Storing the machine-dependent
memory attributes for amd64 and i386 as a dedicated "int" in "struct
md_page" represents a compromise between space efficiency and the ease
of MFCing these changes to RELENG_7.

In collaboration with: jhb

Approved by:	re (kib)
2009-07-12 23:31:20 +00:00
..
cddl add declaration for new helper function 2006-12-18 07:25:26 +00:00
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h
asi.h Work around Cheetah+ erratum 34 (USIII+ erratum #10) by relocating 2008-09-10 20:07:08 +00:00
asm.h In contrast to the non-obvious and flexible nature of the optimized bcopy in t1_copy.S (which 2006-11-23 02:25:16 +00:00
asmacros.h add trap tracing to cpu mondo handler and tsb miss handler 2006-11-15 03:16:30 +00:00
atomic.h - bump __FreeBSD version to reflect added buf_ring, memory barriers, 2008-11-22 05:55:56 +00:00
bus_dma.h
bus_private.h
bus.h - Rename UPA_BUS_SPACE to NEXUS_BUS_SPACE; besides an UPA bus, nexus(4) 2007-01-18 18:32:26 +00:00
ccr.h
clock.h Remove two variables which are handled MI now. 2008-03-26 20:28:52 +00:00
cpu.h Remove old sysctl stuff which is long gone in other arch's. 2008-03-26 13:03:51 +00:00
cpufunc.h MUTEX_PROFILING has been generalized to LOCK_PROFILING. We now profile 2006-11-11 03:18:07 +00:00
db_machdep.h
elf.h Add AT_EXECPATH ELF auxinfo entry type. The value's a_ptr is a pointer 2009-03-17 12:50:16 +00:00
endian.h In the replacement text of the __bswapN_const() macros encapsulate the 2006-10-30 21:50:11 +00:00
exec.h
float.h
floatingpoint.h
fp.h
frame.h Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
fsr.h Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
gdb_machdep.h
hv_api.h Declare hypervisor system initiated reset function 2006-11-26 22:47:52 +00:00
hv_pcivar.h
hviommu.h
hypervisorvar.h add interrupt cookie hypervisor functions 2006-11-26 04:37:49 +00:00
idprom.h
ieee.h
ieeefp.h
in_cksum.h Given that sun4u uses sparc64/sparc64/in_cksum.c, use the sparc64 2008-06-25 21:03:26 +00:00
instr.h
intr_machdep.h o break newbus api: add a new argument of type driver_filter_t to 2007-02-23 12:19:07 +00:00
kdb.h Add kdb_cpu_sync_icache(), intended to synchronize instruction 2007-06-09 21:55:17 +00:00
kerneldump.h
ktr.h
limits.h
lsu.h
md_var.h
mdesc_bus_subr.h
mdesc_bus.h
memdev.h Remove the unused major/minor numbers from iodev and memdev. 2008-06-25 07:45:31 +00:00
metadata.h
mmu.h
mutex.h
nexusvar.h
ofw_machdep.h Missed the sun4v update to ofw_machdep.h in the OFW modularization commit. 2008-12-20 15:11:00 +00:00
ofw_mem.h
ofw_nexus.h
param.h Cleanup ALIGNED_POINTER: 2009-07-05 17:45:48 +00:00
pcb.h Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
pcpu.h Implement a facility for dynamic per-cpu variables. 2009-06-23 22:42:39 +00:00
pmap.h Add support to the virtual memory system for configuring machine- 2009-07-12 23:31:20 +00:00
pmc_mdep.h Add stubs to unbreak LINT. 2007-12-07 13:45:47 +00:00
proc.h
profile.h - Add bits for userland profiling. For sun4u this is compile-tested only. 2007-05-11 23:43:55 +00:00
pstate.h
ptrace.h
reg.h
reloc.h Remove 3rd clause, renumber, ok per email 2007-01-12 07:26:21 +00:00
resource.h
runq.h
sc_machdep.h
setjmp.h Remove 3rd clause, renumber, ok per email 2007-01-12 07:26:21 +00:00
sf_buf.h
sigframe.h
signal.h
smp.h Remove ipi_all() and ipi_self() as the former hasn't been used at 2008-09-28 18:34:14 +00:00
stack.h Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
stdarg.h __builtin_stdarg_start was renamed to __builtin_va_start a long 2007-11-19 07:34:57 +00:00
sun4v_cpufunc.h - Comment most of the remaining hypercalls in hcall.S 2006-11-24 05:27:49 +00:00
sysarch.h
tick.h
tlb.h
trap.h - There's no need to wrap kdb_active and kdb_trap() in #ifdef KDB as 2009-03-19 20:46:51 +00:00
tsb.h - separate out rounding memory ranges to 4M boundaries from OFW memory allocation bug workaround 2006-12-04 19:35:40 +00:00
tstate.h
tte_hash.h add support for resizing the the tte_hash of multi-threaded processes 2006-11-22 04:33:34 +00:00
tte.h - Reimplement {d,i}tlb_enter() and {d,i}tlb_va_to_pa() in C. There's 2008-08-07 22:46:25 +00:00
ucontext.h
upa.h Given that these sparc64 (as in sun4u) specific headers only exist 2007-05-20 13:19:32 +00:00
utrap.h Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
varargs.h
ver.h Given that these sparc64 (as in sun4u) specific headers only exist 2007-05-20 13:19:32 +00:00
vm.h Add support to the virtual memory system for configuring machine- 2009-07-12 23:31:20 +00:00
vmparam.h - Use the generally more appropriate PROM base rather than the 2009-02-11 07:50:07 +00:00
watch.h
wstate.h