Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.541 / (download) - annotate - [select for diffs], Wed Oct 26 23:20:47 2022 UTC (7 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base,
netbsd-10,
HEAD
Changes since 1.540: +3 -3
lines
Diff to previous 1.540 (colored)
kern/init_main.c: Get extern lwp0 from sys/lwp.h.
Revision 1.540 / (download) - annotate - [select for diffs], Thu Jul 21 14:07:16 2022 UTC (10 months, 2 weeks ago) by simonb
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Changes since 1.539: +2 -3
lines
Diff to previous 1.539 (colored)
Removed unused opt_wapbl.h include.
Revision 1.539 / (download) - annotate - [select for diffs], Sat Jun 18 22:11:01 2022 UTC (11 months, 3 weeks ago) by andvar
Branch: MAIN
Changes since 1.538: +3 -3
lines
Diff to previous 1.538 (colored)
fix typos in word "functions" in comments, mainly s/fuctions/functions/.
Revision 1.538 / (download) - annotate - [select for diffs], Sat Mar 19 13:51:35 2022 UTC (14 months, 3 weeks ago) by hannken
Branch: MAIN
Changes since 1.537: +4 -2
lines
Diff to previous 1.537 (colored)
Fix locking after opendisk(), VOP_IOCTL() needs an unlocked vnode, vn_rdwr() needs flag IO_NODELOCKED.
Revision 1.537 / (download) - annotate - [select for diffs], Fri Mar 18 23:37:06 2022 UTC (14 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.536: +5 -5
lines
Diff to previous 1.536 (colored)
entropy(9): Establish the softint a little earlier. Just need to wait until softint_establish and high-priority xcalls will work, no later than that. Doing this earlier gives us slightly more of a chance to ensure cprng_fast and ssp get entropy from hardware RNG devices that rely on interrupts.
Revision 1.536 / (download) - annotate - [select for diffs], Wed Jan 26 11:48:54 2022 UTC (16 months, 1 week ago) by andvar
Branch: MAIN
Changes since 1.535: +3 -3
lines
Diff to previous 1.535 (colored)
remove double t from targeted, add missing r to arbitrary And fix few more typos along the way in comments and man pages.
Revision 1.531.2.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:00 2021 UTC (2 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.531.2.1: +5 -2
lines
Diff to previous 1.531.2.1 (colored) next main 1.532 (colored)
Sync with HEAD.
Revision 1.534.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:45:00 2021 UTC (2 years, 2 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.534: +5 -2
lines
Diff to previous 1.534 (colored) next main 1.535 (colored)
Sync with HEAD.
Revision 1.535 / (download) - annotate - [select for diffs], Thu Apr 1 04:41:38 2021 UTC (2 years, 2 months ago) by simonb
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Changes since 1.534: +5 -2
lines
Diff to previous 1.534 (colored)
Expose olde style intrcnt interrupt accounting via event counters. This code will be garbage collected once our last legacy intrcnt user is update to native evcnts.
Revision 1.490.6.2 / (download) - annotate - [select for diffs], Sat Feb 6 15:22:19 2021 UTC (2 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.490.6.1: +19 -3
lines
Diff to previous 1.490.6.1 (colored) to branchpoint 1.490 (colored) next main 1.491 (colored)
Pull up following revision(s) (requested by simonb in ticket #1649): sys/sys/param.h: revision 1.679 sys/conf/param.c: revision 1.69 sys/kern/init_main.c: revision 1.533 (via patch) Set a better default for MAXFILES on larger RAM machines if not otherwise specified the kernel config file. Arbitary numbers are 20,000 files for 16GB RAM or more and 10,000 files for 1GB RAM or more. TODO: Adjust this and other values totally dynamically.
Revision 1.504.2.2 / (download) - annotate - [select for diffs], Sun Jan 3 12:51:33 2021 UTC (2 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE
Changes since 1.504.2.1: +7 -7
lines
Diff to previous 1.504.2.1 (colored) to branchpoint 1.504 (colored) next main 1.505 (colored)
Apply patch, requested by khorben in ticket #1177 (issue solved differently in -current): sys/kern/init_main.c (apply patch) PR kern/55906: create the aiodone workqueue before running mountroothooks.
Revision 1.531.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:13 2020 UTC (2 years, 5 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.531: +20 -9
lines
Diff to previous 1.531 (colored)
Sync w/ HEAD.
Revision 1.534 / (download) - annotate - [select for diffs], Sat Dec 5 18:17:01 2020 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-cfargs
Changes since 1.533: +4 -7
lines
Diff to previous 1.533 (colored)
Refactor interval timers to make it possible to support types other than the BSD/POSIX per-process timers: - "struct ptimer" is split into "struct itimer" (common interval timer data) and "struct ptimer" (per-process timer data, which contains a "struct itimer"). - Introduce a new "struct itimer_ops" that supplies information about the specific kind of interval timer, including it's processing queue, the softint handle used to schedule processing, the function to call when the timer fires (which adds it to the queue), and an optional function to call when the CLOCK_REALTIME clock is changed by a call to clock_settime() or settimeofday(). - Rename some fuctions to clearly identify what they're operating on (ptimer vs itimer). - Use kmem(9) to allocate ptimer-related structures, rather than having dedicated pools for them. Welcome to NetBSD 9.99.77.
Revision 1.504.2.1 / (download) - annotate - [select for diffs], Sat Nov 14 15:36:11 2020 UTC (2 years, 6 months ago) by martin
Branch: netbsd-9
Changes since 1.504: +18 -3
lines
Diff to previous 1.504 (colored)
Pull up following revision(s) (requested by fair in ticket #1130): sys/sys/param.h: revision 1.679 sys/conf/param.c: revision 1.69 sys/kern/init_main.c: revision 1.533 Set a better default for MAXFILES on larger RAM machines if not otherwise specified the kernel config file. Arbitary numbers are 20,000 files for 16GB RAM or more and 10,000 files for 1GB RAM or more. TODO: Adjust this and other values totally dynamically.
Revision 1.533 / (download) - annotate - [select for diffs], Thu Nov 12 07:44:01 2020 UTC (2 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.532: +18 -3
lines
Diff to previous 1.532 (colored)
Set a better default for MAXFILES on larger RAM machines if not otherwise specified the kernel config file. Arbitary numbers are 20,000 files for 16GB RAM or more and 10,000 files for 1GB RAM or more. TODO: Adjust this and other values totally dynamically.
Revision 1.532 / (download) - annotate - [select for diffs], Wed Nov 4 01:30:19 2020 UTC (2 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.531: +2 -3
lines
Diff to previous 1.531 (colored)
In uvmpd_tryownerlock(), if the initial try-lock of the owner lock fails then rather than do more try-locks and eventually sleep for a tick, take a hold on the current owner's lock, drop the page interlock, and acquire the lock that we took the hold on in a blocking fashion. After we get the lock, check if the lock that we acquired is still the lock for the owner of the page that we're interested in. If the owner hasn't changed then can proceed with this page, otherwise we will skip this page and move on to a different page. This dramatically reduces the amount of time that the pagedaemon sleeps trying to get locks, since even 1 tick is an eternity to sleep in this context and it was easy to trigger that case in practice, and with this new method the pagedaemon only very rarely actually blocks to acquire the lock that it wants since the object locks are adaptive, and when the pagedaemon does block then the amount of time it spends sleeping will be generally be much less than 1 tick.
Revision 1.531 / (download) - annotate - [select for diffs], Tue Sep 8 16:00:35 2020 UTC (2 years, 9 months ago) by riastradh
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.530: +7 -3
lines
Diff to previous 1.530 (colored)
ipi: Split up initialization into two parts. First part runs early so ipi_register can be used in module initialization, e.g. via pktqueue_create; second part runs after CPUs have been detected.
Revision 1.530 / (download) - annotate - [select for diffs], Mon Sep 7 03:50:41 2020 UTC (2 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.529: +6 -2
lines
Diff to previous 1.529 (colored)
Add the ability to set an alternate cnmagic in the kernel config file, e.g.: options CNMAGIC="\"+++++\""
Revision 1.529 / (download) - annotate - [select for diffs], Thu Aug 27 14:01:36 2020 UTC (2 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.528: +2 -22
lines
Diff to previous 1.528 (colored)
Move address hashing from init_main.c to kern_sysctl.c. This way rump gets it automatically. Make sure blake2s is in librumpkern.so, not just in librumpkern_crypto.so, for this to work.
Revision 1.528 / (download) - annotate - [select for diffs], Wed Aug 26 22:56:55 2020 UTC (2 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.527: +22 -2
lines
Diff to previous 1.527 (colored)
Instead of returning 0 when sysctl kern.expose_address=0, return a random hashed value of the data. This allows sockstat to work without exposing kernel addresses or being setgid kmem.
Revision 1.527 / (download) - annotate - [select for diffs], Thu Jun 11 19:20:46 2020 UTC (2 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.526: +3 -3
lines
Diff to previous 1.526 (colored)
uvm_availmem(): give it a boolean argument to specify whether a recent cached value will do, or if the very latest total must be fetched. It can be called thousands of times a second and fetching the totals impacts not only the calling LWP but other CPUs doing unrelated activity in the VM system.
Revision 1.526 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (3 years ago) by ad
Branch: MAIN
Changes since 1.525: +11 -11
lines
Diff to previous 1.525 (colored)
Move proc_lock into the data segment. It was dynamically allocated because at the time we had mutex_obj_alloc() but not __cacheline_aligned.
Revision 1.525 / (download) - annotate - [select for diffs], Mon May 11 21:38:54 2020 UTC (3 years ago) by riastradh
Branch: MAIN
Changes since 1.524: +4 -4
lines
Diff to previous 1.524 (colored)
Move cprng_init before configure. This makes it available to device drivers, e.g. to generate MAC addresses at random, without initialization order hacks. Requires a minor initialization hack for cpu_name(primary cpu) early on, since that doesn't get set until mi_cpu_attach which may not run until the middle of configure. But this hack is less bad than other initialization order hacks.
Revision 1.524 / (download) - annotate - [select for diffs], Thu Apr 30 03:28:18 2020 UTC (3 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.523: +4 -16
lines
Diff to previous 1.523 (colored)
Rewrite entropy subsystem. Primary goals: 1. Use cryptography primitives designed and vetted by cryptographers. 2. Be honest about entropy estimation. 3. Propagate full entropy as soon as possible. 4. Simplify the APIs. 5. Reduce overhead of rnd_add_data and cprng_strong. 6. Reduce side channels of HWRNG data and human input sources. 7. Improve visibility of operation with sysctl and event counters. Caveat: rngtest is no longer used generically for RND_TYPE_RNG rndsources. Hardware RNG devices should have hardware-specific health tests. For example, checking for two repeated 256-bit outputs works to detect AMD's 2019 RDRAND bug. Not all hardware RNGs are necessarily designed to produce exactly uniform output. ENTROPY POOL - A Keccak sponge, with test vectors, replaces the old LFSR/SHA-1 kludge as the cryptographic primitive. - `Entropy depletion' is available for testing purposes with a sysctl knob kern.entropy.depletion; otherwise it is disabled, and once the system reaches full entropy it is assumed to stay there as far as modern cryptography is concerned. - No `entropy estimation' based on sample values. Such `entropy estimation' is a contradiction in terms, dishonest to users, and a potential source of side channels. It is the responsibility of the driver author to study the entropy of the process that generates the samples. - Per-CPU gathering pools avoid contention on a global queue. - Entropy is occasionally consolidated into global pool -- as soon as it's ready, if we've never reached full entropy, and with a rate limit afterward. Operators can force consolidation now by running sysctl -w kern.entropy.consolidate=1. - rndsink(9) API has been replaced by an epoch counter which changes whenever entropy is consolidated into the global pool. . Usage: Cache entropy_epoch() when you seed. If entropy_epoch() has changed when you're about to use whatever you seeded, reseed. . Epoch is never zero, so initialize cache to 0 if you want to reseed on first use. . Epoch is -1 iff we have never reached full entropy -- in other words, the old rnd_initial_entropy is (entropy_epoch() != -1) -- but it is better if you check for changes rather than for -1, so that if the system estimated its own entropy incorrectly, entropy consolidation has the opportunity to prevent future compromise. - Sysctls and event counters provide operator visibility into what's happening: . kern.entropy.needed - bits of entropy short of full entropy . kern.entropy.pending - bits known to be pending in per-CPU pools, can be consolidated with sysctl -w kern.entropy.consolidate=1 . kern.entropy.epoch - number of times consolidation has happened, never 0, and -1 iff we have never reached full entropy CPRNG_STRONG - A cprng_strong instance is now a collection of per-CPU NIST Hash_DRBGs. There are only two in the system: user_cprng for /dev/urandom and sysctl kern.?random, and kern_cprng for kernel users which may need to operate in interrupt context up to IPL_VM. (Calling cprng_strong in interrupt context does not strike me as a particularly good idea, so I added an event counter to see whether anything actually does.) - Event counters provide operator visibility into when reseeding happens. INTEL RDRAND/RDSEED, VIA C3 RNG (CPU_RNG) - Unwired for now; will be rewired in a subsequent commit.
Revision 1.523 / (download) - annotate - [select for diffs], Sun Apr 26 18:53:33 2020 UTC (3 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.522: +5 -2
lines
Diff to previous 1.522 (colored)
Add a NetBSD native futex implementation, mostly written by riastradh@. Map the COMPAT_LINUX futex calls to the native ones.
Revision 1.497.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:51 2020 UTC (3 years, 2 months ago) by martin
Branch: phil-wifi
Changes since 1.497.2.1: +30 -28
lines
Diff to previous 1.497.2.1 (colored) to branchpoint 1.497 (colored) next main 1.498 (colored)
Merge changes from current as of 20200406
Revision 1.517.2.2 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:02 2020 UTC (3 years, 3 months ago) by ad
Branch: ad-namecache
Changes since 1.517.2.1: +9 -11
lines
Diff to previous 1.517.2.1 (colored) to branchpoint 1.517 (colored) next main 1.518 (colored)
Sync with head.
Revision 1.522 / (download) - annotate - [select for diffs], Mon Feb 24 20:47:47 2020 UTC (3 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3
Changes since 1.521: +5 -4
lines
Diff to previous 1.521 (colored)
move config_init_mi() call before vfsinit(), which can trigger loading of VFS modules fixes crash with LOCKDEBUG due to uninitialized mutex when zfs module is loaded in boot, because zfs's spa_init() calls config_mountroot() which now requires the config init having been done
Revision 1.521 / (download) - annotate - [select for diffs], Tue Feb 18 20:23:17 2020 UTC (3 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.520: +2 -7
lines
Diff to previous 1.520 (colored)
remove the aiodoned thread. I originally added this to provide a thread context for doing page cache iodone work, but since then biodone() has changed to hand off all iodone work to a softint thread, so we no longer need the special-purpose aiodoned thread.
Revision 1.520 / (download) - annotate - [select for diffs], Sat Feb 15 18:12:15 2020 UTC (3 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.519: +3 -3
lines
Diff to previous 1.519 (colored)
- Move the LW_RUNNING flag back into l_pflag: updating l_flag without lock in softint_dispatch() is risky. May help with the "softint screwup" panic. - Correct the memory barriers around zombies switching into oblivion.
Revision 1.519 / (download) - annotate - [select for diffs], Tue Jan 28 16:35:39 2020 UTC (3 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.518: +5 -3
lines
Diff to previous 1.518 (colored)
Call radix_tree_init() earlier, so more stuff can make use of radixtree.
Revision 1.517.2.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:35 2020 UTC (3 years, 4 months ago) by ad
Branch: ad-namecache
Changes since 1.517: +3 -3
lines
Diff to previous 1.517 (colored)
Sync with head.
Revision 1.518 / (download) - annotate - [select for diffs], Wed Jan 8 17:38:42 2020 UTC (3 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base2,
ad-namecache-base1
Changes since 1.517: +3 -3
lines
Diff to previous 1.517 (colored)
Hopefully fix some problems seen with MP support on non-x86, in particular where curcpu() is defined as curlwp->l_cpu: - mi_switch(): undo the ~2007ish optimisation to unlock curlwp before calling cpu_switchto(). It's not safe to let other actors mess with the LWP (in particular l->l_cpu) while it's still context switching. This removes l->l_ctxswtch. - Move the LP_RUNNING flag into l->l_flag and rename to LW_RUNNING since it's now covered by the LWP's lock. - Ditch lwp_exit_switchaway() and just call mi_switch() instead. Everything is in cache anyway so it wasn't buying much by trying to avoid saving old state. This means cpu_switchto() will never be called with prevlwp == NULL. - Remove some KERNEL_LOCK handling which hasn't been needed for years.
Revision 1.517 / (download) - annotate - [select for diffs], Thu Jan 2 15:42:27 2020 UTC (3 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-namecache-base
Branch point for: ad-namecache
Changes since 1.516: +2 -13
lines
Diff to previous 1.516 (colored)
- Eliminate the global "boottime" variable, which was being accessed without any synchronization against changes by e.g. clock_settime(). - Replace with new getbinboottime() / getnanoboottime() / getmicroboottime() functions (naming mirrors that of other time access functions in kern_tc.c). It returns the (maybe-converted) value of timebasebin, which also tracks our estimate of when the system was booted (i.e. the legacy "boottime" was redundant). XXX There needs to be a lockless synchronization mechanism for reading timebasebin, but this is a problem in kern_tc.c that pre-existed these "boottime" changes. At least now the problem is centralized in one location.
Revision 1.516 / (download) - annotate - [select for diffs], Wed Jan 1 22:57:17 2020 UTC (3 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.515: +6 -5
lines
Diff to previous 1.515 (colored)
- Introduce a new global kernel variable "shutting_down" to indicate that the system is shutting down or rebooting. - Set this global in a new function called kern_reboot(), which is currently just a basic wrapper around cpu_reboot(). - Call kern_reboot() instead of cpu_reboot() almost everywhere; a few places remain where it's still called directly, but those are in early pre-main() machdep locations. Eventually, all of the various cpu_reboot() functions should be re-factored and common functionality moved to kern_reboot(), but that's for another day.
Revision 1.515 / (download) - annotate - [select for diffs], Wed Jan 1 21:09:11 2020 UTC (3 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.514: +6 -3
lines
Diff to previous 1.514 (colored)
First steps towards properly serializing access to the TOD clock. - Add a mutex around the TODR, and provide lock/unlock/lock-owned functions to manipulate it. - Rename inittodr() to todr_set_systime() and resettodr() to todr_save_systime() to better reflect what they do. These functions are intended to be called with the TODR lock held, which will allow for a pattern like: -> todr_lock() -> todr_save_systime() -> [do machine-dependent stuff to sleep/suspend] -> [magically awaken] -> todr_set_systime(...) -> todr_unlock() - Provide historically-named wrappers inittodr() and resettodr() that do the dance of acquiring / releasing the lock around the actual substance. NOTE: resettodr()'s use of the TODR lock is currently disabled (and todr_save_systime() does not assert it's held) until such time as issues around shutdown / reboot under duress can be addressed.
Revision 1.514 / (download) - annotate - [select for diffs], Tue Dec 31 13:07:13 2019 UTC (3 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.513: +3 -3
lines
Diff to previous 1.513 (colored)
Rename uvm_free() -> uvm_availmem().
Revision 1.513 / (download) - annotate - [select for diffs], Fri Dec 27 12:51:57 2019 UTC (3 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.512: +6 -2
lines
Diff to previous 1.512 (colored)
Redo the page allocator to perform better, especially on multi-core and multi-socket systems. Proposed on tech-kern. While here: - add rudimentary NUMA support - needs more work. - remove now unused "listq" from vm_page.
Revision 1.512 / (download) - annotate - [select for diffs], Sun Dec 22 15:00:42 2019 UTC (3 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.511: +3 -3
lines
Diff to previous 1.511 (colored)
Fix integer overflow when printing available memory size (resulting from a cast lost during merges). Reported-by: syzbot+f02ca5f83ac7196b8afd@syzkaller.appspotmail.com
Revision 1.511 / (download) - annotate - [select for diffs], Sat Dec 21 13:00:24 2019 UTC (3 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.510: +3 -3
lines
Diff to previous 1.510 (colored)
uvmexp.free -> uvm_free()
Revision 1.510 / (download) - annotate - [select for diffs], Sat Dec 14 15:30:37 2019 UTC (3 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.509: +4 -2
lines
Diff to previous 1.509 (colored)
Include radixtree in the kernel.
Revision 1.509 / (download) - annotate - [select for diffs], Thu Dec 12 22:55:20 2019 UTC (3 years, 5 months ago) by pgoyette
Branch: MAIN
Changes since 1.508: +4 -2
lines
Diff to previous 1.508 (colored)
Eliminate per-hook duplication of common code as suggested by (and with major contributions from) riastradh@ Welcome to 9.99.23
Revision 1.508 / (download) - annotate - [select for diffs], Mon Dec 2 23:22:43 2019 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.507: +5 -2
lines
Diff to previous 1.507 (colored)
Take the basic CPU topology information we already collect, and use it to make circular lists of CPU siblings in the same core, and in the same package. Nothing fancy, just enough to have a bit of fun in the scheduler trying out different tactics.
Revision 1.507 / (download) - annotate - [select for diffs], Sun Dec 1 17:08:31 2019 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.506: +7 -7
lines
Diff to previous 1.506 (colored)
Init kern_runq and kern_synch before booting secondary CPUs.
Revision 1.506 / (download) - annotate - [select for diffs], Thu Oct 3 22:29:17 2019 UTC (3 years, 8 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.505: +2 -5
lines
Diff to previous 1.505 (colored)
Remove compile-time asserts checking whether intptr_t and void* are compat The checks were requested by core@ as a prerequisite for kevent::udata type switch from intptr_t to void*.
Revision 1.505 / (download) - annotate - [select for diffs], Tue Sep 24 19:21:45 2019 UTC (3 years, 8 months ago) by kamil
Branch: MAIN
Changes since 1.504: +5 -2
lines
Diff to previous 1.504 (colored)
Add a temporary ctassert checking whether void* and intptr_t are compatible
Revision 1.497.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (4 years ago) by christos
Branch: phil-wifi
Changes since 1.497: +38 -11
lines
Diff to previous 1.497 (colored)
Sync with HEAD
Revision 1.504 / (download) - annotate - [select for diffs], Fri May 17 03:34:26 2019 UTC (4 years ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-20190609,
netbsd-9-base,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.503: +6 -2
lines
Diff to previous 1.503 (colored)
Implement an aggressive psref leak detector It is yet another psref leak detector that enables to tell where a leak occurs while a simpler version that is already committed just tells an occurrence of a leak. Investigating of psref leaks is hard because once a leak occurs a percpu list of psref that tracks references can be corrupted. A reference to a tracking object is memorized in the list via an intermediate object (struct psref) that is normally allocated on a stack of a thread. Thus, the intermediate object can be overwritten on a leak resulting in corruption of the list. The tracker makes a shadow entry to an intermediate object and stores some hints into it (currently it's a caller address of psref_acquire). We can detect a leak by checking the entries on certain points where any references should be released such as the return point of syscalls and the end of each softint handler. The feature is expensive and enabled only if the kernel is built with PSREF_DEBUG. Proposed on tech-kern
Revision 1.503 / (download) - annotate - [select for diffs], Wed Feb 20 10:07:27 2019 UTC (4 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: isaki-audio2-base,
isaki-audio2
Changes since 1.502: +5 -4
lines
Diff to previous 1.502 (colored)
Attach "mnt_transinfo" to "dead_rootmount" so every mount has a valid "mnt_transinfo" and remove now unneeded flag IMNT_HAS_TRANS. Run fstrans_start()/fstrans_done() on dead_rootmount if FSTRANS_DEAD_ENABLED. Should become the default for DIAGNOSTIC in the future.
Revision 1.495.2.5 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:36 2019 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.495.2.4: +10 -4
lines
Diff to previous 1.495.2.4 (colored) to branchpoint 1.495 (colored) next main 1.496 (colored)
Sync with HEAD
Revision 1.502 / (download) - annotate - [select for diffs], Wed Jan 23 13:38:30 2019 UTC (4 years, 4 months ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-compat-20190127
Changes since 1.501: +10 -4
lines
Diff to previous 1.501 (colored)
Change the place of initproc initialization The initproc variable cannot be initialized in start_init as there is a race between vfs_mountroot and start_init. PR kern/53817 by Andreas Gustafsson
Revision 1.495.2.4 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:57 2019 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.495.2.3: +6 -2
lines
Diff to previous 1.495.2.3 (colored) to branchpoint 1.495 (colored)
Synch with HEAD
Revision 1.501 / (download) - annotate - [select for diffs], Wed Dec 26 22:16:26 2018 UTC (4 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: pgoyette-compat-20190118
Changes since 1.500: +6 -2
lines
Diff to previous 1.500 (colored)
Rather than performing lazy initialization, statically initialize early in the respective kernel startup routines.
Revision 1.495.2.3 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:50 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.495.2.2: +18 -7
lines
Diff to previous 1.495.2.2 (colored) to branchpoint 1.495 (colored)
Sync with HEAD, resolve a couple of conflicts
Revision 1.500 / (download) - annotate - [select for diffs], Tue Oct 30 19:40:35 2018 UTC (4 years, 7 months ago) by kre
Branch: MAIN
CVS Tags: pgoyette-compat-1226,
pgoyette-compat-1126
Changes since 1.499: +12 -3
lines
Diff to previous 1.499 (colored)
Correct the 6 second offset issue between the time reported by dmesg -T and the actual time a message was produced, noted on current-users by Geoff Wing (Oct 27, 2018). The size of the offset would depend upon architecture, and processor, but was the delay from starting the clocks to initialising the time of day (after mounting root, in case that is needed). Change the kernel to set boottime to be the time at which the clocks were started, rather than the time at which it is init'd (by subtracting the interval between). Correct dmesg to properly compute the ToD based upon the boottime (which is a timespec, not a timeval, and has been since Jan 2009) and the time logged in the message. Note that this can (rarely) be 1 second earlier than date reports. This occurs when the time when the message was logged was actually in the next second, but the timecounters have not yet processed the tick, and so the time of the last tick, near the end of the previous second, is reported instead. Since times are always truncated, rather than rounded, it is occasionally possible to observe that disparity (if you try hard enough). IOW: sys/kern/subr_prf.c:addtstamp() uses getnanouptime() rather than nanouptime(). Note in dmesg(8) that -T conversions are gibberish other than when the message comes from current the running kernel. (It could be fixed when -M is used, for messages generated by the kernel whose corpse is being observed. But hasn't been...)
Revision 1.499 / (download) - annotate - [select for diffs], Fri Oct 26 18:16:42 2018 UTC (4 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.498: +8 -6
lines
Diff to previous 1.498 (colored)
Only print the "no console" warning when booting verbose or debug. It is a normal condition in many setups and has no consequences for the user, so do not scare them.
Revision 1.495.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:08 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.495.2.1: +3 -2
lines
Diff to previous 1.495.2.1 (colored) to branchpoint 1.495 (colored)
Sync with HEAD
Revision 1.490.6.1 / (download) - annotate - [select for diffs], Fri Jul 13 15:49:55 2018 UTC (4 years, 10 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE
Changes since 1.490: +3 -2
lines
Diff to previous 1.490 (colored)
Pull up following revision(s) (requested by ozaki-r in ticket #911): sys/kern/init_main.c: revision 1.498 sys/rump/net/lib/libnet/net_component.c: revision 1.10 sys/net/if.h: revision 1.264 sys/net/if.c: revision 1.429 Fix net.inet6.ip6.ifq node doesn't exist The node (and child nodes) is initialized in sysctl_net_pktq_setup, but the call of sysctl_net_pktq_setup is skipped unexpectedly. sysctl_net_pktq_setup is skipped if in6_present is false that indicates the netinet6 component isn't loaded on rump kernels. However the flag is accidentally always false because the flag is turned on in in6_dom_init that is called after if_sysctl_setup on both normal and rump kernels. Fix the issue by moving if_sysctl_setup after in6_dom_init (domaininit on normal kernels). This fix is ad-hoc but good enough for netbsd-8. We should refine the initialization order of network components in the future. Pointed out by hikaru@
Revision 1.498 / (download) - annotate - [select for diffs], Tue Jul 3 03:37:03 2018 UTC (4 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728
Changes since 1.497: +3 -2
lines
Diff to previous 1.497 (colored)
Fix net.inet6.ip6.ifq node doesn't exist The node (and child nodes) is initialized in sysctl_net_pktq_setup, but the call of sysctl_net_pktq_setup is skipped unexpectedly. sysctl_net_pktq_setup is skipped if in6_present is false that indicates the netinet6 component isn't loaded on rump kernels. However the flag is accidentally always false because the flag is turned on in in6_dom_init that is called after if_sysctl_setup on both normal and rump kernels. Fix the issue by moving if_sysctl_setup after in6_dom_init (domaininit on normal kernels). This fix is ad-hoc but good enough for netbsd-8. We should refine the initialization order of network components in the future. Pointed out by hikaru@
Revision 1.495.2.1 / (download) - annotate - [select for diffs], Sun Apr 22 07:20:27 2018 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.495: +5 -3
lines
Diff to previous 1.495 (colored)
Sync with HEAD
Revision 1.497 / (download) - annotate - [select for diffs], Mon Apr 16 14:51:59 2018 UTC (5 years, 1 month ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-base,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422
Branch point for: phil-wifi
Changes since 1.496: +3 -3
lines
Diff to previous 1.496 (colored)
Remove the rnewprocp argument from fork1(9) It's now unused and it can cause use-after-free scenarios as noted by <Mateusz Guzik>. Reference: http://mail-index.netbsd.org/tech-kern/2017/09/08/msg022267.html Sponsored by <The NetBSD Foundation>
Revision 1.496 / (download) - annotate - [select for diffs], Mon Apr 16 14:18:16 2018 UTC (5 years, 1 month ago) by kamil
Branch: MAIN
Changes since 1.495: +5 -3
lines
Diff to previous 1.495 (colored)
Set initproc inside start_init() This allows us to stop using the rnewprocp argument in fork1(9). The rnewprocp argument will be removed soon from the API, as it can cause use-after-free scenarios. No functional change intended. Noted by <Mateusz Guzik> Reference: http://mail-index.netbsd.org/tech-kern/2017/09/08/msg022267.html Sponsored by <The NetBSD Foundation>
Revision 1.495 / (download) - annotate - [select for diffs], Sun Feb 4 17:31:51 2018 UTC (5 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-base,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.494: +3 -2
lines
Diff to previous 1.494 (colored)
Add a proper defflag for GPROF, and include opt_gprof.h, otherwise we're not gonna go very far.
Revision 1.494 / (download) - annotate - [select for diffs], Tue Dec 26 03:58:03 2017 UTC (5 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.493: +3 -3
lines
Diff to previous 1.493 (colored)
Make cold __read_mostly like mp_online.
Revision 1.493 / (download) - annotate - [select for diffs], Fri Dec 15 16:05:51 2017 UTC (5 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.492: +15 -2
lines
Diff to previous 1.492 (colored)
add some assertions to verify that CPU_INFO_FOREACH() works right early in the boot process. this detects existing bugs on some platforms.
Revision 1.445.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:44 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.445.2.3: +77 -100
lines
Diff to previous 1.445.2.3 (colored) to branchpoint 1.445 (colored) next main 1.446 (colored)
update from HEAD
Revision 1.492 / (download) - annotate - [select for diffs], Fri Oct 27 12:25:15 2017 UTC (5 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.491: +1 -1
lines
Diff to previous 1.491 (colored)
Revert printf return value change.
Revision 1.491 / (download) - annotate - [select for diffs], Fri Oct 27 09:59:16 2017 UTC (5 years, 7 months ago) by utkarsh009
Branch: MAIN
Changes since 1.490: +3 -3
lines
Diff to previous 1.490 (colored)
[syzkaller] Cast all the printf's to (void *) > as a result of new printf(9) declaration.
Revision 1.490.4.1 / (download) - annotate - [select for diffs], Thu Apr 27 05:36:37 2017 UTC (6 years, 1 month ago) by pgoyette
Branch: prg-localcount2
Changes since 1.490: +5 -2
lines
Diff to previous 1.490 (colored) next main 1.491 (colored)
Restore all work from the former pgoyette-localcount branch (which is now abandoned doe to cvs merge botch). The branch now builds, and installs via anita. There are still some problems (cgd is non-functional and all atf tests time-out) but they will get resolved soon.
Revision 1.489.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:02 2017 UTC (6 years, 1 month ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.489: +6 -2
lines
Diff to previous 1.489 (colored) next main 1.490 (colored)
Sync with HEAD
Revision 1.482.2.4 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:47 2017 UTC (6 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.482.2.3: +6 -2
lines
Diff to previous 1.482.2.3 (colored) to branchpoint 1.482 (colored) next main 1.483 (colored)
Sync with HEAD
Revision 1.461.2.10 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:56 2017 UTC (6 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.461.2.9: +12 -2
lines
Diff to previous 1.461.2.9 (colored) to branchpoint 1.461 (colored) next main 1.462 (colored)
Sync with HEAD
Revision 1.490 / (download) - annotate - [select for diffs], Mon Jan 16 09:28:40 2017 UTC (6 years, 4 months ago) by ryo
Branch: MAIN
CVS Tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
netbsd-8-base,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: prg-localcount2,
netbsd-8
Changes since 1.489: +6 -2
lines
Diff to previous 1.489 (colored)
Make pfil(9) MP-safe (applying psref(9))
Revision 1.482.2.3 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:49 2017 UTC (6 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.482.2.2: +17 -2
lines
Diff to previous 1.482.2.2 (colored) to branchpoint 1.482 (colored)
Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
Revision 1.489 / (download) - annotate - [select for diffs], Thu Jan 5 03:22:20 2017 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.488: +7 -2
lines
Diff to previous 1.488 (colored)
Actually initialize the sysctl stuff for kernhist! Missed this file in earlier commits.
Revision 1.488 / (download) - annotate - [select for diffs], Mon Dec 26 23:12:33 2016 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
Changes since 1.487: +3 -2
lines
Diff to previous 1.487 (colored)
Add a BIOHIST option. As mentioned on tech-kern.
Revision 1.461.2.9 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:26 2016 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.461.2.8: +11 -10
lines
Diff to previous 1.461.2.8 (colored) to branchpoint 1.461 (colored)
Sync with HEAD
Revision 1.487 / (download) - annotate - [select for diffs], Wed Nov 16 12:31:33 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: MAIN
CVS Tags: nick-nhusb-base-20161204
Changes since 1.486: +6 -7
lines
Diff to previous 1.486 (colored)
Initialize the bufq code right before we're ready to load the strategy modules.
Revision 1.486 / (download) - annotate - [select for diffs], Wed Nov 16 10:42:14 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.485: +8 -2
lines
Diff to previous 1.485 (colored)
Define a new module class for the bufq_strategy modules. These need to be loaded and intialized before autoconfigure runs, since some devices (like disks and floppy drives) want to call bufq_alloc().
Revision 1.485 / (download) - annotate - [select for diffs], Wed Nov 16 00:46:46 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.484: +6 -2
lines
Diff to previous 1.484 (colored)
Modularize the various bufq strategies
Revision 1.482.2.2 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:17 2016 UTC (6 years, 7 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.482.2.1: +6 -14
lines
Diff to previous 1.482.2.1 (colored) to branchpoint 1.482 (colored)
Sync with HEAD
Revision 1.484 / (download) - annotate - [select for diffs], Wed Nov 2 00:11:59 2016 UTC (6 years, 7 months ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104
Changes since 1.483: +2 -10
lines
Diff to previous 1.483 (colored)
* Split sys/kern/sys_process.c into three parts: 1 - ptrace(2) syscall for native emulation 2 - common ptrace(2) syscall code (shared with compat_netbsd32) 3 - support routines that are shared with PROCFS and/or KTRACE * Add module glue for #1 and #2. Both modules will be built-in to the kernel if "options PTRACE" is included in the config file (this is the default, defined in sys/conf/std). * Mark the ptrace(2) syscall as modular in syscalls.master (generated files will be committed shortly). * Conditionalize all remaining portions of PTRACE code on a new kernel option PTRACE_HOOKS. XXX Instead of PROCFS depending on 'options PTRACE', we should probably just add a procfs attribute to the sys/kern/sys_process.c file's entry in files.kern, and add PROCFS to the "#if defineds" for process_domem(). It's really confusing to have two different ways of requiring this file.
Revision 1.461.2.8 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:02 2016 UTC (6 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.461.2.7: +6 -6
lines
Diff to previous 1.461.2.7 (colored) to branchpoint 1.461 (colored)
Sync with HEAD
Revision 1.483 / (download) - annotate - [select for diffs], Sat Sep 17 12:09:22 2016 UTC (6 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20161004
Changes since 1.482: +6 -6
lines
Diff to previous 1.482 (colored)
This is just a temporary stack that holds fake arguments, and that gets remapped as RW in sys_execve. Still, in this small window, it does not need to be executable.
Revision 1.482.2.1 / (download) - annotate - [select for diffs], Sun Jul 17 21:39:17 2016 UTC (6 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.482: +5 -2
lines
Diff to previous 1.482 (colored)
Instead of initializing the 'pserialize_t psz' while holding a lock, create a new devsw_detach_init() routine to hande this, and call it after the pserialize system has been initialized.
Revision 1.461.2.7 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:20 2016 UTC (6 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.461.2.6: +3 -3
lines
Diff to previous 1.461.2.6 (colored) to branchpoint 1.461 (colored)
Sync with HEAD
Revision 1.482 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:43 2016 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907,
localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.481: +3 -3
lines
Diff to previous 1.481 (colored)
KNF. Remove extra spaces. No functional change.
Revision 1.481 / (download) - annotate - [select for diffs], Sat Jun 4 21:10:56 2016 UTC (7 years ago) by palle
Branch: MAIN
Changes since 1.480: +3 -3
lines
Diff to previous 1.480 (colored)
Added missing "it" to comment in start_init()
Revision 1.461.2.6 / (download) - annotate - [select for diffs], Sun May 29 08:44:37 2016 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.461.2.5: +2 -6
lines
Diff to previous 1.461.2.5 (colored) to branchpoint 1.461 (colored)
Sync with HEAD
Revision 1.480 / (download) - annotate - [select for diffs], Sun May 22 14:26:09 2016 UTC (7 years ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.479: +2 -6
lines
Diff to previous 1.479 (colored)
reduce #ifdef mess caused by PaX
Revision 1.461.2.5 / (download) - annotate - [select for diffs], Fri Apr 22 15:44:16 2016 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.461.2.4: +4 -4
lines
Diff to previous 1.461.2.4 (colored) to branchpoint 1.461 (colored)
Sync with HEAD
Revision 1.479 / (download) - annotate - [select for diffs], Mon Mar 28 16:45:44 2016 UTC (7 years, 2 months ago) by macallan
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422
Changes since 1.478: +4 -4
lines
Diff to previous 1.478 (colored)
fix this properly. uap is supposed to hold init's argv[], so it's 3 * sizeof(char *), the bug was to copyout(..., sizeof(args)) which is an array of syscallargs, not argv *
Revision 1.478 / (download) - annotate - [select for diffs], Mon Mar 28 15:45:18 2016 UTC (7 years, 2 months ago) by macallan
Branch: MAIN
Changes since 1.477: +3 -3
lines
Diff to previous 1.477 (colored)
do not assume that syscallarg(const char *) and (char *) are the same size first step to make n32 kernels run binaries again
Revision 1.461.2.4 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:05 2015 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.461.2.3: +27 -47
lines
Diff to previous 1.461.2.3 (colored) to branchpoint 1.461 (colored)
Sync with HEAD (as of 26th Dec)
Revision 1.477 / (download) - annotate - [select for diffs], Tue Dec 8 20:36:15 2015 UTC (7 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160319,
nick-nhusb-base-20151226
Changes since 1.476: +5 -5
lines
Diff to previous 1.476 (colored)
Replace DIOCGPART -> DIOCGPARTINFO which returns the data needed instead of pointers.
Revision 1.476 / (download) - annotate - [select for diffs], Mon Dec 7 11:38:46 2015 UTC (7 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.475: +2 -6
lines
Diff to previous 1.475 (colored)
Modularize drvctl(4)
Revision 1.475 / (download) - annotate - [select for diffs], Thu Nov 26 01:41:20 2015 UTC (7 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.474: +4 -4
lines
Diff to previous 1.474 (colored)
Fix build dependency of if_llatbl.c if_llatbl.c is required if inet or inet6 is enabled. Depending on ether doesn't suit for NDP case.
Revision 1.474 / (download) - annotate - [select for diffs], Fri Nov 20 18:34:17 2015 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.473: +17 -14
lines
Diff to previous 1.473 (colored)
get rid of the suword {m,j}umbo and check return of copyout.
Revision 1.473 / (download) - annotate - [select for diffs], Fri Nov 6 02:26:42 2015 UTC (7 years, 7 months ago) by pgoyette
Branch: MAIN
Changes since 1.472: +2 -26
lines
Diff to previous 1.472 (colored)
In sysv_sem.c, defer establishment of exithook so we can initialize the module code from module_init() rather than waiting until after calling exec_init(). Use a RUN_ONCE routine at entry to each sys_sem* syscall to establish the exithook, and no longer KASSERT that the hook has been set before removing it. (A manually loaded module can be unloaded before any syscalls have been invoked.) Remove the conditional calls to the various xxx_init() routines from init_main.c - we now rely on module_init() to handle initialization. Let each sub-component's xxx_init() routine handle its own sysctl sub-tree initialization; this removes another set of #ifdef ugliness. Tested both built-in and loadable versions and verified that atf test kernel/t_sysv passes.
Revision 1.472 / (download) - annotate - [select for diffs], Thu Oct 29 00:27:08 2015 UTC (7 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.471: +4 -2
lines
Diff to previous 1.471 (colored)
introduce a new way of handling SYSCALL_DEBUG messages -- send them to a kernel history, settable via the SCDEBUG_KERNHIST flag. this requires a fairly significantly different set of messages than the normal debug as histories are restricted: - each message can take one literal format string and upto 4 arguments - the arguments can not be strings if you want vmstat -u to work (this could be fixed, and i might, as it would be nice if we could print syscall names as well as numbers.) introduce SCDEBUG_DEFAULT that is settable in the kernel config. fix a problem in kernhist_dump_histories() where it would crash when a history with no allocated entries was found. extend kernhist_dumpmask() to handle the usbhist and scdebughist.
Revision 1.471 / (download) - annotate - [select for diffs], Sat Oct 17 13:52:52 2015 UTC (7 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.470: +5 -2
lines
Diff to previous 1.470 (colored)
initialize MODULE_CLASS_DRIVER modules before the drivers themselves are loaded during autoconfiguration
Revision 1.461.2.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:07 2015 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.461.2.2: +8 -3
lines
Diff to previous 1.461.2.2 (colored) to branchpoint 1.461 (colored)
Sync with HEAD
Revision 1.470 / (download) - annotate - [select for diffs], Mon Sep 14 01:40:03 2015 UTC (7 years, 8 months ago) by uebayasi
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.469: +3 -3
lines
Diff to previous 1.469 (colored)
Handle splash image generation better.
Revision 1.469 / (download) - annotate - [select for diffs], Mon Aug 31 16:46:14 2015 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.468: +5 -2
lines
Diff to previous 1.468 (colored)
Fix building kernels w/o ether
Revision 1.468 / (download) - annotate - [select for diffs], Mon Aug 31 08:02:44 2015 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.467: +4 -2
lines
Diff to previous 1.467 (colored)
Hook up lltable/llentry with the kernel (and rumpkernel) It is built and initialized on bootup, but there is no user for now. Most codes in in.c are imported from FreeBSD as well as lltable/llentry.
Revision 1.461.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:21 2015 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.461.2.1: +17 -33
lines
Diff to previous 1.461.2.1 (colored) to branchpoint 1.461 (colored)
Sync with HEAD
Revision 1.467 / (download) - annotate - [select for diffs], Wed May 6 15:57:08 2015 UTC (8 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.466: +2 -3
lines
Diff to previous 1.466 (colored)
Remove miscfs/syncfs and - move the syncer into kern/vfs_subr.c. - change the syncer to process the mountlist and VFS_SYNC as appropriate. - use an API for mount points similiar to the API for vnodes: - vfs_syncer_add_to_worklist(struct mount *mp) to add - vfs_syncer_remove_from_worklist(struct mount *mp) to remove a mount. No objections on tech-kern@
Revision 1.466 / (download) - annotate - [select for diffs], Thu Apr 30 15:22:32 2015 UTC (8 years, 1 month ago) by nat
Branch: MAIN
Changes since 1.465: +2 -3
lines
Diff to previous 1.465 (colored)
Remove unintended whitespace.
Revision 1.465 / (download) - annotate - [select for diffs], Thu Apr 30 13:46:47 2015 UTC (8 years, 1 month ago) by nat
Branch: MAIN
Changes since 1.464: +17 -2
lines
Diff to previous 1.464 (colored)
Added a new option for embedding a splash screen into kernel. Add: options SPLASHSCREEN makeoptions SPLASHSCREEN_IMAGE="path/to/image" to your config file. So far it will work on amd64 and RPI/RPI2. This commit was with ideas, help, and OK from jmcneill@.
Revision 1.464 / (download) - annotate - [select for diffs], Mon Apr 27 07:51:28 2015 UTC (8 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.463: +2 -17
lines
Diff to previous 1.463 (colored)
Replace a home-grown run-once implementation with the real RUN_ONCE()
Revision 1.463 / (download) - annotate - [select for diffs], Thu Apr 23 23:23:08 2015 UTC (8 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.462: +8 -22
lines
Diff to previous 1.462 (colored)
Update initialization of sysmon and its components. These are now handled as part of module initialization, and do not require manual invocation. sysmon_taskq is special, since it is potentially used by several non-module users who may need the facility before modules are fully ready.
Revision 1.461.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:20 2015 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.461: +5 -2
lines
Diff to previous 1.461 (colored)
Sync with HEAD
Revision 1.458.2.2 / (download) - annotate - [select for diffs], Mon Mar 9 08:56:01 2015 UTC (8 years, 3 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Changes since 1.458.2.1: +5 -2
lines
Diff to previous 1.458.2.1 (colored) to branchpoint 1.458 (colored) next main 1.459 (colored)
Pull up following revision(s) (requested by mrg in ticket #576): sys/kern/init_main.c: revision 1.462 sys/kern/subr_autoconf.c: revision 1.234 sys/sys/device.h: revision 1.147 wait for config_mountroot threads to complete before we tell init it can start up. this solves the problem where a console device needs mountroot to complete attaching, and must create wsdisplay0 before init tries to open /dev/console. fixes PR#49709. XXX: pullup-7
Revision 1.462 / (download) - annotate - [select for diffs], Fri Mar 6 09:28:15 2015 UTC (8 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.461: +5 -2
lines
Diff to previous 1.461 (colored)
wait for config_mountroot threads to complete before we tell init it can start up. this solves the problem where a console device needs mountroot to complete attaching, and must create wsdisplay0 before init tries to open /dev/console. fixes PR#49709. XXX: pullup-7
Revision 1.461 / (download) - annotate - [select for diffs], Thu Nov 27 14:38:09 2014 UTC (8 years, 6 months ago) by uebayasi
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.460: +5 -5
lines
Diff to previous 1.460 (colored)
Yield the main thread only after exiting critical section.
Revision 1.460 / (download) - annotate - [select for diffs], Sat Oct 4 11:15:44 2014 UTC (8 years, 8 months ago) by riastradh
Branch: MAIN
Changes since 1.459: +2 -5
lines
Diff to previous 1.459 (colored)
Make uuidgen(2) generate v4 (random) uuids. Rip out all the needless MAC address and date/time leakage. No more uuid_init necessary, nor contention over a global uuid state. While here, simplify uuid_snprintf and fix a strict aliasing violation.
Revision 1.445.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:28 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.445.2.2: +17 -2
lines
Diff to previous 1.445.2.2 (colored) to branchpoint 1.445 (colored)
Rebase to HEAD as of a few days ago.
Revision 1.458.2.1 / (download) - annotate - [select for diffs], Fri Aug 15 12:58:45 2014 UTC (8 years, 9 months ago) by martin
Branch: netbsd-7
Changes since 1.458: +5 -4
lines
Diff to previous 1.458 (colored)
Pull up following revision(s) (requested by riastradh in ticket #23): sys/rump/librump/rumpkern/rump.c: revision 1.310 sys/rump/librump/rumpkern/rump.c: revision 1.309 sys/kern/init_main.c: revision 1.459 Defer cprng_fast_init until CPUs are detected. Restore placement of percpu_init in rump_init. Probably doesn't matter, but let's avoid needless churn around the real bug fix.
Revision 1.459 / (download) - annotate - [select for diffs], Thu Aug 14 16:27:55 2014 UTC (8 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.458: +3 -2
lines
Diff to previous 1.458 (colored)
Defer cprng_fast_init until CPUs are detected.
Revision 1.458 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:36 2014 UTC (8 years, 10 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base,
netbsd-7-base
Branch point for: netbsd-7
Changes since 1.457: +10 -2
lines
Diff to previous 1.457 (colored)
Merge tls-earlyentropy branch into HEAD.
Revision 1.454.2.4 / (download) - annotate - [select for diffs], Sun Aug 10 08:10:31 2014 UTC (8 years, 10 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.454.2.3: +5 -2
lines
Diff to previous 1.454.2.3 (colored) to branchpoint 1.454 (colored) next main 1.455 (colored)
The printf entropy source seems to have a lock-recursion problem. Temporarily disable it unless options RND_PRINTF is set.
Revision 1.454.2.3 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:58 2014 UTC (8 years, 10 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.454.2.2: +7 -2
lines
Diff to previous 1.454.2.2 (colored) to branchpoint 1.454 (colored)
Rebase.
Revision 1.454.2.2 / (download) - annotate - [select for diffs], Thu Jul 17 14:03:33 2014 UTC (8 years, 10 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.454.2.1: +4 -2
lines
Diff to previous 1.454.2.1 (colored) to branchpoint 1.454 (colored)
Adjustments to the "earlyentropy" branch in response to the various discussions beginning with my initial proposal http://mail-index.netbsd.org/tech-kern/2014/04/08/msg016876.html and particularly the long discussion of cprng_fast() performance (e.g. https://mail-index.netbsd.org/tech-crypto/2014/04/21/msg000642.html). In particular: * Per-CPU, lockless cprng_fast replacement using Dennis Ferguson's "ccrand" implementation of ChaCha8. * libkern arc4random() is gone, gone, gone. * Entropy estimator reverted to 32-bit recordkeeping and timestamps per Dennis' comments and analysis. * LZF entropy estimator removed: it required a great deal of state, and rejected only truly pathological input. I have not yet reverted the changes that provide LZF in the kernel as generic functionality; I will likely revert those changes prior to any merge of this branch to HEAD.
Revision 1.457 / (download) - annotate - [select for diffs], Mon Jul 7 20:14:43 2014 UTC (8 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-earlyentropy-base
Changes since 1.456: +3 -2
lines
Diff to previous 1.456 (colored)
Initialize ubchist earlier.
Revision 1.436.2.5 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.436.2.4: +15 -25
lines
Diff to previous 1.436.2.4 (colored) to branchpoint 1.436 (colored) next main 1.437 (colored)
sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.456 / (download) - annotate - [select for diffs], Mon May 19 23:33:19 2014 UTC (9 years ago) by rmind
Branch: MAIN
Changes since 1.455: +5 -3
lines
Diff to previous 1.455 (colored)
Move ipi_sysinit() after configure2(); we want secondary CPUs attached. Might revisit if the there will be a need to use this interface earlier.
Revision 1.455 / (download) - annotate - [select for diffs], Mon May 19 22:47:54 2014 UTC (9 years ago) by rmind
Branch: MAIN
Changes since 1.454: +4 -2
lines
Diff to previous 1.454 (colored)
Implement MI IPI interface with cross-call support.
Revision 1.450.2.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (9 years ago) by rmind
Branch: rmind-smpnet
Changes since 1.450.2.1: +3 -2
lines
Diff to previous 1.450.2.1 (colored) to branchpoint 1.450 (colored) next main 1.451 (colored)
sync with head
Revision 1.454.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 02:20:00 2014 UTC (9 years, 2 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.454: +5 -2
lines
Diff to previous 1.454 (colored)
Get more entropy into the system early: 1) Add device attach timings from autoconf. 2) Accumulate the output of kernel printf (as well as the times when it's called) and add this periodically. To avoid issues with recursion through diagnostic printfs, we use SHA512 to accumulate the printf output, then mix in its output. 3) Add all sysctl settings -- mixes in the hostname and likely a bit more.
Revision 1.454 / (download) - annotate - [select for diffs], Wed Oct 2 21:38:55 2013 UTC (9 years, 8 months ago) by apb
Branch: MAIN
CVS Tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.453: +3 -2
lines
Diff to previous 1.453 (colored)
Add "/rescue/init" to the end of the initpaths list, which now contains: { "/sbin/init", "/sbin/oinit", "/sbin/init.bak", "/rescue/init", NULL }. XXX: The kernel's use of initpaths is not documented.
Revision 1.450.2.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:35 2013 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.450: +5 -4
lines
Diff to previous 1.450 (colored)
sync with head
Revision 1.453 / (download) - annotate - [select for diffs], Wed Aug 28 12:50:18 2013 UTC (9 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.452: +5 -4
lines
Diff to previous 1.452 (colored)
Tighten initialization of rnd softints. - Do rnd_init_softint as early as possible in main, after configure2, and before networking is initialized. - Initialize the rnd_wakeup softint in rnd_init_softint, not lazily in rnd_schedule_wakeup. ok tls
Revision 1.452 / (download) - annotate - [select for diffs], Tue Aug 27 19:30:10 2013 UTC (9 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.451: +2 -3
lines
Diff to previous 1.451 (colored)
Back out the recent rnd stop-gap/stop-gap/stop-gap measures. This reverts sys/dev/rnd_private.h -> r1.1 sys/kern/init_main.c -> r1.450 sys/kern/kern_rndq.c -> r1.14 sys/kern/kern_rndsink.c -> r1.2 Parts of these changes will be added back, and the rndsource callbacks will be fixed to avoid the lock recursion bug that motivated the stop-gaps in the first place. ok tls
Revision 1.451 / (download) - annotate - [select for diffs], Sun Aug 25 21:12:56 2013 UTC (9 years, 9 months ago) by tls
Branch: MAIN
Changes since 1.450: +5 -4
lines
Diff to previous 1.450 (colored)
Attempt to resolve locking issues at kernel startup on platforms with hardware RNGs using the polling mode of operation: 1) Initialize the rng subsystem soft interrupts as early in kernel startup as seems safe (we have no MI guarantee that softints are working at all until configure2() returns, AFAICT). This should have the rnd subsystem able to process events via softint before the network subsystem (a notorious early user of entropy) starts. 2) Remove the shortcut calls to rnd_process_events() from rnd_schedule_process(), with the result that until the softint is installed rnd_process_events() is a NOP. 3) Directly call rnd_process_events() in rnd_extract_data(), rnd_maybe_extract(), and rnd_init_softint(). This should suck up any samples actually collected as early as possible.
Revision 1.445.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:57 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.445.2.1: +11 -12
lines
Diff to previous 1.445.2.1 (colored) to branchpoint 1.445 (colored)
resync from head
Revision 1.450 / (download) - annotate - [select for diffs], Thu Jun 20 23:21:41 2013 UTC (9 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.449: +4 -2
lines
Diff to previous 1.449 (colored)
Initialize the rnd softint explicitly via a function late in main. Avoids LOCKDEBUG panic since softint_establish() was called via wdcintr -> wddone from an interrupt context and tried to acquire a non-spin mutex.
Revision 1.449 / (download) - annotate - [select for diffs], Wed Jun 5 19:01:26 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.448: +4 -4
lines
Diff to previous 1.448 (colored)
IPSEC has not come in two speeds for a long time now (IPSEC == kame, FAST_IPSEC). Make everything refer to IPSEC to avoid confusion.
Revision 1.448 / (download) - annotate - [select for diffs], Mon Mar 18 13:36:21 2013 UTC (10 years, 2 months ago) by para
Branch: MAIN
CVS Tags: khorben-n900,
agc-symver-base,
agc-symver
Changes since 1.447: +7 -10
lines
Diff to previous 1.447 (colored)
calculate vnode cache size based on the resource it gets allocated from this stops setting kern.maxvnodes to high so it exhausts available space in kmem http://mail-index.netbsd.org/tech-kern/2013/03/08/msg015095.html
Revision 1.441.2.3 / (download) - annotate - [select for diffs], Thu Mar 14 16:33:10 2013 UTC (10 years, 2 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1
Changes since 1.441.2.2: +1 -12
lines
Diff to previous 1.441.2.2 (colored) to branchpoint 1.441 (colored) next main 1.442 (colored)
Pull up following revision(s) (requested by pgoyette in ticket #837): sys/compat/common/kern_time_50.c: revision 1.25 sys/kern/init_sysctl.c: revision 1.195 sys/kern/init_main.c: revision 1.447 sys/compat/common/compat_util.h: revision 1.23 sys/compat/common/compat_mod.h: revision 1.1 sys/compat/common/compat_mod.c: revision 1.16 sys/compat/common/compat_mod.c: revision 1.17 sys/compat/common/compat_mod.c: revision 1.18 sys/compat/common/vfs_syscalls_43.c: revision 1.55 Move boottime50 and its associated sysctl into the compat module. As noted on tech-kern. Should fix PR/47579. OK christos@ Will request pull-up to 6.0 in a few days. Wrap sysctl_teardown(&compat_clog) with the appropriate #if defined()s remove empty #if
Revision 1.445.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:49 2013 UTC (10 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.445: +4 -15
lines
Diff to previous 1.445 (colored)
resync with head
Revision 1.447 / (download) - annotate - [select for diffs], Thu Feb 21 01:39:55 2013 UTC (10 years, 3 months ago) by pgoyette
Branch: MAIN
Changes since 1.446: +3 -14
lines
Diff to previous 1.446 (colored)
Move boottime50 and its associated sysctl into the compat module. As noted on tech-kern. Should fix PR/47579. OK christos@ Will request pull-up to 6.0 in a few days.
Revision 1.446 / (download) - annotate - [select for diffs], Sat Feb 9 00:31:21 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.445: +3 -3
lines
Diff to previous 1.445 (colored)
printflike maintenance.
Revision 1.436.2.4 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:26 2012 UTC (10 years, 7 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.436.2.3: +70 -2
lines
Diff to previous 1.436.2.3 (colored) to branchpoint 1.436 (colored)
sync with head
Revision 1.441.2.2 / (download) - annotate - [select for diffs], Wed Aug 8 15:51:06 2012 UTC (10 years, 10 months ago) by martin
Branch: netbsd-6
CVS Tags: netbsd-6-1-RC1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Changes since 1.441.2.1: +4 -9
lines
Diff to previous 1.441.2.1 (colored) to branchpoint 1.441 (colored)
Pull up following revision(s) (requested by mlelstv in ticket #466): sys/arch/amiga/amiga/autoconf.c: revision 1.113 sys/arch/rs6000/rs6000/autoconf.c: revision 1.4 sys/arch/emips/emips/autoconf.c: revision 1.6 sys/arch/sandpoint/sandpoint/autoconf.c: revision 1.27 sys/arch/evbmips/alchemy/autoconf.c: revision 1.18 sys/arch/sgimips/sgimips/autoconf.c: revision 1.43 sys/arch/atari/atari/autoconf.c: revision 1.63 sys/arch/powerpc/oea/ofw_autoconf.c: revision 1.17 sys/arch/mmeye/mmeye/autoconf.c: revision 1.9 distrib/sets/lists/comp/mi: revision 1.1771 sys/arch/mipsco/mipsco/autoconf.c: revision 1.25 sys/arch/iyonix/iyonix/autoconf.c: revision 1.14 sys/arch/hp300/hp300/autoconf.c: revision 1.100 sys/kern/init_main.c: revision 1.445 sys/arch/pmax/pmax/autoconf.c: revision 1.79 sys/arch/netwinder/netwinder/autoconf.c: revision 1.11 sys/arch/dreamcast/dreamcast/autoconf.c: revision 1.10 sys/arch/ibmnws/ibmnws/autoconf.c: revision 1.12 sys/arch/evbppc/ev64260/autoconf.c: revision 1.17 sys/arch/evbmips/gdium/autoconf.c: revision 1.5 sys/arch/algor/algor/autoconf.c: revision 1.21 share/man/man9/Makefile: revision 1.367 sys/arch/ews4800mips/ews4800mips/autoconf.c: revision 1.9 sys/arch/amigappc/amigappc/autoconf.c: revision 1.5 sys/arch/x86/x86/x86_autoconf.c: revision 1.65 sys/arch/acorn26/acorn26/autoconf.c: revision 1.9 sys/arch/mvmeppc/mvmeppc/autoconf.c: revision 1.13 sys/arch/vax/vax/autoconf.c: revision 1.94 sys/arch/usermode/dev/cpu.c: revision 1.72 sys/arch/evbppc/virtex/autoconf.c: revision 1.5 sys/arch/next68k/next68k/autoconf.c: revision 1.26 sys/arch/mac68k/mac68k/autoconf.c: revision 1.73 sys/arch/ia64/ia64/autoconf.c: revision 1.6 sys/arch/evbppc/obs405/obs405_autoconf.c: revision 1.6 share/man/man9/cpu_rootconf.9: revision 1.7 sys/arch/landisk/landisk/autoconf.c: revision 1.6 sys/arch/evbmips/malta/autoconf.c: revision 1.16 sys/arch/sun3/sun3/autoconf.c: revision 1.76 sys/arch/evbppc/explora/autoconf.c: revision 1.13 sys/arch/sun3/sun3/autoconf.c: revision 1.77 sys/arch/evbmips/loongson/autoconf.c: revision 1.3 sys/arch/evbmips/atheros/autoconf.c: revision 1.11 sys/arch/sparc64/sparc64/autoconf.c: revision 1.188 sys/arch/acorn32/acorn32/autoconf.c: revision 1.18 sys/arch/evbarm/evbarm/autoconf.c: revision 1.13 sys/arch/cobalt/cobalt/autoconf.c: revision 1.30 sys/arch/mvme68k/mvme68k/autoconf.c: revision 1.46 sys/arch/hp700/hp700/autoconf.c: revision 1.48 sys/arch/evbmips/adm5120/autoconf.c: revision 1.5 sys/arch/hpcmips/hpcmips/autoconf.c: revision 1.25 sys/arch/alpha/alpha/autoconf.c: revision 1.52 sys/arch/sparc/sparc/autoconf.c: revision 1.244 sys/arch/evbppc/pmppc/autoconf.c: revision 1.7 sys/arch/bebox/bebox/autoconf.c: revision 1.25 sys/arch/luna68k/luna68k/autoconf.c: revision 1.13 sys/arch/hpcarm/hpcarm/autoconf.c: revision 1.20 sys/arch/evbppc/walnut/autoconf.c: revision 1.21 sys/arch/cesfic/cesfic/autoconf.c: revision 1.26 sys/arch/cats/cats/autoconf.c: revision 1.17 sys/arch/x68k/x68k/autoconf.c: revision 1.67 sys/arch/news68k/news68k/autoconf.c: revision 1.21 sys/arch/arc/arc/autoconf.c: revision 1.34 sys/arch/evbsh3/evbsh3/autoconf.c: revision 1.11 sys/sys/conf.h: revision 1.143 sys/arch/evbmips/rasoc/autoconf.c: revision 1.3 sys/arch/hpcsh/hpcsh/autoconf.c: revision 1.26 sys/arch/sun68k/sun68k/autoconf.c: revision 1.29 sys/arch/evbmips/rmixl/autoconf.c: revision 1.6 sys/arch/zaurus/zaurus/autoconf.c: revision 1.12 sys/arch/xen/x86/autoconf.c: revision 1.15 sys/arch/evbppc/mpc85xx/autoconf.c: revision 1.6 sys/arch/shark/shark/autoconf.c: revision 1.18 sys/arch/prep/prep/autoconf.c: revision 1.25 sys/arch/newsmips/newsmips/autoconf.c: revision 1.36 sys/arch/sbmips/sbmips/autoconf.c: revision 1.8 Do not call setroot() from MD code and from MI code, which has unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732. No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information as a side effect. Instead call MI rootconf() from MD code which makes rootconf() now a wrapper to setroot(). Adjust several MD routines to set the global booted_device,booted_partition variables instead of passing partial information to setroot(). Make cpu_rootconf(9) describe the calling order. add rootconf(9) as a link to cpu_rootconf(9) make this compile again
Revision 1.445 / (download) - annotate - [select for diffs], Sun Jul 29 18:05:48 2012 UTC (10 years, 10 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.444: +6 -11
lines
Diff to previous 1.444 (colored)
Do not call setroot() from MD code and from MI code, which has unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732. No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information as a side effect. Instead call MI rootconf() from MD code which makes rootconf() now a wrapper to setroot(). Adjust several MD routines to set the global booted_device,booted_partition variables instead of passing partial information to setroot(). Make cpu_rootconf(9) describe the calling order.
Revision 1.441.2.1 / (download) - annotate - [select for diffs], Thu Jul 5 18:12:46 2012 UTC (10 years, 11 months ago) by riz
Branch: netbsd-6
Changes since 1.441: +76 -3
lines
Diff to previous 1.441 (colored)
Pull up following revision(s) (requested by mlelstv in ticket #402): sys/dev/vnd.c: revision 1.221 sys/kern/init_main.c: revision 1.443 sys/kern/init_main.c: revision 1.444 sys/dev/dkwedge/dk.c: revision 1.64 sys/arch/x86/x86/x86_autoconf.c: revision 1.63 sys/arch/sparc64/sparc64/autoconf.c: revision 1.187 sys/sys/device.h: revision 1.141 sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.17 sys/kern/kern_subr.c: revision 1.213 sys/arch/zaurus/zaurus/autoconf.c: revision 1.11 sys/arch/xen/x86/autoconf.c: revision 1.14 sys/sys/disk.h: revision 1.57 Use the label's packname to create wedge names instead of the classic device names. Fall back to classic device names when the label has an empty name or the default name 'fictitious'. autodiscover wedges Make detection of root on wedges (dk(4)) machine independent. Remove MD code for x86, xen, sparc64. Make detection of root on wedges (dk(4)) machine independent. Remove MD code for zaurus. Do not try to find the wedge we booted from if opendisk(booted_device) failed.
Revision 1.444 / (download) - annotate - [select for diffs], Thu Jun 14 20:18:16 2012 UTC (10 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.443: +6 -2
lines
Diff to previous 1.443 (colored)
Do not try to find the wedge we booted from if opendisk(booted_device) failed.
Revision 1.443 / (download) - annotate - [select for diffs], Sun Jun 10 17:05:18 2012 UTC (11 years ago) by mlelstv
Branch: MAIN
Changes since 1.442: +72 -3
lines
Diff to previous 1.442 (colored)
Make detection of root on wedges (dk(4)) machine independent. Remove MD code for x86, xen, sparc64.
Revision 1.436.2.3 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:22 2012 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.436.2.2: +17 -16
lines
Diff to previous 1.436.2.2 (colored) to branchpoint 1.436 (colored)
sync with head
Revision 1.437.2.2 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:44 2012 UTC (11 years, 3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.437.2.1: +2 -9
lines
Diff to previous 1.437.2.1 (colored) to branchpoint 1.437 (colored) next main 1.438 (colored)
sync to -current.
Revision 1.442 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:47 2012 UTC (11 years, 3 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base10
Changes since 1.441: +2 -9
lines
Diff to previous 1.441 (colored)
Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! Approved by core@.
Revision 1.437.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:26 2012 UTC (11 years, 3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.437: +9 -5
lines
Diff to previous 1.437 (colored)
merge to -current.
Revision 1.441 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:07 2012 UTC (11 years, 4 months ago) by tls
Branch: MAIN
CVS Tags: netbsd-6-base,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.440: +3 -3
lines
Diff to previous 1.440 (colored)
Entropy-pool implementation move and cleanup. 1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev. 2) Remove use of NRND as test for presence of entropy-pool code throughout source tree. 3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit. 4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources. 5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each. ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
Revision 1.440 / (download) - annotate - [select for diffs], Sun Jan 29 22:55:40 2012 UTC (11 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.439: +3 -3
lines
Diff to previous 1.439 (colored)
- Add mi_cpu_init() and initialise cpu_lock and kcpuset_attached/running there. - Add kcpuset_running which gets set in idle_loop(). - Use kcpuset_running in pserialize_perform().
Revision 1.439 / (download) - annotate - [select for diffs], Tue Jan 24 20:03:36 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.438: +3 -3
lines
Diff to previous 1.438 (colored)
Use and define ALIGN() ALIGN_POINTER() and STACK_ALIGN() consistently, and avoid definining them in 10 different places if not needed.
Revision 1.371.2.3.4.2 / (download) - annotate - [select for diffs], Tue Dec 27 16:35:13 2011 UTC (11 years, 5 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.371.2.3.4.1: +8 -7
lines
Diff to previous 1.371.2.3.4.1 (colored) to branchpoint 1.371.2.3 (colored) next main 1.371.2.4 (colored)
Backport joinable kthread support (for flash infrastructure).
Revision 1.438 / (download) - annotate - [select for diffs], Sun Dec 4 19:24:58 2011 UTC (11 years, 6 months ago) by jym
Branch: MAIN
Changes since 1.437: +6 -2
lines
Diff to previous 1.437 (colored)
Implement the register/deregister/evaluation API for secmodel(9). It allows registration of callbacks that can be used later for cross-secmodel "safe" communication. When a secmodel wishes to know a property maintained by another secmodel, it has to submit a request to it so the other secmodel can proceed to evaluating the request. This is done through the secmodel_eval(9) call; example: bool isroot; error = secmodel_eval("org.netbsd.secmodel.suser", "is-root", cred, &isroot); if (error == 0 && !isroot) result = KAUTH_RESULT_DENY; This one asks the suser module if the credentials are assumed to be root when evaluated by suser module. If the module is present, it will respond. If absent, the call will return an error. Args and command are arbitrarily defined; it's up to the secmodel(9) to document what it expects. Typical example is securelevel testing: when someone wants to know whether securelevel is raised above a certain level or not, the caller has to request this property to the secmodel_securelevel(9) module. Given that securelevel module may be absent from system's context (thus making access to the global "securelevel" variable impossible or unsafe), this API can cope with this absence and return an error. We are using secmodel_eval(9) to implement a secmodel_extensions(9) module, which plugs with the bsd44, suser and securelevel secmodels to provide the logic behind curtain, usermount and user_set_cpu_affinity modes, without adding hooks to traditional secmodels. This solves a real issue with the current secmodel(9) code, as usermount or user_set_cpu_affinity are not really tied to secmodel_suser(9). The secmodel_eval(9) is also used to restrict security.models settings when securelevel is above 0, through the "is-securelevel-above" evaluation: - curtain can be enabled any time, but cannot be disabled if securelevel is above 0. - usermount/user_set_cpu_affinity can be disabled any time, but cannot be enabled if securelevel is above 0. Regarding sysctl(7) entries: curtain and usermount are now found under security.models.extensions tree. The security.curtain and vfs.generic.usermount are still accessible for backwards compat. Documentation is incoming, I am proof-reading my writings. Written by elad@, reviewed and tested (anita test + interact for rights tests) by me. ok elad@. See also http://mail-index.netbsd.org/tech-security/2011/11/29/msg000422.html XXX might consider va0 mapping too. XXX Having a secmodel(9) specific printf (like aprint_*) for reporting secmodel(9) errors might be a good idea, but I am not sure on how to design such a function right now.
Revision 1.436.2.2 / (download) - annotate - [select for diffs], Sun Nov 20 10:52:33 2011 UTC (11 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.436.2.1: +0 -4
lines
Diff to previous 1.436.2.1 (colored) to branchpoint 1.436 (colored)
- fix page loaning XXX make O->A loaning further - add some statistics
Revision 1.437 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:25 2011 UTC (11 years, 6 months ago) by tls
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.436: +12 -8
lines
Diff to previous 1.436 (colored)
First step of random number subsystem rework described in <20111022023242.BA26F14A158@mail.netbsd.org>. This change includes the following: An initial cleanup and minor reorganization of the entropy pool code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are fixed. Some effort is made to accumulate entropy more quickly at boot time. A generic interface, "rndsink", is added, for stream generators to request that they be re-keyed with good quality entropy from the pool as soon as it is available. The arc4random()/arc4randbytes() implementation in libkern is adjusted to use the rndsink interface for rekeying, which helps address the problem of low-quality keys at boot time. An implementation of the FIPS 140-2 statistical tests for random number generator quality is provided (libkern/rngtest.c). This is based on Greg Rose's implementation from Qualcomm. A new random stream generator, nist_ctr_drbg, is provided. It is based on an implementation of the NIST SP800-90 CTR_DRBG by Henric Jungheim. This generator users AES in a modified counter mode to generate a backtracking-resistant random stream. An abstraction layer, "cprng", is provided for in-kernel consumers of randomness. The arc4random/arc4randbytes API is deprecated for in-kernel use. It is replaced by "cprng_strong". The current cprng_fast implementation wraps the existing arc4random implementation. The current cprng_strong implementation wraps the new CTR_DRBG implementation. Both interfaces are rekeyed from the entropy pool automatically at intervals justifiable from best current cryptographic practice. In some quick tests, cprng_fast() is about the same speed as the old arc4randbytes(), and cprng_strong() is about 20% faster than rnd_extract_data(). Performance is expected to improve. The AES code in src/crypto/rijndael is no longer an optional kernel component, as it is required by cprng_strong, which is not an optional kernel component. The entropy pool output is subjected to the rngtest tests at startup time; if it fails, the system will reboot. There is approximately a 3/10000 chance of a false positive from these tests. Entropy pool _input_ from hardware random numbers is subjected to the rngtest tests at attach time, as well as the FIPS continuous-output test, to detect bad or stuck hardware RNGs; if any are detected, they are detached, but the system continues to run. A problem with rndctl(8) is fixed -- datastructures with pointers in arrays are no longer passed to userspace (this was not a security problem, but rather a major issue for compat32). A new kernel will require a new rndctl. The sysctl kern.arandom() and kern.urandom() nodes are hooked up to the new generators, but the /dev/*random pseudodevices are not, yet. Manual pages for the new kernel interfaces are forthcoming.
Revision 1.436.2.1 / (download) - annotate - [select for diffs], Wed Nov 2 21:53:59 2011 UTC (11 years, 7 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.436: +4 -2
lines
Diff to previous 1.436 (colored)
page cache related changes - maintain object pages in radix tree rather than rb tree. - reduce unnecessary page scan in putpages. esp. when an object has a ton of pages cached but only a few of them are dirty. - reduce the number of pmap operations by tracking page dirtiness more precisely in uvm layer. - fix nfs commit range tracking. - fix nfs write clustering. XXX hack
Revision 1.371.2.5.2.1 / (download) - annotate - [select for diffs], Fri Oct 14 17:25:36 2011 UTC (11 years, 7 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.371.2.5: +3 -2
lines
Diff to previous 1.371.2.5 (colored) next main 1.371.2.6 (colored)
Improved kthread join support
Revision 1.436 / (download) - annotate - [select for diffs], Wed Sep 28 15:52:47 2011 UTC (11 years, 8 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.435: +6 -2
lines
Diff to previous 1.435 (colored)
Initialize cpufreq(9) normally from main().
Revision 1.371.2.4.2.1 / (download) - annotate - [select for diffs], Mon Aug 8 19:47:01 2011 UTC (11 years, 10 months ago) by riz
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE
Changes since 1.371.2.4: +6 -2
lines
Diff to previous 1.371.2.4 (colored) next main 1.371.2.5 (colored)
Pull up following revision(s) (requested by bouyer in ticket #1644): sys/sys/socketvar.h: revision 1.126 sys/kern/init_main.c: revision 1.433 sys/kern/uipc_socket.c: revision 1.205 Fix kern/45093 as discussed on tech-kern@: http://mail-index.netbsd.org/tech-kern/2011/06/17/msg010734.html The cause of the problem is that the so_pendfree is processed with the softnet_lock held at one point, and processing the list calls sodoloanfree() which may kpause(). As the thread sleeps with softnet_lock held, it ultimately cause a deadlock (see the PR or tech-kern thread for details). Although it should be possible to call sodopendfree() after releasing the socket lock, it's not so easy to know where he socket lock is held and where it's not, so we may hit the issue again later. Add a kernel thread to handle the so_pendfree list, and wake up this thread when adding mbufs to this list. Get rid of the various sodopendfree() calls, hopefully fixing definitively the problem.
Revision 1.371.2.6 / (download) - annotate - [select for diffs], Mon Aug 8 19:45:57 2011 UTC (11 years, 10 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2
Changes since 1.371.2.5: +6 -2
lines
Diff to previous 1.371.2.5 (colored) to branchpoint 1.371 (colored) next main 1.372 (colored)
Pull up following revision(s) (requested by bouyer in ticket #1644): sys/sys/socketvar.h: revision 1.126 sys/kern/init_main.c: revision 1.433 sys/kern/uipc_socket.c: revision 1.205 Fix kern/45093 as discussed on tech-kern@: http://mail-index.netbsd.org/tech-kern/2011/06/17/msg010734.html The cause of the problem is that the so_pendfree is processed with the softnet_lock held at one point, and processing the list calls sodoloanfree() which may kpause(). As the thread sleeps with softnet_lock held, it ultimately cause a deadlock (see the PR or tech-kern thread for details). Although it should be possible to call sodopendfree() after releasing the socket lock, it's not so easy to know where he socket lock is held and where it's not, so we may hit the issue again later. Add a kernel thread to handle the so_pendfree list, and wake up this thread when adding mbufs to this list. Get rid of the various sodopendfree() calls, hopefully fixing definitively the problem.
Revision 1.435 / (download) - annotate - [select for diffs], Sun Aug 7 13:33:01 2011 UTC (11 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.434: +4 -2
lines
Diff to previous 1.434 (colored)
Add kcpuset(9) - a reworked dynamic CPU set implementation for kernel. Suitable for use during the early boot. MD and other implementations should be replaced with this interface. Discussed on: tech-kern@
Revision 1.434 / (download) - annotate - [select for diffs], Sat Jul 30 17:01:04 2011 UTC (11 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.433: +7 -2
lines
Diff to previous 1.433 (colored)
Add an implementation of passive serialization as described in expired US patent 4809168. This is a reader / writer synchronization mechanism, designed for lock-less read operations.
Revision 1.433 / (download) - annotate - [select for diffs], Sat Jul 2 17:53:50 2011 UTC (11 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.432: +6 -2
lines
Diff to previous 1.432 (colored)
Fix kern/45093 as discussed on tech-kern@: http://mail-index.netbsd.org/tech-kern/2011/06/17/msg010734.html The cause of the problem is that the so_pendfree is processed with the softnet_lock held at one point, and processing the list calls sodoloanfree() which may kpause(). As the thread sleeps with softnet_lock held, it ultimately cause a deadlock (see the PR or tech-kern thread for details). Although it should be possible to call sodopendfree() after releasing the socket lock, it's not so easy to know where he socket lock is held and where it's not, so we may hit the issue again later. Add a kernel thread to handle the so_pendfree list, and wake up this thread when adding mbufs to this list. Get rid of the various sodopendfree() calls, hopefully fixing definitively the problem.
Revision 1.431.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:18 2011 UTC (11 years, 11 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.431: +7 -5
lines
Diff to previous 1.431 (colored) next main 1.432 (colored)
Catchup with rmind-uvmplock merge.
Revision 1.432 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:56 2011 UTC (12 years ago) by rmind
Branch: MAIN
Changes since 1.431: +7 -5
lines
Diff to previous 1.431 (colored)
Welcome to 5.99.53! Merge rmind-uvmplock branch: - Reorganize locking in UVM and provide extra serialisation for pmap(9). New lock order: [vmpage-owner-lock] -> pmap-lock. - Simplify locking in some pmap(9) modules by removing P->V locking. - Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs). - Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner. Add TLBSTATS option for x86 to collect statistics about TLB shootdowns. - Unify /dev/mem et al in MI code and provide required locking (removes kernel-lock on some ports). Also, avoid cache-aliasing issues. Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches formed the core changes of this branch.
Revision 1.418.4.8 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:28 2011 UTC (12 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.418.4.7: +0 -7
lines
Diff to previous 1.418.4.7 (colored) to branchpoint 1.418 (colored) next main 1.419 (colored)
sync with head
Revision 1.424.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:26 2011 UTC (12 years ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.424: +12 -13
lines
Diff to previous 1.424 (colored) next main 1.425 (colored)
Sync with HEAD.
Revision 1.431 / (download) - annotate - [select for diffs], Tue May 31 23:28:53 2011 UTC (12 years ago) by dyoung
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.430: +2 -9
lines
Diff to previous 1.430 (colored)
Don't use the C preprocessor to configure USERCONF. Instead, either do or do not link in subr_userconf.c and x86_userconf.c. Provide no-op stubs for userconf_bootinfo(), userconf_init(), and userconf_prompt(). Delete all occurrences of #include "opt_userconf.h" as well as USERCONF and __HAVE_USERCONF_BOOTINFO #ifdef'age.
Revision 1.418.4.7 / (download) - annotate - [select for diffs], Tue May 31 03:05:00 2011 UTC (12 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.418.4.6: +3 -1
lines
Diff to previous 1.418.4.6 (colored) to branchpoint 1.418 (colored)
sync with head
Revision 1.430 / (download) - annotate - [select for diffs], Thu May 26 04:25:26 2011 UTC (12 years ago) by uebayasi
Branch: MAIN
Changes since 1.429: +4 -3
lines
Diff to previous 1.429 (colored)
Support userconf(4) command in boot(8)/boot.cfg(5) on i386/amd64. From jmmv@, no objections seen in the proposed thread: http://mail-index.netbsd.org/tech-kern/2009/01/22/msg004081.html
Revision 1.429 / (download) - annotate - [select for diffs], Thu May 19 03:07:29 2011 UTC (12 years ago) by rmind
Branch: MAIN
Changes since 1.428: +3 -2
lines
Diff to previous 1.428 (colored)
Re-implement kthread_join(9), so that it actually works (hi haad@).
Revision 1.418.4.6 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:06 2011 UTC (12 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.418.4.5: +3 -3
lines
Diff to previous 1.418.4.5 (colored) to branchpoint 1.418 (colored)
sync with head
Revision 1.428 / (download) - annotate - [select for diffs], Thu Apr 14 16:20:52 2011 UTC (12 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.427: +3 -3
lines
Diff to previous 1.427 (colored)
comment
Revision 1.418.4.5 / (download) - annotate - [select for diffs], Sun Mar 6 01:38:45 2011 UTC (12 years, 3 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.418.4.4: +5 -5
lines
Diff to previous 1.418.4.4 (colored) to branchpoint 1.418 (colored)
- mm_init: disable pmap_protect() call on zero-page for now (x86 pmap issue). - Run evcnt_init() a little bit earlier, before uvm_init().
Revision 1.418.4.4 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:12 2011 UTC (12 years, 3 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.418.4.3: +13 -8
lines
Diff to previous 1.418.4.3 (colored) to branchpoint 1.418 (colored)
sync with head
Revision 1.426.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:58 2011 UTC (12 years, 4 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.426: +4 -2
lines
Diff to previous 1.426 (colored) next main 1.427 (colored)
Sync with HEAD
Revision 1.427 / (download) - annotate - [select for diffs], Fri Jan 28 18:44:44 2011 UTC (12 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: bouyer-quota2-nbase,
bouyer-quota2-base
Changes since 1.426: +4 -2
lines
Diff to previous 1.426 (colored)
Move sysctl routines from init_sysctl.c to kern_descrip.c (for descriptors) and kern_proc.c (for processes). This makes them usable in a rump kernel, in case somebody was wondering.
Revision 1.426 / (download) - annotate - [select for diffs], Tue Jan 18 08:18:43 2011 UTC (12 years, 4 months ago) by matt
Branch: MAIN
Branch point for: bouyer-quota2
Changes since 1.425: +5 -3
lines
Diff to previous 1.425 (colored)
Move up evcnt_init to before cpu_startup()
Revision 1.425 / (download) - annotate - [select for diffs], Mon Jan 17 07:13:31 2011 UTC (12 years, 4 months ago) by uebayasi
Branch: MAIN
Changes since 1.424: +3 -3
lines
Diff to previous 1.424 (colored)
Include internal definitions (uvm/uvm.h) only where necessary.
Revision 1.371.2.5 / (download) - annotate - [select for diffs], Tue Dec 21 22:21:42 2010 UTC (12 years, 5 months ago) by riz
Branch: netbsd-5
CVS Tags: matt-nb5-pq3-base
Branch point for: matt-nb5-pq3
Changes since 1.371.2.4: +5 -5
lines
Diff to previous 1.371.2.4 (colored) to branchpoint 1.371 (colored)
Pull up following revision(s) (requested by skrll in ticket #1496): sys/kern/init_main.c: revision 1.418 fix LOCKDEBUG panic 'uninitialized lock'. seminit() calls exithook_establish(). exithook_establish() uses the exec_lock. exec_lock is initialzed by exec_init(1). Call exec_init(1) before seminit().
Revision 1.424 / (download) - annotate - [select for diffs], Thu Dec 16 00:42:22 2010 UTC (12 years, 5 months ago) by eeh
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr
Changes since 1.423: +4 -4
lines
Diff to previous 1.423 (colored)
ubc_init needs to run while we're still cold or uvmhist breaks.
Revision 1.418.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:24 2010 UTC (12 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.418.2.2: +1 -0
lines
Diff to previous 1.418.2.2 (colored) to branchpoint 1.418 (colored) next main 1.419 (colored)
Sync with HEAD (-D20101022).
Revision 1.353.2.9 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:30 2010 UTC (12 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.353.2.8: +3 -2
lines
Diff to previous 1.353.2.8 (colored) to branchpoint 1.353 (colored) next main 1.354 (colored)
sync with head
Revision 1.423 / (download) - annotate - [select for diffs], Sat Aug 21 13:17:31 2010 UTC (12 years, 9 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
uebayasi-xip-base4,
uebayasi-xip-base3
Changes since 1.422: +3 -2
lines
Diff to previous 1.422 (colored)
Define a set of new kernel locking primitives to implement the recursive kernconfig_mutex. Update module subsystem to use this mutex rather than its own internal (non-recursive) mutex. Make module_autoload() do its own locking to be consistent with the rest of the module_xxx() calls. Update module(9) man page appropriately. As discussed on tech-kern over the last few weeks. Welcome to NetBSD 5.99.39 !
Revision 1.418.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:25 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.418.2.1: +22 -3
lines
Diff to previous 1.418.2.1 (colored) to branchpoint 1.418 (colored)
Sync with HEAD.
Revision 1.353.2.8 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:38 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.353.2.7: +24 -13
lines
Diff to previous 1.353.2.7 (colored) to branchpoint 1.353 (colored)
sync with head.
Revision 1.418.4.3 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:52 2010 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.418.4.2: +24 -5
lines
Diff to previous 1.418.4.2 (colored) to branchpoint 1.418 (colored)
sync with head
Revision 1.422 / (download) - annotate - [select for diffs], Sat Jun 26 07:23:57 2010 UTC (12 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10,
uebayasi-xip-base2
Changes since 1.421: +6 -4
lines
Diff to previous 1.421 (colored)
1. Add an allocator for 'struct module *' and use it instead of local allocations. 2. Add a new member mod_flags to the 'struct module *' and define MODFLG_MUST_FORCE. If this flag is set and the entry is on the list of builtins, it means that the module has been explicitly unloaded and any re-loads will require the MODCTL_LOAD_FORCE flag. Provide a module_require_force() method to set this flag; once set, it should never be unset. 3. Rename original module_init2() to module_start_unload_thread() to be more descriptive of what it does. 4. Add a new module_builtin_require_force() routine that sets the MODFLG_MUST_FORCE flag for any module that has not yet successfully been initialized. Call it after module_init_class(MODULE_CLASS_ANY) to disable remaining built-in modules. This makes built-in versions of the xxxVERBOSE modules work once more, resolving breakage reported by jruoho@ and njoly@. Discussed on tech-kern, and comments and suggestions implemented. No additional discussion for last week. Tested only on amd64 systems, but there's nothing here that should be port- or architecture-specific (no more specific than existing module implementation) so others should not break.
Revision 1.421 / (download) - annotate - [select for diffs], Fri Jun 25 15:10:42 2010 UTC (12 years, 11 months ago) by tsutsui
Branch: MAIN
Changes since 1.420: +19 -2
lines
Diff to previous 1.420 (colored)
Add config_mountroot(9), which defers device configuration after mountroot(), like config_interrupt(9) that defers configuration after interrupts are enabled. This will be used for devices that require firmware loaded from the root file system by firmload(9) to complete device initialization (getting MAC address etc). No objection on tech-kern@: http://mail-index.NetBSD.org/tech-kern/2010/06/18/msg008370.html and will also fix PR kern/43125.
Revision 1.420 / (download) - annotate - [select for diffs], Thu Jun 10 20:54:53 2010 UTC (13 years ago) by pooka
Branch: MAIN
Changes since 1.419: +3 -3
lines
Diff to previous 1.419 (colored)
lwp0 seems like an lwp instead of a process, so move bits related to it from kern_proc.c to kern_lwp.c. This makes kern_proc "scheduling-clean" and more easily usable in environments with a non-integrated scheduler (like, to take a random example, rump).
Revision 1.418.4.2 / (download) - annotate - [select for diffs], Sun May 30 05:17:56 2010 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.418.4.1: +2 -10
lines
Diff to previous 1.418.4.1 (colored) to branchpoint 1.418 (colored)
sync with head
Revision 1.418.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:08 2010 UTC (13 years, 1 month ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.418: +2 -10
lines
Diff to previous 1.418 (colored)
Sync with HEAD.
Revision 1.419 / (download) - annotate - [select for diffs], Wed Apr 21 16:51:24 2010 UTC (13 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.418: +2 -10
lines
Diff to previous 1.418 (colored)
Reduce #ifdef spew by attaching wapbl as a module. (no, it's still too ifdef-ridden to be able to actually do anything useful and module-like like load into any kernel)
Revision 1.371.2.3.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:15 2010 UTC (13 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Changes since 1.371.2.3: +4 -4
lines
Diff to previous 1.371.2.3 (colored)
sync to netbsd-5
Revision 1.418.4.1 / (download) - annotate - [select for diffs], Thu Mar 18 04:36:54 2010 UTC (13 years, 2 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.418: +4 -2
lines
Diff to previous 1.418 (colored)
Unify /dev/{mem,kmem,zero,null} implementations in MI code. Based on patch from Joerg Sonnenberger, proposed on tech-kern@, in February 2008. Work and depression still in progress.
Revision 1.353.2.7 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:15 2010 UTC (13 years, 3 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.353.2.6: +51 -54
lines
Diff to previous 1.353.2.6 (colored) to branchpoint 1.353 (colored)
sync with head
Revision 1.371.2.4 / (download) - annotate - [select for diffs], Sun Feb 14 13:35:43 2010 UTC (13 years, 3 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1
Branch point for: netbsd-5-1
Changes since 1.371.2.3: +4 -4
lines
Diff to previous 1.371.2.3 (colored) to branchpoint 1.371 (colored)
Pull up following revision(s) (requested by hubertf in ticket #1290): sys/kern/kern_ksyms.c: revision 1.53 sys/dev/pci/agp_via.c: revision 1.18 sys/netipsec/key.c: revision 1.63 sys/arch/x86/x86/x86_autoconf.c: revision 1.49 sys/kern/init_main.c: revision 1.415 sys/kern/cnmagic.c: revision 1.11 sys/netipsec/ipsec.c: revision 1.47 sys/arch/x86/x86/pmap.c: revision 1.100 sys/netkey/key.c: revision 1.176 Replace more printfs with aprint_normal / aprint_verbose Makes "boot -z" go mostly silent for me.
Revision 1.418 / (download) - annotate - [select for diffs], Fri Feb 5 11:06:36 2010 UTC (13 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Changes since 1.417: +7 -7
lines
Diff to previous 1.417 (colored)
fix LOCKDEBUG panic 'uninitialized lock'. seminit() calls exithook_establish(). exithook_establish() uses the exec_lock. exec_lock is initialzed by exec_init(1). Call exec_init(1) before seminit().
Revision 1.417 / (download) - annotate - [select for diffs], Sun Jan 31 03:57:01 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.416: +3 -3
lines
Diff to previous 1.416 (colored)
uncommit part which wasn't supposed to get committed yet
Revision 1.416 / (download) - annotate - [select for diffs], Sun Jan 31 02:04:43 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.415: +4 -4
lines
Diff to previous 1.415 (colored)
Pass root device as a parameter to domountroothook().
Revision 1.415 / (download) - annotate - [select for diffs], Sun Jan 31 00:43:37 2010 UTC (13 years, 4 months ago) by hubertf
Branch: MAIN
Changes since 1.414: +4 -4
lines
Diff to previous 1.414 (colored)
Replace more printfs with aprint_normal / aprint_verbose Makes "boot -z" go mostly silent for me.
Revision 1.414 / (download) - annotate - [select for diffs], Tue Jan 19 22:08:00 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.413: +9 -2
lines
Diff to previous 1.413 (colored)
Redefine bpf linkage through an always present op vector, i.e. #if NBPFILTER is no longer required in the client. This change doesn't yet add support for loading bpf as a module, since drivers can register before bpf is attached. However, callers of bpf can now be modularized. Dynamically loadable bpf could probably be done fairly easily with coordination from the stub driver and the real driver by registering attachments in the stub before the real driver is loaded and doing a handoff. ... and I'm not going to ponder the depths of unload here. Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
Revision 1.413 / (download) - annotate - [select for diffs], Wed Dec 23 00:21:38 2009 UTC (13 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.412: +2 -3
lines
Diff to previous 1.412 (colored)
Including sysctl.h once is enough.
Revision 1.412 / (download) - annotate - [select for diffs], Thu Dec 17 01:25:10 2009 UTC (13 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.411: +2 -3
lines
Diff to previous 1.411 (colored)
Replace few USER_TO_UAREA/UAREA_TO_USER uses, reduce sys/user.h inclusions.
Revision 1.411 / (download) - annotate - [select for diffs], Fri Nov 27 16:43:51 2009 UTC (13 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.410: +2 -27
lines
Diff to previous 1.410 (colored)
Move rootfs-related init from init_main() to vfs_mountroot(). Reduces code re-written in rump.
Revision 1.410 / (download) - annotate - [select for diffs], Sun Nov 15 02:37:13 2009 UTC (13 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.409: +3 -2
lines
Diff to previous 1.409 (colored)
Include miscfs/specfs/specdev.h for spec_init().
Revision 1.409 / (download) - annotate - [select for diffs], Sat Nov 14 18:36:57 2009 UTC (13 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.408: +7 -3
lines
Diff to previous 1.408 (colored)
- Move kauth_init() a little bit higher. - Add spec_init() to authorize special device actions (and passthru too for the time being). Move policy out of secmodel_suser.
Revision 1.408 / (download) - annotate - [select for diffs], Tue Nov 3 05:23:28 2009 UTC (13 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.407: +5 -2
lines
Diff to previous 1.407 (colored)
Add a kernel configuration flag, SPLDEBUG, that activates a per-CPU log of transitions to IPL_HIGH from lower IPLs. SPLDEBUG is only available on i386 and Xen kernels, today. 'options SPLDEBUG' adds instrumentation to spllower() and splraise() as well as routines to start/stop debugging and to record IPL transitions: spldebug_start(), spldebug_stop(), spldebug_raise(), spldebug_lower().
Revision 1.407 / (download) - annotate - [select for diffs], Mon Oct 26 19:03:17 2009 UTC (13 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.406: +3 -3
lines
Diff to previous 1.406 (colored)
Update comment about proc0_init().
Revision 1.406 / (download) - annotate - [select for diffs], Tue Oct 6 21:07:05 2009 UTC (13 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.405: +4 -2
lines
Diff to previous 1.405 (colored)
Add a (weak aliased) machdep_init() as a place to do machdep initialization that can't happen as early as the other init functions as called from cpu_startup() -- for example, register kauth(9) listeners. Put unprivileged policy in the x86 code; used by i386, amd64, and xen.
Revision 1.405 / (download) - annotate - [select for diffs], Sat Oct 3 22:32:56 2009 UTC (13 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.404: +5 -3
lines
Diff to previous 1.404 (colored)
- Move sched_listener and co. from kern_synch.c to sys_sched.c, where it really belongs (suggested by rmind@), - Rename sched_init() to synch_init(), and introduce a new sched_init() in sys_sched.c where we (a) initialize the sysctl node (no more link-set) and (b) listen on the process scope with sched_listener. Reviewed by and okay rmind@.
Revision 1.404 / (download) - annotate - [select for diffs], Fri Oct 2 22:18:57 2009 UTC (13 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.403: +11 -2
lines
Diff to previous 1.403 (colored)
Move ptrace's security policy back to the subsystem itself. Add a ptrace_init() so we have a place to register the listener; called next to ktrinit().
Revision 1.403 / (download) - annotate - [select for diffs], Fri Oct 2 18:50:14 2009 UTC (13 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.402: +8 -15
lines
Diff to previous 1.402 (colored)
First part of secmodel cleanup and other misc. changes: - Separate the suser part of the bsd44 secmodel into its own secmodel and directory, pending even more cleanups. For revision history purposes, the original location of the files was src/sys/secmodel/bsd44/secmodel_bsd44_suser.c src/sys/secmodel/bsd44/suser.h - Add a man-page for secmodel_suser(9) and update the one for secmodel_bsd44(9). - Add a "secmodel" module class and use it. Userland program and documentation updated. - Manage secmodel count (nsecmodels) through the module framework. This eliminates the need for secmodel_{,de}register() calls in secmodel code. - Prepare for secmodel modularization by adding relevant module bits. The secmodels don't allow auto unload. The bsd44 secmodel depends on the suser and securelevel secmodels. The overlay secmodel depends on the bsd44 secmodel. As the module class is only cosmetic, and to prevent ambiguity, the bsd44 and overlay secmodels are prefixed with "secmodel_". - Adapt the overlay secmodel to recent changes (mainly vnode scope). - Stop using link-sets for the sysctl node(s) creation. - Keep sysctl variables under nodes of their relevant secmodels. In other words, don't create duplicates for the suser/securelevel secmodels under the bsd44 secmodel, as the latter is merely used for "grouping". - For the suser and securelevel secmodels, "advertise presence" in relevant sysctl nodes (sysctl.security.models.{suser,securelevel}). - Get rid of the LKM preprocessor stuff. - As secmodels are now modules, there's no need for an explicit call to secmodel_start(); it's handled by the module framework. That said, the module framework was adjusted to properly load secmodels early during system startup. - Adapt rump to changes: Instead of using empty stubs for securelevel, simply use the suser secmodel. Also replace secmodel_start() with a call to secmodel_suser_start(). - 5.99.20. Testing was done on i386 ("release" build). Spearated module_init() changes were tested on sparc and sparc64 as well by martin@ (thanks!). Mailing list reference: http://mail-index.netbsd.org/tech-kern/2009/09/25/msg006135.html
Revision 1.402 / (download) - annotate - [select for diffs], Tue Sep 29 22:40:15 2009 UTC (13 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.401: +3 -2
lines
Diff to previous 1.401 (colored)
#include "drvctl.h" for the NDRVCTL definition. Without the NDRVCTL definition, drvctl_init() is not called, the drvctl_eventq is not initialized, and the kernel will panic in devmon_insert() when a device is detached. Thanks to Jared McNeill for pointing out the panic.
Revision 1.401 / (download) - annotate - [select for diffs], Mon Sep 21 12:14:46 2009 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.400: +3 -3
lines
Diff to previous 1.400 (colored)
Split config_init() into config_init() and config_init_mi() to help platforms which want to call config_init() very early in the boot.
Revision 1.400 / (download) - annotate - [select for diffs], Wed Sep 16 15:23:04 2009 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.399: +4 -2
lines
Diff to previous 1.399 (colored)
Replace a large number of link set based sysctl node creations with calls from subsystem constructors. Benefits both future kernel modules and rump. no change to sysctl nodes on i386/MONOLITHIC & build tested i386/ALL
Revision 1.353.2.6 / (download) - annotate - [select for diffs], Wed Sep 16 13:38:00 2009 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.353.2.5: +112 -5
lines
Diff to previous 1.353.2.5 (colored) to branchpoint 1.353 (colored)
sync with head
Revision 1.399 / (download) - annotate - [select for diffs], Sun Sep 13 18:45:10 2009 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8
Changes since 1.398: +13 -2
lines
Diff to previous 1.398 (colored)
Wipe out the last vestiges of POOL_INIT with one swift stroke. In most cases, use a proper constructor. For proplib, give a local equivalent of POOL_INIT for the kernel object implementation. This way the code structure can be preserved, and a local link set is not hazardous anyway (unless proplib is split to several modules, but that'll be the day). tested by booting a kernel in qemu and compile-testing i386/ALL
Revision 1.398 / (download) - annotate - [select for diffs], Thu Sep 3 15:20:08 2009 UTC (13 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.397: +98 -2
lines
Diff to previous 1.397 (colored)
Move configure() and configure2() from subr_autoconf.c to init_main.c, since they are only peripherially related to the autoconf subsystem and more related to boot initialization. Also, apply _KERNEL_OPT to autoconf where necessary.
Revision 1.397 / (download) - annotate - [select for diffs], Wed Sep 2 08:07:05 2009 UTC (13 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.396: +5 -5
lines
Diff to previous 1.396 (colored)
Initialize devsw (lock) early so that subsystems may play with it.
Revision 1.353.2.5 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:15 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.353.2.4: +5 -9
lines
Diff to previous 1.353.2.4 (colored) to branchpoint 1.353 (colored)
sync with head.
Revision 1.396 / (download) - annotate - [select for diffs], Mon Jul 27 17:40:57 2009 UTC (13 years, 10 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.395: +2 -6
lines
Diff to previous 1.395 (colored)
Do not attach gpiosim(4) at root, but make it a pseudo device. With help from Matthias Drochner, thanks!
Revision 1.395 / (download) - annotate - [select for diffs], Sat Jul 25 16:23:39 2009 UTC (13 years, 10 months ago) by mbalmer
Branch: MAIN
Changes since 1.394: +6 -3
lines
Diff to previous 1.394 (colored)
Allow gpiosim(4) to attach if configured in the kernel configuration.
Revision 1.380.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:34 2009 UTC (13 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.380.2.1: +10 -13
lines
Diff to previous 1.380.2.1 (colored) to branchpoint 1.380 (colored) next main 1.381 (colored)
Sync with HEAD.
Revision 1.394 / (download) - annotate - [select for diffs], Sun Jul 19 10:11:55 2009 UTC (13 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: jymxensuspend-base
Changes since 1.393: +3 -2
lines
Diff to previous 1.393 (colored)
set LP_RUNNING when starting lwp0 and idle lwps. add assertions.
Revision 1.393 / (download) - annotate - [select for diffs], Sun Jul 19 02:50:44 2009 UTC (13 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.392: +2 -6
lines
Diff to previous 1.392 (colored)
Make POSIX message queues a kernel module.
Revision 1.353.2.4 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:22 2009 UTC (13 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.353.2.3: +6 -6
lines
Diff to previous 1.353.2.3 (colored) to branchpoint 1.353 (colored)
sync with head.
Revision 1.392 / (download) - annotate - [select for diffs], Fri Jul 17 23:31:51 2009 UTC (13 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.391: +4 -4
lines
Diff to previous 1.391 (colored)
Don't send the quiet banner to the log, since the usual noise gets dumped there anyway.
Revision 1.391 / (download) - annotate - [select for diffs], Mon Jun 29 05:08:18 2009 UTC (13 years, 11 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6
Changes since 1.390: +6 -6
lines
Diff to previous 1.390 (colored)
Convert 67 namei call sites to use namei_simple, in these functions: check_console, veriexecclose, veriexec_delete, veriexec_file_add, emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib, compat_20_sys_statfs, compat_20_netbsd32_statfs, ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs, ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib, osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs, ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4), adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount, ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount, ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags, sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown, sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs, sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl, sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file, sys_extattr_get_link, sys_extattr_delete_file, sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link, sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr, sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr All have been scrutinized (several times, in fact) and compile-tested, but not all have been explicitly tested in action. XXX: While I haven't (intentionally) changed the use or nonuse of XXX: TRYEMULROOT in any of these places, I'm not convinced all the XXX: uses are correct; an audit might be desirable.
Revision 1.353.2.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:31 2009 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.353.2.2: +3 -3
lines
Diff to previous 1.353.2.2 (colored) to branchpoint 1.353 (colored)
sync with head
Revision 1.390 / (download) - annotate - [select for diffs], Wed May 27 23:44:36 2009 UTC (14 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5
Changes since 1.389: +3 -3
lines
Diff to previous 1.389 (colored)
Make domaininit() take an argument which determines if it should add the special PF_ROUTE domain or not (if available).
Revision 1.380.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:56 2009 UTC (14 years, 1 month ago) by jym
Branch: jym-xensuspend
Changes since 1.380: +53 -50
lines
Diff to previous 1.380 (colored)
Sync with HEAD. Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.353.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.353.2.1: +136 -89
lines
Diff to previous 1.353.2.1 (colored) to branchpoint 1.353 (colored)
sync with head.
Revision 1.370.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:59 2009 UTC (14 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.370.2.2: +48 -4
lines
Diff to previous 1.370.2.2 (colored) next main 1.371 (colored)
Sync with HEAD.
Revision 1.389 / (download) - annotate - [select for diffs], Sun Apr 19 14:04:51 2009 UTC (14 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Changes since 1.388: +3 -2
lines
Diff to previous 1.388 (colored)
call rw_obj_init()
Revision 1.388 / (download) - annotate - [select for diffs], Tue Apr 7 10:49:54 2009 UTC (14 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.387: +6 -4
lines
Diff to previous 1.387 (colored)
Explicitly pass a specific buffer length to format_bytes() to make it print memory sizes in humanized readable digits.
Revision 1.371.2.3 / (download) - annotate - [select for diffs], Sat Apr 4 17:39:10 2009 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.371.2.2: +4 -4
lines
Diff to previous 1.371.2.2 (colored) to branchpoint 1.371 (colored)
Pull up following revision(s) (requested by ad in ticket #656): sys/arch/amd64/amd64/gdt.c: revision 1.21 via patch sys/arch/amd64/amd64/machdep.c: revision 1.129 via patch sys/arch/i386/i386/gdt.c: revision 1.47 via patch sys/arch/i386/i386/kvm86.c: revision 1.17 via patch sys/arch/i386/i386/locore.S: revision 1.85 via patch sys/arch/i386/i386/machdep.c: revision 1.666 via patch sys/arch/i386/i386/vector.S: revision 1.45 via patch sys/arch/i386/include/pcb.h: revision 1.47 via patch sys/arch/x86/include/pmap.h: revision 1.22 via patch sys/arch/x86/include/sysarch.h: revision 1.8 via patch sys/arch/x86/x86/pmap.c: revision 1.80 via patch sys/arch/x86/x86/sys_machdep.c: revision 1.17 via patch sys/compat/linux/arch/i386/linux_machdep.c: revision 1.143 via patch sys/kern/init_main.c: revision 1.384 via patch PR port-i386/40143 Viewing an mpeg transport stream with mplayer causes crash Fix numerous problems: 1. LDT updates are not atomic. 2. Number of processes running with private LDTs and/or I/O bitmaps is not capped. System with high maxprocs can be paniced. 3. LDTR can be leaked over context switch. 4. GDT slot allocations can race, giving the same LDT slot to two procs. 5. Incomplete interrupt/trap frames can be stacked. 6. In some rare cases segment faults are not handled correctly.
Revision 1.387 / (download) - annotate - [select for diffs], Thu Apr 2 19:43:11 2009 UTC (14 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.386: +3 -3
lines
Diff to previous 1.386 (colored)
banner: fix a minor bug.
Revision 1.371.2.2 / (download) - annotate - [select for diffs], Tue Mar 31 23:23:15 2009 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
Changes since 1.371.2.1: +7 -2
lines
Diff to previous 1.371.2.1 (colored) to branchpoint 1.371 (colored)
Apply patch (requested by martin in ticket 602): ksyms_init calls mutex_init too early, which leads to failure on, e.g., sparc64 LOCKDEBUG kernels. Instead, add a new function ksyms_init_finalize and call it from main. Fixed in a more intrusive and less ugly way on HEAD.
Revision 1.386 / (download) - annotate - [select for diffs], Sun Mar 29 15:23:54 2009 UTC (14 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.385: +3 -5
lines
Diff to previous 1.385 (colored)
Remove debug code from previous.
Revision 1.385 / (download) - annotate - [select for diffs], Sun Mar 29 10:58:28 2009 UTC (14 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.384: +39 -2
lines
Diff to previous 1.384 (colored)
Add a cental banner() function to print the copyright and version info.
Revision 1.384 / (download) - annotate - [select for diffs], Sat Mar 21 14:41:30 2009 UTC (14 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.383: +4 -4
lines
Diff to previous 1.383 (colored)
PR port-i386/40143 Viewing an mpeg transport stream with mplayer causes crash Fix numerous problems: 1. LDT updates are not atomic. 2. Number of processes running with private LDTs and/or I/O bitmaps is not capped. System with high maxprocs can be paniced. 3. LDTR can be leaked over context switch. 4. GDT slot allocations can race, giving the same LDT slot to two procs. 5. Incomplete interrupt/trap frames can be stacked. 6. In some rare cases segment faults are not handled correctly.
Revision 1.371.2.1 / (download) - annotate - [select for diffs], Sun Mar 15 19:43:48 2009 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC3
Changes since 1.371: +6 -48
lines
Diff to previous 1.371 (colored)
Pull up following revision(s) (requested by christos in ticket #458): sys/conf/Makefile.kern.inc: revision 1.121 sys/conf/files: revision 1.940 sys/kern/init_main.c: revision 1.381 sys/kern/kern_ssp.c: revision 1.1 sys/kern/subr_autoconf.c: revision 1.168 sys/sys/device.h: revision 1.116 sys/sys/systm.h: revision 1.233 Unbreak ssp kernels. The issue here that when the ssp_init() call was deferred, it caused the return from the enclosing function to break, as well as the ssp return on i386. To fix both issues, split configure in two pieces the one before calling ssp_init and the one after, and move the ssp_init() call back in main. Put ssp_init() in its own file, and compile this new file with -fno-stack-protector. Tested on amd64. XXX: If we want to have ssp kernels working on 5.0, this change needs to be pulled up.
Revision 1.383 / (download) - annotate - [select for diffs], Thu Mar 5 06:37:03 2009 UTC (14 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.382: +8 -2
lines
Diff to previous 1.382 (colored)
main: disable kerenel preemption during early on boot. namely, between configure() and configure2(). some kernel threads are not expected to be run before "cold = 0". fixes cache_thread() busy-loop.
Revision 1.370.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:55 2009 UTC (14 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.370.2.1: +7 -48
lines
Diff to previous 1.370.2.1 (colored)
Sync with HEAD.
Revision 1.382 / (download) - annotate - [select for diffs], Fri Feb 13 22:41:04 2009 UTC (14 years, 3 months ago) by apb
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.381: +3 -2
lines
Diff to previous 1.381 (colored)
Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h" in all kernel sources that use the MODULAR option. Proposed in tech-kern on 18 Jan 2009.
Revision 1.381 / (download) - annotate - [select for diffs], Thu Feb 12 18:24:18 2009 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.380: +6 -48
lines
Diff to previous 1.380 (colored)
Unbreak ssp kernels. The issue here that when the ssp_init() call was deferred, it caused the return from the enclosing function to break, as well as the ssp return on i386. To fix both issues, split configure in two pieces the one before calling ssp_init and the one after, and move the ssp_init() call back in main. Put ssp_init() in its own file, and compile this new file with -fno-stack-protector. Tested on amd64. XXX: If we want to have ssp kernels working on 5.0, this change needs to be pulled up.
Revision 1.370.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:37 2009 UTC (14 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.370: +43 -31
lines
Diff to previous 1.370 (colored)
Sync with HEAD.
Revision 1.341.6.6 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.341.6.5: +58 -32
lines
Diff to previous 1.341.6.5 (colored) to branchpoint 1.341 (colored) next main 1.342 (colored)
Sync with HEAD.
Revision 1.380 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:51 2009 UTC (14 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.379: +19 -6
lines
Diff to previous 1.379 (colored)
merge christos-time_t
Revision 1.347.2.5 / (download) - annotate - [select for diffs], Sun Jan 4 05:18:17 2009 UTC (14 years, 5 months ago) by christos
Branch: christos-time_t
Changes since 1.347.2.4: +4 -2
lines
Diff to previous 1.347.2.4 (colored) next main 1.348 (colored)
merge diffs.
Revision 1.379 / (download) - annotate - [select for diffs], Thu Jan 1 15:10:20 2009 UTC (14 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: christos-time_t-nbase,
christos-time_t-base
Changes since 1.378: +4 -2
lines
Diff to previous 1.378 (colored)
* unexpose kprintf locking internals * migrate from simplelock to kmutex Don't bother to bump kernel version, since nothing outside of subr_prf used KPRINTF_MUTEX_ENXIT()
Revision 1.347.2.4 / (download) - annotate - [select for diffs], Sat Dec 27 23:14:24 2008 UTC (14 years, 5 months ago) by christos
Branch: christos-time_t
Changes since 1.347.2.3: +10 -5
lines
Diff to previous 1.347.2.3 (colored)
merge with head.
Revision 1.360.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:07 2008 UTC (14 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.360.2.1: +39 -28
lines
Diff to previous 1.360.2.1 (colored) to branchpoint 1.360 (colored) next main 1.361 (colored)
Update haad-dm branch to haad-dm-base2.
Revision 1.378 / (download) - annotate - [select for diffs], Sun Dec 7 20:58:46 2008 UTC (14 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base
Changes since 1.377: +5 -5
lines
Diff to previous 1.377 (colored)
Move some sysctl node creations away from linksets and into the constructors for subsystems. XXX: CTLFLAG_PERMANENT is non-sensible.
Revision 1.377 / (download) - annotate - [select for diffs], Thu Dec 4 23:18:13 2008 UTC (14 years, 6 months ago) by he
Branch: MAIN
CVS Tags: ad-audiomp2-base,
ad-audiomp2
Changes since 1.376: +5 -2
lines
Diff to previous 1.376 (colored)
Ksyms are optional, so make the call to ksyms_init() dependent on the same conditionals which are defined in sys/conf/files.
Revision 1.376 / (download) - annotate - [select for diffs], Sun Nov 30 18:21:36 2008 UTC (14 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.375: +4 -2
lines
Diff to previous 1.375 (colored)
As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap phases, so move the initialization of the ksyms mutex back into main via a function called ksyms_init. Rename the existing (but quite different) ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit() and adapt machdep code accordingly.
Revision 1.347.2.3 / (download) - annotate - [select for diffs], Thu Nov 20 20:45:38 2008 UTC (14 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.347.2.2: +5 -17
lines
Diff to previous 1.347.2.2 (colored)
merge with head.
Revision 1.375 / (download) - annotate - [select for diffs], Tue Nov 18 11:36:58 2008 UTC (14 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.374: +5 -2
lines
Diff to previous 1.374 (colored)
cwd is logically a vfs concept, so take it out from the bosom of kern_descrip and into vfs_cwd. No functional change.
Revision 1.374 / (download) - annotate - [select for diffs], Fri Nov 14 23:33:45 2008 UTC (14 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.373: +2 -5
lines
Diff to previous 1.373 (colored)
Make POSIX AIO loadable as a module.
Revision 1.373 / (download) - annotate - [select for diffs], Wed Nov 12 14:32:34 2008 UTC (14 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.372: +2 -11
lines
Diff to previous 1.372 (colored)
Allow the POSIX semaphore code to be loaded as a module.
Revision 1.372 / (download) - annotate - [select for diffs], Wed Nov 12 12:36:16 2008 UTC (14 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.371: +2 -5
lines
Diff to previous 1.371 (colored)
Remove LKMs and switch to the module framework, pass 1. Proposed on tech-kern@.
Revision 1.347.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:26 2008 UTC (14 years, 7 months ago) by christos
Branch: christos-time_t
Changes since 1.347.2.1: +102 -77
lines
Diff to previous 1.347.2.1 (colored)
Sync with head.
Revision 1.371 / (download) - annotate - [select for diffs], Tue Oct 28 15:33:10 2008 UTC (14 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: netbsd-5-base,
netbsd-5-0-RC2,
netbsd-5-0-RC1
Branch point for: netbsd-5
Changes since 1.370: +13 -9
lines
Diff to previous 1.370 (colored)
On the prompt for init path, print a simple usage line if input strings are not valid path or command. Per comments from perry@ and pgoyette@.
Revision 1.370 / (download) - annotate - [select for diffs], Sat Oct 25 15:40:59 2008 UTC (14 years, 7 months ago) by tsutsui
Branch: MAIN
Branch point for: nick-hppapmap
Changes since 1.369: +17 -4
lines
Diff to previous 1.369 (colored)
- if no usable init(8) program (listed in *initpaths[]) can be found, set the RB_ASKNAME flag and prompt users for the init path, rather than panicking with "no init". - when prompting for the init path, support the special strings "halt", "reboot", and "ddb", as well as a prompt for the root device. Dissussed and no objection on tech-kern. Changes summary by apb@.
Revision 1.369 / (download) - annotate - [select for diffs], Thu Oct 23 20:41:13 2008 UTC (14 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-base2
Changes since 1.368: +2 -6
lines
Diff to previous 1.368 (colored)
don't expose ksyms_lock
Revision 1.368 / (download) - annotate - [select for diffs], Tue Oct 21 20:51:11 2008 UTC (14 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.367: +5 -2
lines
Diff to previous 1.367 (colored)
Only init ksyms mutex if ksyms is present in the kernel
Revision 1.367 / (download) - annotate - [select for diffs], Mon Oct 20 10:24:18 2008 UTC (14 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.366: +4 -2
lines
Diff to previous 1.366 (colored)
PR kern/38814 ksyms needs locking - Make ksyms MT safe. - Fix deadlock from an operation like "modload foo.lkm < /dev/ksyms". - Fix uninitialized structure members. - Reduce memory footprint for loaded modules. - Export ksyms structures for kernel grovellers like savecore. - Some KNF.
Revision 1.360.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:27 2008 UTC (14 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.360: +15 -6
lines
Diff to previous 1.360 (colored)
Sync with HEAD.
Revision 1.366 / (download) - annotate - [select for diffs], Sat Oct 18 03:46:22 2008 UTC (14 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: haad-dm-base1
Changes since 1.365: +2 -5
lines
Diff to previous 1.365 (colored)
- Initialize pool subsystem and kmem(9) earlier, when UVM is up enough. - Remove uao_hashinit() workaround used for anon-objects. - Replace malloc with kmem. OK by <yamt>.
Revision 1.365 / (download) - annotate - [select for diffs], Sat Oct 11 13:40:57 2008 UTC (14 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.364: +3 -2
lines
Diff to previous 1.364 (colored)
Move uidinfo to its own module in kern_uidinfo.c and include in rump. No functional change to uidinfo.
Revision 1.355.2.5 / (download) - annotate - [select for diffs], Fri Oct 10 22:34:14 2008 UTC (14 years, 8 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.355.2.4: +4 -2
lines
Diff to previous 1.355.2.4 (colored) to branchpoint 1.355 (colored) next main 1.356 (colored)
Sync with HEAD.
Revision 1.364 / (download) - annotate - [select for diffs], Thu Oct 9 10:48:21 2008 UTC (14 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4
Changes since 1.363: +4 -2
lines
Diff to previous 1.363 (colored)
Rewrite once to use global locks and atomic ops to get rid of the static simplelock initializer (and simplelock too). The fastpath is still lockless, so doesn't make a difference in terms of performance. Also fixes a hanging bug if the once routine returned an error. It does not retry after an error occurs, as I can't really imagine fruitful semantics for that.
Revision 1.341.6.5 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:51 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.341.6.4: +10 -1
lines
Diff to previous 1.341.6.4 (colored) to branchpoint 1.341 (colored)
Sync with HEAD.
Revision 1.355.2.4 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:41 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.355.2.3: +12 -3
lines
Diff to previous 1.355.2.3 (colored) to branchpoint 1.355 (colored)
Sync with wrstuden-revivesa-base-2.
Revision 1.363 / (download) - annotate - [select for diffs], Sat Aug 30 09:20:13 2008 UTC (14 years, 9 months ago) by reinoud
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2
Changes since 1.362: +3 -3
lines
Diff to previous 1.362 (colored)
Revert previous change and clarify meaning of RNG
Revision 1.362 / (download) - annotate - [select for diffs], Sat Aug 30 08:55:53 2008 UTC (14 years, 9 months ago) by reinoud
Branch: MAIN
Changes since 1.361: +3 -3
lines
Diff to previous 1.361 (colored)
Fix simple typo: - rnd_init(); /* initialize RNG */ + rnd_init(); /* initialize RND */
Revision 1.361 / (download) - annotate - [select for diffs], Thu Jul 31 05:38:05 2008 UTC (14 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.360: +11 -2
lines
Diff to previous 1.360 (colored)
Merge the simonb-wapbl branch. From the original branch commit: Add Wasabi System's WAPBL (Write Ahead Physical Block Logging) journaling code. Originally written by Darrin B. Jewell while at Wasabi and updated to -current by Antti Kantee, Andy Doran, Greg Oster and Simon Burge. OK'd by core@, releng@.
Revision 1.341.6.4 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:13 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.341.6.3: +6 -2
lines
Diff to previous 1.341.6.3 (colored) to branchpoint 1.341 (colored)
Sync with HEAD.
Revision 1.355.2.3 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:50 2008 UTC (14 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.355.2.2: +17 -8
lines
Diff to previous 1.355.2.2 (colored) to branchpoint 1.355 (colored)
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.358.2.2 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:34 2008 UTC (14 years, 11 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.358.2.1: +8 -4
lines
Diff to previous 1.358.2.1 (colored) to branchpoint 1.358 (colored) next main 1.359 (colored)
Sync with head.
Revision 1.360 / (download) - annotate - [select for diffs], Wed Jun 18 09:06:27 2008 UTC (14 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.359: +5 -2
lines
Diff to previous 1.359 (colored)
merge yamt-pf42 branch. (import newer pf from OpenBSD 4.2) ok'ed by peter@. requested by core@
Revision 1.349.2.4 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:02 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.349.2.3: +5 -4
lines
Diff to previous 1.349.2.3 (colored) to branchpoint 1.349 (colored) next main 1.350 (colored)
sync with head.
Revision 1.359 / (download) - annotate - [select for diffs], Mon Jun 16 11:26:28 2008 UTC (14 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4
Changes since 1.358: +5 -4
lines
Diff to previous 1.358 (colored)
PR kern/38927: processes getting stuck in uvm_map (cv_timedwait), hanging machine Assume that a vnode (and associated data structures) costs 2kB in the worst imaginable case. Don't allow sysctl to set desiredvnodes to a value that would use more than 75% of KVA or 75% of physical memory.
Revision 1.358.2.1 / (download) - annotate - [select for diffs], Tue Jun 10 14:51:22 2008 UTC (15 years ago) by simonb
Branch: simonb-wapbl
Changes since 1.358: +11 -2
lines
Diff to previous 1.358 (colored)
Initial commit of Wasabi System's WAPBL (Write Ahead Physical Block Logging) journaling code. Originally written by Darrin B. Jewell while at Wasabi and updated to -current by Antti Kantee, Andy Doran, Greg Oster and Simon Burge. Still a number of issues - look in doc/BRANCHES for "simonb-wapbl" for more info.
Revision 1.349.2.3 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:38 2008 UTC (15 years ago) by yamt
Branch: yamt-pf42
Changes since 1.349.2.2: +11 -6
lines
Diff to previous 1.349.2.2 (colored) to branchpoint 1.349 (colored)
sync with head
Revision 1.341.6.3 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:07 2008 UTC (15 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.341.6.2: +55 -42
lines
Diff to previous 1.341.6.2 (colored) to branchpoint 1.341 (colored)
Sync with HEAD.
Revision 1.358 / (download) - annotate - [select for diffs], Sat May 31 20:14:38 2008 UTC (15 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.357: +2 -3
lines
Diff to previous 1.357 (colored)
- Put in place module compatibility check against __NetBSD_Version__, as discussed on tech-kern. - Remove unused module_jettison().
Revision 1.357 / (download) - annotate - [select for diffs], Wed May 28 13:35:32 2008 UTC (15 years ago) by ad
Branch: MAIN
Changes since 1.356: +4 -2
lines
Diff to previous 1.356 (colored)
PR kern/38355 lockf deadlock detection is broken after vmlocking - Fix it; tested with Sun's libMicro. - Use pool_cache. - Use a global lock, so the deadlock detection code is safer.
Revision 1.356 / (download) - annotate - [select for diffs], Tue May 27 17:50:03 2008 UTC (15 years ago) by ad
Branch: MAIN
Changes since 1.355: +9 -5
lines
Diff to previous 1.355 (colored)
Replace a couple of tsleep calls with cv_wait.
Revision 1.349.2.2 / (download) - annotate - [select for diffs], Sun May 18 12:35:06 2008 UTC (15 years ago) by yamt
Branch: yamt-pf42
Changes since 1.349.2.1: +13 -17
lines
Diff to previous 1.349.2.1 (colored) to branchpoint 1.349 (colored)
sync with head.
Revision 1.353.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:24 2008 UTC (15 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.353: +5 -12
lines
Diff to previous 1.353 (colored)
sync with head.
Revision 1.355.2.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:12 2008 UTC (15 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.355.2.1: +2 -3
lines
Diff to previous 1.355.2.1 (colored) to branchpoint 1.355 (colored)
Per discussion with ad, remove most of the #include <sys/sa.h> lines as they were including sa.h just for the type(s) needed for syscallargs.h. Instead, create a new file, sys/satypes.h, which contains just the types needed for syscallargs.h. Yes, there's only one now, but that may change and it's probably more likely to change if it'd be difficult to handle. :-) Per discussion with matt at n dot o, add an include of satypes.h to sigtypes.h. Upcall handlers are kinda signal handlers, and signalling is the header file that's already included for syscallargs.h that closest matches SA. This shaves about 3000 lines off of the diff of the branch relative to the base. That also represents about 18% of the total before this checkin. I think this reduction is very good thing.
Revision 1.355.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:02 2008 UTC (15 years, 1 month ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.355: +3 -2
lines
Diff to previous 1.355 (colored)
Initial checkin of re-adding SA. Everything except kern_sa.c compiles in GENERIC for i386. This is still a work-in-progress, but this checkin covers most of the mechanical work (changing signalling to be able to accomidate SA's process-wide signalling and re-adding includes of sys/sa.h and savar.h). Subsequent changes will be much more interesting. Also, kern_sa.c has received partial cleanup. There's still more to do, though.
Revision 1.355 / (download) - annotate - [select for diffs], Thu May 1 14:44:48 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.354: +5 -5
lines
Diff to previous 1.354 (colored)
Get the pre-loaded module code working.
Revision 1.354 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:02 2008 UTC (15 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.353: +2 -9
lines
Diff to previous 1.353 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.353 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:23 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.352: +4 -4
lines
Diff to previous 1.352 (colored)
Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since we no longer need to guard against access from hardware interrupt handlers. Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the child process share the parent's lock so that signal state may be kept in sync. Partially addresses PR kern/37437.
Revision 1.352 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:28 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.351: +4 -4
lines
Diff to previous 1.351 (colored)
Network protocol interrupts can now block on locks, so merge the globals proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock). Implications: - Inspecting process state requires thread context, so signals can no longer be sent from a hardware interrupt handler. Signal activity must be deferred to a soft interrupt or kthread. - As the proc state locking is simplified, it's now safe to take exit() and wait() out from under kernel_lock. - The system spends less time at IPL_SCHED, and there is less lock activity.
Revision 1.351 / (download) - annotate - [select for diffs], Thu Apr 24 08:51:06 2008 UTC (15 years, 1 month ago) by sborrill
Branch: MAIN
Changes since 1.350: +3 -3
lines
Diff to previous 1.350 (colored)
It's only a typo in a comment, but it reduces the number of diffs in my local tree :-)
Revision 1.350 / (download) - annotate - [select for diffs], Mon Apr 21 00:13:46 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.349: +5 -2
lines
Diff to previous 1.349 (colored)
timer fixes for PR 37093: - Fix serious concurrency problems, making the code MT and MP safe in the process. - Don't allocate memory or inspect process state from hardclock().
Revision 1.349.2.1 / (download) - annotate - [select for diffs], Sat Apr 19 08:33:27 2008 UTC (15 years, 1 month ago) by yamt
Branch: yamt-pf42
Changes since 1.349: +5 -2
lines
Diff to previous 1.349 (colored)
Peter Postma's work-in-progress pf import from OpenBSD 4.2. updated to -current by me.
Revision 1.349 / (download) - annotate - [select for diffs], Mon Apr 14 18:07:51 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.348: +37 -25
lines
Diff to previous 1.348 (colored)
SSP: block interrupts when enabling, and move the init to just before starting secondary processors.
Revision 1.341.6.2 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:00 2008 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.341.6.1: +68 -25
lines
Diff to previous 1.341.6.1 (colored) to branchpoint 1.341 (colored)
Sync with HEAD.
Revision 1.348 / (download) - annotate - [select for diffs], Tue Apr 1 10:37:42 2008 UTC (15 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.347: +2 -21
lines
Diff to previous 1.347 (colored)
Use multiple kthreads to process config_interrupts tasks. Proposed on tech-kern.
Revision 1.347.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:47:00 2008 UTC (15 years, 2 months ago) by christos
Branch: christos-time_t
Changes since 1.347: +19 -6
lines
Diff to previous 1.347 (colored)
Welcome to the time_t=long long dev_t=uint64_t branch.
Revision 1.341.6.1 / (download) - annotate - [select for diffs], Sat Mar 29 16:17:56 2008 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.341: +12 -2
lines
Diff to previous 1.341 (colored)
- etc/devfsd.conf: Add some rules to give nodes like /dev/tty and /dev/null better default modes, i.e. 0666. - sbin/init: Run devfsd -s before going to multiuser. - sys/arch: Provide arm32, i386, sparc with a mem_init() function to request device nodes for /dev/null, /dev/zero, etc. - sys/dev: Convert rnd, wd, agp, raid, cd, sd, wsdisplay, wskbd, wsmouse, wsmux, tty, bpf, swap to devfs New World Order. - sys/fs/devfs: Make the visibility attribute of device nodes configurable. Also provide a function to mount a devfs on boot. - sys/kern: Add a new boot flag, -n. This disables devfs support. Unless the -n flag is specified the kernel will mount a devfs file system on boot.
Revision 1.347 / (download) - annotate - [select for diffs], Thu Mar 27 19:11:05 2008 UTC (15 years, 2 months ago) by ad
Branch: MAIN
Branch point for: christos-time_t
Changes since 1.346: +38 -2
lines
Diff to previous 1.346 (colored)
Add code for dynamically allocated mutexes, as posted on tech-kern.
Revision 1.346 / (download) - annotate - [select for diffs], Tue Mar 25 23:21:42 2008 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: ad-socklock-base1
Changes since 1.345: +14 -9
lines
Diff to previous 1.345 (colored)
- for some ports, especially for ones without pmap_growkernel, buf_memcalc is used by bootstrap as well. fix NULL dereference for them. - limit kva usage for each cache to 20% of vm_map. XXX a bit arbitrary. - add a comment.
Revision 1.248.2.10 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:01 2008 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248.2.9: +26 -6
lines
Diff to previous 1.248.2.9 (colored) next main 1.249 (colored)
sync with head.
Revision 1.341.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:13 2008 UTC (15 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.341: +3 -2
lines
Diff to previous 1.341 (colored) next main 1.342 (colored)
sync with head.
Revision 1.345 / (download) - annotate - [select for diffs], Sun Mar 23 10:39:52 2008 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14
Changes since 1.344: +22 -3
lines
Diff to previous 1.344 (colored)
when calculating some cache sizes, consider the amount of available kva. PR/33185.
Revision 1.312.2.5 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:58 2008 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.312.2.4: +27 -28
lines
Diff to previous 1.312.2.4 (colored) to branchpoint 1.312 (colored) next main 1.313 (colored)
sync with HEAD
Revision 1.344 / (download) - annotate - [select for diffs], Sat Mar 22 18:04:42 2008 UTC (15 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.343: +3 -4
lines
Diff to previous 1.343 (colored)
Commit the "per-CPU" select patch. This is the result of much work and testing by rmind@ and myself. Which approach to use is still being discussed, but I would like to get this out of my working tree. If we decide to use a different approach there is no problem with revisiting this.
Revision 1.343 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (15 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.342: +6 -4
lines
Diff to previous 1.342 (colored)
Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
Revision 1.248.2.9 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:32 2008 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248.2.8: +3 -2
lines
Diff to previous 1.248.2.8 (colored)
sync with head.
Revision 1.342 / (download) - annotate - [select for diffs], Sun Mar 9 15:39:14 2008 UTC (15 years, 3 months ago) by rmind
Branch: MAIN
CVS Tags: matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Changes since 1.341: +3 -2
lines
Diff to previous 1.341 (colored)
Remove include of sys/pset.h in sys/lwp.h header. Include it in few appropriate sources.
Revision 1.323.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:45 2008 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.323.2.2: +41 -43
lines
Diff to previous 1.323.2.2 (colored) next main 1.324 (colored)
Sync with HEAD.
Revision 1.331.4.3 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:38 2008 UTC (15 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.331.4.2: +0 -8
lines
Diff to previous 1.331.4.2 (colored) to branchpoint 1.331 (colored) next main 1.332 (colored)
Sync with HEAD.
Revision 1.248.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:59 2008 UTC (15 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248.2.7: +44 -46
lines
Diff to previous 1.248.2.7 (colored)
sync with head
Revision 1.341 / (download) - annotate - [select for diffs], Sun Jan 20 18:09:11 2008 UTC (15 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base,
bouyer-xeni386-nbase
Branch point for: mjf-devfs2,
keiichi-mipv6
Changes since 1.340: +2 -10
lines
Diff to previous 1.340 (colored)
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants, remove the conditionals and the code associated with the undef case.
Revision 1.331.4.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:19 2008 UTC (15 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.331.4.1: +24 -18
lines
Diff to previous 1.331.4.1 (colored) to branchpoint 1.331 (colored)
Sync with HEAD
Revision 1.340 / (download) - annotate - [select for diffs], Wed Jan 16 12:34:50 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xeni386-base
Changes since 1.339: +13 -2
lines
Diff to previous 1.339 (colored)
Pull in my modules code for review/test/hacking.
Revision 1.339 / (download) - annotate - [select for diffs], Tue Jan 15 03:37:10 2008 UTC (15 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.338: +5 -2
lines
Diff to previous 1.338 (colored)
Implementation of processor-sets, affinity and POSIX real-time extensions. Add schedctl(8) - a program to control scheduling of processes and threads. Notes: - This is supported only by SCHED_M2; - Migration of LWP mechanism will be revisited; Proposed on: <tech-kern>. Reviewed by: <ad>.
Revision 1.338 / (download) - annotate - [select for diffs], Mon Jan 14 12:40:03 2008 UTC (15 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.337: +12 -8
lines
Diff to previous 1.337 (colored)
add a per-cpu storage allocator.
Revision 1.337 / (download) - annotate - [select for diffs], Sat Jan 12 23:31:40 2008 UTC (15 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.336: +2 -14
lines
Diff to previous 1.336 (colored)
Remove curlwp check, all ports should hopefully be doing the right thing now (NOTICE: curlwp should be set before main()).
Revision 1.312.2.4 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:57 2008 UTC (15 years, 5 months ago) by matt
Branch: matt-armv6
Changes since 1.312.2.3: +25 -35
lines
Diff to previous 1.312.2.3 (colored) to branchpoint 1.312 (colored)
sync with HEAD
Revision 1.331.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:44 2008 UTC (15 years, 5 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.331: +19 -19
lines
Diff to previous 1.331 (colored)
Sync with HEAD
Revision 1.336 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:48 2008 UTC (15 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.335: +9 -5
lines
Diff to previous 1.335 (colored)
Merge vmlocking2 to head.
Revision 1.335 / (download) - annotate - [select for diffs], Mon Dec 31 15:32:10 2007 UTC (15 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.334: +2 -10
lines
Diff to previous 1.334 (colored)
Remove systrace. Ok core@.
Revision 1.330.2.5 / (download) - annotate - [select for diffs], Fri Dec 28 15:04:24 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.330.2.4: +2 -5
lines
Diff to previous 1.330.2.4 (colored) to branchpoint 1.330 (colored) next main 1.331 (colored)
Fix (harmless) merge error.
Revision 1.334 / (download) - annotate - [select for diffs], Thu Dec 27 13:34:43 2007 UTC (15 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.333: +7 -6
lines
Diff to previous 1.333 (colored)
Call pax_init() for PAX_ASLR.
Revision 1.323.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:53 2007 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.323.2.1: +5 -5
lines
Diff to previous 1.323.2.1 (colored)
Sync with HEAD.
Revision 1.330.2.4 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:36 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.330.2.3: +8 -5
lines
Diff to previous 1.330.2.3 (colored) to branchpoint 1.330 (colored)
Sync with head.
Revision 1.333 / (download) - annotate - [select for diffs], Wed Dec 26 16:01:35 2007 UTC (15 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.332: +5 -2
lines
Diff to previous 1.332 (colored)
Merge more changes from vmlocking2, mainly: - Locking improvements. - Use pool_cache for more items.
Revision 1.332 / (download) - annotate - [select for diffs], Sat Dec 22 01:14:53 2007 UTC (15 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.331: +4 -4
lines
Diff to previous 1.331 (colored)
use binuptime for l_stime/l_rtime.
Revision 1.330.2.3 / (download) - annotate - [select for diffs], Sat Dec 15 03:16:54 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.330.2.2: +5 -2
lines
Diff to previous 1.330.2.2 (colored) to branchpoint 1.330 (colored)
- Use pool_cache for a few more items and make those caches static. - Mark another 10 syscalls MPSAFE including execve(). A small bit of work is required to fix a couple of issues (tty, kqueue).
Revision 1.331.2.1 / (download) - annotate - [select for diffs], Mon Dec 10 12:56:08 2007 UTC (15 years, 6 months ago) by yamt
Branch: yamt-kmem
Changes since 1.331: +2 -5
lines
Diff to previous 1.331 (colored) next main 1.332 (colored)
- separate kernel va allocation (kernel_va_arena) from in-kernel fault handling (kernel_map). - add vmem bootstrap code. vmem doesn't rely on malloc anymore. - make kmem_alloc interrupt-safe. - kill kmem_map. make malloc a wrapper of kmem_alloc.
Revision 1.311.4.11 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:14 2007 UTC (15 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.311.4.10: +3 -3
lines
Diff to previous 1.311.4.10 (colored) to branchpoint 1.311 (colored) next main 1.312 (colored)
Sync with HEAD.
Revision 1.330.2.2 / (download) - annotate - [select for diffs], Sun Dec 9 16:55:59 2007 UTC (15 years, 6 months ago) by ad
Branch: vmlocking2
Changes since 1.330.2.1: +6 -5
lines
Diff to previous 1.330.2.1 (colored) to branchpoint 1.330 (colored)
Fix merge error.
Revision 1.331 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:46 2007 UTC (15 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf
Branch point for: yamt-kmem,
bouyer-xeni386
Changes since 1.330: +3 -3
lines
Diff to previous 1.330 (colored)
Remove cn_lwp from struct componentname. curlwp should be used from on. The NDINIT() macro no longer takes the lwp parameter and associates the credentials of the calling thread with the namei structure.
Revision 1.248.2.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:35 2007 UTC (15 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248.2.6: +5 -2
lines
Diff to previous 1.248.2.6 (colored)
sync with head
Revision 1.330.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:12 2007 UTC (15 years, 6 months ago) by ad
Branch: vmlocking2
Changes since 1.330: +5 -2
lines
Diff to previous 1.330 (colored)
Pull the vmlocking changes into a new branch.
Revision 1.311.4.10 / (download) - annotate - [select for diffs], Wed Nov 21 21:55:57 2007 UTC (15 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.311.4.9: +7 -12
lines
Diff to previous 1.311.4.9 (colored) to branchpoint 1.311 (colored)
Sync with HEAD.
Revision 1.323.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:33 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.323: +21 -23
lines
Diff to previous 1.323 (colored)
Sync with HEAD.
Revision 1.322.2.3 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:47 2007 UTC (15 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.322.2.2: +5 -15
lines
Diff to previous 1.322.2.2 (colored) to branchpoint 1.322 (colored) next main 1.323 (colored)
Sync with HEAD
Revision 1.330 / (download) - annotate - [select for diffs], Thu Nov 15 20:12:04 2007 UTC (15 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: vmlocking2
Changes since 1.329: +5 -2
lines
Diff to previous 1.329 (colored)
Add a bit of locking around timecounter attachment / selection.
Revision 1.248.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:37 2007 UTC (15 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248.2.5: +18 -23
lines
Diff to previous 1.248.2.5 (colored)
sync with head.
Revision 1.329 / (download) - annotate - [select for diffs], Wed Nov 14 19:45:44 2007 UTC (15 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.328: +4 -12
lines
Diff to previous 1.328 (colored)
Boot the secondary processors just before the interrupt-enabled section of autoconfig. This is needed if APs are able to take interrupts.
Revision 1.311.4.9 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:38 2007 UTC (15 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.311.4.8: +2 -7
lines
Diff to previous 1.311.4.8 (colored) to branchpoint 1.311 (colored)
Sync with HEAD.
Revision 1.328 / (download) - annotate - [select for diffs], Wed Nov 14 11:04:07 2007 UTC (15 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.327: +2 -7
lines
Diff to previous 1.327 (colored)
call debug_init earlier. ie. before malloc is used.
Revision 1.322.2.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:52 2007 UTC (15 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.322.2.1: +14 -6
lines
Diff to previous 1.322.2.1 (colored) to branchpoint 1.322 (colored)
Sync with HEAD
Revision 1.311.4.8 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:57 2007 UTC (15 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.311.4.7: +13 -5
lines
Diff to previous 1.311.4.7 (colored) to branchpoint 1.311 (colored)
Sync with HEAD.
Revision 1.312.2.3 / (download) - annotate - [select for diffs], Thu Nov 8 10:59:59 2007 UTC (15 years, 7 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.312.2.2: +10 -2
lines
Diff to previous 1.312.2.2 (colored) to branchpoint 1.312 (colored)
sync with -HEAD
Revision 1.327 / (download) - annotate - [select for diffs], Wed Nov 7 16:51:28 2007 UTC (15 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.326: +5 -5
lines
Diff to previous 1.326 (colored)
Use C99 structures initializers when possible. [from matt-armv6]
Revision 1.326 / (download) - annotate - [select for diffs], Wed Nov 7 15:56:21 2007 UTC (15 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.325: +6 -2
lines
Diff to previous 1.325 (colored)
Merge tty changes from the vmlocking branch.
Revision 1.325 / (download) - annotate - [select for diffs], Wed Nov 7 00:19:08 2007 UTC (15 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.324: +6 -2
lines
Diff to previous 1.324 (colored)
Merge from vmlocking.
Revision 1.312.2.2 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:27 2007 UTC (15 years, 7 months ago) by matt
Branch: matt-armv6
Changes since 1.312.2.1: +36 -16
lines
Diff to previous 1.312.2.1 (colored) to branchpoint 1.312 (colored)
sync with HEAD
Revision 1.311.4.7 / (download) - annotate - [select for diffs], Tue Nov 6 19:25:24 2007 UTC (15 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.311.4.6: +5 -5
lines
Diff to previous 1.311.4.6 (colored) to branchpoint 1.311 (colored)
Sync with HEAD.
Revision 1.324 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:40 2007 UTC (15 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Changes since 1.323: +5 -5
lines
Diff to previous 1.323 (colored)
Merge scheduler changes from the vmlocking branch. All discussed on tech-kern: - Invert priority space so that zero is the lowest priority. Rearrange number and type of priority levels into bands. Add new bands like 'kernel real time'. - Ignore the priority level passed to tsleep. Compute priority for sleep dynamically. - For SCHED_4BSD, make priority adjustment per-LWP, not per-process.
Revision 1.299.2.28 / (download) - annotate - [select for diffs], Mon Nov 5 17:08:31 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.27: +2 -5
lines
Diff to previous 1.299.2.27 (colored) next main 1.300 (colored)
Remove dup call to filedesc_init().
Revision 1.299.2.27 / (download) - annotate - [select for diffs], Sun Oct 28 15:47:13 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.26: +6 -2
lines
Diff to previous 1.299.2.26 (colored)
/dev/klog: - Put locking around it since it's used by printf(). - Mark it MPSAFE.
Revision 1.248.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:18 2007 UTC (15 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248.2.4: +24 -11
lines
Diff to previous 1.248.2.4 (colored)
sync with head.
Revision 1.299.2.26 / (download) - annotate - [select for diffs], Sat Oct 27 09:18:53 2007 UTC (15 years, 7 months ago) by yamt
Branch: vmlocking
Changes since 1.299.2.25: +5 -5
lines
Diff to previous 1.299.2.25 (colored)
fix priorities for some kernel threads. advised and ok'ed by Andrew Doran.
Revision 1.311.4.6 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:26 2007 UTC (15 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.311.4.5: +8 -6
lines
Diff to previous 1.311.4.5 (colored) to branchpoint 1.311 (colored)
Sync with HEAD. Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
Revision 1.322.2.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:58 2007 UTC (15 years, 7 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.322: +3 -3
lines
Diff to previous 1.322 (colored)
Sync with HEAD.
Revision 1.299.2.25 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:08 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.24: +3 -4
lines
Diff to previous 1.299.2.24 (colored)
Sync with head.
Revision 1.299.2.24 / (download) - annotate - [select for diffs], Fri Oct 19 15:54:27 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.23: +4 -3
lines
Diff to previous 1.299.2.23 (colored)
In the tty code, defer posting singals to a soft interrupt. Avoids touching process state from a hardware interrupt, and avoids locking problems (tty_lock is always held when the signals are sent).
Revision 1.323 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:41 2007 UTC (15 years, 7 months ago) by ad
Branch: MAIN
Branch point for: mjf-devfs
Changes since 1.322: +3 -3
lines
Diff to previous 1.322 (colored)
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.311.4.5 / (download) - annotate - [select for diffs], Fri Oct 19 00:49:31 2007 UTC (15 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.311.4.4: +2 -5
lines
Diff to previous 1.311.4.4 (colored) to branchpoint 1.311 (colored)
Stop using mutex_owned in favour of a per-device mutex. XXX I can't include mutex.h from pnp.h due to circular dependencies on x86, so pnp_lock is 'void *' for now. Yes, I'm replacing a hack with another hack, but I feel this one is not nearly as bad...
Revision 1.314.2.3 / (download) - annotate - [select for diffs], Thu Oct 18 08:33:10 2007 UTC (15 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.314.2.2: +2 -3
lines
Diff to previous 1.314.2.2 (colored) to branchpoint 1.314 (colored) next main 1.315 (colored)
sync with head.
Revision 1.311.4.4 / (download) - annotate - [select for diffs], Thu Oct 18 02:07:18 2007 UTC (15 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.311.4.3: +5 -2
lines
Diff to previous 1.311.4.3 (colored) to branchpoint 1.311 (colored)
Improve PNP audio power management. Instead of starting an idle timer to power down the audio device on last close, allow the pm policy to power down the device while it's still open. Since X mixers typically poll /dev/mixer with AUDIO_GET_INFO ioctls, we need to avoid resetting the idle timer when these applications are running. As a result, introduce audio_mixer_{capture,restore} in MI audio and use them in its power handler. When an audio device is asleep, we simply return cached values on AUDIO_GET_INFO ioctls. A nice side effect is that MI audio now properly captures and restores mixer values across hw device suspend/resume. XXX: I've added locking in pnp_power(), but I'm using mutex_owned() in a way that mutex(9) claims I shouldn't be doing. Needs to be revisited.
Revision 1.322 / (download) - annotate - [select for diffs], Mon Oct 15 14:12:55 2007 UTC (15 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Branch point for: bouyer-xenamd64
Changes since 1.321: +2 -3
lines
Diff to previous 1.321 (colored)
Add _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF for sysconf(). These are extensions but are provided by many Unix systems.
Revision 1.314.2.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:37 2007 UTC (15 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.314.2.1: +7 -4
lines
Diff to previous 1.314.2.1 (colored) to branchpoint 1.314 (colored)
sync with head.
Revision 1.321 / (download) - annotate - [select for diffs], Thu Oct 11 19:45:24 2007 UTC (15 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base3,
vmlocking-base
Changes since 1.320: +3 -3
lines
Diff to previous 1.320 (colored)
Merge from vmlocking: - G/C spinlockmgr() and simple_lock debugging. - Always include the kernel_lock functions, for LKMs. - Slightly improved subr_lockdebug code. - Keep sizeof(struct lock) the same if LOCKDEBUG.
Revision 1.299.2.23 / (download) - annotate - [select for diffs], Thu Oct 11 11:08:18 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.22: +3 -3
lines
Diff to previous 1.299.2.22 (colored)
- Always include the kernel_lock functions, for LKMs. - Fix uniprocessor builds. - Tidy up a bit.
Revision 1.299.2.22 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:22 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.21: +31 -10
lines
Diff to previous 1.299.2.21 (colored)
Sync with head.
Revision 1.320 / (download) - annotate - [select for diffs], Mon Oct 8 20:06:18 2007 UTC (15 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.319: +3 -3
lines
Diff to previous 1.319 (colored)
Merge run time accounting changes from the vmlocking branch. These make the LWP "start time" per-thread instead of per-CPU.
Revision 1.319 / (download) - annotate - [select for diffs], Mon Oct 8 15:12:06 2007 UTC (15 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.318: +5 -2
lines
Diff to previous 1.318 (colored)
Merge file descriptor locking, cwdi locking and cross-call changes from the vmlocking branch.
Revision 1.314.2.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:40 2007 UTC (15 years, 8 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.314: +14 -7
lines
Diff to previous 1.314 (colored)
sync with head.
Revision 1.311.4.3 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:56 2007 UTC (15 years, 8 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.311.4.2: +18 -7
lines
Diff to previous 1.311.4.2 (colored) to branchpoint 1.311 (colored)
Sync with HEAD.
Revision 1.318 / (download) - annotate - [select for diffs], Mon Oct 1 22:05:15 2007 UTC (15 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.317: +2 -11
lines
Diff to previous 1.317 (colored)
No need to db_init_commands() early any more - it will happen on first entry to ddb.
Revision 1.317 / (download) - annotate - [select for diffs], Tue Sep 25 22:33:59 2007 UTC (15 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.316: +8 -3
lines
Diff to previous 1.316 (colored)
Make previous conditional upon !__i386__ && !__x86_64__. I know this is gross but it's a debug check that's not intended to live very long. curlwp is about to become a function on x86 (and so can't be assigned to).
Revision 1.316 / (download) - annotate - [select for diffs], Tue Sep 25 21:41:59 2007 UTC (15 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.315: +9 -7
lines
Diff to previous 1.315 (colored)
If curlwp is not set before main(), moan about it but continue to set it. curlwp will need to be available earlier for UVM/pmap bootstrap.
Revision 1.315 / (download) - annotate - [select for diffs], Mon Sep 24 00:00:52 2007 UTC (15 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.314: +11 -2
lines
Diff to previous 1.314 (colored)
db_init_commands() early
Revision 1.307.2.3 / (download) - annotate - [select for diffs], Mon Sep 10 10:55:55 2007 UTC (15 years, 9 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.307.2.2: +6 -2
lines
Diff to previous 1.307.2.2 (colored) to branchpoint 1.307 (colored) next main 1.308 (colored)
Sync with HEAD.
Revision 1.314 / (download) - annotate - [select for diffs], Fri Sep 7 18:56:08 2007 UTC (15 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Changes since 1.313: +6 -2
lines
Diff to previous 1.313 (colored)
Implementation of POSIX message queues. Reviewed by: <ad>, <tech-kern>
Revision 1.311.4.2 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:47 2007 UTC (15 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.311.4.1: +11 -4
lines
Diff to previous 1.311.4.1 (colored) to branchpoint 1.311 (colored)
Sync with HEAD.
Revision 1.248.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:40 2007 UTC (15 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248.2.3: +94 -58
lines
Diff to previous 1.248.2.3 (colored)
sync with head.
Revision 1.307.2.2 / (download) - annotate - [select for diffs], Mon Sep 3 10:22:57 2007 UTC (15 years, 9 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.307.2.1: +11 -4
lines
Diff to previous 1.307.2.1 (colored) to branchpoint 1.307 (colored)
Sync with HEAD.
Revision 1.313 / (download) - annotate - [select for diffs], Sun Sep 2 00:41:24 2007 UTC (15 years, 9 months ago) by xtraeme
Branch: MAIN
Changes since 1.312: +11 -4
lines
Diff to previous 1.312 (colored)
Convert the sysmon watchdog framework to use mutex(9) rather than simple_locks and initialize them on init_main via sysmon_wdog_init(). All the sysmon code now is cleaned up and doesn't use old style locking.
Revision 1.312.2.1 / (download) - annotate - [select for diffs], Tue Aug 28 18:43:43 2007 UTC (15 years, 9 months ago) by matt
Branch: matt-armv6
Changes since 1.312: +6 -6
lines
Diff to previous 1.312 (colored)
Pre-init the static structures (lwp0,proc0,session0,etc.) whenever possible. Use curlwp_set()
Revision 1.299.2.21 / (download) - annotate - [select for diffs], Tue Aug 28 14:03:09 2007 UTC (15 years, 9 months ago) by yamt
Branch: vmlocking
Changes since 1.299.2.20: +3 -3
lines
Diff to previous 1.299.2.20 (colored)
- mark aiodone workqueue MPSAFE. - make lfs callbacks acquire kernel_lock by themselves. ok'ed by Andrew Doran.
Revision 1.299.2.20 / (download) - annotate - [select for diffs], Wed Aug 22 00:49:38 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.19: +4 -3
lines
Diff to previous 1.299.2.19 (colored)
Mark ioflush MP safe.
Revision 1.299.2.19 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:26 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.18: +24 -16
lines
Diff to previous 1.299.2.18 (colored)
Sync with HEAD.
Revision 1.307.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:04 2007 UTC (15 years, 9 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.307: +25 -12
lines
Diff to previous 1.307 (colored)
Sync with HEAD.
Revision 1.299.2.18 / (download) - annotate - [select for diffs], Mon Aug 13 10:00:12 2007 UTC (15 years, 10 months ago) by yamt
Branch: vmlocking
Changes since 1.299.2.17: +2 -5
lines
Diff to previous 1.299.2.17 (colored)
main: don't call callout_startup2 twice.
Revision 1.311.4.1 / (download) - annotate - [select for diffs], Sat Aug 4 12:33:13 2007 UTC (15 years, 10 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.311: +9 -2
lines
Diff to previous 1.311 (colored)
Sync with HEAD.
Revision 1.312.4.2 / (download) - annotate - [select for diffs], Sat Aug 4 11:03:01 2007 UTC (15 years, 10 months ago) by ad
Branch: matt-mips64
Changes since 1.312.4.1: +838 -0
lines
Diff to previous 1.312.4.1 (colored) to branchpoint 1.312 (colored) next main 1.313 (colored)
Add cpuctl(8). For now this is not much more than a toy for debugging and benchmarking that allows taking CPUs online/offline.
Revision 1.312.4.1, Sat Aug 4 11:03:00 2007 UTC (15 years, 10 months ago) by ad
Branch: matt-mips64
Changes since 1.312: +0 -838
lines
FILE REMOVED
file init_main.c was added on branch matt-mips64 on 2007-08-04 11:03:01 +0000
Revision 1.312 / (download) - annotate - [select for diffs], Sat Aug 4 11:03:00 2007 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: matt-mips64-base
Branch point for: matt-mips64,
matt-armv6
Changes since 1.311: +9 -2
lines
Diff to previous 1.311 (colored)
Add cpuctl(8). For now this is not much more than a toy for debugging and benchmarking that allows taking CPUs online/offline.
Revision 1.311 / (download) - annotate - [select for diffs], Mon Jul 30 08:45:26 2007 UTC (15 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: hpcarm-cleanup
Branch point for: jmcneill-pm
Changes since 1.310: +3 -9
lines
Diff to previous 1.310 (colored)
move setrootfstime() from init_main.c to vfs_subr2.c
Revision 1.310 / (download) - annotate - [select for diffs], Sat Jul 21 23:15:16 2007 UTC (15 years, 10 months ago) by xtraeme
Branch: MAIN
Changes since 1.309: +13 -2
lines
Diff to previous 1.309 (colored)
Convert sysmon_taskqueue to use mutex(9) and condvar(9) and initialize them in init_main.c via sysmon_task_queue_preinit(). Reviewed and ok by ad@.
Revision 1.309 / (download) - annotate - [select for diffs], Sat Jul 21 19:51:49 2007 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.308: +6 -2
lines
Diff to previous 1.308 (colored)
Replace some uses of lockmgr().
Revision 1.308 / (download) - annotate - [select for diffs], Fri Jul 20 22:15:47 2007 UTC (15 years, 10 months ago) by tsutsui
Branch: MAIN
Changes since 1.307: +2 -5
lines
Diff to previous 1.307 (colored)
Defer callout_startup2() (which calls softintr_establish(9)) call after cpu_configure(9) for now because softintr(9) is initialized in cpu_configure(9) on some ports. Ok'ed by ad@ on current-users, and fixes hangs on m68k ports during scsi probe.
Revision 1.299.2.17 / (download) - annotate - [select for diffs], Sun Jul 15 22:16:34 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.16: +5 -2
lines
Diff to previous 1.299.2.16 (colored)
Initalize the ttyldisc earlier.
Revision 1.299.2.16 / (download) - annotate - [select for diffs], Sun Jul 15 15:52:53 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.15: +14 -2
lines
Diff to previous 1.299.2.15 (colored)
Sync with head.
Revision 1.299.2.15 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:35 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.14: +12 -9
lines
Diff to previous 1.299.2.14 (colored)
Sync with head.
Revision 1.299.2.14 / (download) - annotate - [select for diffs], Sat Jul 14 22:09:42 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.13: +3 -3
lines
Diff to previous 1.299.2.13 (colored)
Make it possible to track time spent by soft interrupts as is done for normal LWPs, and provide a sysctl to switch it on/off. Not enabled by default because microtime() is not free. XXX Not happy with this but I want it get it out of my local tree for the time being.
Revision 1.299.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:40 2007 UTC (15 years, 11 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.299: +59 -38
lines
Diff to previous 1.299 (colored) next main 1.300 (colored)
Sync with head.
Revision 1.307 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:50 2007 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base,
mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.306: +28 -15
lines
Diff to previous 1.306 (colored)
Merge some of the less invasive changes from the vmlocking branch: - kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
Revision 1.306 / (download) - annotate - [select for diffs], Mon Jul 9 10:05:26 2007 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.305: +2 -9
lines
Diff to previous 1.305 (colored)
Remove kcont: - There are no users in tree. - Its functionality has largely been replaced by workqueues and generic soft interrupts. - It's not MP friendly.
Revision 1.299.2.13 / (download) - annotate - [select for diffs], Sun Jul 1 21:43:42 2007 UTC (15 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.12: +7 -4
lines
Diff to previous 1.299.2.12 (colored)
- Adapt to callout API change. - Add a counter to track how often soft interrupts sleep.
Revision 1.305 / (download) - annotate - [select for diffs], Sun Jul 1 07:36:39 2007 UTC (15 years, 11 months ago) by xtraeme
Branch: MAIN
Changes since 1.304: +13 -2
lines
Diff to previous 1.304 (colored)
Imported envsys 2, a brief description of the new features: (Part 1: API) * Support for detachable sensors. * Cleaned up the API for simplicity and efficiency. * Ability to send capacity/critical/warning events to powerd(8). * Adapted all the code to the new locking order. * Compatibility with the old envsys API: the ENVSYS_GTREINFO and ENVSYS_GTREDATA ioctl(2)s are supported. * Added support for a 'dictionary based communication channel' between sysmon_power(9) and powerd(8), that means there is no 32 bytes event size restriction anymore. * Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40. * All drivers with the n^2 gtredata bug were fixed, PR kern/36226. Tested by: blymn: smsc(4). bouyer: ipmi(4), mfi(4). kefren: ug(4). njoly: viaenv(4), adt7463.c. riz: owtemp(4). xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
Revision 1.299.2.12 / (download) - annotate - [select for diffs], Sat Jun 23 18:10:49 2007 UTC (15 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.11: +3 -3
lines
Diff to previous 1.299.2.11 (colored)
physiod workqueue doesn't need to be at IPL_BIO.
Revision 1.299.2.11 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:18 2007 UTC (15 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.10: +5 -2
lines
Diff to previous 1.299.2.10 (colored)
- Increase the number of thread priorities from 128 to 256. How the space is set up is to be revisited. - Implement soft interrupts as kernel threads. A generic implementation is provided, with hooks for fast-path MD code that can run the interrupt threads over the top of other threads executing in the kernel. - Split vnode::v_flag into three fields, depending on how the flag is locked (by the interlock, by the vnode lock, by the file system). - Miscellaneous locking fixes and improvements.
Revision 1.304 / (download) - annotate - [select for diffs], Sun Jun 17 13:34:43 2007 UTC (15 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.303: +5 -2
lines
Diff to previous 1.303 (colored)
periodically resize vmem hash table.
Revision 1.299.2.10 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:04 2007 UTC (16 years ago) by ad
Branch: vmlocking
Changes since 1.299.2.9: +5 -2
lines
Diff to previous 1.299.2.9 (colored)
Sync with head.
Revision 1.299.2.9 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:15 2007 UTC (16 years ago) by ad
Branch: vmlocking
Changes since 1.299.2.8: +12 -17
lines
Diff to previous 1.299.2.8 (colored)
Sync with head.
Revision 1.303 / (download) - annotate - [select for diffs], Thu May 31 05:29:43 2007 UTC (16 years ago) by rmind
Branch: MAIN
Changes since 1.302: +5 -2
lines
Diff to previous 1.302 (colored)
- Make aio_worker to handle pending exits and coredumps - Allow aio_suspend() to be ended early by a signal - Fix reference counting on LIO structures (remove hack) - Use two global pools for AIO structures - Minor cleanups Patch provided by <ad>. Some additional modifications by me. Reviewed by <yamt>.
Revision 1.302 / (download) - annotate - [select for diffs], Thu May 17 14:51:37 2007 UTC (16 years ago) by yamt
Branch: MAIN
Changes since 1.301: +12 -17
lines
Diff to previous 1.301 (colored)
merge yamt-idlelwp branch. asked by core@. some ports still needs work. from doc/BRANCHES: idle lwp, and some changes depending on it. 1. separate context switching and thread scheduling. (cf. gmcgarry_ctxsw) 2. implement idle lwp. 3. clean up related MD/MI interfaces. 4. make scheduler(s) modular.
Revision 1.299.2.8 / (download) - annotate - [select for diffs], Sun May 13 17:36:33 2007 UTC (16 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.299.2.7: +13 -7
lines
Diff to previous 1.299.2.7 (colored)
- Pass the error number and residual count to biodone(), and let it handle setting error indicators. Prepare to eliminate B_ERROR. - Add a flag argument to brelse() to be set into the buf's flags, instead of doing it directly. Typically used to set B_INVAL. - Add a "struct cpu_info *" argument to kthread_create(), to be used to create bound threads. Change "bool mpsafe" to "int flags". - Allow exit of LWPs in the IDL state when (l != curlwp). - More locking fixes & conversion to the new API.
Revision 1.299.2.7 / (download) - annotate - [select for diffs], Fri Apr 13 20:56:17 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.6: +5 -2
lines
Diff to previous 1.299.2.6 (colored)
- Make the devsw interface MP safe, and add some comments. - Allow individual block/character drivers to be marked MP safe. - Provide wrappers around the device methods that look up the device, returning ENXIO if it's not found, and acquire the kernel lock if needed.
Revision 1.299.2.6 / (download) - annotate - [select for diffs], Tue Apr 10 12:07:12 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.5: +4 -10
lines
Diff to previous 1.299.2.5 (colored)
Nuke the deferred kthread creation stuff, as it's no longer needed. Pointed out by thorpej@.
Revision 1.299.2.5 / (download) - annotate - [select for diffs], Tue Apr 10 00:22:11 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.4: +5 -2
lines
Diff to previous 1.299.2.4 (colored)
Changes to select/poll: - Make them MP safe and decouple from the proc locks. - selwakeup: don't call p_find, or traverse per-proc LWP lists (ouch). - selwakeup: don't lock the sleep queue unless we need to.
Revision 1.299.2.4 / (download) - annotate - [select for diffs], Mon Apr 9 22:10:02 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.3: +4 -4
lines
Diff to previous 1.299.2.3 (colored)
- Add two new arguments to kthread_create1: pri_t pri, bool mpsafe. - Fork kthreads off proc0 as new LWPs, not new processes.
Revision 1.294.2.7 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:59 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.294.2.6: +7 -4
lines
Diff to previous 1.294.2.6 (colored) next main 1.295 (colored)
sync with head.
Revision 1.294.2.6 / (download) - annotate - [select for diffs], Sat Mar 24 12:07:23 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.294.2.5: +1 -11
lines
Diff to previous 1.294.2.5 (colored)
update ncpu when attaching cpus, rather than counting cpus after calling cpu_boot_secondary_processors. no difference at this point, but it should be more cpu-hotplug friendly.
Revision 1.294.2.5 / (download) - annotate - [select for diffs], Sat Mar 24 11:36:02 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.294.2.4: +5 -5
lines
Diff to previous 1.294.2.4 (colored)
initialize ci->ci_schedstate.spc_mutex of APs. (sched_rqinit is called before APs are attached.)
Revision 1.299.2.3 / (download) - annotate - [select for diffs], Wed Mar 21 20:11:49 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.2: +9 -2
lines
Diff to previous 1.299.2.2 (colored)
- Replace more simple_locks, and fix up in a few places. - Use condition variables. - LOCK_ASSERT -> KASSERT.
Revision 1.299.2.2 / (download) - annotate - [select for diffs], Tue Mar 13 17:50:50 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.299.2.1: +4 -2
lines
Diff to previous 1.299.2.1 (colored)
Pull in the initial set of changes for the vmlocking branch.
Revision 1.301 / (download) - annotate - [select for diffs], Tue Mar 13 17:23:49 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Changes since 1.300: +4 -2
lines
Diff to previous 1.300 (colored)
Don't call pipe_init if PIPE_SOCKETPAIR is defined.
Revision 1.299.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:51:49 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.299: +5 -4
lines
Diff to previous 1.299 (colored)
Sync with head.
Revision 1.300 / (download) - annotate - [select for diffs], Mon Mar 12 21:31:11 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.299: +5 -4
lines
Diff to previous 1.299 (colored)
Put a lock around pipe->pipe_peer.
Revision 1.294.2.4 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:31 2007 UTC (16 years, 3 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.294.2.3: +12 -17
lines
Diff to previous 1.294.2.3 (colored)
Sync with HEAD.
Revision 1.299 / (download) - annotate - [select for diffs], Sat Mar 10 15:56:21 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Branch point for: vmlocking,
mjf-ufs-trans
Changes since 1.298: +2 -7
lines
Diff to previous 1.298 (colored)
lockdebug: - Initialize on the first allocation. - Handle overflow better. PR kern/35723.
Revision 1.298 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:23 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.297: +4 -4
lines
Diff to previous 1.297 (colored)
- Make the proclist_lock a mutex. The write:read ratio is unfavourable, and mutexes are cheaper use than RW locks. - LOCK_ASSERT -> KASSERT in some places. - Hold proclist_lock/kernel_lock longer in a couple of places.
Revision 1.297 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:03 2007 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.296: +9 -9
lines
Diff to previous 1.296 (colored)
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.296 / (download) - annotate - [select for diffs], Sat Mar 3 10:08:18 2007 UTC (16 years, 3 months ago) by itohy
Branch: MAIN
Changes since 1.295: +3 -3
lines
Diff to previous 1.295 (colored)
Remove extra space so that symbol renaming works properly.
Revision 1.294.2.3 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:16 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.294.2.2: +3 -3
lines
Diff to previous 1.294.2.2 (colored)
- sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.248.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:03 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248.2.2: +82 -22
lines
Diff to previous 1.248.2.2 (colored)
sync with head.
Revision 1.294.2.2 / (download) - annotate - [select for diffs], Tue Feb 20 21:48:44 2007 UTC (16 years, 3 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.294.2.1: +6 -6
lines
Diff to previous 1.294.2.1 (colored)
General Common Scheduler Framework (CSF) patch import. Huge thanks for Daniel Sieger <dsieger at TechFak.Uni-Bielefeld de> for this work. Short abstract: Split the dispatcher from the scheduler in order to make the scheduler more modular. Introduce initial API for other schedulers' implementations. Discussed in tech-kern@ OK: yamt@, ad@ Note: further work will go soon.
Revision 1.295 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:42 2007 UTC (16 years, 3 months ago) by pavel
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Changes since 1.294: +3 -3
lines
Diff to previous 1.294 (colored)
Change the process/lwp flags seen by userland via sysctl back to the P_*/L_* naming convention, and rename the in-kernel flags to avoid conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD constant. Restores source compatibility with pre-newlock2 tools like ps or top. Reviewed by Andrew Doran.
Revision 1.294.2.1 / (download) - annotate - [select for diffs], Sat Feb 17 10:30:51 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.294: +7 -2
lines
Diff to previous 1.294 (colored)
- separate context switching and thread scheduling. - introduce idle lwp. - change some related MD/MI interfaces and implement i386 version.
Revision 1.294 / (download) - annotate - [select for diffs], Thu Feb 15 20:32:47 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.293: +13 -2
lines
Diff to previous 1.293 (colored)
Count the number of CPUs at boot and stash in 'ncpu'. Eventually should have each CPU register at attach, so we can figure out the topology for the scheduler.
Revision 1.293 / (download) - annotate - [select for diffs], Sun Feb 11 14:29:01 2007 UTC (16 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.292: +2 -3
lines
Diff to previous 1.292 (colored)
remove a duplicated inclusion of sleepq.h.
Revision 1.292 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:30 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.291: +49 -15
lines
Diff to previous 1.291 (colored)
Merge newlock2 to head.
Revision 1.276.4.11 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:37 2007 UTC (16 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.276.4.10: +24 -8
lines
Diff to previous 1.276.4.10 (colored) to branchpoint 1.276 (colored) next main 1.277 (colored)
Sync with head.
Revision 1.276.4.10 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:40 2007 UTC (16 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.276.4.9: +0 -1
lines
Diff to previous 1.276.4.9 (colored) to branchpoint 1.276 (colored)
Remove support for SA. Ok core@.
Revision 1.291 / (download) - annotate - [select for diffs], Sat Jan 27 22:54:58 2007 UTC (16 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase,
newlock2-base
Changes since 1.290: +10 -5
lines
Diff to previous 1.290 (colored)
Add a comment to indicate the reason for kauth_init() and secmodel_start() being where they are. Suggested by and okay christos@.
Revision 1.290 / (download) - annotate - [select for diffs], Sat Jan 27 01:13:10 2007 UTC (16 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.289: +5 -5
lines
Diff to previous 1.289 (colored)
Start the security model sooner. As with previous commit, we want to allow the secmodel code to control the credential inheritance, etc., so we need it started earlier (also before proc0_init()).
Revision 1.289 / (download) - annotate - [select for diffs], Fri Jan 26 21:57:47 2007 UTC (16 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.288: +5 -5
lines
Diff to previous 1.288 (colored)
Initialize kauth(9) sooner. Since we'll soon want to be able to control the inheritance of credentials, kauth(9) needs to be ready for use much sooner -- at least before the call to proc0_init().
Revision 1.276.4.9 / (download) - annotate - [select for diffs], Fri Jan 19 20:49:54 2007 UTC (16 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.276.4.8: +7 -2
lines
Diff to previous 1.276.4.8 (colored) to branchpoint 1.276 (colored)
Add some DEBUG code to check that items being freed were previously allocated from the same source. Needs to be enabled via DDB.
Revision 1.288 / (download) - annotate - [select for diffs], Fri Jan 19 14:49:10 2007 UTC (16 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.287: +5 -2
lines
Diff to previous 1.287 (colored)
New file system suspension API to replace vn_start_write and vn_finished_write. The suspension helpers are now put into file system specific operations. This means every file system not supporting these helpers cannot be suspended and therefore snapshots are no longer possible. Implemented for file systems of type ffs. The new API is enabled on a kernel option NEWVNGATE. This option is not enabled by default in any kernel config. Presented and discussed on tech-kern with much input from Bill Studenmund <wrstuden@netbsd.org> and YAMAMOTO Takashi <yamt@netbsd.org>. Welcome to 4.99.9 (new vfs op vfs_suspendctl).
Revision 1.276.4.8 / (download) - annotate - [select for diffs], Thu Jan 18 00:15:36 2007 UTC (16 years, 4 months ago) by christos
Branch: newlock2
Changes since 1.276.4.7: +10 -3
lines
Diff to previous 1.276.4.7 (colored) to branchpoint 1.276 (colored)
make things compile.
Revision 1.287 / (download) - annotate - [select for diffs], Wed Jan 17 12:27:24 2007 UTC (16 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.286: +10 -2
lines
Diff to previous 1.286 (colored)
Oops - this should have gone in a long time ago. Weak alias secmodel_start to a nop routine, for building without a secmodel in the kernel.
Revision 1.276.4.7 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:06 2007 UTC (16 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.276.4.6: +22 -27
lines
Diff to previous 1.276.4.6 (colored) to branchpoint 1.276 (colored)
Sync with head.
Revision 1.276.4.6 / (download) - annotate - [select for diffs], Thu Jan 11 22:22:59 2007 UTC (16 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.276.4.5: +3 -3
lines
Diff to previous 1.276.4.5 (colored) to branchpoint 1.276 (colored)
Checkpoint work in progress.
Revision 1.248.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:04 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248.2.1: +71 -21
lines
Diff to previous 1.248.2.1 (colored)
sync with head.
Revision 1.276.4.5 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:43 2006 UTC (16 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.276.4.4: +12 -4
lines
Diff to previous 1.276.4.4 (colored) to branchpoint 1.276 (colored)
Checkpoint work in progress.
Revision 1.286 / (download) - annotate - [select for diffs], Thu Dec 21 15:55:25 2006 UTC (16 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.285: +4 -4
lines
Diff to previous 1.285 (colored)
merge yamt-splraiseipl branch. - finish implementing splraiseipl (and makeiplcookie). http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html - complete workqueue(9) and fix its ipl problem, which is reported to cause audio skipping. - fix netbt (at least compilation problems) for some ports. - fix PR/33218.
Revision 1.277.2.6 / (download) - annotate - [select for diffs], Thu Dec 21 14:55:05 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.277.2.5: +2 -62
lines
Diff to previous 1.277.2.5 (colored) to branchpoint 1.277 (colored) next main 1.278 (colored)
revert 1.277.2.2 (test code for this branch) to prepare merge.
Revision 1.277.2.5 / (download) - annotate - [select for diffs], Mon Dec 18 11:42:15 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.277.2.4: +2 -11
lines
Diff to previous 1.277.2.4 (colored) to branchpoint 1.277 (colored)
sync with head.
Revision 1.285 / (download) - annotate - [select for diffs], Mon Dec 11 15:24:28 2006 UTC (16 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4
Changes since 1.284: +2 -11
lines
Diff to previous 1.284 (colored)
- remove a static configuration, FILEASSOC_NHOOKS. do it dynamically instead. - make fileassoc_t a pointer and remove FILEASSOC_INVAL. - clean up kern_fileassoc.c. unify duplicated code. - unexport fileassoc_init using RUN_ONCE(9). - plug memory leaks in fileassoc_file_delete and fileassoc_table_delete. - always call callbacks, regardless of the value of the associated data. ok'ed by elad.
Revision 1.277.2.4 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:43 2006 UTC (16 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.277.2.3: +52 -7
lines
Diff to previous 1.277.2.3 (colored) to branchpoint 1.277 (colored)
sync with head.
Revision 1.284 / (download) - annotate - [select for diffs], Thu Dec 7 20:23:38 2006 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base3
Changes since 1.283: +6 -2
lines
Diff to previous 1.283 (colored)
iostat: avoid sleeping with a held simple_lock.
Revision 1.283 / (download) - annotate - [select for diffs], Sun Nov 26 16:22:36 2006 UTC (16 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Changes since 1.282: +6 -7
lines
Diff to previous 1.282 (colored)
I wanted to do this for so long: veriexec_init_fp_ops() -> veriexec_init().
Revision 1.282 / (download) - annotate - [select for diffs], Wed Nov 22 02:02:51 2006 UTC (16 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.281: +4 -5
lines
Diff to previous 1.281 (colored)
Initial implementation of PaX Segvguard (this is still work-in-progress, it's just to get it out of my local tree).
Revision 1.281 / (download) - annotate - [select for diffs], Wed Nov 22 00:41:38 2006 UTC (16 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.280: +11 -2
lines
Diff to previous 1.280 (colored)
Make PaX MPROTECT use specificdata(9), freeing up two P_* flags. While here, make more generic for upcoming PaX features.
Revision 1.276.4.4 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:21 2006 UTC (16 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.276.4.3: +44 -4
lines
Diff to previous 1.276.4.3 (colored) to branchpoint 1.276 (colored)
Sync with head.
Revision 1.276.4.3 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:35 2006 UTC (16 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.276.4.2: +5 -5
lines
Diff to previous 1.276.4.2 (colored) to branchpoint 1.276 (colored)
Checkpoint work in progress.
Revision 1.280 / (download) - annotate - [select for diffs], Sat Nov 11 02:12:53 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.279: +36 -2
lines
Diff to previous 1.279 (colored)
Add SSP support. XXX: This is broken for me right now, because my kernel resets after fxp0 is probed, but it could be some bug in the driver/compiler.
Revision 1.277.2.3 / (download) - annotate - [select for diffs], Sun Oct 22 08:07:53 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.277.2.2: +2 -2
lines
Diff to previous 1.277.2.2 (colored) to branchpoint 1.277 (colored)
use workqueue for aiodoned.
Revision 1.277.2.2 / (download) - annotate - [select for diffs], Sun Oct 22 06:19:20 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.277.2.1: +60 -0
lines
Diff to previous 1.277.2.1 (colored) to branchpoint 1.277 (colored)
add some test code to ensure basic spl operations are compilable and not to panic. i'll remove this code before merging this branch to trunk.
Revision 1.277.2.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:09 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.277: +6 -5
lines
Diff to previous 1.277 (colored)
sync with head
Revision 1.276.4.2 / (download) - annotate - [select for diffs], Sat Oct 21 14:31:56 2006 UTC (16 years, 7 months ago) by ad
Branch: newlock2
Changes since 1.276.4.1: +27 -10
lines
Diff to previous 1.276.4.1 (colored) to branchpoint 1.276 (colored)
- Initialize sleep queues, etc. - Define mi_cpu_init(). XXX This is probably not the right place.
Revision 1.279 / (download) - annotate - [select for diffs], Sun Oct 8 04:28:44 2006 UTC (16 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.278: +3 -2
lines
Diff to previous 1.278 (colored)
Add specificdata support to procs and lwps, each providing their own wrappers around the speicificdata subroutines. Also: - Call the new lwpinit() function from main() after calling procinit(). - Move some pool initialization out of kern_proc.c and into files that are directly related to the pools in question (kern_lwp.c and kern_ras.c). - Convert uipc_sem.c to proc_{get,set}specific(), and eliminate the p_ksems member from struct proc.
Revision 1.278 / (download) - annotate - [select for diffs], Mon Oct 2 16:29:57 2006 UTC (16 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.277: +5 -5
lines
Diff to previous 1.277 (colored)
Move the kauth_init() call above auto-configuration; this will fix some recent bugs introduced with the usage of kauth(9) in MD/device code. While here, change the sanity checks to KASSERT(), because they're really bugs we should fix if triggered.
Revision 1.262.2.7 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.262.2.6: +7 -2
lines
Diff to previous 1.262.2.6 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)
sync with head.
Revision 1.276.4.1 / (download) - annotate - [select for diffs], Mon Sep 11 16:19:01 2006 UTC (16 years, 9 months ago) by ad
Branch: newlock2
Changes since 1.276: +13 -8
lines
Diff to previous 1.276 (colored)
Add updated locking primatives.
Revision 1.261.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:15 2006 UTC (16 years, 9 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.261: +44 -22
lines
Diff to previous 1.261 (colored) next main 1.262 (colored)
sync with head
Revision 1.277 / (download) - annotate - [select for diffs], Fri Sep 8 20:58:57 2006 UTC (16 years, 9 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Changes since 1.276: +7 -2
lines
Diff to previous 1.276 (colored)
First take at security model abstraction. - Add a few scopes to the kernel: system, network, and machdep. - Add a few more actions/sub-actions (requests), and start using them as opposed to the KAUTH_GENERIC_ISSUSER place-holders. - Introduce a basic set of listeners that implement our "traditional" security model, called "bsd44". This is the default (and only) model we have at the moment. - Update all relevant documentation. - Add some code and docs to help folks who want to actually use this stuff: * There's a sample overlay model, sitting on-top of "bsd44", for fast experimenting with tweaking just a subset of an existing model. This is pretty cool because it's *really* straightforward to do stuff you had to use ugly hacks for until now... * And of course, documentation describing how to do the above for quick reference, including code samples. All of these changes were tested for regressions using a Python-based testsuite that will be (I hope) available soon via pkgsrc. Information about the tests, and how to write new ones, can be found on: http://kauth.linbsd.org/kauthwiki NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the following: - Uses a KAUTH_GENERIC_ISSUSER kauth(9) request, - Checks 'securelevel' directly, - Checks a uid/gid directly. (or if you feel you have to, contact me first) This is still work in progress; It's far from being done, but now it'll be a lot easier. Relevant mailing list threads: http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help stablizing kauth(9). Full credit for the regression tests, making sure these changes didn't break anything, goes to Matt Fleming and Jaime Fournier. Happy birthday Randi! :)
Revision 1.262.2.6 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (16 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.262.2.5: +17 -12
lines
Diff to previous 1.262.2.5 (colored) to branchpoint 1.262 (colored)
sync with head
Revision 1.276 / (download) - annotate - [select for diffs], Wed Jul 26 09:33:57 2006 UTC (16 years, 10 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
rpaulo-netinet-merge-pcb-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.275: +1 -1
lines
Diff to previous 1.275 (colored)
at the request of elad, as veriexec.h has returned, revert the changes from 2006-07-25.
Revision 1.275 / (download) - annotate - [select for diffs], Tue Jul 25 00:23:06 2006 UTC (16 years, 10 months ago) by dogcow
Branch: MAIN
Changes since 1.274: +3 -3
lines
Diff to previous 1.274 (colored)
mechanically go through and s,include "veriexec.h",include <sys/verified_exec.h>, as the former has apparently gone away.
Revision 1.274 / (download) - annotate - [select for diffs], Mon Jul 24 16:37:28 2006 UTC (16 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.273: +3 -3
lines
Diff to previous 1.273 (colored)
some fixes: - adapt to NVERIEXEC in init_sysctl.c. - we now need "veriexec.h" for NVERIEXEC. - "opt_verified_exec.h" -> "opt_veriexec.h", and include it only where it is needed.
Revision 1.273 / (download) - annotate - [select for diffs], Sat Jul 22 10:34:26 2006 UTC (16 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.272: +6 -6
lines
Diff to previous 1.272 (colored)
deprecate the VERIFIED_EXEC option; now we only need the pseudo-device to enable it. while here, some config file tweaks. tons of input from cube@ (thanks!) and okay blymn@.
Revision 1.272 / (download) - annotate - [select for diffs], Fri Jul 14 22:44:28 2006 UTC (16 years, 10 months ago) by kardel
Branch: MAIN
Changes since 1.271: +3 -5
lines
Diff to previous 1.271 (colored)
keep NetBSD boottime semantics: - only set at boot - only tracking delta of set-time operations -> will keep boottime stable across ACPI sleeps uptime(1) will report the time since last boot
Revision 1.271 / (download) - annotate - [select for diffs], Fri Jul 14 18:41:40 2006 UTC (16 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.270: +11 -2
lines
Diff to previous 1.270 (colored)
okay, since there was no way to divide this to two commits, here it goes.. introduce fileassoc(9), a kernel interface for associating meta-data with files using in-kernel memory. this is very similar to what we had in veriexec till now, only abstracted so it can be used more easily by more consumers. this also prompted the redesign of the interface, making it work on vnodes and mounts and not directly on devices and inodes. internally, we still use file-id but that's gonna change soon... the interface will remain consistent. as a result, veriexec went under some heavy changes to conform to the new interface. since we no longer use device numbers to identify file-systems, the veriexec sysctl stuff changed too: kern.veriexec.count.dev_N is now kern.veriexec.tableN.* where 'N' is NOT the device number but rather a way to distinguish several mounts. also worth noting is the plugging of unmount/delete operations wrt/fileassoc and veriexec. tons of input from yamt@, wrstuden@, martin@, and christos@.
Revision 1.268.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:50 2006 UTC (16 years, 11 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.268: +5 -4
lines
Diff to previous 1.268 (colored) next main 1.269 (colored)
Merge from HEAD.
Revision 1.270 / (download) - annotate - [select for diffs], Sat Jul 1 05:41:10 2006 UTC (16 years, 11 months ago) by kardel
Branch: MAIN
Changes since 1.269: +0 -2
lines
Diff to previous 1.269 (colored)
always call ntp initialisation for timecounter systems as the ntp code degenerates to the adjtime implementation in the non NTP case
Revision 1.262.2.5 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:56 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.262.2.4: +30 -7
lines
Diff to previous 1.262.2.4 (colored) to branchpoint 1.262 (colored)
sync with head.
Revision 1.269 / (download) - annotate - [select for diffs], Sun Jun 25 08:00:01 2006 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.268: +3 -0
lines
Diff to previous 1.268 (colored)
1. implement solaris-like vmem. (still primitive, though) 2. implement solaris-like kmem_alloc/free api, using #1. (note: this implementation is backed by kernel_map, thus can't be used from interrupt context.)
Revision 1.248.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:37 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.248: +48 -155
lines
Diff to previous 1.248 (colored)
sync with head.
Revision 1.266.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:15 2006 UTC (16 years, 11 months ago) by chap
Branch: chap-midi
Changes since 1.266: +27 -7
lines
Diff to previous 1.266 (colored) next main 1.267 (colored)
Sync with head.
Revision 1.268 / (download) - annotate - [select for diffs], Fri Jun 9 22:47:56 2006 UTC (17 years ago) by kardel
Branch: MAIN
CVS Tags: gdamore-uart-base,
chap-midi-nbase,
chap-midi-base
Branch point for: gdamore-uart
Changes since 1.267: +3 -2
lines
Diff to previous 1.267 (colored)
re-order initialization sequence to have real counters available during autoconfig
Revision 1.267 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:39 2006 UTC (17 years ago) by kardel
Branch: MAIN
Changes since 1.266: +26 -7
lines
Diff to previous 1.266 (colored)
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
Revision 1.261.6.4 / (download) - annotate - [select for diffs], Thu Jun 1 23:21:08 2006 UTC (17 years ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.261.6.3: +9 -8
lines
Diff to previous 1.261.6.3 (colored) next main 1.262 (colored)
initialize ntp variables before timing code would reference them
Revision 1.261.6.3 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:06 2006 UTC (17 years ago) by kardel
Branch: simonb-timecounters
Changes since 1.261.6.2: +6 -2
lines
Diff to previous 1.261.6.2 (colored)
Sync with head.
Revision 1.263.4.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (17 years ago) by tron
Branch: peter-altq
Changes since 1.263.4.1: +4 -1
lines
Diff to previous 1.263.4.1 (colored) to branchpoint 1.263 (colored) next main 1.264 (colored)
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.262.2.4 / (download) - annotate - [select for diffs], Wed May 24 10:58:40 2006 UTC (17 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.262.2.3: +6 -2
lines
Diff to previous 1.262.2.3 (colored) to branchpoint 1.262 (colored)
sync with head.
Revision 1.266 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (17 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.265: +6 -2
lines
Diff to previous 1.265 (colored)
integrate kauth.
Revision 1.261.6.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (17 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.261.6.1: +2 -12
lines
Diff to previous 1.261.6.1 (colored)
Sync with head.
Revision 1.263.2.3 / (download) - annotate - [select for diffs], Wed Apr 19 05:13:59 2006 UTC (17 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.263.2.2: +2 -4
lines
Diff to previous 1.263.2.2 (colored) to branchpoint 1.263 (colored) next main 1.264 (colored)
sync with head.
Revision 1.262.2.3 / (download) - annotate - [select for diffs], Tue Apr 11 11:55:47 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.262.2.2: +2 -3
lines
Diff to previous 1.262.2.2 (colored) to branchpoint 1.262 (colored)
sync with head
Revision 1.265 / (download) - annotate - [select for diffs], Mon Apr 10 11:16:22 2006 UTC (17 years, 2 months ago) by onoe
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
elad-kernelauth-base
Changes since 1.264: +2 -3
lines
Diff to previous 1.264 (colored)
Move "opt_maxuprc.h" from init_main.c to kern_proc.c, as the definition of maxuprc has been moved to kern_proc.c (rev. 1.80).
Revision 1.262.2.2 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:39 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.262.2.1: +2 -3
lines
Diff to previous 1.262.2.1 (colored) to branchpoint 1.262 (colored)
sync with head.
Revision 1.263.4.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:27 2006 UTC (17 years, 2 months ago) by tron
Branch: peter-altq
Changes since 1.263: +2 -3
lines
Diff to previous 1.263 (colored)
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
Revision 1.264 / (download) - annotate - [select for diffs], Thu Mar 30 17:40:58 2006 UTC (17 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3
Changes since 1.263: +2 -3
lines
Diff to previous 1.263 (colored)
Remove useless whitepsace. This commit is dedicated to Dan Langille.
Revision 1.262.2.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:32 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.262: +2 -6
lines
Diff to previous 1.262 (colored)
sync with head.
Revision 1.263.2.2 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:40 2006 UTC (17 years, 3 months ago) by elad
Branch: elad-kernelauth
Changes since 1.263.2.1: +681 -0
lines
Diff to previous 1.263.2.1 (colored) to branchpoint 1.263 (colored)
Adapt to kernel authorization KPI.
Revision 1.263.2.1, Tue Mar 7 03:32:06 2006 UTC (17 years, 3 months ago) by elad
Branch: elad-kernelauth
Changes since 1.263: +0 -677
lines
FILE REMOVED
file init_main.c was added on branch elad-kernelauth on 2006-03-08 00:53:40 +0000
Revision 1.263 / (download) - annotate - [select for diffs], Tue Mar 7 03:32:06 2006 UTC (17 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2,
peter-altq-base
Branch point for: peter-altq,
elad-kernelauth
Changes since 1.262: +2 -6
lines
Diff to previous 1.262 (colored)
Clean up fallout proc_is_traced_p() change: - proc_is_traced_p() -> trace_is_enabled(), to match trace_enter() and trace_exit(). - trace_is_enabled() becomes a real function. - Remove unnecessary include files from various files that used to care about KTRACE and SYSTRACE, but do no more.
Revision 1.261.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:18 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.261: +2 -6
lines
Diff to previous 1.261 (colored) next main 1.262 (colored)
sync with head.
Revision 1.262 / (download) - annotate - [select for diffs], Sun Feb 12 01:32:06 2006 UTC (17 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy
Changes since 1.261: +2 -6
lines
Diff to previous 1.261 (colored)
convert "magiclinks" from a per-fs mount option to a system-wide sysctl. as discussed on tech-kern quite some time ago.
Revision 1.261.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:37:37 2006 UTC (17 years, 4 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.261: +26 -8
lines
Diff to previous 1.261 (colored)
Adjust for timecounters, call ntp_init().
Revision 1.244.6.6 / (download) - annotate - [select for diffs], Fri Jan 20 20:48:41 2006 UTC (17 years, 4 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1
Changes since 1.244.6.5: +2 -6
lines
Diff to previous 1.244.6.5 (colored) to branchpoint 1.244 (colored) next main 1.245 (colored)
Back out tickets 490, 559, and 560, which added "magic symlinks", at the request of chs@ (thorpej@ concurs), as there is consensus that this should be changed to a system-wide tunable, rather than a mount option.
Revision 1.244.6.5 / (download) - annotate - [select for diffs], Thu Dec 29 00:57:09 2005 UTC (17 years, 5 months ago) by riz
Branch: netbsd-3
Changes since 1.244.6.4: +6 -2
lines
Diff to previous 1.244.6.4 (colored) to branchpoint 1.244 (colored)
Pull up following revision(s) (requested by thorpej in ticket #490): lib/libc/sys/mount.2: revision 1.33 sys/sys/systm.h: revision 1.179 sys/sys/fstypes.h: revision 1.4 include/mntopts.h: revision 1.6 sys/conf/newvers.sh: revision 1.41 sys/kern/vfs_syscalls.c: revision 1.223 sys/conf/files: revision 1.720 sys/kern/vfs_lookup.c: revision 1.61 share/man/man7/symlink.7: revision 1.7 sbin/mount/mount.8: revision 1.47 sys/kern/init_main.c: revision 1.248 via patch share/man/man4/options.4: revision 1.280 via patch Implement expansion of special "magic" strings in symlinks into system-specific values. Submitted by Chris Demetriou in Nov 1995 (!) in PR kern/1781, modified only slighly by me. This is enabled on a per-mount basis with the MNT_MAGICLINKS mount flag. It can be enabled at mountroot() time by building the kernel with the ROOTFS_MAGICLINKS option. The following magic strings are supported by the implementation: @machine value of MACHINE for the system @machine_arch value of MACHINE_ARCH for the system @hostname the system host name, as set with sethostname() @domainname the system domain name, as set with setdomainname() @kernel_ident the kernel config file name @osrelease the releaes number of the OS @ostype the name of the OS (always "NetBSD" for NetBSD) Example usage: mkdir /arch/i386/bin mkdir /arch/sparc/bin ln -s /arch/@machine_arch/bin /bin
Revision 1.261 / (download) - annotate - [select for diffs], Sat Dec 24 19:12:23 2005 UTC (17 years, 5 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Changes since 1.260: +3 -3
lines
Diff to previous 1.260 (colored)
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.260 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.259: +7 -7
lines
Diff to previous 1.259 (colored)
merge ktrace-lwp.
Revision 1.221.2.10 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:11 2005 UTC (17 years, 6 months ago) by christos
Branch: ktrace-lwp
Changes since 1.221.2.9: +3 -28
lines
Diff to previous 1.221.2.9 (colored) next main 1.222 (colored)
Sync with head.
Revision 1.251.6.2 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:29 2005 UTC (17 years, 6 months ago) by yamt
Branch: yamt-readahead
Changes since 1.251.6.1: +2 -34
lines
Diff to previous 1.251.6.1 (colored) to branchpoint 1.251 (colored) next main 1.252 (colored)
sync with head.
Revision 1.259 / (download) - annotate - [select for diffs], Sun Nov 27 05:35:52 2005 UTC (17 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-readahead-base3,
ktrace-lwp-base
Changes since 1.258: +2 -3
lines
Diff to previous 1.258 (colored)
Overhaul how TTY line disciplines are handled: - Replace references to linesw[0] with a ttyldisc_default() function that returns the default ("termios") line discipline. - The linesw[] array is gone, replaced by a linked list. - ttyldisc_add() and ttyldisc_remove() have been replaced by ttyldisc_attach() and ttyldisc_detach(). - Things that provide line disciplines are now responsible for registering those disciplines with the system. The linesw structures are no longer declared in tty_conf.c - Line disciplines are now refcounted; a lookup causes a reference to be held. ttyldisc_release() releases the reference. Attempts to detach an in-use line discipline result in EBUSY. - Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c that was masked by the old tty_conf.c - tty_init() is no longer necessary; delete it and its call from main().
Revision 1.258 / (download) - annotate - [select for diffs], Fri Nov 25 20:32:32 2005 UTC (17 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.257: +2 -6
lines
Diff to previous 1.257 (colored)
Statically initalize the systrace lock. systrace_init() is now not needed on NetBSD. Remove the call from main().
Revision 1.257 / (download) - annotate - [select for diffs], Fri Nov 25 20:13:54 2005 UTC (17 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.256: +2 -7
lines
Diff to previous 1.256 (colored)
Use a once control to initialize the LKM subsystem on first open. Remove the lkm_init() call from main().
Revision 1.256 / (download) - annotate - [select for diffs], Fri Nov 25 20:01:38 2005 UTC (17 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.255: +2 -10
lines
Diff to previous 1.255 (colored)
Use a once control to initialize the NFS server / client shared data from nfs_vfs_init() or sys_nfssvc(). Remove the nfs_init() call from main().
Revision 1.255 / (download) - annotate - [select for diffs], Fri Nov 25 17:33:56 2005 UTC (17 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.254: +2 -8
lines
Diff to previous 1.254 (colored)
Use a once control to call initialize the 802.11 layer when ieee80211_ifattach() is called. "wlan" no longer needs-flag, and remove the ieee80211_init() call from main().
Revision 1.254 / (download) - annotate - [select for diffs], Fri Nov 25 16:16:46 2005 UTC (17 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.253: +2 -10
lines
Diff to previous 1.253 (colored)
- De-couple the software crypto implementation from the rest of the framework. There is no need to waste the space if you are only using algoritms provided by hardware accelerators. To get the software implementations, add "pseudo-device swcr" to your kernel config. - Lazily initialize the opencrypto framework when crypto drivers (either hardware or swcr) register themselves with the framework.
Revision 1.251.6.1 / (download) - annotate - [select for diffs], Tue Nov 22 16:08:15 2005 UTC (17 years, 6 months ago) by yamt
Branch: yamt-readahead
Changes since 1.251: +9 -2
lines
Diff to previous 1.251 (colored)
sync with head.
Revision 1.253 / (download) - annotate - [select for diffs], Fri Nov 18 21:55:14 2005 UTC (17 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-readahead-base2
Changes since 1.252: +5 -2
lines
Diff to previous 1.252 (colored)
Only call ieee80211_init() in kernels that include some wlan stuff.
Revision 1.252 / (download) - annotate - [select for diffs], Fri Nov 18 16:40:08 2005 UTC (17 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.251: +6 -2
lines
Diff to previous 1.251 (colored)
Resolve conflicts and adapt to NetBSD. Thanks to dyoung@, scw@, and perry@ for help testing. 2005-08-30 15:27 avatar Properly set ic_curchan before calling back to device driver to do channel switching(ifconfig devX channel Y). This fix should make channel changing works again in monitor mode. Submitted by: sam X-MFC-With: other ic_curchan changes 2005-08-13 18:50 sam revert 1.64: we cannot use the channel characteristics to decide when to do 11g erp sta accounting because b/g channels show up as false positives when operating in 11b. Noticed by: Michal Mertl 2005-08-13 18:31 sam Extend acl support to pass ioctl requests through and use this to add support for getting the current policy setting and collecting the list of mac addresses in the acl table. Submitted by: Michal Mertl (original version) MFC after: 2 weeks 2005-08-10 18:42 sam Don't use ic_curmode to decide when to do 11g station accounting, use the station channel properties. Fixes assert failure/bogus operation when an ap is operating in 11a and has associated stations then switches to 11g. Noticed by: Michal Mertl Reviewed by: avatar MFC after: 2 weeks 2005-08-10 17:22 sam Clarify/fix handling of the current channel: o add ic_curchan and use it uniformly for specifying the current channel instead of overloading ic->ic_bss->ni_chan (or in some drivers ic_ibss_chan) o add ieee80211_scanparams structure to encapsulate scanning-related state captured for rx frames o move rx beacon+probe response frame handling into separate routines o change beacon+probe response handling to treat the scan table more like a scan cache--look for an existing entry before adding a new one; this combined with ic_curchan use corrects handling of stations that were previously found at a different channel o move adhoc neighbor discovery by beacon+probe response frames to a new ieee80211_add_neighbor routine Reviewed by: avatar Tested by: avatar, Michal Mertl MFC after: 2 weeks 2005-08-09 11:19 rwatson Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days 2005-08-08 19:46 sam Split crypto tx+rx key indices and add a key index -> node mapping table: Crypto changes: o change driver/net80211 key_alloc api to return tx+rx key indices; a driver can leave the rx key index set to IEEE80211_KEYIX_NONE or set it to be the same as the tx key index (the former disables use of the key index in building the keyix->node mapping table and is the default setup for naive drivers by null_key_alloc) o add cs_max_keyid to crypto state to specify the max h/w key index a driver will return; this is used to allocate the key index mapping table and to bounds check table loookups o while here introduce ieee80211_keyix (finally) for the type of a h/w key index o change crypto notifiers for rx failures to pass the rx key index up as appropriate (michael failure, replay, etc.) Node table changes: o optionally allocate a h/w key index to node mapping table for the station table using the max key index setting supplied by drivers (note the scan table does not get a map) o defer node table allocation to lateattach so the driver has a chance to set the max key id to size the key index map o while here also defer the aid bitmap allocation o add new ieee80211_find_rxnode_withkey api to find a sta/node entry on frame receive with an optional h/w key index to use in checking mapping table; also updates the map if it does a hash lookup and the found node has a rx key index set in the unicast key; note this work is separated from the old ieee80211_find_rxnode call so drivers do not need to be aware of the new mechanism o move some node table manipulation under the node table lock to close a race on node delete o add ieee80211_node_delucastkey to do the dirty work of deleting unicast key state for a node (deletes any key and handles key map references) Ath driver: o nuke private sc_keyixmap mechansim in favor of net80211 support o update key alloc api These changes close several race conditions for the ath driver operating in ap mode. Other drivers should see no change. Station mode operation for ath no longer uses the key index map but performance tests show no noticeable change and this will be fixed when the scan table is eliminated with the new scanning support. Tested by: Michal Mertl, avatar, others Reviewed by: avatar, others MFC after: 2 weeks 2005-08-08 06:49 sam use ieee80211_iterate_nodes to retrieve station data; the previous code walked the list w/o locking MFC after: 1 week 2005-08-08 04:30 sam Cleanup beacon/listen interval handling: o separate configured beacon interval from listen interval; this avoids potential use of one value for the other (e.g. setting powersavesleep to 0 clobbers the beacon interval used in hostap or ibss mode) o bounds check the beacon interval received in probe response and beacon frames and drop frames with bogus settings; not clear if we should instead clamp the value as any alteration would result in mismatched sta+ap configuration and probably be more confusing (don't want to log to the console but perhaps ok with rate limiting) o while here up max beacon interval to reflect WiFi standard Noticed by: Martin <nakal@nurfuerspam.de> MFC after: 1 week 2005-08-06 05:57 sam fix debug msg typo MFC after: 3 days 2005-08-06 05:56 sam Fix handling of frames sent prior to a station being authorized when operating in ap mode. Previously we allocated a node from the station table, sent the frame (using the node), then released the reference that "held the frame in the table". But while the frame was in flight the node might be reclaimed which could lead to problems. The solution is to add an ieee80211_tmp_node routine that crafts a node that does exist in a table and so isn't ever reclaimed; it exists only so long as the associated frame is in flight. MFC after: 5 days 2005-07-31 07:12 sam close a race between reclaiming a node when a station is inactive and sending the null data frame used to probe inactive stations MFC after: 5 days 2005-07-27 05:41 sam when bridging internally bypass the bss node as traffic to it must follow the normal input path Submitted by: Michal Mertl MFC after: 5 days 2005-07-27 03:53 sam bandaid ni_fails handling so ap's with association failures are reconsidered after a bit; a proper fix involves more changes to the scanning infrastructure Reviewed by: avatar, David Young MFC after: 5 days 2005-07-23 01:16 sam the AREF flag is only meaningful in ap mode; adhoc neighbors now are timed out of the sta/neighbor table 2005-07-23 00:25 sam o move inactivity-related debug msgs under IEEE80211_MSG_INACT o probe inactive neighbors in adhoc mode (they don't have an association id so previously were being timed out) MFC after: 3 days 2005-07-22 22:11 sam split xmit of probe request frame out into a separate routine that takes explicit parameters; this will be needed when scanning is decoupled from the state machine to do bg scanning MFC after: 3 days 2005-07-22 21:48 sam split 802.11 frame xmit setup code into ieee80211_send_setup MFC after: 3 days 2005-07-22 18:57 sam simplify ic_newassoc callback MFC after: 3 days 2005-07-22 18:54 sam simplify ieee80211_ibss_merge api MFC after: 3 days 2005-07-22 18:50 sam add stats we know we'll need soon and some spare fields for future expansion MFC after: 3 days 2005-07-22 18:45 sam simplify tim callback api MFC after: 3 days 2005-07-22 18:42 sam don't include 802.3 header in min frame length calculation as it may not be present for a frag; fixes problem with small (fragmented) frames being dropped Obtained from: Atheros MFC after: 3 days 2005-07-22 18:36 sam simplify ieee80211_node_authorize and ieee80211_node_unauthorize api's MFC after: 3 days 2005-07-22 18:31 sam simplifiy ieee80211_send_nulldata api MFC after: 3 days 2005-07-22 18:29 sam simplify rate set api's by removing ic parameter (implicit in node reference) MFC after: 3 days 2005-07-22 18:21 sam reject association requests with a wpa/rsn ie when wpa/rsn is not configured on the ap; previously we either ignored the ie or (possibly) failed an assertion Obtained from: Atheros MFC after: 3 days 2005-07-22 18:16 sam missed one in last commit; add device name to discard msgs 2005-07-22 18:13 sam include device name in discard msgs 2005-07-22 18:12 sam add diag msgs for frames discarded because the direction field is wrong 2005-07-22 18:08 sam split data frame delivery out to a new function ieee80211_deliver_data 2005-07-22 18:00 sam o add IEEE80211_IOC_FRAGTHRESHOLD for getting+setting the tx fragmentation threshold o fix bounds checking on IEEE80211_IOC_RTSTHRESHOLD MFC after: 3 days 2005-07-22 17:55 sam o add IEEE80211_FRAG_DEFAULT o move default settings for RTS and frag thresholds to ieee80211_var.h 2005-07-22 17:50 sam diff reduction against p4: define IEEE80211_FIXED_RATE_NONE and use it instead of -1 2005-07-22 17:37 sam add flags missed in last merge 2005-07-22 17:36 sam Diff reduction against p4: o add ic_flags_ext for eventual extention of ic_flags o define/reserve flag+capabilities bits for superg, bg scan, and roaming support o refactor debug msg macros MFC after: 3 days 2005-07-22 06:17 sam send a response when an auth request is denied due to an acl; might be better to silently ignore the frame but this way we give stations a chance of figuring out what's wrong 2005-07-22 06:15 sam remove excess whitespace 2005-07-22 05:55 sam use IF_HANDOFF when bridging frames internally so if_start gets called; fixes communication between associated sta's MFC after: 3 days 2005-07-11 04:06 sam Handle encrypt of arbitarily fragmented mbuf chains: previously we bailed if we couldn't collect the 16-bytes of data required for an aes block cipher in 2 mbufs; now we deal with it. While here make space accounting signed so a sanity check does the right thing for malformed mbuf chains. Approved by: re (scottl) 2005-07-11 04:00 sam nuke assert that duplicates real check Reviewed by: avatar Approved by: re (scottl)
Revision 1.221.2.9 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (17 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.221.2.8: +32 -113
lines
Diff to previous 1.221.2.8 (colored)
Sync with HEAD. Here we go again...
Revision 1.244.6.4 / (download) - annotate - [select for diffs], Thu Sep 8 21:06:30 2005 UTC (17 years, 9 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Changes since 1.244.6.3: +3 -2
lines
Diff to previous 1.244.6.3 (colored) to branchpoint 1.244 (colored)
Apply patch (requested by elad in ticket #740): Defopt VERIFIED_EXEC.
Revision 1.244.6.3 / (download) - annotate - [select for diffs], Tue Aug 23 14:45:20 2005 UTC (17 years, 9 months ago) by tron
Branch: netbsd-3
Changes since 1.244.6.2: +2 -3
lines
Diff to previous 1.244.6.2 (colored) to branchpoint 1.244 (colored)
Backout ticket 685. It causes build failures.
Revision 1.244.6.2 / (download) - annotate - [select for diffs], Tue Aug 23 13:43:53 2005 UTC (17 years, 9 months ago) by tron
Branch: netbsd-3
Changes since 1.244.6.1: +1 -0
lines
Diff to previous 1.244.6.1 (colored) to branchpoint 1.244 (colored)
Pull up revision 1.250 (requested by elad in ticket #685): defopt verified_exec.
Revision 1.251 / (download) - annotate - [select for diffs], Fri Aug 5 11:03:18 2005 UTC (17 years, 10 months ago) by junyoung
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.250: +11 -109
lines
Diff to previous 1.250 (colored)
Move proc0 initialization from main() in init_main.c and proc0_insert() in kern_proc.c into a new function proc0_init() in kern_proc.c, as suggested on tech-kern@ days ago.
Revision 1.250 / (download) - annotate - [select for diffs], Sat Jul 16 22:47:18 2005 UTC (17 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.249: +3 -2
lines
Diff to previous 1.249 (colored)
defopt verified_exec.
Revision 1.249 / (download) - annotate - [select for diffs], Fri Jul 15 03:59:31 2005 UTC (17 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.248: +3 -2
lines
Diff to previous 1.248 (colored)
White space KNF nit.
Revision 1.248 / (download) - annotate - [select for diffs], Thu Jun 23 00:30:28 2005 UTC (17 years, 11 months ago) by thorpej
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.247: +6 -2
lines
Diff to previous 1.247 (colored)
Implement expansion of special "magic" strings in symlinks into system-specific values. Submitted by Chris Demetriou in Nov 1995 (!) in PR kern/1781, modified only slighly by me. This is enabled on a per-mount basis with the MNT_MAGICLINKS mount flag. It can be enabled at mountroot() time by building the kernel with the ROOTFS_MAGICLINKS option. The following magic strings are supported by the implementation: @machine value of MACHINE for the system @machine_arch value of MACHINE_ARCH for the system @hostname the system host name, as set with sethostname() @domainname the system domain name, as set with setdomainname() @kernel_ident the kernel config file name @osrelease the releaes number of the OS @ostype the name of the OS (always "NetBSD" for NetBSD) Example usage: mkdir /arch/i386/bin mkdir /arch/sparc/bin ln -s /arch/@machine_arch/bin /bin
Revision 1.244.6.1 / (download) - annotate - [select for diffs], Fri Jun 10 14:48:43 2005 UTC (18 years ago) by tron
Branch: netbsd-3
Changes since 1.244: +14 -2
lines
Diff to previous 1.244 (colored)
Pull up revision 1.245 (requested by elad in ticket #389): Rototill of the verified exec functionality. * We now use hash tables instead of a list to store the in kernel fingerprints. * Fingerprint methods handling has been made more flexible, it is now even simpler to add new methods. * the loader no longer passes in magic numbers representing the fingerprint method so veriexecctl is not longer kernel specific. * fingerprint methods can be tailored out using options in the kernel config file. * more fingerprint methods added - rmd160, sha256/384/512 * veriexecctl can now report the fingerprint methods supported by the running kernel. * regularised the naming of some portions of veriexec.
Revision 1.247 / (download) - annotate - [select for diffs], Sun May 29 22:24:14 2005 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.246: +6 -6
lines
Diff to previous 1.246 (colored)
- add const. - remove unnecessary casts. - add __UNCONST casts and mark them with XXXUNCONST as necessary.
Revision 1.243.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:23 2005 UTC (18 years, 1 month ago) by kent
Branch: kent-audio2
Changes since 1.243: +14 -6
lines
Diff to previous 1.243 (colored) next main 1.244 (colored)
sync with -current
Revision 1.246 / (download) - annotate - [select for diffs], Mon Apr 25 15:02:07 2005 UTC (18 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.245: +2 -3
lines
Diff to previous 1.245 (colored)
Move the MI printing of `copyright' to the MD cpu_startup() code where the printing of `version' is already performed. This has the benefit of allowing the copyright to be available via dmesg(8) on platforms which need the `msgbuf' to be setup in cpu_startup() before printed output is remembered.
Revision 1.245 / (download) - annotate - [select for diffs], Wed Apr 20 13:44:46 2005 UTC (18 years, 1 month ago) by blymn
Branch: MAIN
Changes since 1.244: +14 -2
lines
Diff to previous 1.244 (colored)
Rototill of the verified exec functionality. * We now use hash tables instead of a list to store the in kernel fingerprints. * Fingerprint methods handling has been made more flexible, it is now even simpler to add new methods. * the loader no longer passes in magic numbers representing the fingerprint method so veriexecctl is not longer kernel specific. * fingerprint methods can be tailored out using options in the kernel config file. * more fingerprint methods added - rmd160, sha256/384/512 * veriexecctl can now report the fingerprint methods supported by the running kernel. * regularised the naming of some portions of veriexec.
Revision 1.221.2.8 / (download) - annotate - [select for diffs], Mon Jan 24 08:35:36 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.221.2.7: +2 -5
lines
Diff to previous 1.221.2.7 (colored)
Sync with HEAD.
Revision 1.244 / (download) - annotate - [select for diffs], Sun Jan 23 19:02:02 2005 UTC (18 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
yamt-km,
netbsd-3-base
Branch point for: netbsd-3
Changes since 1.243: +2 -5
lines
Diff to previous 1.243 (colored)
move the call to link_pool_init() to the end of uvm_init(). needed for sun3.
Revision 1.221.2.7 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:25 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.221.2.6: +5 -4
lines
Diff to previous 1.221.2.6 (colored)
Sync with HEAD.
Revision 1.243 / (download) - annotate - [select for diffs], Sun Jan 9 03:11:48 2005 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: kent-audio1-beforemerge
Branch point for: kent-audio2
Changes since 1.242: +5 -4
lines
Diff to previous 1.242 (colored)
Rework the mountroot interface so that vfs_mountroot() opens the root device and just passes it on to the file system functions. This avoids opening and closing the device several times. Mentioned on tech-kern some time ago, IIRC. I've been running this for a long time.
Revision 1.221.2.6 / (download) - annotate - [select for diffs], Tue Oct 19 15:58:02 2004 UTC (18 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.221.2.5: +3 -4
lines
Diff to previous 1.221.2.5 (colored)
Sync with HEAD
Revision 1.242 / (download) - annotate - [select for diffs], Fri Oct 15 07:22:02 2004 UTC (18 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kent-audio1-base,
kent-audio1
Changes since 1.241: +2 -3
lines
Diff to previous 1.241 (colored)
No longer need <sys/disk.h>
Revision 1.241 / (download) - annotate - [select for diffs], Fri Oct 15 07:19:01 2004 UTC (18 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.240: +2 -3
lines
Diff to previous 1.240 (colored)
- Eliminate the need to call disk_init(). - disk_count needs to be protected with disklist_slock, too.
Revision 1.240 / (download) - annotate - [select for diffs], Fri Oct 1 16:30:52 2004 UTC (18 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.239: +3 -2
lines
Diff to previous 1.239 (colored)
introduce a function, proclist_foreach_call, to iterate all procs on a proclist and call the specified function for each of them. primarily to fix a procfs locking problem, but i think that it's useful for others as well. while i'm here, introduce PROCLIST_FOREACH macro, which is similar to LIST_FOREACH but skips marker entries which are used by proclist_foreach_call.
Revision 1.221.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:03 2004 UTC (18 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.221.2.4: +7 -7
lines
Diff to previous 1.221.2.4 (colored)
Fix the sync with head I botched.
Revision 1.221.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:02 2004 UTC (18 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.221.2.3: +7 -7
lines
Diff to previous 1.221.2.3 (colored)
Sync with HEAD.
Revision 1.221.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:37 2004 UTC (18 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.221.2.2: +3 -3
lines
Diff to previous 1.221.2.2 (colored)
Undo part of the ktrace/lwp changes. In particular: * Remove the "lwp *" argument that was added to vget(). Turns out that nothing actually used it! * Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(), and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted above, didn't use it). * Remove all of the "lwp *" arguments to internal functions that were added just to appease the above.
Revision 1.221.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:43 2004 UTC (18 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.221.2.1: +87 -37
lines
Diff to previous 1.221.2.1 (colored)
Sync with HEAD
Revision 1.239 / (download) - annotate - [select for diffs], Mon Jul 5 07:28:45 2004 UTC (18 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.238: +16 -2
lines
Diff to previous 1.238 (colored)
Call inittodr() from main(). Let file system code set the recorded `last update' time (if any) through the new function setrootfstime().
Revision 1.238 / (download) - annotate - [select for diffs], Thu Jun 3 20:35:30 2004 UTC (19 years ago) by nathanw
Branch: MAIN
Changes since 1.237: +3 -2
lines
Diff to previous 1.237 (colored)
Initialize simple_lock in struct cwd; otherwise, one gets an uninitialized lock panic at the first use of cwdshare().
Revision 1.237 / (download) - annotate - [select for diffs], Thu May 6 22:20:30 2004 UTC (19 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.236: +3 -2
lines
Diff to previous 1.236 (colored)
Provide a mutex for the process limits data structure.
Revision 1.236 / (download) - annotate - [select for diffs], Sun Apr 25 16:42:41 2004 UTC (19 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.235: +6 -14
lines
Diff to previous 1.235 (colored)
Initialise (most) pools from a link set instead of explicit calls to pool_init. Untouched pools are ones that either in arch-specific code, or aren't initialiased during initial system startup. Convert struct session, ucred and lockf to pools.
Revision 1.235 / (download) - annotate - [select for diffs], Sun Mar 28 22:43:56 2004 UTC (19 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Changes since 1.234: +5 -2
lines
Diff to previous 1.234 (colored)
Make kernel continuations optional for now.
Revision 1.234 / (download) - annotate - [select for diffs], Sat Mar 27 00:42:38 2004 UTC (19 years, 2 months ago) by jonathan
Branch: MAIN
Changes since 1.233: +6 -2
lines
Diff to previous 1.233 (colored)
Use proper NetBSD conventions for deferred kthread creation, not the other semantics from an earlier incarnation. Call kcont_init() from init_main before device autoconfiguration, so kcont is availble to device drivers if required. Also ensure the kthread process runs any pending continuations once the kthread is finally up and running. For now, use a non-null timeout to poll the queue periodically. Draining any pending requests just before the kthread enters its ltsleep()/kc_run loop is cleaner, but this is the version I tested with an early-in-boot kcont request.)
Revision 1.233 / (download) - annotate - [select for diffs], Tue Mar 9 02:35:45 2004 UTC (19 years, 3 months ago) by junyoung
Branch: MAIN
Changes since 1.232: +6 -6
lines
Diff to previous 1.232 (colored)
Whitespaces.
Revision 1.232 / (download) - annotate - [select for diffs], Fri Jan 9 00:04:53 2004 UTC (19 years, 5 months ago) by tls
Branch: MAIN
Changes since 1.231: +4 -4
lines
Diff to previous 1.231 (colored)
Bump default size of vnode cache to 1% of physical memory, instead of 0.5%, based on some quick measurements on a number of workstations and small fileservers (including my home fileserver running simultaneous builds of the NetBSD source tree and several NetBSD kernels). This brings the hit rate on my machines from below 70% to above 90%. We should be able to tune this as we run, by tracking the hit rate and increasing the size of the cache if memory permits. Some systems will still require significantly larger cache sizes. Some ports -- notably the 64-bit ones -- probably should use more than 1% of physmem as the default due to the larger size of struct vnode.
Revision 1.231 / (download) - annotate - [select for diffs], Mon Jan 5 03:33:06 2004 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.230: +2 -9
lines
Diff to previous 1.230 (colored)
Store the copyright text in conf/copyright, and use conf/newvers.sh to generate the appropriate const char copyright[] = "..."; statement instead of hard coding it into kern/init_main.c. Idea from Simon Burge.
Revision 1.230 / (download) - annotate - [select for diffs], Sun Jan 4 11:33:31 2004 UTC (19 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.229: +2 -6
lines
Diff to previous 1.229 (colored)
Rearrange process exit path to avoid need to free resources from different process context ('reaper'). From within the exiting process context: * deactivate pmap and free vmspace while we can still block * introduce MD cpu_lwp_free() - this cleans all MD-specific context (such as FPU state), and is the last potentially blocking operation; all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free() * process is now immediatelly marked as zombie and made available for pickup by parent; the remaining last lwp continues the exit as fully detached * MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same for both 'process' and 'lwp' exit uvm_lwp_exit() is modified to never block; the u-area memory is now always just linked to the list of available u-areas. Introduce (blocking) uvm_uarea_drain(), which is called to release the excessive u-area memory; this is called by parent within wait4(), or by pagedaemon on memory shortage. uvm_uarea_free() is now private function within uvm_glue.c. MD process/lwp exit code now always calls lwp_exit2() immediatelly after switching away from the exiting lwp. g/c now unneeded routines and variables, including the reaper kernel thread
Revision 1.229 / (download) - annotate - [select for diffs], Thu Jan 1 00:00:05 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.228: +3 -3
lines
Diff to previous 1.228 (colored)
Welcome to 2004!
Revision 1.228 / (download) - annotate - [select for diffs], Tue Dec 30 12:33:23 2003 UTC (19 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.227: +5 -2
lines
Diff to previous 1.227 (colored)
Replace the traditional buffer memory management -- based on fixed per buffer virtual memory reservation and a private pool of memory pages -- by a scheme based on memory pools. This allows better utilization of memory because buffers can now be allocated with a granularity finer than the system's native page size (useful for filesystems with e.g. 1k or 2k fragment sizes). It also avoids fragmentation of virtual to physical memory mappings (due to the former fixed virtual address reservation) resulting in better utilization of MMU resources on some platforms. Finally, the scheme is more flexible by allowing run-time decisions on the amount of memory to be used for buffers. On the other hand, the effectiveness of the LRU queue for buffer recycling may be somewhat reduced compared to the traditional method since, due to the nature of the pool based memory allocation, the actual least recently used buffer may release its memory to a pool different from the one needed by a newly allocated buffer. However, this effect will kick in only if the system is under memory pressure.
Revision 1.227 / (download) - annotate - [select for diffs], Fri Nov 14 07:13:25 2003 UTC (19 years, 7 months ago) by jonathan
Branch: MAIN
Changes since 1.226: +3 -3
lines
Diff to previous 1.226 (colored)
include <sys/mbuf.h> before FAST_IPSEC-dependent headers.
Revision 1.226 / (download) - annotate - [select for diffs], Tue Nov 4 10:33:15 2003 UTC (19 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.225: +2 -3
lines
Diff to previous 1.225 (colored)
Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead. Remove p_raslock and rename p_lwplock p_lock (one lock is enough). Simplify window test when adding a ras and correct test on VM_MAXUSER_ADDRESS. Avoid unpredictable branch in i386 locore.S (pad fields left in struct proc to avoid kernel bump)
Revision 1.225 / (download) - annotate - [select for diffs], Sun Nov 2 16:42:22 2003 UTC (19 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.224: +5 -6
lines
Diff to previous 1.224 (colored)
use LIST_FOREACH() as appropriate
Revision 1.224 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:41 2003 UTC (19 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.223: +32 -3
lines
Diff to previous 1.223 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.223 / (download) - annotate - [select for diffs], Wed Aug 6 20:30:38 2003 UTC (19 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.222: +11 -2
lines
Diff to previous 1.222 (colored)
(FAST_IPSEC): Pull in option header-test for FAST_IPSEC (and IPSEC). If FAST_IPSEC is configured, attach fast-ipsec transforms after autoconfiguring devices (perhaps including crypto hardware) but before starting up network-device packet input.
Revision 1.222 / (download) - annotate - [select for diffs], Wed Jul 30 18:45:32 2003 UTC (19 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.221: +10 -3
lines
Diff to previous 1.221 (colored)
Move the initialization of the crypto framework from the userland pseudo-device to init_main(), so the framework is ready for registration requests at autoconfiguration time. Thanks to Quentin Garnier for confirming the change was required, and for testing a similar fix.
Revision 1.221.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:35 2003 UTC (19 years, 11 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.221: +8 -8
lines
Diff to previous 1.221 (colored)
Apply the aborted ktrace-lwp changes to a specific branch. This is just for others to review, I'm concerned that patch fuziness may have resulted in some errant code being generated but I'll look at that later by comparing the diff from the base to the branch with the file I attempt to apply to it. This will, at the very least, put the changes in a better context for others to review them and attempt to tinker with removing passing of 'struct lwp' through the kernel.
Revision 1.221 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:17 2003 UTC (19 years, 11 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.220: +7 -7
lines
Diff to previous 1.220 (colored)
Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
Revision 1.220 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:28 2003 UTC (19 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.219: +3 -3
lines
Diff to previous 1.219 (colored)
Undo part of the ktrace/lwp changes. In particular: * Remove the "lwp *" argument that was added to vget(). Turns out that nothing actually used it! * Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(), and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted above, didn't use it). * Remove all of the "lwp *" arguments to internal functions that were added just to appease the above.
Revision 1.219 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:52 2003 UTC (19 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.218: +8 -8
lines
Diff to previous 1.218 (colored)
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
Revision 1.199.8.2 / (download) - annotate - [select for diffs], Mon Jun 2 09:29:21 2003 UTC (20 years ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002
Changes since 1.199.8.1: +3 -3
lines
Diff to previous 1.199.8.1 (colored) to branchpoint 1.199 (colored) next main 1.200 (colored)
Pull up revision 1.215 (requested by fair in ticket #1303): Update copyright notice.
Revision 1.218 / (download) - annotate - [select for diffs], Wed Mar 19 11:36:32 2003 UTC (20 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.217: +3 -21
lines
Diff to previous 1.217 (colored)
Alternative pid/proc allocater, removes all searches associated with pid lookup and allocation, and any dependency on NPROC or MAXUSERS. NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit on PID_MAX. As discussed on tech-kern.
Revision 1.217 / (download) - annotate - [select for diffs], Mon Jan 20 20:02:56 2003 UTC (20 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.216: +12 -3
lines
Diff to previous 1.216 (colored)
add support for p1003.1b semaphores. From FreeBSD
Revision 1.216 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:23 2003 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.215: +39 -25
lines
Diff to previous 1.215 (colored)
Merge the nathanw_sa branch.
Revision 1.188.2.23 / (download) - annotate - [select for diffs], Fri Jan 3 17:10:39 2003 UTC (20 years, 5 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.188.2.22: +3 -3
lines
Diff to previous 1.188.2.22 (colored) next main 1.189 (colored)
Sync with HEAD.
Revision 1.215 / (download) - annotate - [select for diffs], Wed Jan 1 00:00:13 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: nathanw_sa_before_merge,
nathanw_sa_base,
fvdl_fs64_base
Changes since 1.214: +3 -3
lines
Diff to previous 1.214 (colored)
Update copyright notice.
Revision 1.188.2.22 / (download) - annotate - [select for diffs], Thu Dec 19 00:50:41 2002 UTC (20 years, 5 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.188.2.21: +6 -4
lines
Diff to previous 1.188.2.21 (colored)
Sync with HEAD.
Revision 1.214.2.1 / (download) - annotate - [select for diffs], Wed Dec 18 01:06:04 2002 UTC (20 years, 5 months ago) by gmcgarry
Branch: gmcgarry_ucred
Changes since 1.214: +4 -5
lines
Diff to previous 1.214 (colored) next main 1.215 (colored)
Merge pcred and ucred, and poolify. TBD: check backward compatibility and factor-out some higher-level functionality.
Revision 1.199.8.1 / (download) - annotate - [select for diffs], Sun Dec 15 11:21:52 2002 UTC (20 years, 5 months ago) by jmc
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001
Changes since 1.199: +7 -5
lines
Diff to previous 1.199 (colored)
Pull up revisions 1.213-1.214 (requested by abs in ticket #1033) Allow NOFILE to be more easily overridden.
Revision 1.214 / (download) - annotate - [select for diffs], Wed Dec 11 23:23:45 2002 UTC (20 years, 6 months ago) by abs
Branch: MAIN
CVS Tags: gmcgarry_ucred_base,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw
Branch point for: gmcgarry_ucred
Changes since 1.213: +6 -4
lines
Diff to previous 1.213 (colored)
Define nofile and maxuprc variables (set to NOFILE and MAXUPRC), so they can be patched in a compiled kernel.
Revision 1.188.2.21 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:01 2002 UTC (20 years, 6 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.188.2.20: +23 -22
lines
Diff to previous 1.188.2.20 (colored)
Sync with HEAD.
Revision 1.213 / (download) - annotate - [select for diffs], Thu Dec 5 10:30:00 2002 UTC (20 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.212: +4 -3
lines
Diff to previous 1.212 (colored)
initialize uvm.aiodoned_proc.
Revision 1.212 / (download) - annotate - [select for diffs], Sun Nov 24 17:33:43 2002 UTC (20 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.211: +4 -3
lines
Diff to previous 1.211 (colored)
Add an EVCNT_ATTACH_STATIC() macro which gathers static evcnts into a link set, which are added to the list of event counters at boot time.
Revision 1.211 / (download) - annotate - [select for diffs], Sun Nov 17 22:53:46 2002 UTC (20 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.210: +21 -22
lines
Diff to previous 1.210 (colored)
add support for __MACHINE_STACK_GROWS_UP platforms. from fredette@
Revision 1.188.2.20 / (download) - annotate - [select for diffs], Mon Nov 11 22:13:31 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.19: +12 -0
lines
Diff to previous 1.188.2.19 (colored)
Catch up to -current
Revision 1.210 / (download) - annotate - [select for diffs], Tue Nov 5 01:24:35 2002 UTC (20 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.209: +10 -2
lines
Diff to previous 1.209 (colored)
Add a new VM map, lkm_map, which machine-dependent code can provide in the event that it needs to use a special VM range (x86_64 falls into this category). We fall back onto kernel_map if machine-dependent code doesn't create a special map.
Revision 1.209 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:12 2002 UTC (20 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.208: +6 -2
lines
Diff to previous 1.208 (colored)
merge kqueue branch into -current kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2) based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
Revision 1.188.2.19 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:50 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.18: +7 -1
lines
Diff to previous 1.188.2.18 (colored)
Catch up to -current.
Revision 1.192.2.8 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:03 2002 UTC (20 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.192.2.7: +12 -6
lines
Diff to previous 1.192.2.7 (colored) next main 1.193 (colored)
sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
Revision 1.208 / (download) - annotate - [select for diffs], Tue Oct 1 18:11:58 2002 UTC (20 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge,
kqueue-base
Changes since 1.207: +9 -2
lines
Diff to previous 1.207 (colored)
Add a generic config finalization hook, to be called once all real devices have been discovered. All finalizer routines are iteratively invoked until all of them report that they have done no work. Use this hook to fix a latent bug in RAIDframe autoconfiguration of RAID sets exposed by the rework of SCSI device discovery.
Revision 1.207 / (download) - annotate - [select for diffs], Wed Sep 25 22:21:40 2002 UTC (20 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.206: +2 -3
lines
Diff to previous 1.206 (colored)
Don't include <sys/map.h>.
Revision 1.188.2.18 / (download) - annotate - [select for diffs], Tue Sep 17 21:21:57 2002 UTC (20 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.17: +7 -6
lines
Diff to previous 1.188.2.17 (colored)
Catch up to -current.
Revision 1.192.2.7 / (download) - annotate - [select for diffs], Fri Sep 6 08:47:40 2002 UTC (20 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.192.2.6: +46 -10
lines
Diff to previous 1.192.2.6 (colored)
sync kqueue branch with HEAD
Revision 1.206 / (download) - annotate - [select for diffs], Wed Sep 4 01:32:31 2002 UTC (20 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.205: +5 -5
lines
Diff to previous 1.205 (colored)
Use the queue macros from <sys/queue.h> instead of referring to the queue members directly. Use *_FOREACH whenever possible.
Revision 1.205 / (download) - annotate - [select for diffs], Sat Aug 31 20:02:09 2002 UTC (20 years, 9 months ago) by sommerfeld
Branch: MAIN
Changes since 1.204: +6 -5
lines
Diff to previous 1.204 (colored)
Initialize proc0.p_raslock to avoid a lock assertion on the first fork().
Revision 1.199.6.3 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:05 2002 UTC (20 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.199.6.2: +35 -7
lines
Diff to previous 1.199.6.2 (colored) to branchpoint 1.199 (colored) next main 1.200 (colored)
catch up with -current.
Revision 1.188.2.17 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:21 2002 UTC (20 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.16: +35 -7
lines
Diff to previous 1.188.2.16 (colored)
Catch up to -current.
Revision 1.204 / (download) - annotate - [select for diffs], Sun Aug 25 19:15:55 2002 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.203: +4 -3
lines
Diff to previous 1.203 (colored)
Fix a signed/unsigned comparison warning from GCC 3.3.
Revision 1.203 / (download) - annotate - [select for diffs], Sat Aug 24 00:47:17 2002 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.202: +3 -3
lines
Diff to previous 1.202 (colored)
only print "init: trying /some/init" if RB_ASKNAME or if it's not the first path we're trying. (the intent but not the behaviour of the previous rev.)
Revision 1.202 / (download) - annotate - [select for diffs], Fri Aug 23 06:17:08 2002 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.201: +33 -6
lines
Diff to previous 1.201 (colored)
in start_init(), if RB_ASKNAME is set in boothowto, ask for the path name to start up as init (rather than just cycling thru initpaths[] and panicing when out of options). if RB_ASKNAME isn't set, the old behaviour remains. inspired by changes in der Mouse's patchtree. resolves [kern/18027] from me.
Revision 1.188.2.16 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:12 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.15: +2 -3
lines
Diff to previous 1.188.2.15 (colored)
No longer need to pull in lwp.h; proc.h pulls it in for us.
Revision 1.188.2.15 / (download) - annotate - [select for diffs], Mon Jun 24 22:10:38 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.14: +6 -6
lines
Diff to previous 1.188.2.14 (colored)
Curproc->curlwp renaming. Change uses of "curproc->l_proc" back to "curproc", which is more like the original use. Bare uses of "curproc" are now "curlwp". "curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL) so that it is always safe to reference curproc (*de*referencing curproc is another story, but that's always been true).
Revision 1.192.2.6 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:24 2002 UTC (20 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.192.2.5: +3 -2
lines
Diff to previous 1.192.2.5 (colored)
catch up with -current on kqueue branch
Revision 1.199.6.2 / (download) - annotate - [select for diffs], Thu Jun 20 16:02:18 2002 UTC (20 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.199.6.1: +9 -2
lines
Diff to previous 1.199.6.1 (colored) to branchpoint 1.199 (colored)
catch up with -current.
Revision 1.188.2.14 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:08 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.13: +10 -2
lines
Diff to previous 1.188.2.13 (colored)
Catch up to -current.
Revision 1.201 / (download) - annotate - [select for diffs], Mon Jun 17 16:22:50 2002 UTC (20 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.200: +9 -2
lines
Diff to previous 1.200 (colored)
Niels Provos systrace work, ported to NetBSD by kittenz and reworked...
Revision 1.199.6.1 / (download) - annotate - [select for diffs], Thu May 30 14:47:56 2002 UTC (21 years ago) by gehenna
Branch: gehenna-devsw
Changes since 1.199: +3 -2
lines
Diff to previous 1.199 (colored)
Catch up with -current.
Revision 1.188.2.13 / (download) - annotate - [select for diffs], Wed May 29 21:33:09 2002 UTC (21 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.12: +3 -2
lines
Diff to previous 1.188.2.12 (colored)
#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t now that <sys/param.h> doesn't include <sys/sa.h>. (Behold the Power of Ed)
Revision 1.200 / (download) - annotate - [select for diffs], Mon May 27 13:46:45 2002 UTC (21 years ago) by itojun
Branch: MAIN
Changes since 1.199: +3 -2
lines
Diff to previous 1.199 (colored)
re-scan all ifnet after domaininit() for if_afdata initialization.
Revision 1.188.2.12 / (download) - annotate - [select for diffs], Tue Apr 23 19:19:57 2002 UTC (21 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.11: +3 -2
lines
Diff to previous 1.188.2.11 (colored)
Initialize the l_lid field of lwp0.
Revision 1.188.2.11 / (download) - annotate - [select for diffs], Tue Apr 23 03:25:44 2002 UTC (21 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.10: +3 -3
lines
Diff to previous 1.188.2.10 (colored)
Initialize the p_nrlwps field of proc0.
Revision 1.188.2.10 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:50 2002 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.9: +3 -3
lines
Diff to previous 1.188.2.9 (colored)
Catch up to -current. (CVS: It's not just a program. It's an adventure!)
Revision 1.199.2.4 / (download) - annotate - [select for diffs], Sun Mar 17 23:07:42 2002 UTC (21 years, 2 months ago) by thorpej
Branch: newlock
Changes since 1.199.2.3: +3 -3
lines
Diff to previous 1.199.2.3 (colored) to branchpoint 1.199 (colored) next main 1.200 (colored)
Allocate proc0 in machine-dependent code (can't specify align(16) in C code on x86).
Revision 1.192.2.5 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:46 2002 UTC (21 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.192.2.4: +6 -6
lines
Diff to previous 1.192.2.4 (colored)
Catch up with -current.
Revision 1.199.2.3 / (download) - annotate - [select for diffs], Sun Mar 10 21:05:10 2002 UTC (21 years, 3 months ago) by thorpej
Branch: newlock
Changes since 1.199.2.2: +3 -4
lines
Diff to previous 1.199.2.2 (colored) to branchpoint 1.199 (colored)
Some suggestions from Bill Sommerfeld: * Use a pool cache for turnstiles, so you can save the memset(). Add some asserts to make sure that inactive turnstiles end up in their freshly-constructed state. * Invalidate p->p_ts before returning p to the proc pool (only done if DIAGNOSTIC). * Fix up some comments in kern_turnstile.c * Bugfix in turnstile_remque(): typo ("==" should have been "=").
Revision 1.199.2.2 / (download) - annotate - [select for diffs], Sun Mar 10 19:08:21 2002 UTC (21 years, 3 months ago) by thorpej
Branch: newlock
Changes since 1.199.2.1: +9 -5
lines
Diff to previous 1.199.2.1 (colored) to branchpoint 1.199 (colored)
First cut implementation of turnstiles, a specialized sleep queue used for kernel synchronization objects. A detailed description of turnstiles can be found in: Solaris Internals: Core Kernel Architecture, by Jim Mauro and Richard McDougall, section 3.7. Note this implementation does not yet implement priority inheritence, nor does it currently differentiate between reader and writer queues (though they are provided for in the API).
Revision 1.199.2.1 / (download) - annotate - [select for diffs], Sun Mar 10 07:59:52 2002 UTC (21 years, 3 months ago) by thorpej
Branch: newlock
Changes since 1.199: +3 -3
lines
Diff to previous 1.199 (colored)
Make sure proc structures are aligned to 16 byte boundaries. This ensures that the lower 4 bits of a proc's address are zero. Forthcoming new locking primitives rely on this.
Revision 1.199 / (download) - annotate - [select for diffs], Mon Mar 4 02:30:27 2002 UTC (21 years, 3 months ago) by simonb
Branch: MAIN
CVS Tags: newlock-base,
netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
eeh-devprop-base,
eeh-devprop
Branch point for: newlock,
netbsd-1-6,
gehenna-devsw
Changes since 1.198: +3 -3
lines
Diff to previous 1.198 (colored)
Use <sys/disk.h> for the prototype of disk_init() rather than declaring our own locally.
Revision 1.188.2.9 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:43 2002 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.8: +5 -5
lines
Diff to previous 1.188.2.8 (colored)
Catch up to -current.
Revision 1.198 / (download) - annotate - [select for diffs], Mon Feb 11 18:11:43 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.197: +5 -5
lines
Diff to previous 1.197 (colored)
Switch default for pipes to the faster John S. Dyson's implementation. Old, socketpair-based ones are available with option PIPE_SOCKETPAIR.
Revision 1.192.2.4 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:42 2002 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.192.2.3: +5 -2
lines
Diff to previous 1.192.2.3 (colored)
Sync kqueue branch with -current.
Revision 1.188.2.8 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:30 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.7: +3 -3
lines
Diff to previous 1.188.2.7 (colored)
Catch up to -current.
Revision 1.197 / (download) - annotate - [select for diffs], Tue Jan 1 09:17:28 2002 UTC (21 years, 5 months ago) by perry
Branch: MAIN
Changes since 1.196: +3 -3
lines
Diff to previous 1.196 (colored)
Happy New Year!
Revision 1.188.2.7 / (download) - annotate - [select for diffs], Sat Nov 17 01:10:16 2001 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.6: +2 -3
lines
Diff to previous 1.188.2.6 (colored)
Implement POSIX realtime timers, and reimplement getitimer() and setitimer() in terms of them.
Revision 1.188.2.6 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:32 2001 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.5: +4 -1
lines
Diff to previous 1.188.2.5 (colored)
Catch up to -current.
Revision 1.195.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:44 2001 UTC (21 years, 7 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.195: +4 -1
lines
Diff to previous 1.195 (colored) next main 1.196 (colored)
Sync the thorpej-mips-cache branch with -current.
Revision 1.196 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:04 2001 UTC (21 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.195: +4 -1
lines
Diff to previous 1.195 (colored)
add RCSIDs
Revision 1.188.2.5 / (download) - annotate - [select for diffs], Mon Nov 5 19:59:02 2001 UTC (21 years, 7 months ago) by briggs
Branch: nathanw_sa
Changes since 1.188.2.4: +3 -3
lines
Diff to previous 1.188.2.4 (colored)
KERNEL_PROC_LOCK/KERNEL_PROC_UNLOCK take struct lwp *, not struct proc *.
Revision 1.192.2.3 / (download) - annotate - [select for diffs], Fri Sep 7 15:54:16 2001 UTC (21 years, 9 months ago) by thorpej
Branch: kqueue
Changes since 1.192.2.2: +5 -1
lines
Diff to previous 1.192.2.2 (colored)
Use a pool for kqueue structures.
Revision 1.192.2.2 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:46 2001 UTC (21 years, 9 months ago) by thorpej
Branch: kqueue
Changes since 1.192.2.1: +2 -2
lines
Diff to previous 1.192.2.1 (colored)
Merge Aug 24 -current into the kqueue branch.
Revision 1.188.2.4 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:24 2001 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.3: +13 -14
lines
Diff to previous 1.188.2.3 (colored)
Catch up with -current.
Revision 1.195 / (download) - annotate - [select for diffs], Thu Aug 16 01:44:53 2001 UTC (21 years, 9 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.194: +2 -2
lines
Diff to previous 1.194 (colored)
user maps are always pageable.
Revision 1.192.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:39 2001 UTC (21 years, 10 months ago) by lukem
Branch: kqueue
Changes since 1.192: +12 -13
lines
Diff to previous 1.192 (colored)
update to -current
Revision 1.194 / (download) - annotate - [select for diffs], Wed Jul 18 00:51:54 2001 UTC (21 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.193: +11 -12
lines
Diff to previous 1.193 (colored)
When we auto size the vnode cache, make sure we do it *before* we init vfs so it can the size into account when creating its hash lists. This means that for a 2GB system, it'll have a default of 65536 buckets instead of 2048 and when you have 200,000+ vnodes that makes a significant difference.
Revision 1.193 / (download) - annotate - [select for diffs], Sun Jul 15 14:36:06 2001 UTC (21 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.192: +2 -2
lines
Diff to previous 1.192 (colored)
Remove initial newline from copyright[], which was mistakely added in rev.1.191. Fixes kern/13470 by Tetsuya Isaki.
Revision 1.188.2.3 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:43 2001 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.2: +17 -9
lines
Diff to previous 1.188.2.2 (colored)
Catch up to -current.
Revision 1.192 / (download) - annotate - [select for diffs], Sat Jun 16 12:00:02 2001 UTC (21 years, 11 months ago) by jdolecek
Branch: MAIN
Branch point for: kqueue
Changes since 1.191: +10 -1
lines
Diff to previous 1.191 (colored)
Add port of high performance pipe implementation written by John S. Dyson for FreeBSD project. Besides huge speed boost compared with socketpair-based pipes, this implementation also uses pagable kernel memory instead of mbufs. Significant differences to FreeBSD version: * uses uvm_loan() facility for direct write * async/SIGIO handling correct also for sync writer, async reader * limits settable via sysctl, amountpipekva and nbigpipes available via sysctl * pipes are unidirectional - this is enforced on file descriptor level for now only, the code would be updated to take advantage of it eventually * uses lockmgr(9)-based locks instead of home brew variant * scatter-gather write is handled correctly for direct write case, data is transferred by PIPE_DIRECT_CHUNK bytes maximum, to avoid running out of kva All FreeBSD/NetBSD specific code is within appropriate #ifdef, in preparation to feed changes back to FreeBSD tree. This pipe implementation is optional for now, add 'options NEW_PIPE' to your kernel config to use it.
Revision 1.191 / (download) - annotate - [select for diffs], Fri Jun 8 12:53:30 2001 UTC (22 years ago) by mrg
Branch: MAIN
Changes since 1.190: +7 -8
lines
Diff to previous 1.190 (colored)
use real \n's copyright[]; avoids gcc 3.0-prerelease warnings.
Revision 1.172.2.3 / (download) - annotate - [select for diffs], Sun May 6 15:22:50 2001 UTC (22 years, 1 month ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001
Changes since 1.172.2.2: +2 -2
lines
Diff to previous 1.172.2.2 (colored) to branchpoint 1.172 (colored) next main 1.173 (colored)
Pull up revision 1.188 (requested by chris): Add 2001 to Copyright year list.
Revision 1.157.2.7 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:26 2001 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.157.2.6: +2 -2
lines
Diff to previous 1.157.2.6 (colored) to branchpoint 1.157 (colored) next main 1.158 (colored)
Sync with HEAD
Revision 1.190 / (download) - annotate - [select for diffs], Fri Apr 13 23:30:10 2001 UTC (22 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Changes since 1.189: +2 -2
lines
Diff to previous 1.189 (colored)
Remove the use of splimp() from the NetBSD kernel. splnet() and only splnet() is allowed for the protection of data structures used by network devices.
Revision 1.188.2.2 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:51 2001 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188.2.1: +2 -3
lines
Diff to previous 1.188.2.1 (colored)
Catch up with -current.
Revision 1.157.2.6 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:23 2001 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.157.2.5: +1 -2
lines
Diff to previous 1.157.2.5 (colored) to branchpoint 1.157 (colored)
Sync with HEAD.
Revision 1.189 / (download) - annotate - [select for diffs], Thu Mar 15 06:10:55 2001 UTC (22 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.188: +2 -3
lines
Diff to previous 1.188 (colored)
eliminate the KERN_* error codes in favor of the traditional E* codes. the mapping is: KERN_SUCCESS 0 KERN_INVALID_ADDRESS EFAULT KERN_PROTECTION_FAILURE EACCES KERN_NO_SPACE ENOMEM KERN_INVALID_ARGUMENT EINVAL KERN_FAILURE various, mostly turn into KASSERTs KERN_RESOURCE_SHORTAGE ENOMEM KERN_NOT_RECEIVER <unused> KERN_NO_ACCESS <unused> KERN_PAGES_LOCKED <unused>
Revision 1.188.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:37 2001 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.188: +33 -19
lines
Diff to previous 1.188 (colored)
Initial commit of scheduler activations and lightweight process support.
Revision 1.157.2.5 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:37 2001 UTC (22 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.157.2.4: +1 -1
lines
Diff to previous 1.157.2.4 (colored) to branchpoint 1.157 (colored)
Sync with HEAD
Revision 1.188 / (download) - annotate - [select for diffs], Mon Jan 1 20:18:34 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.187: +2 -2
lines
Diff to previous 1.187 (colored)
Happy new year!
Revision 1.157.2.4 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:18 2000 UTC (22 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.157.2.3: +7 -0
lines
Diff to previous 1.157.2.3 (colored) to branchpoint 1.157 (colored)
Sync with HEAD (for UBC fixes).
Revision 1.187 / (download) - annotate - [select for diffs], Mon Dec 11 05:29:02 2000 UTC (22 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.186: +4 -1
lines
Diff to previous 1.186 (colored)
Introduce 2 new flags in types.h: * __HAVE_SYSCALL_INTERN. If this is defined, e_syscall is replaced by e_syscall_intern, which is called at key places in the kernel. This can be used to set a MD syscall handler pointer. This obsoletes and replaces the *_HAS_SEPARATED_SYSCALL flags. * __HAVE_MINIMAL_EMUL. If this is defined, certain (deprecated) elements in struct emul are omitted.
Revision 1.186 / (download) - annotate - [select for diffs], Fri Dec 8 22:07:36 2000 UTC (22 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.185: +5 -1
lines
Diff to previous 1.185 (colored)
call exec_init() with before letting init(8) exec
Revision 1.157.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:13:53 2000 UTC (22 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.157.2.2: +6 -0
lines
Diff to previous 1.157.2.2 (colored) to branchpoint 1.157 (colored)
Sync with HEAD.
Revision 1.185 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:43 2000 UTC (22 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.184: +7 -1
lines
Diff to previous 1.184 (colored)
Initial integration of the Unified Buffer Cache project.
Revision 1.157.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:17 2000 UTC (22 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.157.2.1: +7 -29
lines
Diff to previous 1.157.2.1 (colored) to branchpoint 1.157 (colored)
Sync with HEAD.
Revision 1.184 / (download) - annotate - [select for diffs], Tue Nov 21 00:37:56 2000 UTC (22 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.183: +2 -25
lines
Diff to previous 1.183 (colored)
restructure struct emul and execsw, in preparation to make emulations LKMable: * move all exec-type specific information from struct emul to execsw[] and provide single struct emul per emulation * elf: - kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry per emulation and contains pointer to respective probe function - interp is allocated via MALLOC() rather than on stack - elf_args structure is allocated via MALLOC() rather than malloc() * ecoff: the per-emulation hooks moved from alpha and mips specific code to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per emulation supporting ecoff with appropriate probe function * the makecmds/probe functions don't set emulation, pointer to emulation is part of appropriate execsw[] entry * constify couple of structures
Revision 1.157.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:08:55 2000 UTC (22 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.157: +148 -70
lines
Diff to previous 1.157 (colored)
Update thorpej_scsipi to -current as of a month ago
Revision 1.183 / (download) - annotate - [select for diffs], Mon Nov 13 21:32:15 2000 UTC (22 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.182: +2 -2
lines
Diff to previous 1.182 (colored)
change the type of *syscallnames[] array to 'const char * const foo[]'
Revision 1.182 / (download) - annotate - [select for diffs], Sun Oct 29 18:38:47 2000 UTC (22 years, 7 months ago) by he
Branch: MAIN
Changes since 1.181: +6 -5
lines
Diff to previous 1.181 (colored)
Use an rlim_t to store "available memory", so we don't needlessly overflow and/or sign extend.
Revision 1.181 / (download) - annotate - [select for diffs], Wed Sep 13 15:00:25 2000 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.180: +2 -2
lines
Diff to previous 1.180 (colored)
Add an align argument to uvm_map() and some callers of that routine. Works similarly fto pmap_prefer(), but allows callers to specify a minimum power-of-two alignment of the region. How we ever got along without this for so long is beyond me.
Revision 1.180 / (download) - annotate - [select for diffs], Sat Aug 26 03:34:37 2000 UTC (22 years, 9 months ago) by sommerfeld
Branch: MAIN
Changes since 1.179: +1 -3
lines
Diff to previous 1.179 (colored)
More MP clock/scheduler changes: - Periodically invoke roundrobin() from hardclock() on all cpu's rather than from a timer callout; this allows time-slicing on non-primary cpu's. - Make pscnt per-cpu. - Notice psdiv changes on each cpu, and adjust pscnt at that point. Also, invoke setstatclockrate() from the clock interrupt when each cpu notices the divisor change, rather than when starting/stopping the profiling clock.
Revision 1.179 / (download) - annotate - [select for diffs], Tue Aug 22 17:28:28 2000 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.178: +9 -2
lines
Diff to previous 1.178 (colored)
Define the MI parts of the "big kernel lock" perimeter. From Bill Sommerfeld.
Revision 1.178 / (download) - annotate - [select for diffs], Mon Aug 21 02:11:56 2000 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.177: +2 -2
lines
Diff to previous 1.177 (colored)
splhigh() -> splsched()
Revision 1.177 / (download) - annotate - [select for diffs], Sat Aug 12 22:41:55 2000 UTC (22 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.176: +3 -23
lines
Diff to previous 1.176 (colored)
Don't bother with a trampoline to start the pagedaemon and reaper threads.
Revision 1.172.2.2 / (download) - annotate - [select for diffs], Mon Jul 24 20:32:19 2000 UTC (22 years, 10 months ago) by jdolecek
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2
Changes since 1.172.2.1: +15 -1
lines
Diff to previous 1.172.2.1 (colored) to branchpoint 1.172 (colored)
pullup from trunk (approved by thorpej): adjust maximum number of vnodes in vnode cache according to machine memory size upon boot if the number has not been specified explicitly in kernel config - at this moment, 0.5% of system memory is used for vnodes (but minimum NVNODE vnodes)
Revision 1.172.2.1 / (download) - annotate - [select for diffs], Fri Jul 14 18:10:50 2000 UTC (22 years, 11 months ago) by thorpej
Branch: netbsd-1-5
Changes since 1.172: +23 -22
lines
Diff to previous 1.172 (colored)
Update from trunk: - Fix the likely cause of the "ps(1) hangs machine" problem. Always vslock the user pages for the data being copied out to userspace, so that we won't sleep while holding a lock in case we need to fault the pages in. - Sprinkle some const and ANSI'ify some things while here.
Revision 1.176 / (download) - annotate - [select for diffs], Fri Jul 14 07:21:21 2000 UTC (22 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.175: +23 -22
lines
Diff to previous 1.175 (colored)
- Fix the likely cause of the "ps(1) hangs machine" problem. Always vslock the user pages for the data being copied out to userspace, so that we won't sleep while holding a lock in case we need to fault the pages in. - Sprinkle some const and ANSI'ify some things while here.
Revision 1.175 / (download) - annotate - [select for diffs], Thu Jul 6 09:51:55 2000 UTC (22 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.174: +15 -1
lines
Diff to previous 1.174 (colored)
adjust maximum number of vnodes in vnode cache according to machine memory size upon boot if the number has not been specified explicitly in kernel config - at this moment, 0.5% of system memory is used for vnodes (but minimum NVNODE vnodes)
Revision 1.174 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:12 2000 UTC (22 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.173: +1 -2
lines
Diff to previous 1.173 (colored)
remove include of <vm/vm.h>
Revision 1.173 / (download) - annotate - [select for diffs], Sun Jun 25 13:49:33 2000 UTC (22 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.172: +1 -3
lines
Diff to previous 1.172 (colored)
<vm/vm_pageout.h> is already empty; kill it totally.
Revision 1.168.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:04 2000 UTC (22 years, 11 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.168: +9 -6
lines
Diff to previous 1.168 (colored) next main 1.169 (colored)
Sync w/ netbsd-1-5-base.
Revision 1.172 / (download) - annotate - [select for diffs], Tue Jun 6 18:26:35 2000 UTC (23 years ago) by soren
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.171: +2 -1
lines
Diff to previous 1.171 (colored)
defopt SYSCALL_DEBUG.
Revision 1.171 / (download) - annotate - [select for diffs], Wed May 31 05:02:31 2000 UTC (23 years ago) by thorpej
Branch: MAIN
Changes since 1.170: +6 -4
lines
Diff to previous 1.170 (colored)
Track which process a CPU is running/has last run on by adding a p_cpu member to struct proc. Use this in certain places when accessing scheduler state, etc. For the single-processor case, just initialize p_cpu in fork1() to avoid having to set it in the low-level context switch code on platforms which will never have multiprocessing. While I'm here, comment a few places where there are known issues for the SMP implementation.
Revision 1.170 / (download) - annotate - [select for diffs], Sun May 28 18:52:32 2000 UTC (23 years ago) by jhawk
Branch: MAIN
Changes since 1.169: +2 -1
lines
Diff to previous 1.169 (colored)
Add proc0 to pidhashtbl so pfind(0) works. Now trace/t 0 works in ddb, etc.
Revision 1.169 / (download) - annotate - [select for diffs], Sun May 28 05:49:05 2000 UTC (23 years ago) by thorpej
Branch: MAIN
Changes since 1.168: +2 -3
lines
Diff to previous 1.168 (colored)
Rather than starting init and creating kthreads by forking and then doing a cpu_set_kpc(), just pass the entry point and argument all the way down the fork path starting with fork1(). In order to avoid special-casing the normal fork in every cpu_fork(), MI code passes down child_return() and the child process pointer explicitly. This fixes a race condition on multiprocessor systems; a CPU could grab the newly created processes (which has been placed on a run queue) before cpu_set_kpc() would be performed.
Revision 1.168 / (download) - annotate - [select for diffs], Fri May 26 21:20:29 2000 UTC (23 years ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.167: +3 -3
lines
Diff to previous 1.167 (colored)
First sweep at scheduler state cleanup. Collect MI scheduler state into global and per-CPU scheduler state: - Global state: sched_qs (run queues), sched_whichqs (bitmap of non-empty run queues), sched_slpque (sleep queues). NOTE: These may collectively move into a struct schedstate at some point in the future. - Per-CPU state, struct schedstate_percpu: spc_runtime (time process on this CPU started running), spc_flags (replaces struct proc's p_schedflags), and spc_curpriority (usrpri of processes on this CPU). - Every platform must now supply a struct cpu_info and a curcpu() macro. Simplify existing cpu_info declarations where appropriate. - All references to per-CPU scheduler state now made through curcpu(). NOTE: this will likely be adjusted in the future after further changes to struct proc are made. Tested on i386 and Alpha. Changes are mostly mechanical, but apologies in advance if it doesn't compile on a particular platform.
Revision 1.167 / (download) - annotate - [select for diffs], Fri May 26 00:36:52 2000 UTC (23 years ago) by thorpej
Branch: MAIN
Changes since 1.166: +2 -2
lines
Diff to previous 1.166 (colored)
Introduce a new process state distinct from SRUN called SONPROC which indicates that the process is actually running on a processor. Test against SONPROC as appropriate rather than combinations of SRUN and curproc. Update all context switch code to properly set SONPROC when the process becomes the current process on the CPU.
Revision 1.166 / (download) - annotate - [select for diffs], Fri Mar 24 11:57:14 2000 UTC (23 years, 2 months ago) by enami
Branch: MAIN
Changes since 1.165: +3 -6
lines
Diff to previous 1.165 (colored)
Call the routine to calculate callwheelsize from allocsys() instead of main() since some port like alpha and mips calls allocsys() before main() is called. While I'm here, I renamed some function.
Revision 1.165 / (download) - annotate - [select for diffs], Thu Mar 23 06:30:07 2000 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.164: +9 -3
lines
Diff to previous 1.164 (colored)
New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel. The old timeout()/untimeout() API has been removed from the kernel.
Revision 1.164 / (download) - annotate - [select for diffs], Fri Mar 10 01:13:18 2000 UTC (23 years, 3 months ago) by enami
Branch: MAIN
Changes since 1.163: +5 -1
lines
Diff to previous 1.163 (colored)
Create new kernel thread to issue statfs(2) system call to check free disk space rather than doing it in timeout handler. This fixes long standing bug that accounting file can't be put on NFS file system (so, e.g, we couldn't turn on accounting on diskless system).
Revision 1.163 / (download) - annotate - [select for diffs], Mon Jan 24 18:03:19 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.162: +77 -24
lines
Diff to previous 1.162 (colored)
Add a `config_pending' semaphore to block mounting of the root file system until all device driver discovery threads have had a chance to do their work. This in turn blocks initproc's exec of init(8) until root is mounted and process start times and CWD info has been fixed up. Addresses kern/9247.
Revision 1.162 / (download) - annotate - [select for diffs], Wed Jan 19 20:05:50 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.161: +5 -1
lines
Diff to previous 1.161 (colored)
Move callout initialization to a single location; no need to duplicate that code all over the place.
Revision 1.145.2.1 / (download) - annotate - [select for diffs], Sat Jan 15 17:45:59 2000 UTC (23 years, 4 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002
Changes since 1.145: +2 -2
lines
Diff to previous 1.145 (colored) next main 1.146 (colored)
Pull up revision 1.161 (requested by mycroft): Update the copyright notice to include 2000.
Revision 1.161 / (download) - annotate - [select for diffs], Sat Jan 1 05:00:03 2000 UTC (23 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.160: +2 -2
lines
Diff to previous 1.160 (colored)
Update for y2k.
Revision 1.157.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:50 1999 UTC (23 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.157: +15 -1
lines
Diff to previous 1.157 (colored) next main 1.158 (colored)
Pull up to last week's -current.
Revision 1.160 / (download) - annotate - [select for diffs], Thu Dec 16 19:59:17 1999 UTC (23 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Changes since 1.159: +7 -1
lines
Diff to previous 1.159 (colored)
Explicitly set secondary processors in motion before calling uvm_scheduler().
Revision 1.159 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:09 1999 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.158: +8 -1
lines
Diff to previous 1.158 (colored)
Add Kirk McKusick's soft updates code to the trunk. Not enabled by default, as the copyright on the main file (ffs_softdep.c) is such that is has been put into gnusrc. options SOFTDEP will pull this in. This code also contains the trickle syncer. Bump version number to 1.4O
Revision 1.157.4.2 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:48 1999 UTC (23 years, 7 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.157.4.1: +2 -1
lines
Diff to previous 1.157.4.1 (colored) to branchpoint 1.157 (colored) next main 1.158 (colored)
Sync with -current
Revision 1.158 / (download) - annotate - [select for diffs], Sat Nov 13 05:02:25 1999 UTC (23 years, 7 months ago) by simonb
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.157: +2 -1
lines
Diff to previous 1.157 (colored)
Defopt MAXUPRC.
Revision 1.157.4.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:50:01 1999 UTC (23 years, 7 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.157: +8 -1
lines
Diff to previous 1.157 (colored)
Bring in Kirk McKusick's FFS softdep code on a branch.
Revision 1.157 / (download) - annotate - [select for diffs], Tue Sep 28 14:47:03 1999 UTC (23 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: comdex-fall-1999-base,
comdex-fall-1999
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
fvdl-softdep
Changes since 1.156: +2 -1
lines
Diff to previous 1.156 (colored)
Remplace kern.shortcorename sysctl with a more flexible sheme, core filename format, which allow to change the name of the core dump, and to relocate it in a directory. Credits to Bill Sommerfeld for giving me the idea :) The default core filename format can be changed by options DEFCORENAME and/or kern.defcorename Create a new sysctl tree, proc, which holds per-process values (for now the corename format, and resources limits). Process is designed by its pid at the second level name. These values are inherited on fork, and the corename fomat is reset to defcorename on suid/sgid exec. Create a p_sugid() function, to take appropriate actions on suid/sgid exec (for now set the P_SUGID flag and reset the per-proc corename). Adjust dosetrlimit() to allow changing limits of one proc by another, with credential controls.
Revision 1.156 / (download) - annotate - [select for diffs], Fri Sep 17 20:11:56 1999 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.155: +10 -7
lines
Diff to previous 1.155 (colored)
- Centralize the declaration and clearing of `cold'. - Call configure() after setting up proc0. - Call initclocks() from configure(), after cpu_configure(). Once the clocks are running, clear `cold'. Then run interrupt-driven autoconfiguration.
Revision 1.155 / (download) - annotate - [select for diffs], Wed Sep 15 18:10:34 1999 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.154: +2 -3
lines
Diff to previous 1.154 (colored)
Rename the machine-dependent autoconfiguration entry point `cpu_configure()', and rename config_init() to configure() and call cpu_configure() from there.
Revision 1.145.4.4 / (download) - annotate - [select for diffs], Mon Aug 2 23:26:39 1999 UTC (23 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.145.4.3: +2 -2
lines
Diff to previous 1.145.4.3 (colored) to branchpoint 1.145 (colored) next main 1.146 (colored)
Update a kthread call.
Revision 1.145.4.3 / (download) - annotate - [select for diffs], Mon Aug 2 22:19:11 1999 UTC (23 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.145.4.2: +6 -3
lines
Diff to previous 1.145.4.2 (colored) to branchpoint 1.145 (colored)
Update from trunk.
Revision 1.154 / (download) - annotate - [select for diffs], Thu Jul 22 21:08:31 1999 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.153: +4 -1
lines
Diff to previous 1.153 (colored)
Add a read/write lock to the proclists and PID hash table. Use the write lock when doing PID allocation, and during the process exit path. Use a read lock every where else, including within schedcpu() (interrupt context). Note that holding the write lock implies blocking schedcpu() from running (blocks softclock). PID allocation is now MP-safe. Note this actually fixes a bug on single processor systems that was probably extremely difficult to tickle; it was possible that schedcpu() would run off a bad pointer if the right clock interrupt happened to come in the middle of a LIST_INSERT_HEAD() or LIST_REMOVE() to/from allproc.
Revision 1.153 / (download) - annotate - [select for diffs], Tue Jul 6 21:44:10 1999 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.152: +3 -3
lines
Diff to previous 1.152 (colored)
Make the kthread API a bit more friendly to loadable kernel modules.
Revision 1.145.4.2 / (download) - annotate - [select for diffs], Mon Jun 21 01:23:59 1999 UTC (23 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.145.4.1: +23 -19
lines
Diff to previous 1.145.4.1 (colored) to branchpoint 1.145 (colored)
Sync w/ -current.
Revision 1.152 / (download) - annotate - [select for diffs], Mon Jun 7 20:16:09 1999 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.151: +2 -2
lines
Diff to previous 1.151 (colored)
Don't pass a nam2blk around at all; just have setroot() and friends reference dev_name2blk[] directly. Addresses PR #7622 (ITOH Yasufumi), although in a different way.
Revision 1.145.4.1 / (download) - annotate - [select for diffs], Mon Jun 7 04:25:30 1999 UTC (24 years ago) by chs
Branch: chs-ubc2
Changes since 1.145: +16 -1
lines
Diff to previous 1.145 (colored)
merge everything from chs-ubc branch.
Revision 1.151 / (download) - annotate - [select for diffs], Thu May 13 21:58:37 1999 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.150: +2 -2
lines
Diff to previous 1.150 (colored)
Allow the caller to specify a stack for the child process. If NULL, the child inherits the stack pointer from the parent (traditional behavior). Like the signal stack, the stack area is secified as a low address and a size; machine-dependent code accounts for stack direction. This is required for clone(2).
Revision 1.150 / (download) - annotate - [select for diffs], Thu May 13 00:59:04 1999 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.149: +2 -2
lines
Diff to previous 1.149 (colored)
Allow an alternate exit signal (i.e. not SIGCHLD) to be delivered to the parent, specified at fork time. Specify a new flag to wait4(2), WALTSIG, to wait for processes which use an alternate exit signal. This is required for clone(2).
Revision 1.149 / (download) - annotate - [select for diffs], Fri Apr 30 21:23:49 1999 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.148: +10 -5
lines
Diff to previous 1.148 (colored)
Pull signal actions out of struct user, make them a separate proc substructure, and allow them to be shared. Required for clone(2).
Revision 1.148 / (download) - annotate - [select for diffs], Fri Apr 30 18:42:59 1999 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.147: +10 -4
lines
Diff to previous 1.147 (colored)
Break cdir/rdir/cmask info out of struct filedesc, and put it in a new substructure, `cwdinfo'. Implement optional sharing of this substructure. This is required for clone(2).
Revision 1.147 / (download) - annotate - [select for diffs], Sun Apr 25 02:56:30 1999 UTC (24 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.146: +1 -9
lines
Diff to previous 1.146 (colored)
g/c REAL_CLISTS.
Revision 1.146 / (download) - annotate - [select for diffs], Mon Apr 12 00:22:08 1999 UTC (24 years, 2 months ago) by gwr
Branch: MAIN
Changes since 1.145: +3 -2
lines
Diff to previous 1.145 (colored)
minor nits -- strncpy into p->p_comm
Revision 1.134.2.1 / (download) - annotate - [select for diffs], Fri Apr 9 04:19:54 1999 UTC (24 years, 2 months ago) by chs
Branch: chs-ubc
Changes since 1.134: +23 -3
lines
Diff to previous 1.134 (colored) next main 1.135 (colored)
start aiodone daemon as pid 3, reaper becomes pid 4.
Revision 1.145 / (download) - annotate - [select for diffs], Thu Apr 1 00:22:45 1999 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH001,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: netbsd-1-4,
chs-ubc2
Changes since 1.144: +5 -2
lines
Diff to previous 1.144 (colored)
Call cpu_startup() immediately after uvm_init(), but before mbinit(). Call configure() directly immediately after config_init(). This causes autoconfiguration to happen at the same time as before, but creates some kernel submaps earlier, so that e.g. mbinit() can now allocate memory.
Revision 1.144 / (download) - annotate - [select for diffs], Fri Mar 26 01:10:50 1999 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.143: +4 -5
lines
Diff to previous 1.143 (colored)
Assign initproc in main(), not start_init(). It's conventient to do so.
Revision 1.143 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:22 1999 UTC (24 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.142: +1 -41
lines
Diff to previous 1.142 (colored)
completely remove Mach VM support. all that is left is the all the header files as UVM still uses (most of) these.
Revision 1.142 / (download) - annotate - [select for diffs], Fri Mar 5 07:26:21 1999 UTC (24 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.141: +8 -3
lines
Diff to previous 1.141 (colored)
This is sort of gratuitous, but... Strip the leading path off of init's argv[0].
Revision 1.141 / (download) - annotate - [select for diffs], Mon Feb 22 00:12:36 1999 UTC (24 years, 3 months ago) by cjs
Branch: MAIN
Changes since 1.140: +2 -2
lines
Diff to previous 1.140 (colored)
Safer use of printf.
Revision 1.140 / (download) - annotate - [select for diffs], Thu Jan 21 14:50:41 1999 UTC (24 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.139: +10 -3
lines
Diff to previous 1.139 (colored)
Fix initialization of resource limits for number of files and number of processes: - Don't initialize rlim_max to RLIM_INFINITY. The limits for those should be maxfiles and maxproc respectively. Programs expect getrlimit to return reasonable values, so that they can allocate structures (for example jdk does this). - Don't initialize rlim_cur to NOFILE and MAXUPRC respectively, but to min(NOFILE, maxfiles) and min(MAXUPRC, maxproc) respectively.
Revision 1.139 / (download) - annotate - [select for diffs], Sat Jan 16 21:06:44 1999 UTC (24 years, 4 months ago) by chuck
Branch: MAIN
Changes since 1.138: +1 -3
lines
Diff to previous 1.138 (colored)
MNN is no longer optional
Revision 1.138 / (download) - annotate - [select for diffs], Wed Jan 6 13:51:09 1999 UTC (24 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.137: +2 -2
lines
Diff to previous 1.137 (colored)
add copyright 1999
Revision 1.137 / (download) - annotate - [select for diffs], Sat Nov 14 00:08:49 1998 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base,
kenh-if-detach
Changes since 1.136: +4 -1
lines
Diff to previous 1.136 (colored)
Implement a way to queue kernel threads for creation after init, pagedaemon, reaper, etc. Caller provides a callback function and argument which will be called to create the threads.
Revision 1.136 / (download) - annotate - [select for diffs], Wed Nov 11 22:45:32 1998 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.135: +10 -4
lines
Diff to previous 1.135 (colored)
fork_kthread() -> kthread_create(). Set P_NOCLDWAIT on kernel threads, which will cause any of their children to be reparented to init(8) (which is already prepared to wait out orphaned processes).
Revision 1.135 / (download) - annotate - [select for diffs], Wed Nov 11 06:34:43 1998 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.134: +19 -28
lines
Diff to previous 1.134 (colored)
Initial version of API for creating kernel threads (likely to change somewhat in the future): - New function, fork_kthread(), takes entry point, argument for entry point, and comment for new proc. May be called by any context, will fork the thread from proc0 (requires slight changes to cpu_fork()). - cpu_set_kpc() now takes a third argument, a void *arg to pass to the thread entry point. Thread entry point now takes void * instead of struct proc *. - Create the pagedaemon and reaper kernel threads using fork_kthread().
Revision 1.134 / (download) - annotate - [select for diffs], Mon Oct 19 22:19:26 1998 UTC (24 years, 7 months ago) by tron
Branch: MAIN
CVS Tags: chs-ubc-base
Branch point for: chs-ubc
Changes since 1.133: +2 -1
lines
Diff to previous 1.133 (colored)
Defopt SYSVMSG, SYSVSEM and SYSVSHM.
Revision 1.133 / (download) - annotate - [select for diffs], Mon Oct 19 11:51:53 1998 UTC (24 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.132: +3 -1
lines
Diff to previous 1.132 (colored)
Allow `curproc' to be defined in <machine/proc.h> to enable a transition to SMP support.
Revision 1.132 / (download) - annotate - [select for diffs], Tue Sep 8 23:57:58 1998 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.131: +21 -1
lines
Diff to previous 1.131 (colored)
Implement a new kernel thread, the "reaper", which performs the task of freeing the VM resources once a process has exited. A valid thread must do this work, as doing so may block in a multi-processor environment.
Revision 1.131 / (download) - annotate - [select for diffs], Mon Aug 31 23:55:37 1998 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.130: +3 -1
lines
Diff to previous 1.130 (colored)
Use the pool allocator and "nointr" pool page allocator for file structures.
Revision 1.130 / (download) - annotate - [select for diffs], Thu Aug 13 02:10:56 1998 UTC (24 years, 10 months ago) by eeh
Branch: MAIN
Changes since 1.129: +3 -3
lines
Diff to previous 1.129 (colored)
Merge paddr_t changes into the main branch.
Revision 1.123.2.2 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:53 1998 UTC (24 years, 10 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.123.2.1: +10 -6
lines
Diff to previous 1.123.2.1 (colored) to branchpoint 1.123 (colored) next main 1.124 (colored)
Revert cdevsw mmap routines to return int.
Revision 1.129 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:11 1998 UTC (24 years, 10 months ago) by perry
Branch: MAIN
Changes since 1.128: +3 -3
lines
Diff to previous 1.128 (colored)
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one. bcopy(x, y, z) -> memcpy(y, x, z) ovbcopy(x, y, z) -> memmove(y, x, z) bcmp(x, y, z) -> memcmp(x, y, z) bzero(x, y) -> memset(x, 0, y)
Revision 1.128 / (download) - annotate - [select for diffs], Sun Aug 2 04:53:12 1998 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.127: +5 -1
lines
Diff to previous 1.127 (colored)
Use the pool allocator for sockets.
Revision 1.127 / (download) - annotate - [select for diffs], Sat Aug 1 01:36:35 1998 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.126: +8 -4
lines
Diff to previous 1.126 (colored)
Initialize the mbuf allocator _before_ autoconfiguration; it might be called when devices attach, take two. Note that it is necessary that mbinit() NOT allocate memory, since it is called before mb_map is created. This is not a problem with the pool allocator that is now used for mbufs and mbuf clusters.
Revision 1.126 / (download) - annotate - [select for diffs], Sat Aug 1 01:20:43 1998 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.125: +4 -8
lines
Diff to previous 1.125 (colored)
Oops, back out previous. I need to attack that problem differently.
Revision 1.125 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:49 1998 UTC (24 years, 10 months ago) by perry
Branch: MAIN
Changes since 1.124: +3 -3
lines
Diff to previous 1.124 (colored)
fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.
Revision 1.124 / (download) - annotate - [select for diffs], Fri Jul 31 21:59:55 1998 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.123: +8 -4
lines
Diff to previous 1.123 (colored)
Initialize the mbuf allocator _before_ autoconfiguration; it might be called when devices attach.
Revision 1.123.2.1 / (download) - annotate - [select for diffs], Thu Jul 30 14:04:03 1998 UTC (24 years, 10 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.123: +3 -3
lines
Diff to previous 1.123 (colored)
Split vm_offset_t and vm_size_t into paddr_t, psize_t, vaddr_t, and vsize_t.
Revision 1.123 / (download) - annotate - [select for diffs], Thu Jun 25 22:17:36 1998 UTC (24 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.122: +2 -1
lines
Diff to previous 1.122 (colored)
defopt NFSSERVER
Revision 1.108.2.1 / (download) - annotate - [select for diffs], Sun May 10 06:57:36 1998 UTC (25 years, 1 month ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002
Changes since 1.108: +3 -2
lines
Diff to previous 1.108 (colored) next main 1.109 (colored)
Update copyright notice.
Revision 1.122 / (download) - annotate - [select for diffs], Mon Mar 30 06:18:05 1998 UTC (25 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.121: +2 -2
lines
Diff to previous 1.121 (colored)
Oops; forgot to update prototype.
Revision 1.121 / (download) - annotate - [select for diffs], Mon Mar 30 06:15:44 1998 UTC (25 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.120: +2 -3
lines
Diff to previous 1.120 (