summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/include
AgeCommit message (Collapse)Author
2002-04-29Define placeholders for art's splassert() debugging stuff on all arches.Miod Vallat
Currently as no-ops everywhere. ok art@, deraadt@
2002-04-24Introduce a new file, machine/internal_types.h, to hold that specific archMarc Espie
type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
2002-03-21Swap the defines to be the ones we want to use, compat ones are definedDale Rahn
from the preferred.
2002-03-14Improved altivec support for powerpc/macppc.Dale Rahn
Fix bug where altivec context was not freed on process exit. Fix bug where vscr was not correctly saved/restored. replace asm statement was macros which expand to the same asm code or to .long XXX which evaluates to the same instruction since in-tree gas does not support altivec. Enable ALTIVEC support by default on macppc, still conditional for other powerpc ports.
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-13Complete rewrite of the powerpc pmap handling, Instead of keepingDale Rahn
the spill list for each PTEG, the V->P translations are stored in trees for each pmap. All valid kernel mappings are preallocated in 1-1 memory so that tlb spill/loads for kernel accesses can be looked up while physical, user mappings are not guaranteed to be 1-1 mapped, thus the kernel must go virtual to look up user mappings. While this is more expensive, the tree search is much lower cost than the long linked list search. Also on each pmap_remove() it was necessary to search the linked lists for each possible mapping, now it just looks up the entry in the tree. This change gives a 25-36% speedup in 'make build' time. What was around 2:50 is now around 1:55 on a 733MHz G4. This change causes a likely existing bug to appear quite often, it deals with the segment register invalidation in kernel mode. Because of that problem, currently this change limits the physical memory used to 256MB. This limitation will be fixed soon, it is not an error in the pmap code. * Effort sponsored in part by the Defense Advanced Research Projects * Agency (DARPA) and Air Force Research Laboratory, Air Force * Materiel Command, USAF, under agreement number F30602-01-2-0537.
2002-02-19get rid of old if 0'ed code. add support for __weak_alias and fixDale Rahn
support for __warn_references (both from alpha/sparc4).
2002-01-26splclock() should block SPL_BIO - SPL_IMP.Dale Rahn
2002-01-21ARGH, fix it right...Dale Rahn
2002-01-21Better barrier protection. pefo found an instance where the previousDale Rahn
protection was not good enough. work from theo, pefo, toby.
2001-12-17Move the process_read_reg prototype to the correct file, it is specifiedDale Rahn
in ptrace.h, not in md header files. Protect vector functions/variables with _KERNEL.
2001-12-05make nkmempages dynamic based on memory. okay art@ from netbsd:Niels Provos
date: 2000/02/11 19:22:52; author: thorpej; Add some very simple code to auto-size the kmem_map. We take the amount of physical memory, divide it by 4, and then allow machine dependent code to place upper and lower bounds on the size. Export the computed value to userspace via the new "vm.nkmempages" sysctl. NKMEMCLUSTERS is now deprecated and will generate an error if you attempt to use it. The new option, should you choose to use it, is called NKMEMPAGES, and two new options NKMEMPAGES_MIN and NKMEMPAGES_MAX allow the user to configure the bounds in the kernel config file.
2001-12-05Update pmap_update macro for arches Art missed. Still just a noop.Todd C. Miller
2001-11-28Make pmap_update functions into nops so that we can have a consistentArtur Grabowski
pmap_update API (right now it's nop).
2001-11-19Remove pointless additional 'syncing' instructions in the powerpc spl*()Dale Rahn
functions. Seems to have no effect on system run time (it should have...) reduces GENERIC kernel size by 52k.
2001-11-13Add AltiVec support to powerpc/macppc. This is not currently enabled becauseDale Rahn
the 'as' in openbsd source tree does not yet support altivec instructions. The pieces to enable it have been put in macppc/conf/GENERIC and macppc/conf/Makefile.macppc in comments. Once 'as' is updated the kernel option should be removed.
2001-11-06Need to prototype pmap_pinit and pmap_release here.Artur Grabowski
(although they are leftovers from an earlier bad time, the macppc decided that it's a good idea to use them.)
2001-09-18Changing the way the pmap code works again.Dale Rahn
Changes to the pmap_enter code so that the pmap_kenter/pmap_kremove has a method to create mappings without adding them to the _pv lists (part of the point of pmap_k* functions). Also adds an interface so that device mappings can be created with cacheable attributes. So that devices such as display memory can be mapped writethru greatly increasing their speed.
2001-09-10move vtophys proto into a port-area in order to remove it for macppc ↵Michael Shalayeff
eventually; drahn@ ok
2001-09-01The "powerpc" port which has supported the newer Apple Macintosh powerpc basedDale Rahn
is being renamed to macppc. This is to allow sharing of common code between different powerpc base platforms. Most of the work involved in the renaming process was performed by miod@ Files moved from powerpc/include to macppc/include Some files were not "moved" but wrapper files were created which include the powerpc/include version. Several of the powerpc/include files where changed to reflect that they are POWERPC_* not MACHINE_*.
2001-08-19ddb on powerpc does not have ``machine'' commands, so don't lie.Miod Vallat
2001-08-18Move pmap_{de,}activate to vm/pmap.h, it's same on all archs.Artur Grabowski
2001-08-15Same fix as for mvmeppc needed there, forgot this one.Miod Vallat
2001-08-12vm_inherit.h no moreMichael Shalayeff
2001-08-12Fix build after breakage.Dale Rahn
> vm/vm_prot.h no more
2001-08-01make this compile. ok drahnPeter Valchev
2001-07-30Change:Artur Grabowski
int bus_dmamem_mmap(bus_dma_tag_t, bus_dma_segment_t, int, int, int, int); to: paddr_t bus_dmamem_mmap(bus_dma_tag_t, bus_dma_segment_t, int, int, off_t, int); To allow mmaping offsets larger than INT_MAX. And to simply make more sense.
2001-07-18fxp and de are fixed, enable vtophysMichael Shalayeff
2001-07-18Fix prototype that art missed...Dale Rahn
2001-07-18Get rid of the PMAP_NEW option by making it mandatory for all archs.Artur Grabowski
The archs that didn't have a proper PMAP_NEW now have a dummy implementation with wrappers around the old functions.
2001-07-10Until fxp and if_de are fixed with the correct parameter to vtophys()Dale Rahn
this function cannot be prototyped.
2001-07-09looking at other archs vtophys lives thereMichael Shalayeff
2001-07-09more spacees, includes, protosMichael Shalayeff
2001-07-09protos, includes, spacesMichael Shalayeff
2001-07-09lots of parens, protosMichael Shalayeff
2001-07-08empty arg list is named void for convinience, i supposeMichael Shalayeff
2001-07-06change MSIZE to 256, okay @deraadtNiels Provos
2001-07-04$OpenBSD$Niklas Hallqvist
2001-07-01Properly identify the PBG4 keyboard, US keyboard at least.Dale Rahn
2001-06-29Add kbd info for iBook. -mojMats O Jansson
2001-06-29header file include/define cleanup. commit N of many.Dale Rahn
2001-06-27MNN is no longer an option.Artur Grabowski
2001-06-26Cleanup of interrupt configuration, move prototypes to header file,Dale Rahn
not in each file.
2001-06-26stub bus_space_{alloc,free}Michael Shalayeff
2001-06-25implement bus_space_set_multi_*, based on netbsd code; drahn@ okMichael Shalayeff
2001-06-25config interfaces defines.Dale Rahn
2001-06-24Add prototypes for softnet, ofrootfound.Dale Rahn
Code cleanup for pmap headers.
2001-06-24Define splvm() for arches who don't already provide it, with the sameMiod Vallat
definition as splimp(). art@ ok
2001-06-24Header file to specify to loadfile what types of exe files to support.Dale Rahn
2001-06-24Prototype functions used in macros in this header file.Dale Rahn