summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make atomic_cmpset_32 correctly return 0 on failure.Benno Rice2002-02-241-0/+3
| | | | Notes: svn path=/head/; revision=91207
* Fix style bugs:Alfred Perlstein2002-02-241-2/+3
| | | | | | | | | | Missing `const' qualifier. Initialization in declaration. Submitted by: mike Notes: svn path=/head/; revision=91206
* Tests by numerous people have shown that many chipsets do not properlyMatthew Dillon2002-02-241-1/+1
| | | | | | | | | | | | | | latch the acpi timer, resulting in weird deltas. The problem is severe enough to adversely effect the timecounter code. Default to the 'safe' version of the get-timecount function. The probe will override it if a known-good chipset is found. This is temporary until a more complete solution is found. Reviewed by: phk Notes: svn path=/head/; revision=91204
* bump __FreeBSD_version for usb structure rename.Alfred Perlstein2002-02-241-1/+1
| | | | Notes: svn path=/head/; revision=91203
* Give a little more information as to why pnp configuration of a deviceAlfred Perlstein2002-02-241-1/+7
| | | | | | | | | may have failed. Submitted by: Terry Lambert <tlambert2@mindspring.com> Notes: svn path=/head/; revision=91202
* Revert revision 1.11. FreeBSD/alpha has suppport for T/TCP.Mike Barcroft2002-02-241-2/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=91201
* Add a generation number to timecounters and spin if it changes underPoul-Henning Kamp2002-02-242-38/+65
| | | | | | | | | | | | | | | our feet when we look inside timecounter structures. Make the "sync_other" code more robust by never overwriting the tc_next field. Add counters for the bin[up]time functions. Call tc_windup() in tc_init() and switch_timecounter() to make sure we all the fields set right. Notes: svn path=/head/; revision=91200
* Fix a typo (?) in previous commit told ttyprintf() to print the integerPoul-Henning Kamp2002-02-241-1/+1
| | | | | | | | part of the user-time as a 64bit quantity. This resulted in weird output from SIGINFO. Notes: svn path=/head/; revision=91199
* Sync with the Alpha's GENERIC configuration.David E. O'Brien2002-02-241-3/+143
| | | | | | | | | | Most of the contents are commented out as they are as-yet untested. However, I wanted the contents to match our other arches, so that when people make changes to {i386,alpha,ia64}, they will also make the same changes here. Notes: svn path=/head/; revision=91198
* Add a definition for mode page 0x2a "CD capabilities and mechanicalJoerg Wunsch2002-02-241-0/+52
| | | | | | | status page". Notes: svn path=/head/; revision=91196
* Finish phk's previous removal of BIO_ORDERED, all code thatSøren Schmidt2002-02-242-5/+0
| | | | | | | depended on ATA_FLUSHCACHE_ON is now useless. Notes: svn path=/head/; revision=91194
* * Add a feature to do a "pre {build|install}world" check of (so far)Doug Barton2002-02-241-26/+90
| | | | | | | | | | | master.passwd, group, and make.conf * Add a feature to check variables in rc.conf[.local] to their counterparts in /etc/defaults/rc.conf after a run * Twiddle whitespace a little * Change some "[ -f file ] && rm file" to "rm -f file" Notes: svn path=/head/; revision=91193
* Move some debugger-only symbols around; this patch didn't make it intoMike Smith2002-02-243-4/+2
| | | | | | | the commit resolution for some reason. Fixes ACPI_DEBUG. Notes: svn path=/head/; revision=91192
* Use libgcc_p.a when -pg is in effect.David E. O'Brien2002-02-241-0/+4
| | | | | | | | | | | I am committing this here rather than in gcc/config/freebsd.h because the profiled libgcc only exists with the native system compiler. It is not created by a stock FSF build and we will never be able to get these bits committed to the FSF CVS repo. Thus this is very much a FreeBSD "native" issue. Notes: svn path=/head/; revision=91190
* ctags would create a corrupt tags file if the source C file used '//' styleGregory Neil Shapiro2002-02-243-13/+16
| | | | | | | | | | | | | | comments such as: // The main() function Teach ctags about this style of commenting. Submitted by: Eric Allman <eric@Sendmail.ORG> MFC after: 1 week Notes: svn path=/head/; revision=91189
* Make sure we don't remove /etc/mail/sendmail.cf on make clean since thisGregory Neil Shapiro2002-02-241-3/+11
| | | | | | | | | | will break a running system during a buildworld. Noticed by: Alexandr Listopad <laa@laa.zp.ua> MFC after: 1 week Notes: svn path=/head/; revision=91187
* Add a sysctl, sysctl hw.snd.report_soft_formats, that controls whether theDag-Erling Smørgrav2002-02-241-1/+9
| | | | | | | | | | | | | | AIOGCAP ioctl reports software-emulated formats. It defaults to on. People who use performance-sensitive audio software and do not want it to pick a software-emulated audio format instead of one supported by their hardware should turn it off. This unbreaks isdnphone(1) on systems with PCM-only sound cards. Approved by: cg Notes: svn path=/head/; revision=91186
* Adding infrastructure for translation for alpha dirSebastien Gioria2002-02-233-2/+57
| | | | Notes: svn path=/head/; revision=91183
* Fix LINT breakage by adding a missing include.Thomas Moestl2002-02-232-0/+2
| | | | Notes: svn path=/head/; revision=91181
* Add PMAP_STATS option so pmap.c compiles.Jake Burkholder2002-02-231-0/+1
| | | | Notes: svn path=/head/; revision=91180
* Add SIIG Cyber Serial Dual PCI 16C550 to the list of puc(4)-supportedBruce A. Mah2002-02-232-0/+6
| | | | | | | cards. Notes: svn path=/head/; revision=91178
* Make use of the ranged tlb demap operations where ever possible. UseJake Burkholder2002-02-234-56/+77
| | | | | | | | | | | pmap_qenter and pmap_qremove in preference to pmap_kenter/pmap_kremove. The former maps in multiple pages at a time, and so can do a ranged flush. Don't assume that pmap_kenter and pmap_kremove will flush the tlb, even though they still do. It will not once the MI code is updated to use pmap_qenter and pmap_qremove. Notes: svn path=/head/; revision=91177
* Add needed include of ucontext.h.Jake Burkholder2002-02-231-0/+1
| | | | Notes: svn path=/head/; revision=91176
* Initialize the libc user trap handlers before passing control non-startupThomas Moestl2002-02-231-0/+2
| | | | | | | code, so that the userland fp emulator will work. Notes: svn path=/head/; revision=91175
* Add userland floating point emulator code for sparc64. This is a portThomas Moestl2002-02-2317-1/+3520
| | | | | | | | of the (never committed) in-kernel version (with some optimizations and cleanups), which in turn was ported from NetBSD. Notes: svn path=/head/; revision=91174
* Fix namespace pollution introduced in previous commit.Dag-Erling Smørgrav2002-02-231-4/+1
| | | | Notes: svn path=/head/; revision=91173
* Add inlines for demapping a range of pages from the itlb and dtlb. ThisJake Burkholder2002-02-231-5/+16
| | | | | | | | | | will be used to reduce the number of tlb shootdown ipis in an smp system by sending one ipi for a whole range of pages, instead of one per page. Munge the context demap operations slightly to support demapping a non-primary context. Notes: svn path=/head/; revision=91172
* Fixed unsorting.Bruce Evans2002-02-231-6/+6
| | | | Notes: svn path=/head/; revision=91171
* Use intr_disable/intr_restore instead of TLB_ATOMIC_START/END.Jake Burkholder2002-02-231-13/+8
| | | | | | | Submitted by: tmm Notes: svn path=/head/; revision=91170
* Use PCB_REG instead of loading the pcb from curthread. This fixes a bugJake Burkholder2002-02-232-8/+4
| | | | | | | where %g6 could be inconsistent for 1 instruction. Notes: svn path=/head/; revision=91169
* Adapt the tsb_foreach interface to take a source and a destination pmap soJake Burkholder2002-02-233-18/+58
| | | | | | | | | that it can be used for pmap_copy. Other consumers ignore the second pmap. Add statistics gathering for tsb_foreach. Implement pmap_copy. Notes: svn path=/head/; revision=91168
* Add statistic gathering for various tsb operations.Jake Burkholder2002-02-231-0/+34
| | | | | | | Submitted by: tmm Notes: svn path=/head/; revision=91167
* Remove debug code.Jake Burkholder2002-02-231-12/+2
| | | | Notes: svn path=/head/; revision=91166
* Add statistic gathering for various pmap operations.Jake Burkholder2002-02-231-3/+38
| | | | | | | Submitted by: tmm Notes: svn path=/head/; revision=91165
* Remove CADDR1 and CADDR2 which are no longer used. On other architecturesJake Burkholder2002-02-231-16/+0
| | | | | | | | these are used for copy and zeroing physical pages; we use physical addresses directly. Notes: svn path=/head/; revision=91164
* Add macros to extract the UPA module id from the UPA config register.Jake Burkholder2002-02-231-0/+6
| | | | | | | This is the hardware cpuid. Notes: svn path=/head/; revision=91163
* Sync this up to recent changes to our (userland) thread structure.Daniel Eischen2002-02-231-42/+4
| | | | Notes: svn path=/head/; revision=91162
* Add ifdefs for sparc64.Jake Burkholder2002-02-233-2/+7
| | | | Notes: svn path=/head/; revision=91161
* Fix wrong offsets. Add offsets for %fsr and %tstate.Jake Burkholder2002-02-231-6/+11
| | | | | | | Submitted by: tmm Notes: svn path=/head/; revision=91160
* Add space for %fsr and %tstate to utrapframe. Save them in the genericJake Burkholder2002-02-232-1/+14
| | | | | | | | | | user trap entry code. Restore %asi and %ccr from the saved %tstate before returning to the trapping user code. Submitted by: tmm Notes: svn path=/head/; revision=91159
* 1. Setup the user stack pointer before returning to a user trap handler.Jake Burkholder2002-02-232-0/+64
| | | | | | | | | | | | | | If we don't do this here there's a 1 instruction race where an interrupt could come in and crash the user process due to having no stack. 2. Pass %fsr to the user trap handler in %l4. Since %fsr can only be loaded from or stored to memory, we need to do some contortions and temporarily save it to the alternate global stack. 3. Reload the pcb and pcpu registers for traps in kernel mode, for sanity. Submitted by: tmm (1, 2) Notes: svn path=/head/; revision=91158
* Include intr_machdep.h only for !LOCORE.Jake Burkholder2002-02-231-2/+2
| | | | Notes: svn path=/head/; revision=91157
* Add needed include of ucontext.h. Fix braino setting curpcb.Jake Burkholder2002-02-231-1/+2
| | | | Notes: svn path=/head/; revision=91156
* Add metadata types for dtlb and itlb data, and number of slots used.Jake Burkholder2002-02-231-0/+10
| | | | Notes: svn path=/head/; revision=91147
* Fixed some style bugs in revs 1.1 and 1.4.Bruce Evans2002-02-231-4/+4
| | | | Notes: svn path=/head/; revision=91146
* Use the regular expression form to solve the ambiguous card parametersMitsuru IWASAKI2002-02-231-19/+19
| | | | | | | | | | | which have tailing spaces. Some card entries had problem because of incorrect number of spaces. Approved by: imp MFC after: 1 week Notes: svn path=/head/; revision=91145
* Long overdue whitespace cleanup. To give yourself an idea of howCrist J. Clark2002-02-231-311/+311
| | | | | | | | | | | ugly it was, $ awk '/[[:space:]]$/ { sub(/$/,"\$"); print; }' /etc/services On the previous revision. And that's only the trailing whitespace. Notes: svn path=/head/; revision=91141
* Lock struct pgrp, session and sigio.Seigo Tanimura2002-02-2335-314/+1004
| | | | | | | | | | | | | | | | | | | | | | | | | | | | New locks are: - pgrpsess_lock which locks the whole pgrps and sessions, - pg_mtx which protects the pgrp members, and - s_mtx which protects the session members. Please refer to sys/proc.h for the coverage of these locks. Changes on the pgrp/session interface: - pgfind() needs the pgrpsess_lock held. - The caller of enterpgrp() is responsible to allocate a new pgrp and session. - Call enterthispgrp() in order to enter an existing pgrp. - pgsignal() requires a pgrp lock held. Reviewed by: jhb, alfred Tested on: cvsup.jp.FreeBSD.org (which is a quad-CPU machine running -current) Notes: svn path=/head/; revision=91140
* Keep track of the ttes used to map the kernel and pass them to it as loaderJake Burkholder2002-02-234-35/+126
| | | | | | | | metadata. Modify tlb handling functions to take a tte, instead of virtual address, physical address and flags. Notes: svn path=/head/; revision=91139
* BDECFLAGSBill Fumerola2002-02-231-6/+8
| | | | | | | Reviewed by: md5(1) Notes: svn path=/head/; revision=91138