summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* New release notes:hrs2004-07-022-8/+32
| | | | | | | | | | GEOM_LABEL added, top(1) -m io, ACPI-CA 20040527 import, and GNU sort coreutils 5.2.1 import. Typo fixes: s/ethernet/Ethernet/.
* Enable testing of customized variants of bsd.port.mk andeik2004-07-022-2/+4
| | | | | | | | | | | | | bsd.port.subdir.mk, without the overhead of an additional ports tree. Use make BSDPORTMK='${PORTSDIR}/My.Mk/bsd.port.mk' target and make BSDPORTSUBDIRMK='${PORTSDIR}/My.Mk/bsd.port.subdir.mk' target to build with the alternate versions. MFC after: 3 days
* Implement preemption of kernel threads natively in the scheduler ratherjhb2004-07-0221-46/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | than as one-off hacks in various other parts of the kernel: - Add a function maybe_preempt() that is called from sched_add() to determine if a thread about to be added to a run queue should be preempted to directly. If it is not safe to preempt or if the new thread does not have a high enough priority, then the function returns false and sched_add() adds the thread to the run queue. If the thread should be preempted to but the current thread is in a nested critical section, then the flag TDF_OWEPREEMPT is set and the thread is added to the run queue. Otherwise, mi_switch() is called immediately and the thread is never added to the run queue since it is switch to directly. When exiting an outermost critical section, if TDF_OWEPREEMPT is set, then clear it and call mi_switch() to perform the deferred preemption. - Remove explicit preemption from ithread_schedule() as calling setrunqueue() now does all the correct work. This also removes the do_switch argument from ithread_schedule(). - Do not use the manual preemption code in mtx_unlock if the architecture supports native preemption. - Don't call mi_switch() in a loop during shutdown to give ithreads a chance to run if the architecture supports native preemption since the ithreads will just preempt DELAY(). - Don't call mi_switch() from the page zeroing idle thread for architectures that support native preemption as it is unnecessary. - Native preemption is enabled on the same archs that supported ithread preemption, namely alpha, i386, and amd64. This change should largely be a NOP for the default case as committed except that we will do fewer context switches in a few cases and will avoid the run queues completely when preempting. Approved by: scottl (with his re@ hat)
* Remove duplicate FreeBSD id.njl2004-07-021-2/+0
|
* Deal with unsafe tab characters.ru2004-07-024-2/+10
|
* Fixed comments.ru2004-07-021-27/+27
|
* Don't announce the ethernet address when it's 00:00:00:00:00:00. It'sbrooks2004-07-021-2/+7
| | | | | not of any interest. This primairly happens when vlan(4) interfaces are created.
* Introduce GEOM_LABEL class.pjd2004-07-0217-1/+1184
| | | | | | | | | | | | | | | | | | | | | | | This class is used for detecting volume labels on file systems: UFS, MSDOSFS (FAT12, FAT16, FAT32) and ISO9660. It also provide native labelization (there is no need for file system). g_label_ufs.c is based on geom_vol_ffs from Gordon Tetlow. g_label_msdos.c and g_label_iso9660.c are probably hacks, I just found where volume labels are stored and I use those offsets here, but with this class it should be easy to do it as it should be done by someone who know how. Implementing volume labels detection for other file systems also should be trivial. New providers are created in those directories: /dev/ufs/ (UFS1, UFS2) /dev/msdosfs/ (FAT12, FAT16, FAT32) /dev/iso9660/ (ISO9660) /dev/label/ (native labels, configured with glabel(8)) Manual page cleanups and some comments inside were submitted by Simon L. Nielsen, who was, as always, very helpful. Thanks!
* mdoc(7): Fixed list types.ru2004-07-021-2/+2
|
* Get rid of the strict aliasing error by retrieving the ECDT via a tablenjl2004-07-021-2/+3
| | | | | | header pointer and then casting it to the ecdt pointer. This fixes the -O2 build. I'm unsure what changed recently to reveal this error since this code has been unchanged for months.
* - Change mi_switch() and sched_switch() to accept an optional thread tojhb2004-07-0216-38/+51
| | | | | | | | | | | | | switch to. If a non-NULL thread pointer is passed in, then the CPU will switch to that thread directly rather than calling choosethread() to pick a thread to choose to. - Make sched_switch() aware of idle threads and know to do TD_SET_CAN_RUN() instead of sticking them on the run queue rather than requiring all callers of mi_switch() to know to do this if they can be called from an idlethread. - Move constants for arguments to mi_switch() and thread_single() out of the middle of the function prototypes and up above into their own section.
* Removed trailing whitespace.ru2004-07-0239-125/+125
|
* Bump up the date and add spaces around commas. Thanks to ru@ for noticing.arun2004-07-021-2/+2
|
* Deal with harmful leading whitespace.ru2004-07-021-1/+1
|
* Fix the '\' next to lshift for users of Belgian keyboards.philip2004-07-022-2/+2
| | | | | Submitted by: Glenn Matthys <glenn@opengate.be> Approved by: njl
* Fixed spelling of the document date.ru2004-07-0213-13/+13
|
* Explain that -O2 is supported, but known to expose bugs in ppp(8).des2004-07-021-3/+3
|
* We support -O2 now.des2004-07-021-2/+3
|
* Markup tidying.ru2004-07-026-16/+37
|
* Bump document date on behalf of the previous change.ru2004-07-021-1/+1
|
* Small grammar fix.scottl2004-07-021-1/+1
|
* Document net.inet.ip.process_options sysctl.maxim2004-07-021-0/+15
| | | | | Improved by: ru Reviewed by: andre
* Implement SNDCTL_DSP_SETDUPLEX. This may fix sound apps which want tonetchild2004-07-023-0/+15
| | | | | | use full duplex mode. Approved by: matk
* Use %esi to store next ucp pointer. Mark end of stack bydavidxu2004-07-022-3/+4
| | | | | setting %ebp to zero, this avoids new gdb to dump a weird backtrace.
* Disable native ata support for now, too much breaksimp2004-07-021-1/+1
|
* Fix <small> tagsden2004-07-021-2/+3
|
* manlinteik2004-07-021-6/+5
| | | | Obtained from: ru
* New variable `.MAKEFILE_LIST', useful for tracing, debugging and dependency ↵eik2004-07-022-3/+30
| | | | | | | | | | | tracking. Use make -V .MAKEFILE_LIST | tr \ \\n | awk '$0==".." {l--; next} {l++; printf "%*s%s\n", l, " ", $0}' to print a tree of all included makefiles. Approved by: joerg MFC after: 1 week
* Bring in the first chunk of altq driver modifications. This covers themlaier2004-07-0210-58/+108
| | | | | | | | | | | following drivers: bfe(4), em(4), fxp(4), lnc(4), tun(4), de(4) rl(4), sis(4) and xl(4) More patches are pending on: http://peoples.freebsd.org/~mlaier/ Please take a look and tell me if "your" driver is missing, so I can fix this. Tested-by: many No-objection: -current, -net
* Hook strnlen.c up to the build - the i18n patch uses it.tjr2004-07-021-0/+1
|
* Add support for multi-byte character sets.tjr2004-07-021-42/+763
| | | | Obtained from: Mitsuru Chinen (IBM) via The Fedora Project
* Update build infrastructure for sort from GNU coreutils 5.2.1.tjr2004-07-024-147/+286
|
* Resolve conflicts.tjr2004-07-022-651/+5
|
* Allow ptrace to deal with lwpid.davidxu2004-07-021-6/+36
| | | | Reviewed by: marcel
* This commit was generated by cvs2svn to compensate for changes in r131447,tjr2004-07-0256-9791/+8728
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import of GNU sort from coreutils 5.2.1 (trimmed)tjr2004-07-0257-9801/+8733
| |
* | Markup overhaul and minor word smithing.ru2004-07-021-399/+483
| |
* | Local change: Allow access to the field if it is within the regionmarks2004-07-021-67/+87
| | | | | | | | | | | | size rounded up to a multiple of the access byte width. This overcomes "off-by-one" programming errors in the AML often found in Toshiba laptops.
* | Local diff: allow use of the disassembler.marks2004-07-021-1/+5
| |
* | Unchanged files that are off the vendor branch.marks2004-07-022-8/+10
| |
* | This commit was generated by cvs2svn to compensate for changes in r131440,marks2004-07-0210-72/+165
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Vendor import of Intel ACPI-CA 20040527marks2004-07-0214-149/+271
| | |
* | | We allocate an array of pointers to the global file table whilealfred2004-07-021-1/+12
| | | | | | | | | | | | | | | not holding the filelist_lock. This means the filelist can change size while allocating. Detect this race and retry the allocation.
* | | Bring this manpage more up-to-date with the current code.ru2004-07-021-109/+93
| | | | | | | | | | | | | | | Submitted by: Gleb Smirnoff Reviewed by: julian, ru
* | | Tidy up uprof locking. Mostly the fields are protected by both the procjhb2004-07-023-29/+41
| | | | | | | | | | | | | | | | | | | | | lock and sched_lock so they can be read with either lock held. Document the locking as well. The one remaining bogosity is that pr_addr and pr_ticks should be per-thread but profiling of multithreaded apps is currently undefined.
* | | - Assert that any process that has statclock called on it has both ajhb2004-07-021-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | stats structure and a vmspace as this should always be true rather than checking the always true condition in an if statement. - Remove never-false check: if ((ru = &pstats->p_ru) != NULL) - Remove pstats variable that is only used once and inline its one use instead.
* | | Allocate s/g segments in the tag rather than on the stack.scottl2004-07-021-30/+35
| | |
* | | - Don't use a variable to point to the user area that we only use once.jhb2004-07-021-15/+10
| | | | | | | | | | | | | | | | | | Just use p2->p_uarea directly instead. - Remove an old and mostly bogus assertion regarding p2->p_sigacts. - Use RANGEOF macro ala fork1() to clean up bzero/bcopy of p_stats.
* | | Add support for the VIA Apollo KT400/400A/600 AGP host bridges which usejhb2004-07-022-0/+6
| | | | | | | | | | | | | | | | | | | | | the VIA v3 register offsets. PR: 68545 Submitted by: Ariff Abdullah <skywizard@mybsd.org.my>
* | | Change the thread ID (thr_id_t) used for 1:1 threading from being amarcel2004-07-0210-63/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pointer to the corresponding struct thread to the thread ID (lwpid_t) assigned to that thread. The primary reason for this change is that libthr now internally uses the same ID as the debugger and the kernel when referencing to a kernel thread. This allows us to implement the support for debugging without additional translations and/or mappings. To preserve the ABI, the 1:1 threading syscalls, including the umtx locking API have not been changed to work on a lwpid_t. Instead the 1:1 threading syscalls operate on long and the umtx locking API has not been changed except for the contested bit. Previously this was the least significant bit. Now it's the most significant bit. Since the contested bit should not be tested by userland, this change is not expected to be visible. Just to be sure, UMTX_CONTESTED has been removed from <sys/umtx.h>. Reviewed by: mtm@ ABI preservation tested on: i386, ia64
OpenPOWER on IntegriCloud