summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move the PC_TO_I() and KCOUNT() macros so they aren't GUPROF specificjhb2006-03-291-3/+4
| | | | | | | | since they operate on fields of struct gmonparam which is not GUPROF specific. Approved by: bde Reported by: alc
* hold the list lock over the f_event and KNOTE_ACTIVATE calls... This closesjmg2006-03-291-1/+1
| | | | | | | | | | a race where data could come in before we clear the INFLUX flag, and get skipped over by knote (and hence never be activated, though it should of been)... Found by: glebius & co. Reviewed by: glebius MFC after: 3 days
* Add symbol versioning.deischen2006-03-292-0/+37
| | | | Reviewed by: davidxu
* *thwack*! all the world's not i386.des2006-03-291-0/+2
| | | | Pointy hat to: des
* Teach sysinstall about mfi(4).scottl2006-03-292-0/+2
|
* Hook the MFI driver up to the build.scottl2006-03-296-0/+8
|
* Spaces to tabgshapiro2006-03-292-2/+2
|
* Add sendmail 8.13.4 -> 8.13.6 release note entry.gshapiro2006-03-292-2/+4
|
* Add a manual page for mfi(4).scottl2006-03-292-0/+87
|
* Add a blacklist for bad IO ports that AML should never touch. It seemsnjl2006-03-291-0/+76
| | | | | | | | | | | | | | some systems were designed so that AML writes to various resources shared with OS drivers, including the RTC, PIC, PCI, etc. These writes could collide with writes by the OS and should never be performed. For now, we print a message if such an access occurs, but do not block it. To block the access, the tunable "debug.acpi.block_bad_io" can be set to 1. In the future, we will flip the switch and this will become the default. Information about this problem was found in Microsoft KB 283649. They block IO accesses if the BIOS indicates via _OSI that it is Windows 2001 or higher. They always block accesses to the PIC, cascaded PIC, and ELCRs, no matter how old the BIOS.
* Add reset register support. This is the only method to reboot some newnjl2006-03-291-0/+11
| | | | | | | | | | systems (blade servers). On most systems, this is implemented as an IO write to the SMI port and the BIOS generates the actual reset. PR: kern/94939 Submitted by: dodell@ixsystems.com Reviewed by: jhb MFC after: 3 weeks
* Bring libpthread up to WARNS level 2.des2006-03-296-16/+32
| | | | Reviewed by: deischen
* Account for recent changes in namespace.h. Use _pthread_createdeischen2006-03-291-4/+4
| | | | instead of pthread_create.
* - We only lock the local per-CPU page in the local dTLB, so accessing themarius2006-03-291-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | foreign per-CPU pages in cpu_ipi_send() in order to get the module IDs of the other CPUs can cause a page fault. If this happens when doing a TLB shootdown while dealing with another page fault this causes a panic due to the recursive page fault. As I don't spot other code that assumes or requires that accessing foreign per-CPU pages must not page fault solve this by adding a statically allocated (and therefore locked in the kernel pages) array which establishes a FreeBSD CPU ID -> module ID relation and use that in cpu_ipi_selected() (instead of statically allocating the per-CPU pages which would just waste memory on say a dual CPU machine as sun4u theoretically supports up to 128 CPUs or wasting dTLB slots for the foreign per-CPU pages). [1] - Fix a potential race in cpu_ipi_send(); as we don't serialize the access to cpu_ipi_selected() between MI and MD use (only MI-MI and MD-MD) we might catch the NACK bit caused by sending another IPI. Solve this by checking the NACK bit in the contents of the interrupt dispatch status reg read while interrupts were still turned off instead of reading that reg anew after interrupts were turned on again. This is also what the CPU docs suggest to do. - Add a workaround for the SpitFire erratum #54 bug (affecting interrupt dispatch). While public info regarding what this CPU bug actually causes is not available testing shows that with the workaround in place it's less likely to get a "couldn't send ipi" panic, it doesn't solve these panics entirely though. [2] Reported by: kris [1] Some clue from: kmacy [1] Info from: Linux, OpenSolaris [2] Additional testing by: kris MFC after: 3 days
* Add convenience macros for the bits in ASI_ESTATE_ERROR_EN_REG (usedmarius2006-03-291-0/+16
| | | | | | | for ECC handling) and the additional uses of the ASIs 0x77 and 0x7f as well as their bits (used for a CPU bug workaround). MFC after: 3 days
* Fix 64-bit DMA. The problem was an incorrect flag check. Thanks to Paulscottl2006-03-281-10/+14
| | | | | | Saab for helping to track this down. Fix a error with 32bit DMA size calculation that seemed to be harmless. Add a few micro-optimizations while I'm here.
* Add malloc_usable_size(3).jasone2006-03-286-4/+85
| | | | Discussed with: arch@
* Fix prototype mismatch and use of un-namespaced pthread functions.des2006-03-282-22/+14
|
* Fix prototype mismatch.des2006-03-281-1/+2
|
* - Conditionalize Giant around VFS operations for ALQ, ktrace, andjhb2006-03-283-32/+35
| | | | | | | | generating a coredump as the result of a signal. - Fix a bug where we could leak a Giant lock if vn_start_write() failed in coredump(). Reported by: jmg (2)
* Conditionalize locking of Giant for VFS in acct(2). We alreadyjhb2006-03-281-17/+20
| | | | conditionally acquired Giant in the other parts of the accounting code.
* - Conditionally acquire Giant in mdstart_vnode(), mdcreate_vnode(), andjhb2006-03-281-29/+23
| | | | | | | | mddestroy() only if the file is from a non-MPSAFE VFS. - No longer unconditionally hold Giant in the md kthread for vnode-backed kthreads. - Improve the handling of the thread exit race when destroying an md device.
* Change vn_open() to honor the MPSAFE flag in the passed in nameidata objectjhb2006-03-283-8/+11
| | | | | | | | and use that instead of testing fdidx against -1 to determine if it should release Giant if Giant was locked due to the requested file residing on a non-MPSAFE VFS. Discussed with: jeff
* Use the read_cycle_count() function recently added for cpu_ticks() forjhb2006-03-282-2/+2
| | | | | | get_cyclecount() as that results in a saner value and makes schedgraph much happier on Alpha. (schedgraph doesn't handle the fact that the counters are out of sync though)
* Use the correct type for and argument. Recent changes to namespace.hdeischen2006-03-282-2/+2
| | | | | | exposed this bug. Reported by: kris
* - Add a comment describing why tick_init() is called before cninit().marius2006-03-281-1/+6
| | | | - Fix a typo in another comment.
* - Move the check for too high HZ values from tick_init() to tick_start()marius2006-03-281-7/+12
| | | | | | | | | | as we have to call tick_init() before cninit() in order to provide the low-level console drivers with a working DELAY() which in turn means we cannot use panic() in tick_init(). - s,to high, too high, in the panic string Inspired by: kmacy's sun4v changes MFC after: 3 days
* Add convenience macros for the full register set and use them to replacemarius2006-03-282-23/+74
| | | | | | magic constants in clkbrd.c Info from: OpenSolaris
* Sync with the other archs and declare the memory location referenced bymarius2006-03-281-4/+4
| | | | | | the address argument of the bus_space_write_multi_*() familiy as const. Prodded by: damien
* Add semaphore functions, and remove some dupes from the #if 0 section.des2006-03-282-4/+20
|
* Preserve previous behaviour of kern.geom.raid3.n{64,16,4}k tunables were 0pjd2006-03-281-1/+1
| | | | | | | means unlimited. Reported by: ru MFC after: 3 days
* Remove redundant ike rc.d script, since we do not have an IPsec IKEsimon2006-03-283-20/+2
| | | | | | | | | | daemon in the base system and all the IKE daemons in the Ports Collection has their own rc.d script. OK'ed by: dougb Discussed on: freebsd-rc MFC after: 1 month Approved by: cperciva (mentor)
* Don't use dbg if it isn't defined (such as when this file is used bydes2006-03-281-0/+2
| | | | code outside of rtld-elf)
* Use C99's varadic macro syntax instead of gcc's.des2006-03-281-2/+2
|
* Add a bunch of missing pthread functions, and move out-of-order functions.des2006-03-282-13/+128
|
* Remove unused symbols.jkoshy2006-03-282-4/+0
|
* Don't call audit_logout() if pwd is NULL, as audit_logout() attempts tocognet2006-03-281-1/+4
| | | | | | | | | | dereference it. This will happen if we ^D at the Login: prompt without having provided a valid login before. Set pwd to NULL on bad login attempts to prevent audit_logout() from being called for a user which didn't actually log on. Reported by: Jerome Magnin jethro at docisland dot org
* Document authpf's requirement for a mounted fdescfs(5).mlaier2006-03-281-2/+8
| | | | | PR: docs/89635 MFC after: 1 day
* Use wrapper macros for atomic pointer operations in order to perform thedes2006-03-281-18/+36
| | | | correct casts. This should probably be merged to other architectures.
* Revert previous commit at davidxu's insistance. Instead, use __DECONSTdes2006-03-283-8/+12
| | | | | (argh!) and rearrange the prototypes to make it clear that _umtx_op() is not deprecated.
* Forcibly turn off all PMCs at module unload time.jkoshy2006-03-281-0/+6
| | | | MFC after: 1 week
* This comment on various IPPORT_ defines was copied from in.h anddwmalone2006-03-281-25/+3
| | | | | | | | probably never fully applied to IPv6. Over time it has become more stale, so replace it with something more up to date. Reviewed by: ume MFC after: 1 month
* Remove manual assignment of m_pkthdr from one mbuf to another inrwatson2006-03-281-9/+0
| | | | | | | | | | | ipsec_copypkt(), as this is already handled by the call to M_MOVE_PKTHDR(), which also knows how to correctly handle MAC m_tags. This corrects a panic when running with MAC and KAME IPSEC. PR: kern/94599 Submitted by: zhouyi zhou <zhouyi04 at ios dot cn> Reviewed by: bz MFC after: 3 days
* The undocumented and deprecated system call _umtx_op() takes two pointerdes2006-03-283-5/+5
| | | | | | | arguments. The first one is never used (all callers pass in 0); the second is sometimes used to pass in a struct timespec * which is used as a timeout and never modified. Constify that argument so callers can pass a const struct timespec * without jumping through hoops.
* Fix memory leak which occurs when crypto.ko module is unloaded.pjd2006-03-281-0/+9
| | | | | Discussed with: sam MFC after 3 days
* If the query choked with EDNS0, retry without EDNS0.ume2006-03-281-8/+24
| | | | Obtained from: res_nquery() of BIND9.
* Er, forgot to clear tls space to zero for Variant II.davidxu2006-03-281-1/+1
|
* Allocate space for thread pointer, this allows thread library to accessdavidxu2006-03-285-7/+7
| | | | its pointer from begin, and simplifies _get_curthread() in libthr.
* Handle invalid capacity parameters from the firmware.scottl2006-03-282-1/+7
|
* Add symbol versioning to libm.deischen2006-03-2716-0/+246
|
OpenPOWER on IntegriCloud