summaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add support for the "device private" ioctls soon to be used by the an driver.Dag-Erling Smørgrav2001-10-192-16/+76
| | | | | | | | | Also slightly change the name translation policy - only rename interfaces that have the IFF_BROADCAST flag set. This is not perfect, but is closer to how Linux names network interfaces. Notes: svn path=/head/; revision=85127
* Add two "device private" ioctls needed by the Aironet (an) driver.Dag-Erling Smørgrav2001-10-191-5/+8
| | | | | | | Move some ioctls that were out of order. Notes: svn path=/head/; revision=85126
* Whitespace fix.Dag-Erling Smørgrav2001-10-191-1/+1
| | | | Notes: svn path=/head/; revision=85125
* Use normal CWARNFLAGS and defines when compiling on FreeBSD.Mark Peek2001-10-191-2/+6
| | | | Notes: svn path=/head/; revision=85122
* Add verbage for MODULES_OVERRIDE.Warner Losh2001-10-182-0/+8
| | | | Notes: svn path=/head/; revision=85117
* Add support for the gcc-2.95 stdarg implementation.Mark Peek2001-10-182-0/+40
| | | | Notes: svn path=/head/; revision=85113
* Protect against deranged fabric nameservers that spit out 10000 identicalMatt Jacob2001-10-181-3/+16
| | | | | | | | | port numbers. MFC after: 1 day Notes: svn path=/head/; revision=85112
* Shift the code which packs and unpacks instruction bundles out of DDBDoug Rabson2001-10-185-12/+41
| | | | | | | | since it is useful for various emulations duties (e.g. unaligned trap handling). Notes: svn path=/head/; revision=85109
* My attempts at minimizing the number of #def's got me in trouble.David E. O'Brien2001-10-185-21/+24
| | | | Notes: svn path=/head/; revision=85108
* Add experimental support for sending keypad facility messages.Hellmuth Michaelis2001-10-1811-159/+140
| | | | | | | MFC after: 2 months Notes: svn path=/head/; revision=85103
* Fix typos in previous commit:Marcel Moolenaar2001-10-181-1/+1
| | | | | | | | o s/sys_narg/sy_narg/ o s/SYS_MPSAFE/SYF_MPSAFE/ Notes: svn path=/head/; revision=85088
* Add support for "__gnuc_va_list". Some overly "smart" libraries assumeDavid E. O'Brien2001-10-185-5/+28
| | | | | | | | | | the existence of the __gnuc_va_list type[*] because our compiler is GCC. [*] __gnuc_va_list is defined in the GCC ginclude/stdarg.h replacement headerwhich we don't use. Notes: svn path=/head/; revision=85085
* Sync comments with i386.David E. O'Brien2001-10-181-6/+6
| | | | Notes: svn path=/head/; revision=85084
* Minor comment tweaking.David E. O'Brien2001-10-171-4/+4
| | | | Notes: svn path=/head/; revision=85083
* - Small cleanups to the Giant handling in trap().John Baldwin2001-10-171-9/+17
| | | | | | | | | | - Only release Giant in trap() if we locked it, otherwise we could release Giant in a kernel trap if we didn't get it for a page fault and the previous frame had grabbed the lock. - Only get Giant for !MP safe syscalls. Notes: svn path=/head/; revision=85082
* Small cleanups to the handling of Giant in trap().John Baldwin2001-10-171-8/+5
| | | | Notes: svn path=/head/; revision=85081
* Add a SIOCGIFINDEX ioctl, which returns the index of a named interface.Jonathan Lemon2001-10-173-0/+7
| | | | | | | This will be used to more efficiently support if_nametoindex(3). Notes: svn path=/head/; revision=85079
* Cleanup ifunit(), so it uses the dev_named() function to map an interfaceJonathan Lemon2001-10-171-29/+11
| | | | | | | name into a device. Notes: svn path=/head/; revision=85077
* Add dev_named(dev, name), which is similar in spirit to devtoname().Jonathan Lemon2001-10-173-0/+15
| | | | | | | | This function returns success if the device is known by either 'name' or any of its aliases. Notes: svn path=/head/; revision=85076
* Pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2.Ruslan Ermilov2001-10-1716-161/+206
| | | | | | | | | | | | | | | | | | | | | | | Have sys/net/route.c:rtrequest1(), which takes ``rt_addrinfo *'' as the argument. Pass rt_addrinfo all the way down to rtrequest1 and ifa->ifa_rtrequest. 3rd argument of ifa->ifa_rtrequest is now ``rt_addrinfo *'' instead of ``sockaddr *'' (almost noone is using it anyways). Benefit: the following command now works. Previously we needed two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 Remove unsafe typecast in rtrequest(), from ``rtentry *'' to ``sockaddr *''. It was introduced by 4.3BSD-Reno and never corrected. Obtained from: BSD/OS, NetBSD MFC after: 1 month PR: kern/28360 Notes: svn path=/head/; revision=85074
* Change kern.bootfile when mv'ing the kernelBrian Somers2001-10-175-0/+10
| | | | | | | Not tested by: brian Notes: svn path=/head/; revision=85073
* Pull fix for memory leak in in6_losing() from netinet/in_pcb.c,v 1.85.Ruslan Ermilov2001-10-171-3/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=85072
* contigmalloc1() could cause the vm_page_zero_count to become incorrect.Matthew Dillon2001-10-171-0/+2
| | | | | | | | | Properly track the count. Submitted by: mark tinguely <tinguely@web.cs.ndsu.nodak.edu> Notes: svn path=/head/; revision=85070
* Use a array to convert from a attribute for AT to one for PC98.Yoshihiro Takahashi2001-10-171-42/+38
| | | | | | | (merged from sys/pc98/pc98/scvtbpc98.c) Notes: svn path=/head/; revision=85065
* Merged from sys/boot/i386/libi386/vidconsole.c revisions 1.16, 1.17 and 1.18.Yoshihiro Takahashi2001-10-171-164/+144
| | | | Notes: svn path=/head/; revision=85063
* fix style(9)Yoshihiro Takahashi2001-10-171-175/+212
| | | | Notes: svn path=/head/; revision=85061
* Merged from sys/boot/i386/loader/Makefile revision 1.54.Yoshihiro Takahashi2001-10-171-0/+7
| | | | Notes: svn path=/head/; revision=85060
* Change kern.bootfile when mv'ing the kernelBrian Somers2001-10-171-0/+2
| | | | Notes: svn path=/head/; revision=85057
* Fixed to process a IPv6 packet when ah transport after esp tunnelHajimu UMEMOTO2001-10-171-3/+42
| | | | | | | | | | | should be applied. the SA of AH transport could not be selected from the SAD because of this bug. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=85055
* The behavior of SPDUPDATE has been changed.Hajimu UMEMOTO2001-10-171-10/+6
| | | | | | | | | | | SPDUPDATE doesn't depend on whether there is a SP or not. This change makes `generate_policy on' of racoon work. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=85054
* Bring in latest CSRG revisions to this file:Ruslan Ermilov2001-10-171-1/+9
| | | | | | | | | | | | | | - Report destination address of a P2P link when servicing routing socket messages. - Report interface name, address, and destination address of a P2P link when servicing NET_RT_{DUMP,FLAGS} sysctls. Part of CSRG revision 8.6 coresponds to revision 1.12. CSRG revision 8.7 corresponds to revision 1.15. Notes: svn path=/head/; revision=85053
* 64-bit fixes from CSRG.Ruslan Ermilov2001-10-172-4/+4
| | | | Notes: svn path=/head/; revision=85052
* Revision 1.32 corresponded to CSRG revision 8.2.Ruslan Ermilov2001-10-171-1/+1
| | | | Notes: svn path=/head/; revision=85051
* Revision 1.13 corresponded to CSRG revision 8.4.Ruslan Ermilov2001-10-171-1/+1
| | | | | | | Revision 1.59 corresponded to CSRG revision 8.5. Notes: svn path=/head/; revision=85050
* Record the fact that revision 1.39 corresponded to CSRG revision 8.4,Ruslan Ermilov2001-10-171-1/+1
| | | | | | | and first hunk of revision 1.76 corresponded to CSRG revision 8.3. Notes: svn path=/head/; revision=85049
* Print 4 per line. To do this, we test against i % 16 == 0 rather than i % 4Warner Losh2001-10-171-1/+1
| | | | | | | since that's always true for this loop. Notes: svn path=/head/; revision=85046
* ToPIC fixes. scale back what we do for functional interrupts becauseWarner Losh2001-10-171-1/+2
| | | | | | | | | it appears to break at least the ToPIC 100. Submitted by: Mark Santcroos <marks@ripe.net> Notes: svn path=/head/; revision=85045
* Back out previous revision. TCBHASHSIZE isn't an option, despite what I'dDag-Erling Smørgrav2001-10-172-10/+0
| | | | | | | | been misled to believe by unknown parties. It probably *should* be an option, but the runtime value is controlled by a tunable, which Ought To Be Enough. Notes: svn path=/head/; revision=85043
* if_index is the highest interface index in the system, not the nextBill Fenner2001-10-171-3/+3
| | | | | | | available index. Notes: svn path=/head/; revision=85042
* The interface index space may be sparsely populated (e.g. when anBill Fenner2001-10-171-1/+2
| | | | | | | | | | interface in the middle is if_detach()'d). Return (and handle) ENOENT when the ifmib(4) is accessed for a nonexistent interface. MFC after: 14 days Notes: svn path=/head/; revision=85040
* fix minor bug in kern.minvnodes sysctl. Use OID_AUTO.Matthew Dillon2001-10-161-1/+1
| | | | Notes: svn path=/head/; revision=85036
* Make SCSI changer and SES devices standard in generic kernels.Matt Jacob2001-10-166-0/+12
| | | | | | | Reviewed by: ken@kdm.org Notes: svn path=/head/; revision=85035
* Document TCBHASHSIZE.Dag-Erling Smørgrav2001-10-162-0/+10
| | | | Notes: svn path=/head/; revision=85033
* Deleted most of npxprobe(), and merged npxprobe1() back into npxprobe().Bruce Evans2001-10-163-381/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the normal interrupt handler (npx_intr()) instead of a special probe-time interrupt handler, although this causes problems due to the bus_teardown_intr() not actually even tearing down the interrupt (these problems were avoided by doing interrupt attachment for the special interrupt handler directly). Fixed minor bitrot in comments. The reason for the npxprobe()/npxprobe1() split mostly went away at about the same time it was made (in 1992 or 1993 just before the beginning of history). 386BSD ran all probes with interrupts completely masked, and I didn't want to disturb this when I added an irq probe to npxprobe(). An irq (not necessarily npx) must be acked for at least external npx's to take the cpu out of the wait state that it enters when an npx error occurs, so the probe must be done with a suitable irq unmasked. npxprobe() went to great lengths to unmask precisely the npx irq. Running probes with all interrupts masked was never really needed in FreeBSD, since FreeBSD always masked interrupts well enough using splhigh(), but it wasn't until rev.1.48 (1995/12/12) of autoconf.c that all probes were run with CPU interrupts enabled. This permits npxprobe() to probe its irq using normal interrupt resources. Note that most drivers still can't depend on this. It depends on the interrupt handler being fast and the irq not being shared. Notes: svn path=/head/; revision=85029
* Commit my old fixes for cosmetic bugs in npxprobe() so that they aren'tBruce Evans2001-10-163-39/+24
| | | | | | | | | | | | | | | | | | | lost when the buggy code goes away completely: - don't assume that the npx irq number is >= 8. Rev.1.73 only reversed part of the hard-coding of it to 13 in rev.1.66. - backed out the part of rev.1.84 that added a highly confused comment about an enable_intr() being "highly bogus". The whole reason for existence of npxprobe() (separate from the main probe, npxprobe1()) is to handle the complications to make this enable_intr() safe. - backed out the part of rev.1.94 that modified npxprobe(). It mainly broke the enable_intr() to restore_intr(). Restoring the interrupt state in a nested way is precisely what is not wanted here. It was harmless in practice because npxprobe() is called with interrupts enabled, so restoring the interrupt state enables interrupts. Most of npxprobe() is a no-op for the same reason... Notes: svn path=/head/; revision=85028
* Fix bug introduced by the last commit, the caused some ATAPISøren Schmidt2001-10-161-1/+1
| | | | | | | devices to fail to proberly initialize at boot.. Notes: svn path=/head/; revision=85025
* Size the number of pv_entries we use to bootstrap the pv_entry allocatorDoug Rabson2001-10-161-5/+16
| | | | | | | | based on the size of physical memory. This should eliminate the tweaking needed for larger memory configurations. Notes: svn path=/head/; revision=85024
* Implement linux_chown and linux_lchown. The fchown syscall mapsMarcel Moolenaar2001-10-166-22/+52
| | | | | | | | | | directly to the native syscall, because no filename handling needs to be done. Tested by: Martin Blapp <mb@imp.ch> Notes: svn path=/head/; revision=85022
* o Change prototype of linux_lchown and linux_chown so that theMarcel Moolenaar2001-10-161-6/+5
| | | | | | | | | | | | argument names match those on Alpha. o Map the fchown directly to FreeBSD. Since the old version of fchown is also mapped to the native fchown, give the new one type NODEF. Tested by: Martin Blapp <mb@imp.ch> Notes: svn path=/head/; revision=85021
* Don't use an uninitialized field reserved for callers in the bio structureTor Egge2001-10-151-3/+4
| | | | | | | | | | passed to swap_pager_strategy(). Instead, use a field reserved for drivers and initialize it before usage. Reviewed by: dillon Notes: svn path=/head/; revision=85016