summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add -r option for GNU compatibility.des2005-12-071-1/+4
| | | | MFC after: 2 weeks
* Use __DEVOLATILE to cast conspeed.imp2005-12-071-1/+1
|
* style(9) nitsobrien2005-12-071-52/+52
|
* Add Sparc TLS relocation definitions.obrien2005-12-071-0/+24
|
* Changes imported from XFS for FreeBSD project:rodrigc2005-12-073-33/+155
| | | | | | | | | | | | | | - add fields to struct buf (needed by XFS) - 3 private fields: b_fsprivate1, b_fsprivate2, b_fsprivate3 - b_pin_count, count of pinned buffer - add new B_MANAGED flag - add breada() function to initiate asynchronous I/O on read-ahead blocks. - add bufdone_finish(), bpin(), bunpin_wait() functions Patches provided by: kan Reviewed by: phk Silence on: arch@
* - The geom(8) utility only uses three types of arguments: string (char *),pjd2005-12-0710-729/+327
| | | | | | | | | | | | | | | | | value (intmax_t) and boolean (int). Based on that provide three functions: - gctl_get_ascii() - gctl_get_int() - gctl_get_intmax() - Hide gctl_get_param() function, as it is only used internally in subr.c. - Allow to provide argument name as (fmt, ...). - Assert geom(8) bugs (missing argument is a geom(8) bug). - Clean-up and simplify the code by using new functions and assumtions (no more checking for missing argument). Tested by: regression tests
* Convert gstripe(8) regression tests to the new framework.pjd2005-12-075-24/+22
|
* Convert gshsec(8) regression tests to the new framework.pjd2005-12-075-36/+31
|
* Convert graid3(8) regression tests to the new framework.pjd2005-12-0715-69/+95
|
* - Make use of geom_subr.sh to improve regression tests.pjd2005-12-0711-54/+55
| | | | - Keep class-specific data in conf.sh file.
* Finish conversion of gconcat(8) regression tests to the new framework.pjd2005-12-077-82/+17
|
* Add file with helper functions for geom tools regression tests.pjd2005-12-071-0/+14
|
* Convert gnop(8) regression tests to the new framework.pjd2005-12-074-20/+8
|
* Convert gmirror(8) regression tests to the new framework.pjd2005-12-079-72/+82
|
* Back out my sh -> ${SHELL} change, since it will be a few days beforeimp2005-12-061-1/+1
| | | | | | I can fix it better. Requested by: ru@
* Catch up to the system siginfo changes. Use a union for the ia32 layoutpeter2005-12-062-3/+22
| | | | | of siginfo just like the system one. There are now two fields to copy instead of one.
* - Cleanup whitespace and extra ()s in vtophys() macros.jhb2005-12-066-14/+11
| | | | | | | | | | | - Move vtophys() macros next to vtopte() where vtopte() exists to match comments above vtopte(). - Remove references to the alternate address space in the comment above vtopte(). amd64 never had the alternate address space, and i386 lost it prior to PAE support being added. - s/entires/entries/ in comments. Reviewed by: alc
* "Create" ldexpf for non-i386 architectures.obrien2005-12-061-0/+2
| | | | Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
* Fix ZERO_EDX() macro from the previous commit. It was emittingjkim2005-12-062-2/+2
| | | | `xor %ecx, %ecx', not `xor %edx, %edx'.
* Teach sdpd(8) to check peer's credentials before accepting request toemax2005-12-066-9/+55
| | | | | | | | register, remove or change services in the local database. For now only accept the request if the peer has effective user ID the same as 'root' user ID. MFC after: 1 week
* Use <sys/ktr.h> directly in .S files instead of exporting themarius2005-12-062-14/+2
| | | | | | | | | | KTR_* class macros via genassym.c. Together with sys/sys/ktr.h rev. 1.34 this has the desired side-effect of providing a default value for KTR_COMPILE. Thus this fixes warnings from -Wundef regarding KTR_COMPILE not being defined for .S files. Requested by: ru Reviewed by: ru
* Extend the scope of #ifndef LOCORE to also cover the prototype ofmarius2005-12-061-3/+7
| | | | | | | | | | | ktr_tracepoint() and the macros using it. This allows this header to be included in .S files for obtaining the KTR_* class macros directly and providing a default value for KTR_COMPILE in case it's not specified in the kernel config file including defining it to 0 when not using 'options KTR' at all. Requested by: ru Reviewed by: ru
* When compiling with the kernel, detect if INET6 support should be disabled.ru2005-12-061-7/+11
|
* Revert two changes I was testing regarding polling delay.njl2005-12-061-2/+2
|
* Add KTR support and move some performance debugging variables in the ECnjl2005-12-062-10/+13
| | | | to KTR. We're reusing the KTR_DEV level.
* Fix -r flag to actually work. "now" comes after "then", not vice versa.njl2005-12-061-1/+1
| | | | MFC after: 1 day
* Add a MACHINE_CPU entry for "ev67".ru2005-12-061-1/+3
|
* Drop _MACHINE_ARCH and _MACHINE defines (not to be confused withru2005-12-067-48/+0
| | | | | | | MACHINE_ARCH and MACHINE). Their purpose was to be able to test in cpp(1), but cpp(1) only understands integer type expressions. Using such unsupported expressions introduced a number of subtle bugs, which were discovered by compiling with -Wundef.
* cpp(1) only understand integer arithmetical expressions, soru2005-12-061-2/+1
| | | | | | _MACHINE == i386 test always succeeds, even on non-i386 (both sides of expressions become 0). Remove the comment since _MACHINE and _MACHINE_ARCH are going away.
* MFi386: Add BPF Just-In-Time compiler.nyan2005-12-062-0/+4
|
* Fix -Wundef warnings from compiling GENERIC and LINT kernels ofru2005-12-068-16/+16
| | | | all architectures.
* When we drop packet due to no space in output interface output queue, alsoglebius2005-12-061-0/+1
| | | | | | | increase the ifp->if_snd.ifq_drops. PR: 72440 Submitted by: ikob
* Optimize parallel processing of ipfw(4) rulesets eliminating the lockingglebius2005-12-061-71/+54
| | | | | | | | | | | | | | | | | | | | | of the radix lookup tables. Since several rnh_lookup() can run in parallel on the same table, we can piggyback on the shared locking provided by ipfw(4). However, the single entry cache in the ip_fw_table can't be used lockless, so it is removed. This pessimizes two cases: processing of bursts of similar packets and matching one packet against the same table several times during one ipfw_chk() lookup. To optimize the processing of similar packet bursts administrator should use stateful firewall. To optimize the second problem a solution will be provided soon. Details: o Since we piggyback on the ipfw(4) locking, and the latter is per-chain, the tables are moved from the global declaration to the struct ip_fw_chain. o The struct ip_fw_table is shrunk to one entry and thus vanished. o All table manipulating functions are extended to accept the struct ip_fw_chain * argument. o All table modifing functions use IPFW_WLOCK_ASSERT().
* - Mention also the COMPAT_FREEBSD5 option along with COMPAT_FREEBSD4.glebius2005-12-061-2/+4
| | | | | | | - Notice that 20050227 entry is also applicable to packages, not only to world. In collaboration with: osa, phk
* Fix markeup.davidxu2005-12-061-1/+2
| | | | Submitted by: ru
* Sync with signal.h.davidxu2005-12-061-0/+1
|
* Reduce the scope of the page queues lock in exec_map_first_page(). The vmalc2005-12-061-4/+2
| | | | | | object lock is sufficient for reading a page's PG_BUSY and busy flags. MFC after: 1 week
* s/M_WAITOK/M_NOWAIT/ while mutex is held.jkim2005-12-063-6/+6
| | | | Pointed out by: csjp
* - Micro-optimize `mov $0, %edx' -> `xor %edx, %edx'.jkim2005-12-064-24/+36
| | | | - Correct amd64 macro style (no functional change).
* o Turn on MPSAFE flag for mqueuefs.davidxu2005-12-061-4/+3
| | | | | o Reuse si_mqd field in siginfo_t, this also gives userland information about which descriptor is notified.
* o Add some pad fields into struct sigevent for future extension.davidxu2005-12-061-2/+14
| | | | | | | (suggested by alfred@) o Reuse si_band field in struct __siginfo, add a mqd member which will be used by mqueue. o Add code SI_KERNEL to indicate a signal is queued by kernel.
* Fix a lock leak in childproc_continued().davidxu2005-12-061-1/+3
|
* Since rc.subr is a library of functions, it should not use exityar2005-12-061-6/+6
| | | | | | | | | | | | every now and then. It is up to the caller to choose a proper action upon an error condition. Therefore, use return, not exit, except for some special cases. Consistently return 1 to indicate an error. Submitted by: sem (initially) Reviewed by: freebsd-rc (silence) MFC after: 2 weeks
* Add experimental BPF Just-In-Time compiler for amd64 and i386.jkim2005-12-0613-3/+2060
| | | | | | | | | | | | | | | | | Use the following kernel configuration option to enable: options BPF_JITTER If you want to use bpf_filter() instead (e. g., debugging), do: sysctl net.bpf.jitter.enable=0 to turn it off. Currently BIOCSETWF and bpf_mtap2() are unsupported, and bpf_mtap() is partially supported because 1) no need, 2) avoid expensive m_copydata(9). Obtained from: WinPcap 3.1 (for i386)
* Fix ypwhich -m. This should be MFC'ed back at least as far as RELENG_5.peter2005-12-061-1/+1
| | | | | Submitted by: Gil Kloepfer <gil@arlut.utexas.edu> PR: 64445
* The Oxford 16C950 based CardBus Serial device that I was given someimp2005-12-051-1/+2
| | | | | | | | | | | | | | | time ago appears to be based not on the typical 1.8432MHz clock, or the other more typical multiple of 8 of this (14.7456MHz), but instead it appears to be 1/2 the PCI clock rate or 16.50000MHz. I'm not 100% sure that this is right, but since I did the original entry, I'm going to go ahead and modify it. With the 14.7456MHz value, I was getting bits that were ~7.3us instead of ~8.6us like they are supposed to be. My measuring gear for today is a stupid handheld scope with two signficant digits. So I don't know if it is 33.000000/2 MHz or some other value close to 16.5MHz, but 16.5MHz works well enough for me to use a couple of different devices at 115200 baud, and is a nice even multiple of a well known clock frequency...
* More review and adjustment for reality that should have happened 3 yearsscottl2005-12-051-13/+47
| | | | | | | ago. Document the real behavior of bus_dma_tag_create, bus_dmamap_load, and other functions. Also document their arguments and return values. MFC After: 3 days
* Change the i386 code to pass the interrupt vector as a separate argumentjhb2005-12-059-53/+27
| | | | | | | | | | | | | | | | | | | rather than embedding it in the intrframe as if_vec. This reduces diffs with amd64 somewhat. - Remove cf_vec from clockframe (it wasn't used anyway) and stop pushing dummy vector arguments for ipi_bitmap_handler() and lapic_handle_timer() since clockframe == trapframe now. - Fix ddb to handle stack traces across interrupt entry points that just have a trapframe on their stack and not a trapframe + vector. - Change intr_execute_handlers() to take a trapframe rather than an intrframe pointer. - Change lapic_handle_intr() and atpic_handle_intr() to take a vector and trapframe rather than an intrframe. - GC struct intrframe now that nothing uses it anymore. - GC CLOCK_TO_TRAPFRAME() and INTR_TO_TRAPFRAME(). Reviewed by: bde Requested by: peter
* FreeBSD has had endian conversion macros for a long time. Axe the customscottl2005-12-051-46/+2
| | | | | | macros in this driver. MFC After: 3 days
* Dont use the BUS_DMA_ALLOCNOW flag. Instead use BUS_DMA_NOWAIT and returnsos2005-12-052-15/+19
| | | | | | ENOMEM to the upper layers if we run out of memory. This solves part of the trouble with running on >4GB memory systems.
OpenPOWER on IntegriCloud