summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* On i386 platforms at least, ACPI throttling is accomplished by the chipsetnjl2005-03-041-1/+10
| | | | | | | | | modulating the STPCLK# pin based on the duty cycle. Since p4tcc uses the same mechanism (but internal to the CPU), we triggered a hang on some systems at low frequencies when both were in use. Now, disable acpi_throttle when p4tcc is also present. Tested by: Kevin Oberman
* Don't allow to synchronize a plex that is already sychronizing.le2005-03-041-13/+24
| | | | | | Reset the 'syncing' flag in case of errors, too. Some cosmetics.
* Minor changes:marius2005-03-044-33/+45
| | | | | | | | | | | | | - Use FBSDID. - Remove unused macro. - Use auto-generated typedefs for the prototypes of the bus and device interface functions. - Terminate the output of device_printf(9) with a newline char. - Honour the return values of malloc(), OF_getprop(), etc. - Use __func__ instead of hardcoded function names. - Print the physical slot number and the board model on attach. MFC after: 1 month
* Minor changes:marius2005-03-041-12/+11
| | | | | | | | | | | - Use FBSDID. - Remove an unused include. - Use auto-generated typedefs for the prototypes of the device interface functions. - Terminate the output of device_printf(9) with a newline char. - Honour the return value of malloc(3). MFC after: 1 month
* Don't use the ptoa() to set the 'realmem' variable. Because F/pc98's policynyan2005-03-042-6/+2
| | | | is to keep the same as F/i386.
* New Ukrainian locale: uk_UA.CP1251.ru2005-03-0411-1/+202
| | | | Submitted by: Alexander Peresunko
* Use ``.Pq Ql'' to quote single characters, instead of ``.Pq Li''.keramida2005-03-041-17/+17
| | | | | | | This makes the resulting output more aesthetically pleasing in text-only terminals: Reviewed by: ru
* Add a section describing the exit status of the shell.keramida2005-03-041-0/+8
| | | | Obtained from: NetBSD
* - Readd HARDWARE section to unbreak Hardware Notes.simon2005-03-041-3/+5
| | | | - Cleanup of mdoc markup.
* Another good Dijkstra quote.phk2005-03-041-0/+6
|
* Fix the ioctl path by ensuring that amr_start1() gets called for commandsscottl2005-03-041-18/+22
| | | | | | | | with no associated data. Also revert previous changes that allocate off of the stack instead of using malloc, as it's not needed. Many thanks to LSI for investigating and fixing these problems. Submitted by: rajeshpr @ lsil . com
* Add and clarify the names of many supported cards, and tweak some wording.scottl2005-03-041-29/+45
| | | | Submitted by: rajeshpr @ lsil . com
* Check for some impossible frequencies that some systems use to indicatenjl2005-03-041-0/+9
| | | | they don't actually support Px states.
* Allocate and map a 12k data buffer such that it is contiguous iniedowse2005-03-041-9/+21
| | | | | both the kernel and vm86 virtual address spaces. Use this to increase the maximum VESA save state size we can handle.
* Handle endianness correctly.cognet2005-03-031-1/+1
| | | | Spotted out by: jmg
* Add missing quote.phk2005-03-031-1/+1
|
* Wisdom from 1972.phk2005-03-031-0/+5
|
* Recently, it was reported to me that you could provoke a double faultwpaul2005-03-031-0/+19
| | | | | | | | | | | | | | | | | | | | panic with the NDISulator if you did "ifconfig ndis0 10.0.0.1/24," whereas "ifconfig ndis0 10.0.0.1/24 up" worked fine. The double fault was caused by the ifconfig thread running out of kernel stack space. (This was partly due to the NDIsulator using a couple of big buffers on the stack, but even after fixing that the double fault persisted.) It turns out that ndis_init() is called in both cases, but in the first case the code path passes through ieee80211_ioctl(), and it turns out ieee80211_ioctl() consumes a whopping 2400 bytes of stack space. Apparently, gcc -O2 causes the ieee80211_ioctl_get80211() routine to be inlined into ieee80211_ioctl(), and for some reason which I do not fully understand, this causes ieee80211_ioctl() to consume an extra 2K of stack space. To prevent this overly agressive optimization, ieee80211_ioctl_get80211() is now declared with __attribute__ ((noinline)). With this change, ieee80211_ioctl() now only reserves about 200 bytes of stack instead of 2400.
* Change fix a bug where the length of data written by snprintf wasalfred2005-03-031-1/+1
| | | | | | | being mishandled by using accumulation (into an uninitialized variable) instead of direct assignment. Reviewed by: scottl
* In linux emulation layer try to detect attempt to use linux_clone() tosobomax2005-03-032-0/+31
| | | | | | | | | | | | | | | | | | | | | | create kernel threads and call rfork(2) with RFTHREAD flag set in this case, which puts parent and child into the same threading group. As a result all threads that belong to the same program end up in the same threading group. This is similar to what linuxthreads port does, though in this case we don't have a luxury of having access to the source code and there is no definite way to differentiate linux_clone() called for threading purposes from other uses, so that we have to resort to heuristics. Allow SIGTHR to be delivered between all processes in the same threading group previously it has been blocked for s[ug]id processes. This also should improve locking of the same file descriptor from different threads in programs running under linux compat layer. PR: kern/72922 Reported by: Andriy Gapon <avg@icyb.net.ua> Idea suggested by: rwatson
* Install rlogind(8). Pointy hat is available on request.ru2005-03-031-1/+1
|
* Add the -N option to not rotate any files. This is to be used inbrooks2005-03-032-4/+21
| | | | | | | | | | cojunction with -C and is used by /etc/rc.d/newsyslog. I forgot that this was in my perforce tree and not my running system and thus committed a non-working newsyslog script. Reported by: des Pointy hat: brooks
* Style: remove unneeded parantheses in conditionals.harti2005-03-031-8/+8
|
* Constify the code paths for the 'M' and 'N' modifiers.harti2005-03-031-52/+62
| | | | | | Patch: 7.100 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Cisco uses milliseconds for uptime. This is stupid. Nobody cares of suchglebius2005-03-031-4/+16
| | | | | | | | | | | precision when IP packet may travel through internet for several seconds. Also uptime measured in milliseconds overflows every 48+ days. But we have to do same to keep compatibility with Cisco and flow-tools. Make a macro MILLIUPTIME, which does overflowable multiplication to 1000. Requested by: Sergey Ryabin, Oleg Bulyzhin MFC after: 1 week
* Fix parsing of archives: in System V archive format the member namesharti2005-03-031-2/+4
| | | | | | is terminated with a slash. Although we are not System V, ar has been configured to put that slash in. This format allows filenames with trailing spaces.
* Fix parsing of archive specifications on the target side ofharti2005-03-031-0/+1
| | | | | dependency lines. It seems that nobody is actually is using the archive-feature of make.
* Update the description comment of the function to reflect theharti2005-03-031-5/+2
| | | | previous change.
* Remove important entry being X that's 9 months oldimp2005-03-031-1/+1
|
* Remove references to 4.x upgrades, since those no longer are possibleimp2005-03-031-55/+3
| | | | (one must upgrade to 5.3 before first jumping to current).
* Transform VarParseLong() so that the lifetime and the constness ofharti2005-03-031-139/+143
| | | | | | | | | variables gets clearer. Transform if() conditions to make the flow clearer. Patch: 7.93-99 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Markup nits.des2005-03-031-2/+2
|
* Correct the default value for %%TINDERBOX%%.des2005-03-031-1/+1
|
* Doh, erase unused variable...grehan2005-03-031-1/+1
|
* MAXPATHLEN is 1024, which means NdisOpenFile() and ndis_find_sym() werewpaul2005-03-032-17/+60
| | | | | | | | | | | both consuming 1K of stack space. This is unfriendly. Allocate the buffers off the heap instead. It's a little slower, but these aren't performance critical routines. Also, add a spinlock to NdisAllocatePacketPool(), NdisAllocatePacket(), NdisFreePacketPool() and NdisFreePacket(). The pool is maintained as a linked list. I don't know for a fact that it can be corrupted, but why take chances.
* Fix a problem in the Skinny ALG where a specially crafted packet could causemarcus2005-03-032-8/+8
| | | | | | | | | a libalias application (e.g. natd, ppp, etc.) to crash. Note: Skinny support is not enabled in natd or ppp by default. Approved by: secteam (nectar) MFC after: 1 day Secuiryt: This fixes a remote DoS exploit
* Insert volatile cast to discourage gcc from optimizing the read outsidedwhite2005-03-031-1/+4
| | | | | | | of the while loop. Suggested by: alc MFC after: 1 day
* If a user or group is not known, report the problem user/group, rather thandelphij2005-03-031-3/+3
| | | | | | | | | the first user/group. Caused huge fun in error messages from large script. Old: pgrep -u root,NoSuchUser,daemon -> pgrep: unknown user `root' Now: pgrep -u root,NoSuchUser,daemon -> pgrep: unknown user `NoSuchUser' Obtained from: NetBSD (rev. 1.8) MFC After: 1 week (if re@ would have approved this)
* Remove the transition aid for the change of the sparc64 default systemmarius2005-03-031-4/+0
| | | | | | call vector which was added in rev. 1.52. This change was done way before sparc64 switched to a 64-bit time_t so all binaries are expected to have been recompiled by now.
* Remove COMPAT_FREEBSD4 again. It was added in rev. 1.41 as a transitionmarius2005-03-031-1/+0
| | | | | | aid for ABI breakages caused by system call changes. These changes were done way before sparc64 switched to a 64-bit time_t so all binaries are expected to have been recompiled by now.
* Fix the panic recently reported on -current@ occuring when configuringmux2005-03-031-8/+13
| | | | | | | | | | | | a vlan interface attached to a fxp(4) card when it has not been initialized yet. We now set the links from our internel TX descriptor structure to the TX command blocks at attach time rather than at init time. While I'm here, slightly improve the style in fxp_attach(). PR: kern/78112 Reported by: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk> and others Tested by: flz, Gavin Atkinson <gavin.atkinson@ury.york.ac.uk> MFC after: 1 week
* Automatically switch to ttyv3 where the fixit shell is running when usingjhb2005-03-022-0/+4
| | | | | | the standard console and any fixit mode. MFC after: 1 day
* Rework how we layout the CD/DVD ISO images for releases. Note that thisjhb2005-03-021-68/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | is only the first stage and does not yet handle packages (which will move to their own disc(s)). - By default, include the live filesystem on disc1, so that disc1 is now both an install disc and a fixit disc. The images can still be split into two separate discs by specifying SEPARATE_LIVEFS=yes. - Remove /usr/ports from the live filesystem disc as the merged images do not fit on even i386 otherwise. Also, the merged image already contains a tarball of the entire ports tree, so /usr/ports was a duplicate anyway. - Stop building port READMES for the release sinc they are no longer used (/usr/ports in the live filesystem was the last remaining user). - Split cdrom.1 into three targets. cdrom.1 builds the live filesystem image. cdrom.2 builds the disc1 image. Note that if SEPARATE_LIVEFS is not specified these both write to the same area. cdrom.3 builds the bootonly image and the UFS miniroot. - The various distribution directories are now in a <buildname> subdirectory of disc1 rather than being in the root so that the merged image's root is not quite as cluttered. - The disc1 image is now called disc1.iso and we no longer build a miniinst.iso image. If CD_EXTRA_BITS is defined, then the iso.1 target will simply include those bits in the disc1 image that it builds. MFC after: 1 day Requested by: re (scottl, etc.)
* - Fix a bug in sysinstall related to mounting CD-ROMs. If mount(2) failsjhb2005-03-025-13/+57
| | | | | | | | | | | | | | | | | | | | | | | | | with EBUSY and a cdrom is not mounted at /cdrom, sysinstall fails to treat it as an error and thinks that the disk mounted ok. However, it doesn't find a cdrom.inf file so it complains. Later when it tries to unmount the disk due to a mediaClose() umount(2) returns an error, and it never clears its internal mounted flag. The fix here is to properly handle EBUSY as an error if there isn't a CD already mounted at /cdrom. - Add a new CDROMInitQuiet variable that can be used to shut up the dialog box about the mount(2) system call failing when trying to mount a CD-ROM. This is used by the feature described below. - When using a fixit CD, first try to see if we can mount the disc in the drive now and use it as a fixit CD. If not, then prompt the user to insert the disc and try again. If we do succeed on the first "silent" probe then we don't ask the user to eject the disk after leaving fixit mode. - Add a simple file existence test to make sure that the disc that we mount really is a livefs disc. - Explicitly switch back to ttyv0 when using the standard console after the fixit shell dies. Previously this behavior worked accidentally because all the fixit modes popped up a dialog box which contained a hidden switch to ttyv0. MFC after: 1 day
* fix a bug where bpf would try to wakeup before updating the state.. Thisjmg2005-03-021-2/+6
| | | | | | | was causing kqueue not to see the correct state and not wake up a process that is waiting... Submitted by: nCircle Network Security, Inc.
* netchild's mega-patch to isolate compiler dependencies into a centraljoerg2005-03-0288-353/+584
| | | | | | | | | | | | | | | | place. This moves the dependency on GCC's and other compiler's features into the central sys/cdefs.h file, while the individual source files can then refer to #ifdef __COMPILER_FEATURE_FOO where they by now used to refer to #if __GNUC__ > 3.1415 && __BARC__ <= 42. By now, GCC and ICC (the Intel compiler) have been actively tested on IA32 platforms by netchild. Extension to other compilers is supposed to be possible, of course. Submitted by: netchild Reviewed by: various developers on arch@, some time ago
* Make sure fpswa_iface equals NULL when bootinfo.bi_fpswa equals 0.marcel2005-03-021-1/+2
| | | | | | | | | We need to be able to test for the (possible) non-existence of the FPSWA code. PR: ia64/77591 Submitted by: Christian Kandeler (christian dot kandeler at hob dot de) MFC after: 1 day
* Remove unused variables.marius2005-03-021-3/+0
|
* Set the TCP_NODELAY socket option and clear TCP_NOPUSH in order to flushkbyanc2005-03-021-2/+15
| | | | | | | | any pending HTTP request rather than calling shutdown(2) with SHUT_WR. This makes libfetch (and thus fetch(1)) work again with Squid proxies configured to not allow half-closed connections. Reported by: Pawel Worach (pawel.worach AT telia DOT com)
* It is sufficent to require rcconf rather than initdiskless.brooks2005-03-022-2/+2
|
OpenPOWER on IntegriCloud