summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/include
AgeCommit message (Collapse)Author
2003-08-21These files were intended for X11 support, but serve no purpose nowadays,Miod Vallat
as sparc* do not use Xsun-compatible event interface anymore, and alpha only used this for Xtga which we do not ship anymore. Discussed long ago with matthieu@
2003-08-10Define wint_t on powerpc.Miod Vallat
2003-07-14tickspending is now a private variable of clock.cDale Rahn
2003-07-14'dual' clock support for macppc, this allows the stat clock to runDale Rahn
at a rate independant of the HZ clock. when profiling is enabled stat clock now runs at 1000/s instead of the normal 100/s. Other improvements to the ppc clock handling and KNF/ansi.
2003-07-08Improved timebase register handling. use all 64 bits, instead of theDale Rahn
lower 32 bits.
2003-07-02Reduce the amount of asm code in powerpc/macppc by replacing it withDale Rahn
inlined functions, helps improve readability and fix a couple of bugs. ok miod@
2003-07-02make ppc_intr_(enable|disable)() inlined functions.Dale Rahn
2003-06-24For now depend on the gccism __CHAR_UNSIGNED__ to define if we have (un)signedDale Rahn
chars. Fixes other defines if -fsigned-chars is specified. ok deraadt.
2003-06-09more 3/4 cleanup for pefoTheo de Raadt
2003-06-03terms 3 & 4 cleanup based on "terms" fileTheo de Raadt
2003-06-03kill clause 3 and 4 from several of my copyrights, cleanup.Dale Rahn
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-26managment -> management;Jason McIntyre
ok mickey@
2003-02-26Remove an unnecessary structure copy from useage of setfault(), callDale Rahn
by reference, not by value, ok matthieu#, miod@
2003-02-12move ddb_regs decl from .h to .c to avoid commonJason Wright
2003-01-30Track if a physical page has been previously mapped executable. If itDale Rahn
has not been previously mapped EXE, flush it. If a writeable mapping which is not executable occurs for the page, clear this bit. Solves a problem where an executable page is double mapped, first without EXE then accessed for execute at a different physical page, the cache will behave properly.
2002-11-21MID_MACHINE should not be 0 (MID_ZERO) but MID_POWERPC,Dale Rahn
not used in kernel anyway. pointed out by art@
2002-11-11Proper defines for powerpc kernel profiling.Dale Rahn
2002-10-24Add va_copy() as necessary for powerpc, same protections as was addedDale Rahn
recently on other architectures.
2002-10-17sync with gcc version, fixes bug in sftp where it had a 64 bit parameterDale Rahn
which straddled the last register first stack parameter.
2002-09-15backout prematureTheo de Raadt
2002-09-15KNFTheo de Raadt
2002-09-12Change the PMAP_{MAP,UNMAP}_POOLPAGE api to take a vm_page as argumentArtur Grabowski
and return a VM_PAGE. This is to allow sparc64 to cheaply record the VAC color for those pages.
2002-08-06No, powerpc is not Elf64, it is Elf32. stupid comment error.Dale Rahn
2002-07-30Add SIZE_MAX define. This is the same as SIZE_T_MAX but more portable.Todd C. Miller
The only OSes I've seen that use SIZE_T_MAX are 4.4BSD-derived whereas SYSV things seem to use SIZE_MAX. It is also consistent with SSIZE_MAX (which we already have). deraadt@ OK
2002-07-24- change pte_spill_X() to take an extra parameter to determine ifDale Rahn
the fault is a EXE fault or R/W fault. - mask/or the SR_NOEXEC bit into the segment register value when the number of executable pages becomes 0/non-zero. - create segments with SR_NOEXEC set, will be cleared when first exec mapping in the segment is created. - allow pte_spill_X() to deal with a new type of fault, page mapped but non executable, when execute was requested. Adds up to - non-exec stack support for powerpc.
2002-07-23Remove unused files now that powerpc archs use link_elf.hDale Rahn
2002-07-23Cardbus/pcmcia support for macppc. parts borrowed from NetBSD, and otherDale Rahn
portions of the tree.
2002-07-15Perform accounting for executable pages on powerpc, prepare forDale Rahn
non-executeable stack.
2002-07-12Cleanup: use less _t typedefs, use the structure itself.Dale Rahn
pmap_t is the exception, it is required by the MI code so pmap_t will be used instead of using 'struct pmap *' in the code. (consistency)
2002-06-08One ddb to rule them all.Miod Vallat
Move the ddb files form macppc/macppc to powerpc/ddb, so that mvmeppc can benefit from the better ddb that was in macppc. db_interface.c is left as an md part.
2002-06-08Factorize common parts (cache-related stuff).Miod Vallat
ok drahn@
2002-06-07Remove obsolete CLKF_BASEPRI(). ok niklas@, miod@ and art@Thomas Nordin
2002-06-06zapArtur Grabowski
2002-06-02withough -> withoutTheo de Raadt
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.