summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly specify an alignment for abitag. Without it, gcc specifies apeter2003-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | section alignnment of 16 bytes for amd64 and this breaks file(1). Before: ./cp: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), for \ FreeBSD 127.7.9, statically linked, stripped after: ^^^^^^^ ./ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), for \ FreeBSD 5.0.1, dynamically linked (uses shared libs), stripped The reason for this is that the NOTE sections are not contiguous internally. If the note section has an alignment of 16, then anything that looks for the data is supposed to round up the payload start to the next multiple of the alignment. But FreeBSD/amd64 broke because the structure is declared as a single structure, not a (header,payload) group, where the payload had an explicit alignment roundup. The alternative is to change things like file(1) to ignore the ELF payload alignment rules for the PT_NOTE section only for FreeBSD.
* Add multicast(4) and pim(4) manual pages and hook up to the build.bmah2003-10-173-0/+1111
| | | | | | Submitted by: Pavlin Radoslavov <pavlin@icir.org> Reviewed by: hsu, bmah MFC after: 2 weeks
* When expunging unlinked files from a snapshot, skip over holes in themckusick2003-10-171-6/+16
| | | | | | file rather than panicing with "indiracct: botched params". Submitted by: Mark Santcroos <marks@ripe.net>
* Simplify count_dev()phk2003-10-171-5/+5
|
* - NI_WITHSCOPEID was deprecatedume2003-10-171-155/+151
| | | | | | | | - use strlcpy() and snprintf() - use err() - style Obtained from: KAME
* - styleume2003-10-172-50/+56
| | | | | | | | - rename variable - use strlcpy - const'fy Obtained from: KAME
* Uses wait4() instead of wait3() when waiting for a child process to exit.seanc2003-10-171-1/+1
| | | | Reviewed by: yar
* 1. Catch up with the move of the declaration of panic() from <sys/param.h>bde2003-10-171-3/+6
| | | | | | | back to <sys/systm.h>. 2. Remove hard sentence breaks. Reminded by: Stefan Farfeleder <stefan@fafoe.narf.at> (1)
* - Synchronize access to a vm page's valid field using the containingalc2003-10-171-14/+19
| | | | | vm object's lock. - Release the vm object and vm page queues locks around vput().
* Halt the cpu on amd64 as well. For some strange reason, this makespeter2003-10-171-1/+1
| | | | | | a fair bit of difference to the power consumption and lets my cpu cool down enough for the temperature sensitive fan controller to completely stop the cpu fan at times.
* Implement cpu_idle() on ia64. We put the processor in a lightweightmarcel2003-10-172-2/+10
| | | | | | halt state that minimizes power consumption while still preserving cache and TLB coherency. Halting the processor is not conditional at this time. Tested with UP and SMP kernels.
* - The kse may be null in sched_pctcpu().jeff2003-10-161-1/+7
| | | | Reported by: kris
* - Only kse_reassign() in the !running case.jeff2003-10-161-8/+10
| | | | Reported by: kris
* - Call sched_add() with the correct argument on SMP.jeff2003-10-161-1/+1
| | | | Reported by: Valentin Chopov <valentin@valcho.net>
* fix horribly botched MFp4 mergesam2003-10-161-7/+7
|
* pfil hooks can modify packet contents so check if the destinationsam2003-10-161-1/+11
| | | | | | | | address has been changed when PFIL_HOOKS is enabled and, if it has, arrange for the proper action by ip*_forward. Submitted by: Pyun YongHyeon Supported by: FreeBSD Foundation
* New release note:hrs2003-10-162-2/+86
| | | | | | | | | Bluetooth protocol stack update. Based on report by: emax Modified release note: s|challenge/|challenge/response| in SA-03:15 item.
* pfil hooks can modify packet contents so check if the destinationsam2003-10-161-1/+11
| | | | | | | | address has been changed when PFIL_HOOKS is enabled and, if it has, arrange for the proper action by ip*_forward. Supported by: FreeBSD Foundation Submitted by: Pyun YongHyeon
* Drop dummynet lock when calling back into the network stack to deliversam2003-10-161-0/+5
| | | | | | | packets. This eliminates a LOR with Giant that caused outbound pipes to fail. Supported by: FreeBSD Foundation
* Correct handling of cloning loop avoidance: rtalloc1 may return a nullsam2003-10-161-1/+2
| | | | | | pointer in which case we should not do the unlock. Supported by: FreeBSD Foundatin
* o correct handling of a frame that has too many segments to fit in thesam2003-10-161-3/+6
| | | | | | | tx descriptor array o while here fix a whitespace nit Obtained from: NetBSD
* A comment about spam and cockroaches.fanf2003-10-161-0/+7
| | | | Suggested by: dwmalone
* AF_LINK sockaddr has to be attached to ifp->if_addrlist until theume2003-10-161-3/+11
| | | | | | | end, as many of the code assumes that TAILQ_FIRST(ifp->if_addrlist) is non-null. Submitted by: itojun
* Changes for new SMP-safe kobj method dispatch algorithm.dfr2003-10-161-2/+6
|
* Don't forget to load %es with the kernel data segment selector inbde2003-10-163-0/+9
| | | | | | | | | | | Xcpustop(). %es is used in at least the call to savectx() when savectx() calls bcopy(), so not loading it was fatal if a stop IPI interrupts user mode. This reduces bugs starting and stopping CPUs for debuggers. CPUs are stopped mainly in kdb_trap() and cpu_reset(). At reset time there is a good chance that all the CPUs are in the kernel, so the bug was probably harmless then.
* - Fix a minor problem with my last commit, we don't want to return fromjeff2003-10-161-3/+1
| | | | | sched_switch if the thread is running, we want to fall through and pick a new thread because we have been preempted.
* - mtx_ownedby() was unpopular and is no longer needed. Remove it.jeff2003-10-161-6/+1
|
* Add a workaround for the fact that the priv field was removed fromdfr2003-10-161-4/+18
| | | | | struct driver. We were the last user of that field (and we are scheduled for demolition) so there wasn't much point in keeping it.
* * Add multiple inheritance to kobj. Each class can have zero or more basedfr2003-10-165-163/+376
| | | | | | | | | | | | | | | | | | | | | | | | classes and if a method is not found in a given class, its base classes are searched (in the order they were declared). This search is recursive, i.e. a method may be define in a base class of a base class. * Change the kobj method lookup algorithm to one which is SMP-safe. This relies only on the constraint that an observer of a sequence of writes of pointer-sized values will see exactly one of those values, not a mixture of two or more values. This assumption holds for all processors which FreeBSD supports. * Add locking to kobj class initialisation. * Add a simpler form of 'inheritance' for devclasses. Each devclass can have a parent devclass. Searches for drivers continue up the chain of devclasses until either a matching driver is found or a devclass is reached which has no parent. This can allow, for instance, pci drivers to match cardbus devices (assuming that cardbus declares pci as its parent devclass). * Increment __FreeBSD_version. This preserves the driver API entirely except for one minor feature used by the ISA compatibility shims. A workaround for ISA compatibility will be committed separately. The kobj and newbus ABI has changed - all modules must be recompiled.
* - Collapse sched_switchin() and sched_switchout() into sched_switch(). Nowjeff2003-10-164-31/+21
| | | | | mi_switch() calls sched_switch() which calls cpu_switch(). This is actually one less function call than it had been.
* - Update the sched api. sched_{add,rem,clock,pctcpu} now all accept a tdjeff2003-10-166-38/+46
| | | | argument rather than a kse.
* - The non iterative algorithm for interact_update was broken due tojeff2003-10-161-8/+6
| | | | | | | | | | rounding errors. This was the source of the majority of the interactivity problems. Reintroduce the old algorithm and its XXX. - Up the interactivity threshold to 30. It really could stand to be even a tiny bit higher. - Let the sleep and run time accumulate up to 5 seconds of history rather than two. This helps stop XFree86 from becoming non-interactive during bursts of activity.
* Bump FreeBSD version for changed layout of cdevswphk2003-10-161-1/+1
|
* Handle realloc() failure correctly.tjr2003-10-161-2/+5
|
* Malloc buckets of size 128 have been having their 64-byte offsetmckusick2003-10-161-4/+7
| | | | | | | | | | | | | | | | | | trashed after being freed. This has caused several panics including kern/42277 related to soft updates. Jim Kuhn tracked the problem down to ipfw limit rule processing. In the expiry of dynamic rules, it is possible for an O_LIMIT_PARENT rule to be removed when it still has live children. When the children eventually do expire, a pointer to the (long gone) parent is dereferenced and a count decremented. Since this memory can, and is, allocated for other purposes (in the case of kern/42277 an inodedep structure), chaos ensues. The offset in question in inodedep is the offset of the 16 bit count field in the ipfw2 ipfw_dyn_rule. Submitted by: Jim Kuhn <jkuhn@sandvine.com> Reviewed by: "Evgueni V. Gavrilov" <aquatique@rusunix.org> Reviewed by: Ben Pfountz <netprince@vt.edu> MFC after: 1 week
* Quiet warnings about mis-matched pointer assignment.obrien2003-10-151-12/+12
| | | | Tested on: PowerPC
* Introduce a new optional memberfunction for cdevsw, fdopen() whichphk2003-10-153-2/+11
| | | | | | | | passes the fdidx from VOP_OPEN down. This is for all I know the final API for this functionality, but the locking semantics for messing with the filedescriptor from the device driver are not settled at this time.
* Print the correct logical drive lun number returned by the controller.ps2003-10-151-1/+2
|
* purge extraneous ';'ssam2003-10-151-3/+3
| | | | | Supported by: FreeBSD Foundation Noticed by: bde
* Add Allied Telesis SIC-AT boards support.shiba2003-10-155-3/+132
| | | | | | | | | | | | | Discussed in from [FreeBSD-tech-jp 3396] to [FreeBSD-tech-jp 3407] at FreeBSD-tech-jp@jp.freebsd.org. NOTE: We must put ed_probe_SIC() function into if_ed_isa.c because this is a bus dependent code. But the ed driver code is not separated explicitly whether it is bus dependent or independent now. Refer to: http://plaza17.mbn.or.jp/~chi/myprog/FreeBSD/sicat.html Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* Catch up with the English version and refine translation.hrs2003-10-151-68/+76
| | | | 1.638 -> 1.640 relnotes/common/new.sgml
* Refine translation.rushani2003-10-151-11/+13
| | | | | | Submitted by: Hiroo Ono <hiroo@oikumene.gcd.org>, Hiroyuki CHIBA <clin@imasy.org> References: [doc-jp-work 724, 726]
* Modified release note:rushani2003-10-152-2/+2
| | | | Note MFC of sk(4) support for SK-9521 V2.0 and 3COM 3C940.
* Fix typo.tg2003-10-151-1/+1
|
* New release note:hrs2003-10-152-0/+14
| | | | | - xe(4) driver update - tzdata2003d update
* Make sure to pull in all relevant crypto for GEOM_BDEphk2003-10-151-2/+3
|
* Fix typos; reformat some entries.tg2003-10-152-15/+17
|
* - vm_fault_copy_entry() should not assume that the source object containsalc2003-10-151-5/+19
| | | | | | | every page. If the source entry was read-only, one or more wired pages could be in backing objects. - vm_fault_copy_entry() should not set the PG_WRITEABLE flag on the page unless the destination entry is, in fact, writeable.
* - If our user_pri doesn't match our actual priority our priority has beenjeff2003-10-151-3/+10
| | | | | | | | | | | | | elevated either due to priority propagation or because we're in the kernel in either case, put us on the current queue so that we dont stop others from using important resources. At some point the priority elevations from sleeping in the kernel should go away. - Remove an optimization in sched_userret(). Before we would only set NEEDRESCHED if there was something of a higher priority available. This is a trivial optimization and it breaks priority propagation because it doesn't take threads which we may be blocking into account. Notice that the thread which is blocking others gets up to one tick of cpu time before we honor this NEEDRESCHED in sched_clock().
* Add a wrapper for a function that takes and releases the adapterdeischen2003-10-151-3/+13
| | | | | | | | | lock around a call to the original function. Make the timeout function in callout_reset() use the wrapped function to avoid a lock assertion panic. Reviewed by: sam Reported by: cgiordano@ids.net
OpenPOWER on IntegriCloud