aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Introduce startup scripts from the local_startup directories toDoug Barton2005-12-021-1/+1
| | | | | | | | | | | | | | | | | | | the base rcorder. This is accomplished by running rcorder twice, first to get all the disks mounted (through mountcritremote), then again to include the local_startup directories. This dramatically changes the behavior of rc.d/localpkg, as all "local" scripts that have the new rc.d semantics are now run in the base rcorder, so only scripts that have not been converted yet will run in rc.d/localpkg. Make a similar change in rc.shutdown, and add some functions in rc.subr to support these changes. Bump __FreeBSD_version to reflect this change. Notes: svn path=/head/; revision=153027
* Change pmap_enter_quick() to use the vm_prot_t parameter introduced inAlan Cox2005-12-021-3/+4
| | | | | | | | | | | | | | | | | | revision 1.179 to correctly set/clear execute permission on the mapping it creates. Thus, mmap(2)ing a memory resident file will not result in the file being mapped with execute permission when execute permission was not requested. Eliminate an unneeded Instruction Memory Barrier (IMB) in pmap_enter_quick(). Since there was no previous (instruction) mapping for the given virtual address prior to pmap_enter_quick(), there can be no instructions from the given virtual address in the pipeline that need flushing. MFC after: 1 week Notes: svn path=/head/; revision=153025
* Add option P1003_1B_MQUEUE for POSIX message queue.David Xu2005-12-021-0/+2
| | | | Notes: svn path=/head/; revision=153020
* 1. Cleanup including.David Xu2005-12-021-5/+4
| | | | | | | 2. Set configuration value for CTL_P1003_1B_MESSAGE_PASSING. Notes: svn path=/head/; revision=153019
* Add a missing newline to a printf.John Baldwin2005-12-021-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=153016
* Update the ICH7 support so it deals better with chips without AHCI.Søren Schmidt2005-12-024-84/+115
| | | | | | | | | | | | Update Intel MatrixRAID support to be able to pick up RAID0+1 (RAID10) and RAID5 arrays without panic'ing. This has the side effect of now also supporting multiple volumes on MatrixRAID's now I have the metadata better understood.. HW sponsored by: Mullet Scandinavia AB Notes: svn path=/head/; revision=153015
* Restore the enabling of debugging by default by the DRM_DEBUG kernel option.Eric Anholt2005-12-021-0/+4
| | | | | | | | | | It remains controlled by hw.dri.*.debug no matter what. PR: kern/85479 Submitted by: Oliver Fromme <olli@secnetix.de> Notes: svn path=/head/; revision=153013
* On the 82571 and newer chipset the ICR register is meaningful onlyGleb Smirnoff2005-12-021-1/+4
| | | | | | | | | if the E1000_ICR_INT_ASSERTED bit is set. Submitted by: Jack Vogel Notes: svn path=/head/; revision=153012
* 1. Check if message priority is less than MQ_PRIO_MAX.David Xu2005-12-021-3/+4
| | | | | | | | 2. Use getnanotime instead of getnanouptime. 3. Don't free message in _mqueue_send, mqueue_send will free it. Notes: svn path=/head/; revision=153011
* Define MQ_PRIO_MAX, it seems it is the only placeDavid Xu2005-12-021-0/+4
| | | | | | | the definition will be shared by kernel and userland. Notes: svn path=/head/; revision=153010
* messqge queue has been implemented, set _POSIX_MESSAGE_PASSING to 200112L.David Xu2005-12-021-1/+1
| | | | Notes: svn path=/head/; revision=153006
* We've already implemented all TMO functions, set _POSIX_TIMEOUTS to 200112L.David Xu2005-12-021-1/+1
| | | | Notes: svn path=/head/; revision=153004
* Fix the misalignment bugs differently than was done in the previousMarcel Moolenaar2005-12-022-23/+33
| | | | | | | | | | | | commit. Copy the ethernet address into a local buffer, which we know is sufficiently aligned for the width of the memory accesses that we do. This also eliminates all suspicious and potentionally harmful casts. In collaboration with: ru Notes: svn path=/head/; revision=153003
* Fix the type of "eaddr" to guarantee the required alignment.Ruslan Ermilov2005-12-012-16/+16
| | | | | | | Suggested by: marcel Notes: svn path=/head/; revision=152992
* 1. Set timer configuration values for sysconf().David Xu2005-12-011-2/+15
| | | | | | | | 2. Set overrun limit to INT_MAX, report ERANGE error if overrun will be greater than INT_MAX. Notes: svn path=/head/; revision=152983
* Add kernel module loading option for snd_atiixp(4).Ariff Abdullah2005-12-011-0/+1
| | | | Notes: svn path=/head/; revision=152979
* set signal queue values for sysconf().David Xu2005-12-011-0/+4
| | | | Notes: svn path=/head/; revision=152975
* Avoid using signal 127 and 128 as RT signals, these two signals confuseDavid Xu2005-11-301-1/+1
| | | | | | | wait4 interfaces, see PR: kern/19402. Notes: svn path=/head/; revision=152973
* It is unclear who is wrong and who is right, but when operating onMaxim Sobolev2005-11-301-0/+10
| | | | | | | | | | | | | | | | | | plain file bsdlabel(8) always writes label at a fixed offset from its beginning (512 bytes), regardless of the sector size. At the same time, bsdlabel geom class expects label to be available at the very beginning of the second sector. As a result, images prepared in userland for media with sector size different from 512 bytes (i.e. 2k for cdroms) are not recognized by the tasting mechanism. Solve the problem by always looking for the label at 512-byte offset if we can't find it at the beginning of the second sector and sector size is not 512 bytes. Notes: svn path=/head/; revision=152972
* Don't pass error value pointer to g_read_data(9) at all if we don'tMaxim Sobolev2005-11-3013-25/+24
| | | | | | | | | have any use of it. Suggested by: pjd Notes: svn path=/head/; revision=152971
* fix dynamic changes in short slottime for 11g sta mode: set theSam Leffler2005-11-301-1/+1
| | | | | | | | | | slot time based on the rcvd capabilities, not the existing ones Obtained from: atheros MFC after: 1 week Notes: svn path=/head/; revision=152968
* Check for g_read_data(9) errors properly:Maxim Sobolev2005-11-3017-26/+26
| | | | | | | | | | | | | o The only indication of error condition is NULL value returned by the function; o value pointed to by error argument is undefined in the case when operation completes successfully. Discussed with: phk Notes: svn path=/head/; revision=152967
* Kill leading whilespace.Maxim Sobolev2005-11-301-1/+1
| | | | Notes: svn path=/head/; revision=152966
* Teach this to create the "machine" and ${MACHINE_ARCH} (for pc98Ruslan Ermilov2005-11-301-4/+27
| | | | | | | | | | | | only now) symbolic links in the kernel compile directory, rather than relying on config(8) to do this. (The changes to config(8) will be committed separately.) This is aimed towards making the config(8) as lightweight as possible. Idea by: bde (all bugs are mine) Notes: svn path=/head/; revision=152964
* Byte copy IF_LLADDR() on stack to align it to be safe for typecasts.Ruslan Ermilov2005-11-304-42/+40
| | | | | | | Tested by: jhb Notes: svn path=/head/; revision=152962
* Remove superfluous bzero()'ing of the softc.Marius Strobl2005-11-303-3/+0
| | | | Notes: svn path=/head/; revision=152961
* Remove superfluous inclusion of upa.h.Marius Strobl2005-11-303-3/+0
| | | | Notes: svn path=/head/; revision=152960
* If bus_dmamap_load() failed, we free the mbuf. We also need to clearGleb Smirnoff2005-11-301-2/+6
| | | | | | | the pointer, to avoid double free on next bge_stop(). Notes: svn path=/head/; revision=152953
* MFi386: revision 1.1215 (add savagedrm).Yoshihiro Takahashi2005-11-301-0/+1
| | | | Notes: svn path=/head/; revision=152952
* Last step to make mq_notify conform to POSIX standard, If the processDavid Xu2005-11-305-107/+237
| | | | | | | | has successfully attached a notification request to the message queue via a queue descriptor, file closing should remove the attachment. Notes: svn path=/head/; revision=152948
* Add codec ID for Avance Logic ALC203Pyun YongHyeon2005-11-301-0/+1
| | | | Notes: svn path=/head/; revision=152939
* Fix snderr() to not leak the socket buffer lock if an error occurs inJohn Baldwin2005-11-291-1/+1
| | | | | | | | | | | sosend(). Robert accidentally changed the snderr() macro to jump to the out label which assumes the lock is already released rather than the release label which drops the lock in his previous change to sosend(). This should fix the recent panics about returning from write(2) with the socket lock held and the most recent LOR on current@. Notes: svn path=/head/; revision=152938
* Tell Rx radiotap that hardware leaves FCS at the end of the frame.Damien Bergamini2005-11-291-1/+1
| | | | | | | Obtained from: NetBSD (drochner@) Notes: svn path=/head/; revision=152936
* Sync with ural:Damien Bergamini2005-11-292-18/+19
| | | | | | | | o Send management frames at the lowest possible rate. o Cosmetic tweaks. Notes: svn path=/head/; revision=152935
* Use usbd_clear_endpoint_stall_async() instead of usbd_clear_endpoint_stall()Damien Bergamini2005-11-291-2/+2
| | | | | | | | | in Tx/Rx callbacks. Obtained from: NetBSD Notes: svn path=/head/; revision=152934
* o Send management frames at the lowest possible rate.Damien Bergamini2005-11-293-8/+43
| | | | | | | | | o Include rate in the Rx radiotap code. o Fix RSSI value in the Rx path. o Minor tweaks. Notes: svn path=/head/; revision=152933
* The bridge is capable of sending broadcast packets so enable IFF_BROADCASTAndrew Thompson2005-11-291-1/+1
| | | | | | | Requested by: des Notes: svn path=/head/; revision=152932
* Fix the ata_composite/ata_request leak when using RAID0+1.Søren Schmidt2005-11-292-9/+18
| | | | | | | | | Submitted by: Michael Butler Minor changes to fit ATA style by me. Notes: svn path=/head/; revision=152931
* Let kmod.mk create empty opt_*.h files.Ruslan Ermilov2005-11-291-7/+1
| | | | Notes: svn path=/head/; revision=152930
* obey opt_inet6.h and opt_ipsec.h in kernel build directory.Hajimu UMEMOTO2005-11-293-3/+17
| | | | | | | Requested by: hrs Notes: svn path=/head/; revision=152928
* We do nothing with returned error value, so just remove it.Pawel Jakub Dawidek2005-11-291-3/+2
| | | | Notes: svn path=/head/; revision=152922
* Unexpand LLADDR().Ruslan Ermilov2005-11-291-2/+2
| | | | Notes: svn path=/head/; revision=152920
* Separate the hardware definitions into ipsreg.h so they can be used byScott Long2005-11-297-309/+351
| | | | | | | future userland tools. Notes: svn path=/head/; revision=152919
* Drop the -I/usr/include (or any of its variants) from CFLAGS.Ruslan Ermilov2005-11-291-14/+0
| | | | | | | | | | The sys/sys/stddef.h is here for some time now to fulfil the kernel needs. It also was not reliable due to the exists(@) check: in an empty module directory, "make depend; mv .depend .depend~; make depend" ran mkdep(1) with different arguments. Notes: svn path=/head/; revision=152918
* Garbage-collect now unused struct _ipfw_insn_pipe and flush_pipe_ptrs(),Gleb Smirnoff2005-11-292-44/+1
| | | | | | | | thus removing a few XXXes. Document the ABI breakage in UPDATING. Notes: svn path=/head/; revision=152917
* Add notes about ATI IXP audio controller.Ariff Abdullah2005-11-291-0/+2
| | | | Notes: svn path=/head/; revision=152915
* Add support for the i855GM, tested by an r300 user.Eric Anholt2005-11-292-2/+12
| | | | Notes: svn path=/head/; revision=152914
* Check value returned by g_read_data(9), otherwise we can end in panic(9)Maxim Sobolev2005-11-291-0/+3
| | | | | | | | | if read error happens. MFC after: 1 week Notes: svn path=/head/; revision=152913
* Remove MNT_NODEV mount option. In RELENG_6, MNT_NODEV was a no-op.Craig Rodrigues2005-11-292-2/+0
| | | | | | | | | The presence of MNT_NODEV was confusing the am-utils autoconf scripts. PR: conf/79715 Notes: svn path=/head/; revision=152912
* First step in removing welding between ipfw(4) and dummynet.Gleb Smirnoff2005-11-292-288/+285
| | | | | | | | | | | | | | | | | | | | | | | | o Do not use ipfw_insn_pipe->pipe_ptr in locate_flowset(). The _ipfw_insn_pipe isn't touched by this commit to preserve ABI compatibility. o To optimize the lookup of the pipe/flowset in locate_flowset() introduce hashes for pipes and queues: - To preserve ABI compatibility utilize the place of global list pointer for SLIST_ENTRY. - Introduce locate_flowset(queue nr) and locate_pipe(pipe nr). o Rework all the dummynet code to deal with the hashes, not global lists. Also did some style(9) changes in the code blocks that were touched by this sweep: - Be conservative about flowset and pipe variable names on stack, use "fs" and "pipe" everywhere. - Cleanup whitespaces. - Sort variables. - Give variables more meaningful names. - Uppercase and dots in comments. - ENOMEM when malloc(9) failed. Notes: svn path=/head/; revision=152910