summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/pmap.h
Commit message (Collapse)AuthorAgeFilesLines
* - Cleanup whitespace and extra ()s in vtophys() macros.jhb2005-12-061-1/+1
| | | | | | | | | | | - Move vtophys() macros next to vtopte() where vtopte() exists to match comments above vtopte(). - Remove references to the alternate address space in the comment above vtopte(). amd64 never had the alternate address space, and i386 lost it prior to PAE support being added. - s/entires/entries/ in comments. Reviewed by: alc
* Insert a layer of indirection to the pmap code, using a kobj forgrehan2005-11-081-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the interface. This allows run-time selection of MMU code, based on CPU-type detection, or tunable-overrides when testing new code. Pre-requisite for G5 support. conf/files.powerpc - remove pmap.c - add mmu_if.h, mmu_oea.c, pmap_dispatch.c powerpc/include/mmuvar.h - definitions for MMU implementations powerpc/include/pmap.h - remove pmap_pte_spill declaration - add pmap_mmu_install declaration - size the phys_avail array - pmap_bootstrapped is now global-scope powerpc/powerpc/machdep.c - call kobj_machdep_init early in the boot sequence to allow kobj usage prior to SI_SUB_LOCK - install the OEA pmap code. This will be moved to CPU-specific init code in the future. powerpc/powerpc/mmu_if.m - Kobj MMU interface definitions powerpc/powerpc/pmap_dispatch.c - central dispatch for pmap calls - contains the global mmu kobj and the routine to locate the the mmu implementation and init the kobj
* Add pmap locking to many of the functions.alc2004-08-261-0/+15
| | | | | | | Many thanks to Andrew Gallatin for resolving a powerpc-specific initialization problem in my original patch. Tested by: gallatin@
* Add /dev/mem and /dev/kmem to powerpc.ssouhlal2004-08-161-0/+2
| | | | Approved by: grehan (mentor)
* Include <machine/pte.h> since it has been removed from <machine/param.h>.grehan2004-04-211-0/+1
|
* Remove avail_end. It is not used.alc2004-04-111-1/+0
|
* Remove avail_start on those platforms that no longer use it. (Only amd64alc2004-04-051-1/+0
| | | | does anything with it beyond simple initialization.)
* Cleaned up param.h:grehan2004-02-111-0/+4
| | | | | | | | | | | - culled long-dead #define's - segment register defs moved to sr.h - NPMAPS moved to pmap.h - KERNBASE moved to vmparam.h - removed include of <machine/cpu.h> and fixed src files that relied on this. Modifying segment register code no longer causes gcc rebuilds :-)
* Move pmap_resident_count() from the MD pmap.h to the MI pmap.h.bms2003-10-061-1/+0
| | | | | | | | Add a definition of pmap_wired_count(). Add a definition of vmspace_wired_count(). Reviewed by: truckman Discussed with: peter
* Made the prototypes for pmap_kenter and pmap_kremove MD. These functionsjake2003-03-161-0/+2
| | | | | | | | | are machine dependent because they are not required to update the tlb when mappings are added or removed, and doing so is machine dependent. In addition, an implementation may require that pages mapped with pmap_kenter have a backing vm_page_t, which is not necessarily true of all physical pages, and so may choose to pass the vm_page_t to pmap_kenter instead of the physical address in order to make this requirement clear.
* o Introduce pmap_page_is_mapped(). Its purpose is to obsoletealc2002-08-071-0/+1
| | | | the PG_MAPPED flag.
* Implement vtophys()benno2002-06-291-0/+2
|
* Add pmap_mapdev and pmap_unmapdev.benno2002-06-291-0/+2
|
* Tidy up some loose ends.peter2002-04-291-1/+0
| | | | | | | | | | | | i386/ia64/alpha - catch up to sparc64/ppc: - replace pmap_kernel() with refs to kernel_pmap - change kernel_pmap pointer to (&kernel_pmap_store) (this is a speedup since ld can set these at compile/link time) all platforms (as suggested by jake): - gc unused pmap_reference - gc unused pmap_destroy - gc unused struct pmap.pm_count (we never used pm_count - we track address space sharing at the vmspace)
* - Modify pmap_activate so it only marks the pmap as active.benno2002-02-281-0/+1
| | | | - Add a pmap_deactivate function.
* Complete rework of the PowerPC pmap and a number of other bits in the earlybenno2002-02-141-84/+34
| | | | | | | | | | | | | | boot sequence. The new pmap.c is based on NetBSD's newer pmap.c (for the mpc6xx processors) which is 70% faster than the older code that the original pmap.c was based on. It has also been based on the framework established by jake's initial sparc64 pmap.c. There is no change to how far the kernel gets (it makes it to the mountroot prompt in psim) but the new pmap code is a lot cleaner. Obtained from: NetBSD (pmap code)
* Implement pmap_mapdev.benno2001-10-141-0/+1
|
* Update PowerPC MD code to compile and do initial bootstrap based onmp2001-09-201-1/+2
| | | | | | recent changes (KSE and VM requiring physmem to be setup). Reviewed by: benno, jhb, julian
* Bring in NetBSD code used in the PowerPC port.benno2001-06-101-0/+134
Reviewed by: obrien, dfr Obtained from: NetBSD
OpenPOWER on IntegriCloud