The NetBSD Project

CVS log for src/sys/kern/subr_prf.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.203 / (download) - annotate - [select for diffs], Tue Aug 29 21:23:14 2023 UTC (7 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.202: +2 -6 lines
Diff to previous 1.202 (colored) to selected 1.107.6.3 (colored)

remove broken #ifdef KADB code block in subr_prf.
kdbpanic() was seemingly MIPS only and removed back in 1997,
since mips/locore.S rev 1.31.
should fix builds with KADB option enabled (tested on arc).

Revision 1.196.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 14:35:25 2023 UTC (8 months, 1 week ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.196.2.1: +4 -4 lines
Diff to previous 1.196.2.1 (colored) to branchpoint 1.196 (colored) next main 1.197 (colored) to selected 1.107.6.3 (colored)

Pull up following revision(s) (requested by riastradh in ticket #319):

	sys/dev/pci/ubsec.c: revision 1.64
	sys/dev/pci/hifn7751.c: revision 1.82
	lib/libc/gen/getentropy.3: revision 1.5
	lib/libc/gen/getentropy.3: revision 1.6
	share/man/man4/rnd.4: revision 1.41
	lib/libc/sys/getrandom.2: revision 1.2
	lib/libc/sys/getrandom.2: revision 1.3
	share/man/man5/rc.conf.5: revision 1.193
	share/man/man7/entropy.7: revision 1.5
	share/man/man7/entropy.7: revision 1.6
	share/man/man7/entropy.7: revision 1.7
	share/man/man7/entropy.7: revision 1.8
	etc/security: revision 1.130
	share/man/man7/entropy.7: revision 1.9
	etc/security: revision 1.131
	sys/crypto/cprng_fast/cprng_fast.c: revision 1.19
	sys/sys/rndio.h: revision 1.3
	tests/lib/libc/sys/t_getrandom.c: revision 1.5
	etc/defaults/rc.conf: revision 1.164
	etc/defaults/rc.conf: revision 1.165
	sys/sys/rndsource.h: revision 1.10
	sys/kern/kern_entropy.c: revision 1.62
	sys/kern/kern_entropy.c: revision 1.63
	sys/kern/kern_entropy.c: revision 1.64
	sys/kern/subr_cprng.c: revision 1.44
	sys/kern/kern_entropy.c: revision 1.65
	sys/kern/kern_clock.c: revision 1.149
	sys/dev/pci/viornd.c: revision 1.22
	share/man/man9/rnd.9: revision 1.32
	sys/kern/subr_prf.c: revision 1.202
	sys/sys/rndsource.h: revision 1.8
	sys/sys/rndsource.h: revision 1.9
	share/man/man7/entropy.7: revision 1.10

1. Reinstate netbsd<=9 entropy estimator to unblock /dev/random, in
   parallel with assessment of only confident entropy sources (seed,
   HWRNG) for security warnings like sshd keys in motd and daily
   insecurity report.

2. Make multiuser boot wait for first /dev/random output soon after
   loading a seed and configuring rndctl, so that getentropy(3) meets
   its contract starting early at boot without introducing blocking
   paths that could cause hangs in init(8) or single-user mode.
   Operators can choose to disable this wait in rc.conf.

3. Fix some bugs left over from reducing the global entropy lock from
   a spin lock at IPL_VM to an adaptive lock at IPL_SOFTSERIAL.

4. Update man pages.

Revision 1.202 / (download) - annotate - [select for diffs], Fri Aug 4 07:38:53 2023 UTC (8 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.201: +4 -4 lines
Diff to previous 1.201 (colored) to selected 1.107.6.3 (colored)

entropy(9): Simplify stages.  Split interrupt vs non-interrupt paths.

- Nix the entropy stage (cold, warm, hot).  Just use the usual kernel
  `cold' (cold: single-core, single-thread; interrupts may happen),
  and don't make any three-way distinction about whether interrupts
  or threads or other CPUs can be running.

  Instead, while cold, use splhigh/splx or forbid paths to come from
  interrupt context, and while warm, use mutex or the per-CPU hard
  and soft interrupt paths for low latency.  This comes at a small
  cost to some interrupt latency, since we may stir the pool in
  interrupt context -- but only for a very short window early at boot
  between configure and configure2, so it's hard to imagine it
  matters much.

- Allow rnd_add_uint32 to run in hard interrupt context or with spin
  locks held, but defer processing to softint and drop samples on the
  floor if buffer is full.  This is mainly used for cheaply tossing
  samples from drivers for non-HWRNG devices into the entropy pool,
  so it is often used from interrupt context and/or under spin locks.

- New rnd_add_data_intr provides the interrupt-like data entry path
  for arbitrary buffers and driver-specified entropy estimates: defer
  processing to softint and drop samples on the floor if buffer is
  full.

- Document that rnd_add_data is forbidden under spin locks outside
  interrupt context (will crash in LOCKDEBUG), and inadvisable in
  interrupt context (but technically permitted just in case there are
  compatibility issues for now); later we can forbid it altogether in
  interrupt context or under spin locks.

- Audit all uses of rnd_add_data to use rnd_add_data_intr where it
  might be used in interrupt context or under a spin lock.

This fixes a regression from last year when the global entropy lock
was changed from IPL_VM (spin) to IPL_SOFTSERIAL (adaptive).  Thought
I'd caught all the problems from that, but another one bit three
different people this week, presumably because of recent changes that
led to more non-HWRNG drivers entering the entropy consolidation
path from rnd_add_uint32.

In my attempt to preserve the rnd(9) API for the (now long-since
abandoned) prospect of pullup to netbsd-9 in my rewrite of the
entropy subsystem in 2020, I didn't introduce a separate entry point
for entering entropy from interrupt context or equivalent, i.e., spin
locks held, and instead made rnd_add_data rely on cpu_intr_p() to
decide whether to process the whole sample under a lock or only take
as much as there's buffer space for before scheduling a softint.  In
retrospect, that was a mistake (though perhaps not as much of a
mistake as other entropy API decisions...), a mistake which is
finally getting rectified now by rnd_add_data_intr.

XXX pullup-10

Revision 1.201 / (download) - annotate - [select for diffs], Mon Jul 17 22:57:35 2023 UTC (9 months ago) by riastradh
Branch: MAIN
Changes since 1.200: +6 -5 lines
Diff to previous 1.200 (colored) to selected 1.107.6.3 (colored)

device_printf(9): Lock to avoid interleaving output.

XXX pullup-9
XXX pullup-10

Revision 1.160.8.2 / (download) - annotate - [select for diffs], Mon Apr 17 18:13:44 2023 UTC (12 months ago) by martin
Branch: netbsd-8
Changes since 1.160.8.1: +3 -3 lines
Diff to previous 1.160.8.1 (colored) to branchpoint 1.160 (colored) next main 1.161 (colored) to selected 1.107.6.3 (colored)

Fix merge mishap in applying the changes from rev 1.171 in ticket #1804:
patch accidently applied the change to a nearby very similar function
(aprint_verbose_internal instead of aprint_error_internal).

Revision 1.200 / (download) - annotate - [select for diffs], Wed Apr 12 06:35:26 2023 UTC (12 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.199: +3 -3 lines
Diff to previous 1.199 (colored) to selected 1.107.6.3 (colored)

ttycheckoutq(9): wait=0 always, parameter no longer useful, nix it.

XXX kernel revbump

Revision 1.199 / (download) - annotate - [select for diffs], Sun Apr 9 09:18:09 2023 UTC (12 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.198: +4 -3 lines
Diff to previous 1.198 (colored) to selected 1.107.6.3 (colored)

kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)

Revision 1.160.8.1 / (download) - annotate - [select for diffs], Fri Feb 24 14:17:18 2023 UTC (13 months, 3 weeks ago) by martin
Branch: netbsd-8
Changes since 1.160: +3 -2 lines
Diff to previous 1.160 (colored) to selected 1.107.6.3 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1804):

	sys/kern/subr_prf.c: revision 1.171

Make identification of accounted aprint_error()s possible by putting a
big ugly "autoconfiguration error: " in the log when they occur.

Revision 1.196.2.1 / (download) - annotate - [select for diffs], Wed Feb 8 18:24:52 2023 UTC (14 months, 1 week ago) by martin
Branch: netbsd-10
Changes since 1.196: +7 -4 lines
Diff to previous 1.196 (colored) to selected 1.107.6.3 (colored)

Pull up following revision(s) (requested by mrg in ticket #75):

	sys/kern/subr_prf.c: revision 1.197
	sys/kern/subr_prf.c: revision 1.198

avoid pserialize usage in early boot

there are DEBUG-only aprint_normal() calls early in eg, ksyms
setup that may happen before eg curcpu() is setup.  this is the
case in sparc64, where it sets up ksyms as early as it can so
that DDB has symbols early, which is before the curcpu() setup
is created, and thus the calls to pserialize_read_enter() and
pserialize_read_exit() attempt to access unmapped cpu_info and
due to being so early, the system faults to the prom.
simply use "cold" to determine whether to skip these pserialize
calls or not.

ok riastradh
XXX: pullup-10

fix logic-reversing tpyo in putone()

Revision 1.198 / (download) - annotate - [select for diffs], Tue Feb 7 09:25:51 2023 UTC (14 months, 1 week ago) by macallan
Branch: MAIN
Changes since 1.197: +3 -3 lines
Diff to previous 1.197 (colored) to selected 1.107.6.3 (colored)

fix logic-reversing tpyo in putone()

Revision 1.197 / (download) - annotate - [select for diffs], Sun Feb 5 21:18:05 2023 UTC (14 months, 1 week ago) by mrg
Branch: MAIN
Changes since 1.196: +7 -4 lines
Diff to previous 1.196 (colored) to selected 1.107.6.3 (colored)

avoid pserialize usage in early boot

there are DEBUG-only aprint_normal() calls early in eg, ksyms
setup that may happen before eg curcpu() is setup.  this is the
case in sparc64, where it sets up ksyms as early as it can so
that DDB has symbols early, which is before the curcpu() setup
is created, and thus the calls to pserialize_read_enter() and
pserialize_read_exit() attempt to access unmapped cpu_info and
due to being so early, the system faults to the prom.

simply use "cold" to determine whether to skip these pserialize
calls or not.

ok riastradh

XXX: pullup-10

Revision 1.196 / (download) - annotate - [select for diffs], Mon Oct 31 09:14:18 2022 UTC (17 months, 2 weeks ago) by simonb
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.195: +4 -2 lines
Diff to previous 1.195 (colored) to selected 1.107.6.3 (colored)

Fix (invalid) gcc uninitialised warning with i386 gcc using -Os.

Revision 1.195 / (download) - annotate - [select for diffs], Wed Oct 26 23:28:42 2022 UTC (17 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.194: +2 -3 lines
Diff to previous 1.194 (colored) to selected 1.107.6.3 (colored)

sys/msgbuf.h: New home for extern log_open.

Revision 1.194 / (download) - annotate - [select for diffs], Tue Oct 25 23:21:13 2022 UTC (17 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.193: +21 -9 lines
Diff to previous 1.193 (colored) to selected 1.107.6.3 (colored)

constty(4): Make MP-safe, take three.

Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Changes second time around:
- Fix initialization of ok in cons.c cn_redirect.
- Fix reversed sense of conditional in subr_prf.c putone.

Changes third time around:
- Initialize ttyref_cv so we don't panic when trying to use it,
  leading to infinite loop when panic tries to take tty_lock to print
  the panic message while we already hold tty_lock.

Revision 1.193 / (download) - annotate - [select for diffs], Fri Oct 7 18:59:37 2022 UTC (18 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.192: +9 -21 lines
Diff to previous 1.192 (colored) to selected 1.107.6.3 (colored)

Revert "constty(4): Make MP-safe."

Something is still busted and this is interfering with the releng
amd64 testbed.

Revision 1.192 / (download) - annotate - [select for diffs], Thu Oct 6 19:58:41 2022 UTC (18 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.191: +21 -9 lines
Diff to previous 1.191 (colored) to selected 1.107.6.3 (colored)

constty(4): Make MP-safe.

Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Changes second time around:
- Fix initialization of ok in cons.c cn_redirect.
- Fix reversed sense of conditional in subr_prf.c putone.

Revision 1.191 / (download) - annotate - [select for diffs], Tue Oct 4 05:20:01 2022 UTC (18 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.190: +9 -21 lines
Diff to previous 1.190 (colored) to selected 1.107.6.3 (colored)

Revert "constty(4): Make MP-safe."

Something appears to be wrong with this.

Revision 1.190 / (download) - annotate - [select for diffs], Mon Oct 3 19:57:06 2022 UTC (18 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.189: +21 -9 lines
Diff to previous 1.189 (colored) to selected 1.107.6.3 (colored)

constty(4): Make MP-safe.

Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Revision 1.189 / (download) - annotate - [select for diffs], Thu Aug 11 23:53:03 2022 UTC (20 months, 1 week ago) by gutteridge
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.188: +3 -3 lines
Diff to previous 1.188 (colored) to selected 1.107.6.3 (colored)

subr_prf.c & luasystm.c: s/panicing/panicking/ in comments

Revision 1.188 / (download) - annotate - [select for diffs], Sun Apr 17 09:09:13 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.187: +9 -6 lines
Diff to previous 1.187 (colored) to selected 1.107.6.3 (colored)

panic(9): Serialize panicstr access and printing `panic:' message.

This isn't riskier than before -- previously we took kprintf_lock
inside each separate printf/vprintf call here.  Now we just take it
once around access to panicstr and printing the message.

With any luck, this should help avoid interleaving panic messages
with each other and with other output -- and maybe cut down on the
number of syzkaller duplicates.

Revision 1.187 / (download) - annotate - [select for diffs], Wed Mar 16 20:31:02 2022 UTC (2 years, 1 month ago) by andvar
Branch: MAIN
Changes since 1.186: +4 -4 lines
Diff to previous 1.186 (colored) to selected 1.107.6.3 (colored)

s/paniced/panicked/ and s/borken/broken/ in comments.

Revision 1.185.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:00 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.185: +16 -2 lines
Diff to previous 1.185 (colored) next main 1.186 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.186 / (download) - annotate - [select for diffs], Wed Mar 10 13:27:51 2021 UTC (3 years, 1 month 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, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.185: +16 -2 lines
Diff to previous 1.185 (colored) to selected 1.107.6.3 (colored)

Add printf_nostamp(9), kernel printf() without prepending a timestamp.

Revision 1.185 / (download) - annotate - [select for diffs], Sat Jul 11 07:14:53 2020 UTC (3 years, 9 months ago) by maxv
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.184: +10 -9 lines
Diff to previous 1.184 (colored) to selected 1.107.6.3 (colored)

Remove support for '%n' in the kernel printf functions.

It makes vulnerabilities too easily exploitable, is unused and as a sanity
rule should not be used in the kernel to begin with.

Now, "printf(unfiltered_string);" is much less of a problem.

Revision 1.184 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.183: +9 -9 lines
Diff to previous 1.183 (colored) to selected 1.107.6.3 (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.183 / (download) - annotate - [select for diffs], Thu Apr 30 03:28:18 2020 UTC (3 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.182: +10 -68 lines
Diff to previous 1.182 (colored) to selected 1.107.6.3 (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.171.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:52 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.171.2.1: +3 -3 lines
Diff to previous 1.171.2.1 (colored) to branchpoint 1.171 (colored) next main 1.172 (colored) to selected 1.107.6.3 (colored)

Merge changes from current as of 20200406

Revision 1.182 / (download) - annotate - [select for diffs], Wed Jan 1 22:57:17 2020 UTC (4 years, 3 months ago) by thorpej
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, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.181: +3 -3 lines
Diff to previous 1.181 (colored) to selected 1.107.6.3 (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.171.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.171: +61 -36 lines
Diff to previous 1.171 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.181 / (download) - annotate - [select for diffs], Tue May 21 04:57:02 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.180: +3 -2 lines
Diff to previous 1.180 (colored) to selected 1.107.6.3 (colored)

put back line accidentally removed.

Revision 1.180 / (download) - annotate - [select for diffs], Tue May 21 04:55:07 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.179: +2 -5 lines
Diff to previous 1.179 (colored) to selected 1.107.6.3 (colored)

undo the unintended part of the previous commit.

Revision 1.179 / (download) - annotate - [select for diffs], Tue May 21 04:53:52 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.178: +8 -5 lines
Diff to previous 1.178 (colored) to selected 1.107.6.3 (colored)

va_copy list needs va_end; pointed out by kre@

Revision 1.178 / (download) - annotate - [select for diffs], Tue May 21 00:57:54 2019 UTC (4 years, 11 months ago) by kre
Branch: MAIN
Changes since 1.177: +3 -2 lines
Diff to previous 1.177 (colored) to selected 1.107.6.3 (colored)


Need <sys/kmem.h> for kmem_alloc()

Revision 1.177 / (download) - annotate - [select for diffs], Mon May 20 20:35:45 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.176: +14 -2 lines
Diff to previous 1.176 (colored) to selected 1.107.6.3 (colored)

Add a simple vasprintf() implementation that uses 2 passes, one to compute
the length and a second to place the data. Requested by rmind@

Revision 1.162.2.5 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:57 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.162.2.4: +47 -28 lines
Diff to previous 1.162.2.4 (colored) to branchpoint 1.162 (colored) next main 1.163 (colored) to selected 1.107.6.3 (colored)

Synch with HEAD

Revision 1.176 / (download) - annotate - [select for diffs], Mon Jan 14 19:21:54 2019 UTC (5 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, isaki-audio2-base, isaki-audio2
Changes since 1.175: +22 -2 lines
Diff to previous 1.175 (colored) to selected 1.107.6.3 (colored)

add KASSERT()s to ensure aprint_*_dev() and aprint_*_ifp() is not called
with NULL dv or ifp respectively

related to PR kern/53789

Revision 1.175 / (download) - annotate - [select for diffs], Mon Jan 7 13:09:48 2019 UTC (5 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.174: +27 -28 lines
Diff to previous 1.174 (colored) to selected 1.107.6.3 (colored)

Introduce new helper printf functions that get passed output
flags. Add a new kprintf flag to avoid adding time stamps
when outputing to the console. Mostly from Christos, any bugs
added by me.

Use above to print the "twiddle" (when using boot -z) without
timestamps.

Revision 1.162.2.4 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:08 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.162.2.3: +2 -10 lines
Diff to previous 1.162.2.3 (colored) to branchpoint 1.162 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.174 / (download) - annotate - [select for diffs], Sun Jul 15 07:24:11 2018 UTC (5 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Changes since 1.173: +2 -10 lines
Diff to previous 1.173 (colored) to selected 1.107.6.3 (colored)

More ipkdb removal

Revision 1.173 / (download) - annotate - [select for diffs], Sun Jul 1 09:53:54 2018 UTC (5 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.172: +2 -6 lines
Diff to previous 1.172 (colored) to selected 1.107.6.3 (colored)

Revert previous

Revision 1.172 / (download) - annotate - [select for diffs], Sat Jun 30 17:15:01 2018 UTC (5 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.171: +6 -2 lines
Diff to previous 1.171 (colored) to selected 1.107.6.3 (colored)

When cold, manually update timecounters before calling getnanouptime. Now
kernel printf timestamps are updated properly before interrupts are
enabled.

Revision 1.162.2.3 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:04 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.162.2.2: +3 -2 lines
Diff to previous 1.162.2.2 (colored) to branchpoint 1.162 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.171 / (download) - annotate - [select for diffs], Sun Jun 3 15:26:03 2018 UTC (5 years, 10 months ago) by jakllsch
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.170: +3 -2 lines
Diff to previous 1.170 (colored) to selected 1.107.6.3 (colored)

Make identification of accounted aprint_error()s possible by putting a
big ugly "autoconfiguration error: " in the log when they occur.

Revision 1.162.2.2 / (download) - annotate - [select for diffs], Mon Apr 16 02:00:08 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.162.2.1: +26 -9 lines
Diff to previous 1.162.2.1 (colored) to branchpoint 1.162 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.170 / (download) - annotate - [select for diffs], Sat Apr 14 01:53:38 2018 UTC (6 years ago) by kre
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415
Changes since 1.169: +3 -3 lines
Diff to previous 1.169 (colored) to selected 1.107.6.3 (colored)


Change the default precision of timestamps from 9 digits (nanosecs)
to 7 (100's of nanosecs).   This should perhaps depend upon the
port (what resolution is rational) the CPU speed, and the clock
update frequency (no point printing nanoseconds if the value being
brinted is only updated every few microseconds).

Eventually it should be able to be controlled by a sysctl, but
the default still matters, as that's what the autoconf (boot time,
before init starts) messages will use.

Revision 1.169 / (download) - annotate - [select for diffs], Sat Apr 14 01:45:37 2018 UTC (6 years ago) by kre
Branch: MAIN
Changes since 1.168: +24 -7 lines
Diff to previous 1.168 (colored) to selected 1.107.6.3 (colored)


Allow the precision of the sub-second field of timestamps to
be controlled - for now that is done by editing this file and
recompiling (or using gdb or equiv to patch /netbsd or /dev/kmem)
but adding a sysctl to allow dynamic userland control should be easy.

Also reduce the initial seconds field width of timestamp from 5 to 4
(it grows wider as needed.)

Avoid printing timestamps if we cannot be sure there will be
a message to accompany them.   (Observed happening...)

Revision 1.168 / (download) - annotate - [select for diffs], Fri Apr 13 09:21:16 2018 UTC (6 years ago) by christos
Branch: MAIN
Changes since 1.167: +3 -3 lines
Diff to previous 1.167 (colored) to selected 1.107.6.3 (colored)

make this narrower by popular request.

Revision 1.167 / (download) - annotate - [select for diffs], Wed Apr 11 23:20:15 2018 UTC (6 years ago) by christos
Branch: MAIN
Changes since 1.166: +3 -3 lines
Diff to previous 1.166 (colored) to selected 1.107.6.3 (colored)

fix type confusion on 32 bits

Revision 1.166 / (download) - annotate - [select for diffs], Wed Apr 11 15:25:58 2018 UTC (6 years ago) by christos
Branch: MAIN
Changes since 1.165: +4 -4 lines
Diff to previous 1.165 (colored) to selected 1.107.6.3 (colored)

flip the default and enable kernel timestamps.

Revision 1.162.2.1 / (download) - annotate - [select for diffs], Sat Apr 7 04:12:19 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.162: +72 -24 lines
Diff to previous 1.162 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$

Revision 1.165 / (download) - annotate - [select for diffs], Sun Apr 1 19:29:43 2018 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0407
Changes since 1.164: +28 -0 lines
Diff to previous 1.164 (colored) to selected 1.107.6.3 (colored)

Add the ability to prepend a timestamp [ sec.nsec] relative to boottime
in kernel messages if KLOG_TIMESTAMP is enabled.

Revision 1.164 / (download) - annotate - [select for diffs], Sun Apr 1 19:28:17 2018 UTC (6 years ago) by christos
Branch: MAIN
Changes since 1.163: +42 -22 lines
Diff to previous 1.163 (colored) to selected 1.107.6.3 (colored)

Instead of expanding the syslog level into <level> early, defer expansion
inside putchar; extract the actual character addition function to a separate
function.

Revision 1.163 / (download) - annotate - [select for diffs], Sat Mar 31 23:12:01 2018 UTC (6 years ago) by christos
Branch: MAIN
Changes since 1.162: +4 -4 lines
Diff to previous 1.162 (colored) to selected 1.107.6.3 (colored)

factor out some repeated code and simplify the logputchar function.

Revision 1.149.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:45 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.149.2.2: +11 -7 lines
Diff to previous 1.149.2.2 (colored) to branchpoint 1.149 (colored) next main 1.150 (colored) to selected 1.107.6.3 (colored)

update from HEAD

Revision 1.162 / (download) - annotate - [select for diffs], Fri Oct 27 12:25:15 2017 UTC (6 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.161: +1 -2 lines
Diff to previous 1.161 (colored) to selected 1.107.6.3 (colored)

Revert printf return value change.

Revision 1.161 / (download) - annotate - [select for diffs], Fri Oct 27 09:59:16 2017 UTC (6 years, 5 months ago) by utkarsh009
Branch: MAIN
Changes since 1.160: +4 -3 lines
Diff to previous 1.160 (colored) to selected 1.107.6.3 (colored)

[syzkaller] Cast all the printf's to (void *)
> as a result of new printf(9) declaration.

Revision 1.156.2.4 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:03 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.156.2.3: +3 -3 lines
Diff to previous 1.156.2.3 (colored) to branchpoint 1.156 (colored) next main 1.157 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.159.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:09 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.159: +3 -3 lines
Diff to previous 1.159 (colored) next main 1.160 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.160 / (download) - annotate - [select for diffs], Wed Jul 27 09:57:26 2016 UTC (7 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.159: +3 -3 lines
Diff to previous 1.159 (colored) to selected 1.107.6.3 (colored)

Bump size of scratchstr - some KASSERTMGS exceed 256 characters

Revision 1.156.2.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:07 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.156.2.2: +4 -2 lines
Diff to previous 1.156.2.2 (colored) to branchpoint 1.156 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.159 / (download) - annotate - [select for diffs], Mon Aug 24 22:50:32 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Branch point for: pgoyette-localcount
Changes since 1.158: +4 -2 lines
Diff to previous 1.158 (colored) to selected 1.107.6.3 (colored)

to garnish, dust with _KERNEL_OPT

Revision 1.156.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:22 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.156.2.1: +4 -4 lines
Diff to previous 1.156.2.1 (colored) to branchpoint 1.156 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.158 / (download) - annotate - [select for diffs], Mon Apr 13 16:46:33 2015 UTC (9 years ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored) to selected 1.107.6.3 (colored)

Convert remaining MI <sys/rnd.h> stragglers.  Many MD ones left.

Revision 1.156.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:20 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.156: +3 -3 lines
Diff to previous 1.156 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.157 / (download) - annotate - [select for diffs], Wed Feb 4 07:10:47 2015 UTC (9 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.156: +3 -3 lines
Diff to previous 1.156 (colored) to selected 1.107.6.3 (colored)

 Remove useless semicolon reported by Henning Petersen in PR#49635.

Revision 1.149.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.149.2.1: +85 -40 lines
Diff to previous 1.149.2.1 (colored) to branchpoint 1.149 (colored) to selected 1.107.6.3 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.154.2.2 / (download) - annotate - [select for diffs], Fri Aug 15 23:57:51 2014 UTC (9 years, 8 months ago) by riz
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.154.2.1: +3 -3 lines
Diff to previous 1.154.2.1 (colored) to branchpoint 1.154 (colored) next main 1.155 (colored) to selected 1.107.6.3 (colored)

Pull up following revision(s) (requested by apb in ticket #26):
	sys/kern/subr_prf.c: revision 1.156
If mutex_tryenter() fails, don't call mutex_exit().

Revision 1.154.2.1 / (download) - annotate - [select for diffs], Fri Aug 15 13:00:48 2014 UTC (9 years, 8 months ago) by martin
Branch: netbsd-7
Changes since 1.154: +7 -5 lines
Diff to previous 1.154 (colored) to selected 1.107.6.3 (colored)

Pull up following revision(s) (requested by mrg in ticket #24):
	sys/kern/subr_prf.c: revision 1.155
avoid calling into time code when cold, and avoid calling nanotime()
if we're not going to use the result anyway.
XXX: not necessarily the best fix, but better than crashing *early*
boot due to too-early nanotime() calls.
XXX: pullup.

Revision 1.156 / (download) - annotate - [select for diffs], Fri Aug 15 11:05:35 2014 UTC (9 years, 8 months ago) by apb
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored) to selected 1.107.6.3 (colored)

If mutex_tryenter() fails, don't call mutex_exit().

Revision 1.155 / (download) - annotate - [select for diffs], Fri Aug 15 07:39:25 2014 UTC (9 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.154: +7 -5 lines
Diff to previous 1.154 (colored) to selected 1.107.6.3 (colored)

avoid calling into time code when cold, and avoid calling nanotime()
if we're not going to use the result anyway.

XXX: not necessarily the best fix, but better than crashing *early*
boot due to too-early nanotime() calls.

XXX: pullup.

Revision 1.154 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:36 2014 UTC (9 years, 8 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.153: +85 -8 lines
Diff to previous 1.153 (colored) to selected 1.107.6.3 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.153.2.4 / (download) - annotate - [select for diffs], Sun Aug 10 08:10:31 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.153.2.3: +20 -5 lines
Diff to previous 1.153.2.3 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored) to selected 1.107.6.3 (colored)

The printf entropy source seems to have a lock-recursion problem.
Temporarily disable it unless options RND_PRINTF is set.

Revision 1.153.2.3 / (download) - annotate - [select for diffs], Thu Jul 17 14:03:33 2014 UTC (9 years, 9 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.153.2.2: +12 -9 lines
Diff to previous 1.153.2.2 (colored) to branchpoint 1.153 (colored) to selected 1.107.6.3 (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.143.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.143.2.1: +5 -61 lines
Diff to previous 1.143.2.1 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored) to selected 1.107.6.3 (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.150.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.150: +2 -34 lines
Diff to previous 1.150 (colored) next main 1.151 (colored) to selected 1.107.6.3 (colored)

sync with head

Revision 1.153.2.2 / (download) - annotate - [select for diffs], Wed Apr 9 03:41:30 2014 UTC (10 years ago) by tls
Branch: tls-earlyentropy
Changes since 1.153.2.1: +4 -4 lines
Diff to previous 1.153.2.1 (colored) to branchpoint 1.153 (colored) to selected 1.107.6.3 (colored)

Skip mutex_tryenter() if !kprnd_added.

Revision 1.153.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 02:20:00 2014 UTC (10 years ago) by tls
Branch: tls-earlyentropy
Changes since 1.153: +67 -8 lines
Diff to previous 1.153 (colored) to selected 1.107.6.3 (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.153 / (download) - annotate - [select for diffs], Wed Mar 26 18:03:47 2014 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.152: +2 -34 lines
Diff to previous 1.152 (colored) to selected 1.107.6.3 (colored)

remove {v,}sprintf

Revision 1.124.4.1.4.2 / (download) - annotate - [select for diffs], Fri Feb 14 18:38:15 2014 UTC (10 years, 2 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.124.4.1.4.1: +12 -6 lines
Diff to previous 1.124.4.1.4.1 (colored) to branchpoint 1.124.4.1 (colored) next main 1.125 (colored) to selected 1.107.6.3 (colored)

Change KASSERTMSG/KDASSERTMSG to use varadic arguments like HEAD.
panic -> vpanic, add panic wrapper to vpanic.

Revision 1.152 / (download) - annotate - [select for diffs], Sun Jan 12 00:29:15 2014 UTC (10 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.151: +0 -13 lines
Diff to previous 1.151 (colored) to selected 1.107.6.3 (colored)

Revert, breaks the build due to missing rumpns_delay in librump.so.

Revision 1.151 / (download) - annotate - [select for diffs], Sat Jan 11 17:07:45 2014 UTC (10 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.150: +15 -2 lines
Diff to previous 1.150 (colored) to selected 1.107.6.3 (colored)

Sleep 10 seconds before rebooting due to panic()
To give an opportunity to screencap a panic(), or pause a VM to attach
a debugger.  (Richard Hansen)

Revision 1.124.4.1.4.1 / (download) - annotate - [select for diffs], Thu Nov 14 17:34:02 2013 UTC (10 years, 5 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.124.4.1: +14 -2 lines
Diff to previous 1.124.4.1 (colored) to selected 1.107.6.3 (colored)

more things for xhci

Revision 1.149.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:54 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.149: +5 -29 lines
Diff to previous 1.149 (colored) to selected 1.107.6.3 (colored)

resync with head

Revision 1.150 / (download) - annotate - [select for diffs], Sun Feb 10 11:04:19 2013 UTC (11 years, 2 months ago) by apb
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.149: +5 -29 lines
Diff to previous 1.149 (colored) to selected 1.107.6.3 (colored)

Move the DDB-specific part of vpanic() to a new db_panic() function,
defined in ddb/db_panic.c and declared in ddb/ddbvar.h.  No functional
change.

The copyright years in db_panic.c are the years in which changes were
made to the code that has now been moved to db_panic.c.  No pre-NetBSD
copyright notice is needed because revision 1.12 of subr_prf.c had only
the trivial "#ifdef DDB \\ Debugger(); \\ #endif"

Revision 1.143.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:28 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.143: +42 -38 lines
Diff to previous 1.143 (colored) to selected 1.107.6.3 (colored)

sync with head

Revision 1.148.2.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:39 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.148: +6 -6 lines
Diff to previous 1.148 (colored) next main 1.149 (colored) to selected 1.107.6.3 (colored)

sync to latest -current.

Revision 1.149 / (download) - annotate - [select for diffs], Mon Mar 12 19:21:07 2012 UTC (12 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.148: +6 -6 lines
Diff to previous 1.148 (colored) to selected 1.107.6.3 (colored)

Repeated typo/varargs anachronism in comments.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Nov 24 01:45:39 2011 UTC (12 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, 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, 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, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.147: +4 -6 lines
Diff to previous 1.147 (colored) to selected 1.107.6.3 (colored)

- fixed signed/unsigned comparison
- don't write/increment sbuf if NULL

Revision 1.147 / (download) - annotate - [select for diffs], Thu Nov 24 01:14:19 2011 UTC (12 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.146: +9 -9 lines
Diff to previous 1.146 (colored) to selected 1.107.6.3 (colored)

- don't let arguments in macros have side effects
- nul terminate properly

Revision 1.146 / (download) - annotate - [select for diffs], Tue Nov 22 21:25:04 2011 UTC (12 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.145: +4 -2 lines
Diff to previous 1.145 (colored) to selected 1.107.6.3 (colored)

Increment the source buffer when we overflow so that we don't get stuck in
an infinite loop.

Revision 1.145 / (download) - annotate - [select for diffs], Mon Nov 21 01:44:26 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.144: +19 -11 lines
Diff to previous 1.144 (colored) to selected 1.107.6.3 (colored)

- use va_copy where needed
- always nul terminate vsnprintf()
- make snprintf() call vsnprintf()

Revision 1.144 / (download) - annotate - [select for diffs], Sun Nov 20 23:01:18 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.143: +22 -26 lines
Diff to previous 1.143 (colored) to selected 1.107.6.3 (colored)

snprintf/vsnprintf can accept NULL/0 buffers and work properly as expected.
Before they used to return incorrect length on short buffers. Remove unused
error path.

Revision 1.143 / (download) - annotate - [select for diffs], Thu Sep 29 20:52:39 2011 UTC (12 years, 6 months ago) by christos
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.142: +12 -6 lines
Diff to previous 1.142 (colored) to selected 1.107.6.3 (colored)

Add vpanic()

Revision 1.142 / (download) - annotate - [select for diffs], Thu Sep 8 18:15:56 2011 UTC (12 years, 7 months ago) by jym
Branch: MAIN
Changes since 1.141: +16 -7 lines
Diff to previous 1.141 (colored) to selected 1.107.6.3 (colored)

Use a scratch space in panic(9) so we can store a more meaningful
message for panicstr instead of just the format string.

Keep setting the panicstr to fmt beforehand though for safety precaution.

ok joerg@.

Revision 1.141 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:52 2011 UTC (12 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.140: +2 -10 lines
Diff to previous 1.140 (colored) to selected 1.107.6.3 (colored)

Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.138.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:35 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.138: +14 -3 lines
Diff to previous 1.138 (colored) next main 1.139 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.138.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:05:02 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.138.4.1: +0 -1 lines
Diff to previous 1.138.4.1 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored) to selected 1.107.6.3 (colored)

sync with head

Revision 1.140 / (download) - annotate - [select for diffs], Sun Apr 24 18:46:22 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.139: +2 -3 lines
Diff to previous 1.139 (colored) to selected 1.107.6.3 (colored)

- Replace few malloc(9) uses with kmem(9).
- Rename buf_malloc() to buf_alloc(), fix comments.
- Remove some unnecessary inclusions.

Revision 1.138.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:19 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.138: +14 -2 lines
Diff to previous 1.138 (colored) to selected 1.107.6.3 (colored)

sync with head

Revision 1.138.8.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:59 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.138: +14 -2 lines
Diff to previous 1.138 (colored) next main 1.139 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.139 / (download) - annotate - [select for diffs], Fri Jan 21 17:46:19 2011 UTC (13 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.138: +14 -2 lines
Diff to previous 1.138 (colored) to selected 1.107.6.3 (colored)

Move device_printf() from ath_netbsd.c to subr_prf.c for reuse in a new
driver.

Revision 1.120.2.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:18 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.120.2.4: +12 -6 lines
Diff to previous 1.120.2.4 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored) to selected 1.107.6.3 (colored)

sync with head

Revision 1.138 / (download) - annotate - [select for diffs], Tue Jan 26 12:59:50 2010 UTC (14 years, 2 months ago) by he
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: rmind-uvmplock, jruoho-x86intr, bouyer-quota2
Changes since 1.137: +9 -6 lines
Diff to previous 1.137 (colored) to selected 1.107.6.3 (colored)

On a recursive panic(), don't try to take a dump, as that may very
well have triggered the recursive panic.
Fix the comment for panic() to reflect now-current reality: the code
was already changed never to sync() on panic(), now we avoid dumping
core on a recursive panic.

Revision 1.137 / (download) - annotate - [select for diffs], Tue Nov 3 05:23:28 2009 UTC (14 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.136: +5 -2 lines
Diff to previous 1.136 (colored) to selected 1.107.6.3 (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.130.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:35 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.130.2.1: +6 -4 lines
Diff to previous 1.130.2.1 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.120.2.4 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:23 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.120.2.3: +6 -4 lines
Diff to previous 1.120.2.3 (colored) to branchpoint 1.120 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.136 / (download) - annotate - [select for diffs], Sun Jun 28 15:30:30 2009 UTC (14 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.135: +6 -6 lines
Diff to previous 1.135 (colored) to selected 1.107.6.3 (colored)

panic: use MI cpu_index(), instead of cpu_number(), which could be sparse.

Revision 1.135 / (download) - annotate - [select for diffs], Sat Jun 20 11:10:40 2009 UTC (14 years, 10 months ago) by cegger
Branch: MAIN
Changes since 1.134: +6 -4 lines
Diff to previous 1.134 (colored) to selected 1.107.6.3 (colored)

Return type of cpu_number(9) is cpuid_t which is effectively unsigned long.
So cast return type to unsigned long.
Fixes build for alpha GENERIC kernel.

Revision 1.120.2.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:31 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.120.2.2: +4 -4 lines
Diff to previous 1.120.2.2 (colored) to branchpoint 1.120 (colored) to selected 1.107.6.3 (colored)

sync with head

Revision 1.134 / (download) - annotate - [select for diffs], Thu Jun 18 06:26:58 2009 UTC (14 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored) to selected 1.107.6.3 (colored)

when printing a ddb stack trace when entering ddb, include the cpu number

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:57 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.130: +31 -29 lines
Diff to previous 1.130 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.120.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.120.2.1: +129 -76 lines
Diff to previous 1.120.2.1 (colored) to branchpoint 1.120 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.124.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:00 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.124.2.2: +31 -29 lines
Diff to previous 1.124.2.2 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.133 / (download) - annotate - [select for diffs], Sat Apr 25 15:06:32 2009 UTC (14 years, 11 months ago) by rmind
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.132: +5 -5 lines
Diff to previous 1.132 (colored) to selected 1.107.6.3 (colored)

- Rearrange pg_delete() and pg_remove() (renamed pg_free), thus
  proc_enterpgrp() with proc_leavepgrp() to free process group and/or
  session without proc_lock held.
- Rename SESSHOLD() and SESSRELE() to  to proc_sesshold() and
  proc_sessrele().  The later releases proc_lock now.

Quick OK by <ad>.

Revision 1.132 / (download) - annotate - [select for diffs], Sun Mar 15 17:14:40 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.131: +5 -5 lines
Diff to previous 1.131 (colored) to selected 1.107.6.3 (colored)

ansify function definitions

Revision 1.131 / (download) - annotate - [select for diffs], Tue Mar 10 10:48:09 2009 UTC (15 years, 1 month ago) by mlelstv
Branch: MAIN
Changes since 1.130: +25 -23 lines
Diff to previous 1.130 (colored) to selected 1.107.6.3 (colored)

Make curlwp accesses conditional on wether the data structures
have been initialized. Fixes PR kern/38599.

Revision 1.124.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.124.2.1: +3 -3 lines
Diff to previous 1.124.2.1 (colored) to branchpoint 1.124 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.124.4.1 / (download) - annotate - [select for diffs], Mon Feb 2 19:47:47 2009 UTC (15 years, 2 months ago) by snj
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, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.124: +3 -5 lines
Diff to previous 1.124 (colored) next main 1.125 (colored) to selected 1.107.6.3 (colored)

Pull up following revision(s) (requested by ad in ticket #365):
	sys/kern/subr_prf.c: revision 1.125
Don't try to sync if panicing:
- It doesn't work and a dead system that can't be reset from the console is
  worse than a system that has painced and rebooted. If you can make it work
  reliably please do so.
- If the system is paniced there is every reason to suspect VM structures
  and the contents of the buffer cache.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Jan 30 21:16:51 2009 UTC (15 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.129: +3 -3 lines
Diff to previous 1.129 (colored) to selected 1.107.6.3 (colored)

Quote PR number in XXX comment.  No functional change.

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:39 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.124: +94 -54 lines
Diff to previous 1.124 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.116.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.116.6.2: +92 -52 lines
Diff to previous 1.116.6.2 (colored) to branchpoint 1.116 (colored) next main 1.117 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.129 / (download) - annotate - [select for diffs], Fri Jan 2 22:03:00 2009 UTC (15 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.128: +4 -2 lines
Diff to previous 1.128 (colored) to selected 1.107.6.3 (colored)

My clever hack was not enough.  Disable DELAY via ifndef _RUMPKERN in
subr_prf until I manage to get all archs in line with a proper MI
signature.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Jan 2 11:08:32 2009 UTC (15 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.127: +3 -2 lines
Diff to previous 1.127 (colored) to selected 1.107.6.3 (colored)

We use CPU_INFO_FOREACH here -> include sys/cpu.h

Revision 1.127 / (download) - annotate - [select for diffs], Fri Jan 2 02:54:13 2009 UTC (15 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.126: +18 -2 lines
Diff to previous 1.126 (colored) to selected 1.107.6.3 (colored)

Include kernel printf routines in rump instead of relying on the
magic libc symbol.  This also allows to bid farewell to subr_prf2.c
and merge the contents back to subr_prf.c.  The host kernel bridging
is now done via rumpuser_putchar().

Revision 1.126 / (download) - annotate - [select for diffs], Thu Jan 1 15:10:20 2009 UTC (15 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.125: +75 -52 lines
Diff to previous 1.125 (colored) to selected 1.107.6.3 (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.125 / (download) - annotate - [select for diffs], Sun Dec 21 10:23:10 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.124: +3 -5 lines
Diff to previous 1.124 (colored) to selected 1.107.6.3 (colored)

Don't try to sync if panicing:

- It doesn't work and a dead system that can't be reset from the console is
  worse than a system that has painced and rebooted. If you can make it work
  reliably please do so.

- If the system is paniced there is every reason to suspect VM structures
  and the contents of the buffer cache.

Revision 1.123.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:28 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.123: +2 -5 lines
Diff to previous 1.123 (colored) next main 1.124 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.120.4.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:34:14 2008 UTC (15 years, 6 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.120.4.1: +2 -5 lines
Diff to previous 1.120.4.1 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.116.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:53 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.116.6.1: +0 -3 lines
Diff to previous 1.116.6.1 (colored) to branchpoint 1.116 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.124 / (download) - annotate - [select for diffs], Tue Sep 23 22:20:24 2008 UTC (15 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.123: +2 -5 lines
Diff to previous 1.123 (colored) to selected 1.107.6.3 (colored)

Move [hH][eE][xX][dD][iI][gG][iI][tT][sS](*) from subr_prf to subr_prf2
for use with rumps.

*) yes, I just had to.  Notably though, there were only two
   symbols instead of 128.

Revision 1.123.2.2 / (download) - annotate - [select for diffs], Fri Jun 27 15:52:15 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.123.2.1: +2 -11 lines
Diff to previous 1.123.2.1 (colored) to branchpoint 1.123 (colored) next main 1.124 (colored) to selected 1.107.6.3 (colored)

Revert local changes that were not meant to be in previous "sync with
head" commit.

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:39 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.123: +11 -2 lines
Diff to previous 1.123 (colored) to selected 1.107.6.3 (colored)

Sync with head.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.120: +17 -4 lines
Diff to previous 1.120 (colored) to selected 1.107.6.3 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.118.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.118.2.1: +17 -3 lines
Diff to previous 1.118.2.1 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored) to selected 1.107.6.3 (colored)

sync with head

Revision 1.116.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:11 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.116: +29 -13 lines
Diff to previous 1.116 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.123 / (download) - annotate - [select for diffs], Sat May 31 20:27:24 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: simonb-wapbl, haad-dm
Changes since 1.122: +17 -2 lines
Diff to previous 1.122 (colored) to selected 1.107.6.3 (colored)

Add printf_tolog(), which writes to the kernel message buffer,
only.  I believe this is the safest way to log serious conditions
indicated by NMI.

Revision 1.122 / (download) - annotate - [select for diffs], Mon May 19 17:06:02 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-nbase
Changes since 1.121: +2 -3 lines
Diff to previous 1.121 (colored) to selected 1.107.6.3 (colored)

Reduce ifdefs due to MULTIPROCESSOR slightly.

Revision 1.118.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:09 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.118: +11 -12 lines
Diff to previous 1.118 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:27 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.120: +2 -3 lines
Diff to previous 1.120 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.121 / (download) - annotate - [select for diffs], Tue May 13 11:54:45 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2
Changes since 1.120: +2 -3 lines
Diff to previous 1.120 (colored) to selected 1.107.6.3 (colored)

In panic, we busy wait if another CPU is already panicking. Don't spl0(),
because we could recurse and run off the end of the stack. Pointed out by
chs@.

Revision 1.120 / (download) - annotate - [select for diffs], Sun Apr 27 11:37:48 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp, wrstuden-revivesa
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored) to selected 1.107.6.3 (colored)

- Rename crit_enter/crit_exit to kpreempt_disable/kpreempt_enable.
  DragonflyBSD uses the crit names for something quite different.
- Add a kpreempt_disabled function for diagnostic assertions.
- Add inline versions of kpreempt_enable/kpreempt_disable for primitives.
- Make some more changes for preemption safety to the x86 pmap.

Revision 1.119 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:29 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.118: +10 -10 lines
Diff to previous 1.118 (colored) to selected 1.107.6.3 (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.118 / (download) - annotate - [select for diffs], Thu Apr 17 14:07:31 2008 UTC (16 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.117: +8 -5 lines
Diff to previous 1.117 (colored) to selected 1.107.6.3 (colored)

acquire proclist_lock for SESSHOLD/SESSRELE.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Apr 12 17:16:09 2008 UTC (16 years ago) by ad
Branch: MAIN
Changes since 1.116: +3 -3 lines
Diff to previous 1.116 (colored) to selected 1.107.6.3 (colored)

Move the LW_BOUND flag into the thread-private flag word. It can be tested
by other threads/CPUs but that is only done when the LWP is known to be in a
quiescent state (for example, on a run queue).

Revision 1.107.6.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:00 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.107.6.3: +33 -3 lines
Diff to previous 1.107.6.3 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored)

sync with HEAD

Revision 1.99.2.8 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:56 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.7: +33 -3 lines
Diff to previous 1.99.2.7 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.116 / (download) - annotate - [select for diffs], Tue Feb 19 07:46:51 2008 UTC (16 years, 2 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.115: +3 -3 lines
Diff to previous 1.115 (colored) to selected 1.107.6.3 (colored)

Always include <sys/cpu.h>, to pick up CPU_INFO_ITERATOR et al.

Revision 1.110.2.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:47 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.110.2.1: +32 -18 lines
Diff to previous 1.110.2.1 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.115 / (download) - annotate - [select for diffs], Mon Feb 18 14:46:58 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.114: +32 -2 lines
Diff to previous 1.114 (colored) to selected 1.107.6.3 (colored)

panic: allow only one CPU to panic. Try to make the panicing thread bound
and try take all CPUs offline, in case we can block at some point in the
future.

Revision 1.99.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:21 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.6: +2 -18 lines
Diff to previous 1.99.2.6 (colored) to branchpoint 1.99 (colored) to selected 1.107.6.3 (colored)

sync with head

Revision 1.107.6.3 / (download) - annotate - [selected], Wed Jan 9 01:56:18 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.107.6.2: +2 -18 lines
Diff to previous 1.107.6.2 (colored) to branchpoint 1.107 (colored)

sync with HEAD

Revision 1.111.6.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:41 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.111.6.1: +0 -3 lines
Diff to previous 1.111.6.1 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.114 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:13 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.113: +2 -3 lines
Diff to previous 1.113 (colored) to selected 1.107.6.3 (colored)

Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Jan 4 18:21:06 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.112: +2 -4 lines
Diff to previous 1.112 (colored) to selected 1.107.6.3 (colored)

- Always include kprintf_slock.
- sys/lock.h -> sys/simplelock.h

Revision 1.111.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:10 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.111: +2 -15 lines
Diff to previous 1.111 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.112 / (download) - annotate - [select for diffs], Sun Dec 30 22:55:21 2007 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.111: +2 -15 lines
Diff to previous 1.111 (colored) to selected 1.107.6.3 (colored)

tablefull: subr_prf -> subr_prf2

Revision 1.111.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 17:55:06 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.111.2.1: +3 -7 lines
Diff to previous 1.111.2.1 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored) to selected 1.107.6.3 (colored)

Back out the dumppcb changes for the time being.

Revision 1.111.2.1 / (download) - annotate - [select for diffs], Wed Dec 12 22:05:40 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.111: +7 -3 lines
Diff to previous 1.111 (colored) to selected 1.107.6.3 (colored)

- Dump basic trap and register info before entering the debugger, in
  case ddb screws the machine up further.
- Fill dumppcb asap so that gdb has less chance to get confused.

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:51 2007 UTC (16 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.110: +4 -27 lines
Diff to previous 1.110 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.99.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:50 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.5: +4 -27 lines
Diff to previous 1.99.2.5 (colored) to branchpoint 1.99 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.109.2.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:22 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.109.2.1: +2 -25 lines
Diff to previous 1.109.2.1 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.107.4.3 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:09 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.107.4.2: +4 -27 lines
Diff to previous 1.107.4.2 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.107.6.2 / (download) - annotate - [select for diffs], Thu Nov 8 11:00:05 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.107.6.1: +4 -27 lines
Diff to previous 1.107.6.1 (colored) to branchpoint 1.107 (colored) to selected 1.107.6.3 (colored)

sync with -HEAD

Revision 1.111 / (download) - annotate - [select for diffs], Wed Nov 7 00:19:08 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.110: +4 -27 lines
Diff to previous 1.110 (colored) to selected 1.107.6.3 (colored)

Merge from vmlocking.

Revision 1.107.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:17 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
Changes since 1.107: +194 -34 lines
Diff to previous 1.107 (colored) to selected 1.107.6.3 (colored)

sync with HEAD

Revision 1.105.4.5 / (download) - annotate - [select for diffs], Sun Oct 28 15:47:15 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.105.4.4: +4 -27 lines
Diff to previous 1.105.4.4 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored) to selected 1.107.6.3 (colored)

/dev/klog:

- Put locking around it since it's used by printf().
- Mark it MPSAFE.

Revision 1.99.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:34 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.4: +194 -34 lines
Diff to previous 1.99.2.4 (colored) to branchpoint 1.99 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.107.4.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:40 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.107.4.1: +3 -3 lines
Diff to previous 1.107.4.1 (colored) to branchpoint 1.107 (colored) to selected 1.107.6.3 (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.109.2.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:40:02 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.105.4.4 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:13 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.105.4.3: +3 -3 lines
Diff to previous 1.105.4.3 (colored) to branchpoint 1.105 (colored) to selected 1.107.6.3 (colored)

Sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:43 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.107.6.3 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.105.4.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:29 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.105.4.2: +193 -33 lines
Diff to previous 1.105.4.2 (colored) to branchpoint 1.105 (colored) to selected 1.107.6.3 (colored)

Sync with head.

Revision 1.107.8.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:45 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.107: +193 -33 lines
Diff to previous 1.107 (colored) next main 1.108 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.107.4.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:03 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.107: +193 -33 lines
Diff to previous 1.107 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Sep 26 07:40:36 2007 UTC (16 years, 6 months ago) by he
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.108: +3 -2 lines
Diff to previous 1.108 (colored) to selected 1.107.6.3 (colored)

Add an explicit include of <sys/device.h> to make sparc64 and sun2
build.  Needed for device_xname() and device_t, use added by previous
change.

Revision 1.108 / (download) - annotate - [select for diffs], Mon Sep 24 20:01:03 2007 UTC (16 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.107: +192 -33 lines
Diff to previous 1.107 (colored) to selected 1.107.6.3 (colored)

Extend the aprint family with _dev and _ifnet versions that take
a device_t or struct ifnet * as first argument and prefix the log
message with the corresponding device/interface name.

Revision 1.99.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:04 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.3: +2 -143 lines
Diff to previous 1.99.2.3 (colored) to branchpoint 1.99 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.105.4.2 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:38 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.105.4.1: +2 -147 lines
Diff to previous 1.105.4.1 (colored) to branchpoint 1.105 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:13 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.106: +2 -147 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.107.10.2 / (download) - annotate - [select for diffs], Sun Jul 29 09:38:02 2007 UTC (16 years, 8 months ago) by pooka
Branch: matt-mips64
Changes since 1.107.10.1: +1300 -0 lines
Diff to previous 1.107.10.1 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored) to selected 1.107.6.3 (colored)

Move bitmask_snprintf() from subr_prf.c to subr_prf_bitmask.c to permit
standalone compilation.  No functional change.

Revision 1.107.10.1, Sun Jul 29 09:38:01 2007 UTC (16 years, 8 months ago) by pooka
Branch: matt-mips64
Changes since 1.107: +0 -1300 lines
FILE REMOVED

file subr_prf.c was added on branch matt-mips64 on 2007-07-29 09:38:02 +0000

Revision 1.107 / (download) - annotate - [select for diffs], Sun Jul 29 09:38:01 2007 UTC (16 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.106: +2 -147 lines
Diff to previous 1.106 (colored) to selected 1.107.6.3 (colored)

Move bitmask_snprintf() from subr_prf.c to subr_prf_bitmask.c to permit
standalone compilation.  No functional change.

Revision 1.105.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:06 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.105: +6 -2 lines
Diff to previous 1.105 (colored) next main 1.106 (colored) to selected 1.107.6.3 (colored)

Sync with head.

Revision 1.105.4.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:24 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.105: +6 -2 lines
Diff to previous 1.105 (colored) to selected 1.107.6.3 (colored)

Sync with head.

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Mon May 7 10:55:47 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.104.2.1: +6 -2 lines
Diff to previous 1.104.2.1 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Apr 28 13:11:53 2007 UTC (16 years, 11 months ago) by isaki
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.105: +6 -2 lines
Diff to previous 1.105 (colored) to selected 1.107.6.3 (colored)

Fix format of the combination of 'F\B\L' and ':\V' in
bitmask_snprintf(9).

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:28 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored) to selected 1.107.6.3 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.99.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:15 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.2: +33 -7 lines
Diff to previous 1.99.2.2 (colored) to branchpoint 1.99 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.105 / (download) - annotate - [select for diffs], Thu Feb 22 06:34:45 2007 UTC (17 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored) to selected 1.107.6.3 (colored)

TRUE -> true, FALSE -> false

Revision 1.104 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.103: +32 -6 lines
Diff to previous 1.103 (colored) to selected 1.107.6.3 (colored)

Merge newlock2 to head.

Revision 1.103.2.3 / (download) - annotate - [select for diffs], Sat Jan 20 00:19:01 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.103.2.2: +8 -8 lines
Diff to previous 1.103.2.2 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored) to selected 1.107.6.3 (colored)

Don't take the proclist_mutex for now; wait until tty locking is worked out.

Revision 1.99.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:06 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.1: +3 -3 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:44 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.103.2.1: +28 -8 lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored) to selected 1.107.6.3 (colored)

Checkpoint work in progress.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:37 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.103: +10 -4 lines
Diff to previous 1.103 (colored) to selected 1.107.6.3 (colored)

Checkpoint work in progress.

Revision 1.102.6.1 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.107.6.3 (colored)

sync with head

Revision 1.103 / (download) - annotate - [select for diffs], Sun Sep 3 17:06:36 2006 UTC (17 years, 7 months ago) by martin
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, newlock2-nbase, newlock2-base, 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
Branch point for: newlock2
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.107.6.3 (colored)

Fix %X in kernel printf, from Arnaud Degroote in PR kern/34459.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:38 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99: +9 -7 lines
Diff to previous 1.99 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:20 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.100: +9 -7 lines
Diff to previous 1.100 (colored) next main 1.101 (colored) to selected 1.107.6.3 (colored)

sync with head.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jan 28 14:37:31 2006 UTC (18 years, 2 months ago) by darrenr
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.107.6.3 (colored)

if db_onpanic is -1, do not invoke any ddb functions at all when handling
a panic.  This allows ddb's behaviour on a panic to be controlled via
sysctl rather than just compiling it in/out.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jan 28 07:23:37 2006 UTC (18 years, 2 months ago) by darrenr
Branch: MAIN
Changes since 1.100: +8 -6 lines
Diff to previous 1.100 (colored) to selected 1.107.6.3 (colored)

Introduce a new style of behaviour for ddb_onpanic == 2.
When set to 0 or 1, behaviour is normal (today)
When set to 2, kernel will display a stack trace and then enter ddb.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored) to selected 1.107.6.3 (colored)

merge ktrace-lwp.

Revision 1.92.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.5: +51 -76 lines
Diff to previous 1.92.2.5 (colored) next main 1.93 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD. Here we go again...

Revision 1.99 / (download) - annotate - [select for diffs], Thu Jun 23 18:46:17 2005 UTC (18 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.98: +15 -46 lines
Diff to previous 1.98 (colored) to selected 1.107.6.3 (colored)

Use ANSI function decls.

Revision 1.98 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.97: +37 -34 lines
Diff to previous 1.97 (colored) to selected 1.107.6.3 (colored)

- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

Revision 1.97 / (download) - annotate - [select for diffs], Tue May 17 04:14:58 2005 UTC (18 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.96: +9 -6 lines
Diff to previous 1.96 (colored) to selected 1.107.6.3 (colored)

Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.95: +12 -12 lines
Diff to previous 1.95 (colored) next main 1.96 (colored) to selected 1.107.6.3 (colored)

sync with -current

Revision 1.95.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.95: +12 -12 lines
Diff to previous 1.95 (colored) next main 1.96 (colored) to selected 1.107.6.3 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.92.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:00 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.4: +12 -12 lines
Diff to previous 1.92.2.4 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.96 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, 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, 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, netbsd-3, kent-audio2-base
Changes since 1.95: +12 -12 lines
Diff to previous 1.95 (colored) to selected 1.107.6.3 (colored)

nuke trailing whitespace

Revision 1.92.2.4 / (download) - annotate - [select for diffs], Tue Oct 19 15:58:06 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.3: +10 -2 lines
Diff to previous 1.92.2.3 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.95 / (download) - annotate - [select for diffs], Wed Sep 29 23:54:11 2004 UTC (19 years, 6 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.94: +10 -2 lines
Diff to previous 1.94 (colored) to selected 1.107.6.3 (colored)

Implement ddb setting that allows all ddb output to be teed into the
kernel message buffer/log. Its off by default and can be switched on in the
kernel configuration on build time, be set as a variable in ddb and be set
using sysctl.

This adds the sysctl value
	ddb.tee_msgbuf = 0
by default.

The functionality is especially added and aimed for developers who are not
blessed with a serial console and wish to keep all their ddb output in the
log. Specifying /l as a modifier to some selected commands will also put
the output in the log but not all commands provide one nor has the same
meaning for all commands.

This feature could in the future also be implemented as an ddb command but
that could lead to more bloat allthough maybe easier for non developpers to
use when mailing their backtraces from kernel crashes.

Revision 1.92.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:12 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.2: +2 -2 lines
Diff to previous 1.92.2.2 (colored) to selected 1.107.6.3 (colored)

Fix the sync with head I botched.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:03 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.1: +0 -0 lines
Diff to previous 1.92.2.1 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:55 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92: +6 -10 lines
Diff to previous 1.92 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD

Revision 1.94 / (download) - annotate - [select for diffs], Tue Mar 23 13:22:04 2004 UTC (20 years, 1 month ago) by junyoung
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.93: +5 -5 lines
Diff to previous 1.93 (colored) to selected 1.107.6.3 (colored)

Nuke __P().

Revision 1.93 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:53 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.92: +3 -7 lines
Diff to previous 1.92 (colored) to selected 1.107.6.3 (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.92 / (download) - annotate - [select for diffs], Thu Mar 6 00:39:42 2003 UTC (21 years, 1 month ago) by matt
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.91: +4 -2 lines
Diff to previous 1.91 (colored) to selected 1.107.6.3 (colored)

Make sure to flush each line after printf.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Feb 17 22:21:52 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.90: +4 -105 lines
Diff to previous 1.90 (colored) to selected 1.107.6.3 (colored)

- remove __STDC__ crap. It did not work anyway with pre-ansi compilers, since
  va_start() takes one arg, and va_alist must be the only argument of a
  varyadic in the K&R world.
- pass flags to tputchar.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Feb 10 00:35:16 2003 UTC (21 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.89: +11 -3 lines
Diff to previous 1.89 (colored) to selected 1.107.6.3 (colored)

Add a kern.dump_on_panic sysctl variable (and documentation, and a
kernel config option) that controls whether the kernel dumps to the
dump device on panic.  Dumps can still be forced via the ``sync''
command from ddb.  Defaults to ``on''.

Revision 1.76.2.12 / (download) - annotate - [select for diffs], Fri Jan 3 17:10:40 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.76.2.11: +224 -34 lines
Diff to previous 1.76.2.11 (colored) next main 1.77 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Dec 31 23:45:36 2002 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.88: +99 -2 lines
Diff to previous 1.88 (colored) to selected 1.107.6.3 (colored)

Add aprint_error(), which is like aprint_normal(), but also records
the number of times it is called.  This allows subsystems to report
the number of errors that occurred during a quiet/silent subsystem
startup.  aprint_get_error_count() reports this count and resets it
to 0.

Also add printf_nolog(), which is like printf(), but prevents the
output from hitting the system log.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Dec 31 17:48:03 2002 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.87: +124 -2 lines
Diff to previous 1.87 (colored) to selected 1.107.6.3 (colored)

Add the following message printing routines, designed for printing
autoconfiguration messages:

aprint_normal: Send to console unless AB_QUIET.  Always goes to the log.
aprint_naive: Send to console only if AB_QUIET.  Never goes to the log.
aprint_verbose: Send to console only if AB_VERBOSE.  Always goes to the log.
aprint_debug: Send to console and log only if AB_DEBUG.

API inspired by the same routines in BSD/OS.

Will be used to address kern/5155.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Dec 31 16:53:27 2002 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.86: +5 -34 lines
Diff to previous 1.86 (colored) to selected 1.107.6.3 (colored)

Partially expose some of the kernel printf internals in the new
<sys/kprintf.h> header file.  This allows subsystems that need
printf semantics other than what are provided by the standard
kernel printf routines to implement exactly what they want.

Revision 1.76.2.11 / (download) - annotate - [select for diffs], Mon Nov 11 22:13:59 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.10: +4 -4 lines
Diff to previous 1.76.2.10 (colored) to selected 1.107.6.3 (colored)

Catch up to -current

Revision 1.86 / (download) - annotate - [select for diffs], Sat Nov 2 07:25:22 2002 UTC (21 years, 5 months ago) by perry
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.85: +6 -6 lines
Diff to previous 1.85 (colored) to selected 1.107.6.3 (colored)

/*CONTCOND*/ while (0)'ed macros

Revision 1.80.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:06 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.80.2.3: +3 -3 lines
Diff to previous 1.80.2.3 (colored) next main 1.81 (colored) to selected 1.107.6.3 (colored)

sync kqueue branch with HEAD

Revision 1.83.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:11 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.83.8.1: +3 -3 lines
Diff to previous 1.83.8.1 (colored) to branchpoint 1.83 (colored) next main 1.84 (colored) to selected 1.107.6.3 (colored)

catch up with -current.

Revision 1.76.2.10 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:31 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.9: +3 -3 lines
Diff to previous 1.76.2.9 (colored) to selected 1.107.6.3 (colored)

Catch up to -current.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Aug 26 11:34:27 2002 UTC (21 years, 7 months ago) by scw
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored) to selected 1.107.6.3 (colored)

Casting from a pointer, to a db_expr_t, has to go via an intptr_t.
(db_expr_t == int64_t on sh5, for example).

Revision 1.76.2.9 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:20 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.8: +2 -3 lines
Diff to previous 1.76.2.8 (colored) to selected 1.107.6.3 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.76.2.8 / (download) - annotate - [select for diffs], Mon Jun 24 22:10:58 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.7: +3 -3 lines
Diff to previous 1.76.2.7 (colored) to selected 1.107.6.3 (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.80.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:34 2002 UTC (21 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.80.2.2: +12 -2 lines
Diff to previous 1.80.2.2 (colored) to selected 1.107.6.3 (colored)

catch up with -current on kqueue branch

Revision 1.83.8.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:02:21 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.83: +12 -2 lines
Diff to previous 1.83 (colored) to selected 1.107.6.3 (colored)

catch up with -current.

Revision 1.76.2.7 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:21 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.6: +12 -2 lines
Diff to previous 1.76.2.6 (colored) to selected 1.107.6.3 (colored)

Catch up to -current.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Jun 5 17:53:52 2002 UTC (21 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.83: +12 -2 lines
Diff to previous 1.83 (colored) to selected 1.107.6.3 (colored)

provide a db_vprintf() which is exactly what the name suggests

Revision 1.80.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:00:02 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.80.2.1: +7 -3 lines
Diff to previous 1.80.2.1 (colored) to selected 1.107.6.3 (colored)

Sync kqueue branch with -current.

Revision 1.76.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:38 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.5: +5 -4 lines
Diff to previous 1.76.2.5 (colored) to selected 1.107.6.3 (colored)

Catch up to -current.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Nov 21 00:55:39 2001 UTC (22 years, 5 months ago) by enami
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, 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, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.82: +5 -4 lines
Diff to previous 1.82 (colored) to selected 1.107.6.3 (colored)

Protect multi statement macro with do {} while (0).  This is not cosmetic.

Revision 1.76.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:40 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.4: +4 -1 lines
Diff to previous 1.76.2.4 (colored) to selected 1.107.6.3 (colored)

Catch up to -current.

Revision 1.81.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:52 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.81: +4 -1 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.107.6.3 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:21 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.81: +4 -1 lines
Diff to previous 1.81 (colored) to selected 1.107.6.3 (colored)

add RCSIDs

Revision 1.76.2.4 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:36 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.3: +3 -3 lines
Diff to previous 1.76.2.3 (colored) to selected 1.107.6.3 (colored)

Catch up with -current.

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:42 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored) to selected 1.107.6.3 (colored)

update to -current

Revision 1.81 / (download) - annotate - [select for diffs], Tue Jul 10 20:40:56 2001 UTC (22 years, 9 months ago) by fvdl
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.80: +3 -3 lines
Diff to previous 1.80 (colored) to selected 1.107.6.3 (colored)

Check msgbufenabled before referencing msgbufp in panic. Avoids
a NULL ptr reference if there is an early panic (i.e. before
initmsgbuf() was called).

Revision 1.76.2.3 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:00 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.2: +40 -6 lines
Diff to previous 1.76.2.2 (colored) to selected 1.107.6.3 (colored)

Catch up to -current.

Revision 1.80 / (download) - annotate - [select for diffs], Wed May 30 15:24:25 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Branch point for: kqueue
Changes since 1.79: +2 -1 lines
Diff to previous 1.79 (colored) to selected 1.107.6.3 (colored)

add missing   #include "opt_kgdb.h"

Revision 1.79 / (download) - annotate - [select for diffs], Sun May 6 13:23:42 2001 UTC (22 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.78: +9 -1 lines
Diff to previous 1.78 (colored) to selected 1.107.6.3 (colored)

Save the start and end positions in the message buffer of the formatted
panic string.

Suggested by Jason Thorpe eons ago.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Apr 30 21:29:45 2001 UTC (22 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.77: +31 -6 lines
Diff to previous 1.77 (colored) to selected 1.107.6.3 (colored)

Add %j, %t and %z modifiers.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:55 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.1: +2 -2 lines
Diff to previous 1.76.2.1 (colored) to selected 1.107.6.3 (colored)

Catch up with -current.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:37 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.64.2.1: +2 -2 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored) to selected 1.107.6.3 (colored)

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Mar 9 13:35:50 2001 UTC (23 years, 1 month ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored) to selected 1.107.6.3 (colored)

Declare constty extern.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:44 2001 UTC (23 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.76: +3 -2 lines
Diff to previous 1.76 (colored) to selected 1.107.6.3 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:08 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.64: +56 -193 lines
Diff to previous 1.64 (colored) to selected 1.107.6.3 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.76 / (download) - annotate - [select for diffs], Wed Aug 9 10:22:31 2000 UTC (23 years, 8 months ago) by tv
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.75: +10 -155 lines
Diff to previous 1.75 (colored) to selected 1.107.6.3 (colored)

Strip %b and DDB formats out of kprintf, as they are no longer supported.

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Tue Jul 4 16:05:34 2000 UTC (23 years, 9 months ago) by jdolecek
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.74: +7 -4 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.107.6.3 (colored)

Pullup from trunk [approved by thorpej]:

change tablefull() to accept one more parameter - optional hint

use that to inform about way to raise current limit when we reach maximum
number of processes, descriptors or vnodes

Revision 1.75 / (download) - annotate - [select for diffs], Tue Jul 4 15:33:31 2000 UTC (23 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.74: +7 -4 lines
Diff to previous 1.74 (colored) to selected 1.107.6.3 (colored)

change tablefull() to accept one more parameter - optional hint

use that to inform about way to raise current limit when we reach maximum
number of processes, descriptors or vnodes

XXX hopefully I catched all users of tablefull()

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:17 2000 UTC (23 years, 10 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.72: +18 -8 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.107.6.3 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Jun 10 18:44:44 2000 UTC (23 years, 10 months ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.73: +6 -4 lines
Diff to previous 1.73 (colored) to selected 1.107.6.3 (colored)

Fix assorted bugs around shutdown/reboot/panic time.
 - add a new global variable, doing_shutdown, which is nonzero if
vfs_shutdown() or panic() have been called.
- in panic, set RB_NOSYNC if doing_shutdown is already set on entry
so we don't reenter vfs_shutdown if we panic'ed there.
 - in vfs_shutdown, don't use proc0's process for sys_sync unless
curproc is NULL.
 - in lockmgr, attribute successful locks to proc0 if doing_shutdown
&& curproc==NULL, and  panic if we can't get the lock right away; avoids the
spurious lockmgr DIAGNOSTIC panic from the ddb reboot command.
 - in subr_pool, deal with curproc==NULL in the doing_shutdown case.
 - in mfs_strategy, bitbucket writes if doing_shutdown, so we don't
wedge waiting for the mfs process.
 - in ltsleep, treat ((curproc == NULL) && doing_shutdown) like the
panicstr case.

Appears to fix: kern/9239, kern/10187, kern/9367.
May also fix kern/10122.

Revision 1.73 / (download) - annotate - [select for diffs], Mon May 29 23:10:03 2000 UTC (23 years, 10 months ago) by jhawk
Branch: MAIN
Changes since 1.72: +13 -5 lines
Diff to previous 1.72 (colored) to selected 1.107.6.3 (colored)

Ensure that a fault inside the traceback printing code
(i.e. db_stack_trace_print()) does not cause an infinite loop of
faults.

Revision 1.72 / (download) - annotate - [select for diffs], Fri May 26 20:25:57 2000 UTC (23 years, 10 months ago) by jhawk
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.71: +10 -1 lines
Diff to previous 1.71 (colored) to selected 1.107.6.3 (colored)

If db_onpanic is unset and DDB is compiled in, panic() now calls
db_stack_trace_print(__builtin_frame_address(0),...), to printf() the
stack trace to the message bufffer and console. Idea from SunOS/Solaris.
Useful when dumping fails.

Revision 1.71 / (download) - annotate - [select for diffs], Thu May 25 21:32:41 2000 UTC (23 years, 10 months ago) by jhawk
Branch: MAIN
Changes since 1.70: +1 -10 lines
Diff to previous 1.70 (colored) to selected 1.107.6.3 (colored)

Support ddb-specific nonstandard printf formats %r and %z in kprintf(),
even when not called with (flags&TODDB != 0), such that ddb print routines
can use them when printing elsewhere, such as to the message buffer.

Revision 1.70 / (download) - annotate - [select for diffs], Tue May 2 09:29:39 2000 UTC (23 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.107.6.3 (colored)

Lock internals have changed, and we depend on those in here.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:13 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.68: +6 -6 lines
Diff to previous 1.68 (colored) to selected 1.107.6.3 (colored)

Get rid of register declarations.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Mar 29 03:05:18 2000 UTC (24 years ago) by simonb
Branch: MAIN
Changes since 1.67: +1 -3 lines
Diff to previous 1.67 (colored) to selected 1.107.6.3 (colored)

Remove declaration of db_radix - <ddb/db_output.h> has one.
Also remove <sys/conf.h> - don't need it here.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Mar 22 20:58:30 2000 UTC (24 years, 1 month ago) by ws
Branch: MAIN
Changes since 1.66: +7 -3 lines
Diff to previous 1.66 (colored) to selected 1.107.6.3 (colored)

Make IPKDB working again.
Add support for i386 debugging and pci-based ne2000 boards.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Jan 26 07:50:33 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.65: +3 -10 lines
Diff to previous 1.65 (colored) to selected 1.107.6.3 (colored)

Remove unused global `consintr'.  Rob Black, kern/3841.

Revision 1.64.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:52 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored) next main 1.65 (colored) to selected 1.107.6.3 (colored)

Pull up to last week's -current.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Dec 13 01:29:03 1999 UTC (24 years, 4 months ago) by sommerfeld
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored) to selected 1.107.6.3 (colored)

bitmask_snprintf: avoid returning too soon if we're using the
new-style format.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Aug 27 01:14:15 1999 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.63: +25 -1 lines
Diff to previous 1.63 (colored) to selected 1.107.6.3 (colored)

Implement vlog() (varargs version of log()).

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Mon Aug 2 22:19:14 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.62: +9 -4 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.107.6.3 (colored)

Update from trunk.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jul 27 21:50:37 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.62: +9 -4 lines
Diff to previous 1.62 (colored) to selected 1.107.6.3 (colored)

Make sure the kprintf_slock is initialized, and use the low-level atomic
locking primitive directly to lock it, since those will never attempt
to call printf() to display debugging information (and thus deadlock
on recursion into the kprintf_slock).

Revision 1.62 / (download) - annotate - [select for diffs], Fri Feb 12 00:46:11 1999 UTC (25 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.61: +4 -4 lines
Diff to previous 1.61 (colored) to selected 1.107.6.3 (colored)

Fix some printf format problems on Alpha.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Feb 10 18:03:05 1999 UTC (25 years, 2 months ago) by explorer
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored) to selected 1.107.6.3 (colored)

no need to set tailp twice.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Feb 6 11:57:35 1999 UTC (25 years, 2 months ago) by explorer
Branch: MAIN
Changes since 1.59: +14 -13 lines
Diff to previous 1.59 (colored) to selected 1.107.6.3 (colored)

rewrite usage of tailp slightly, to convince gcc that it really isn't used
initialized.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Feb 3 01:16:20 1999 UTC (25 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored) to selected 1.107.6.3 (colored)

fix compiler warning

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jan 28 00:05:49 1999 UTC (25 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.57: +81 -16 lines
Diff to previous 1.57 (colored) to selected 1.107.6.3 (colored)

Implement [v]snprintf()

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jan 26 17:05:41 1999 UTC (25 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.56: +1 -14 lines
Diff to previous 1.56 (colored) to selected 1.107.6.3 (colored)

make console_debugger() a macro - no need to waste a stackframe

Revision 1.56 / (download) - annotate - [select for diffs], Thu Oct 29 21:22:32 1998 UTC (25 years, 5 months ago) by jonathan
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.55: +14 -1 lines
Diff to previous 1.55 (colored) to selected 1.107.6.3 (colored)

Add options DDB_FROMCONSOLE and sysctl ddb.fromconsole, analagous to
DDB_ONPANIC. Lets user ignore breaks but enter DDB on panic.  Intended
for machines where debug on panic is useful, but DDB entry is not,
(public-access console, or terminal-servers which send spurious breaks)

Add new ddb hook, console_debugger(), which decides whether or not to
ignore console ddb requests. Console drivers should be updated to call
console_debugger(), not Debugger(), in response to serial-console
break or ddb keyboard sequence.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Sep 29 21:03:02 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.54: +19 -2 lines
Diff to previous 1.54 (colored) to selected 1.107.6.3 (colored)

Implement vsprintf().

Revision 1.54 / (download) - annotate - [select for diffs], Tue Sep 29 01:49:43 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.53: +81 -14 lines
Diff to previous 1.53 (colored) to selected 1.107.6.3 (colored)

If MULTIPROCESSOR, add a spin lock around the kernel printf (in the
appropriate places).  This makes debugging messages work a LOT better
on my multiprocessor Alpha.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Sep 12 13:12:14 1998 UTC (25 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored) to selected 1.107.6.3 (colored)

Nuke spurious pointer incrementation.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Aug 31 02:47:00 1998 UTC (25 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.107.6.3 (colored)

minor KNF nit

Revision 1.51 / (download) - annotate - [select for diffs], Sun Aug 23 22:42:32 1998 UTC (25 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.50: +91 -30 lines
Diff to previous 1.50 (colored) to selected 1.107.6.3 (colored)

Merge Chris Torek's new `%b' bit-field format into bitmask_snprintf().

Revision 1.50 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:15 1998 UTC (25 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored) to selected 1.107.6.3 (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.49 / (download) - annotate - [select for diffs], Sat Jul 4 22:18:52 1998 UTC (25 years, 9 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.48: +8 -2 lines
Diff to previous 1.48 (colored) to selected 1.107.6.3 (colored)

defopt DDB.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:31 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.47: +7 -2 lines
Diff to previous 1.47 (colored) to selected 1.107.6.3 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:02 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +6 -1 lines
Diff to previous 1.1.1.2 (colored) to selected 1.107.6.3 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:45 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +601 -1 lines
Diff to previous 1.1.1.1 (colored) to selected 1.107.6.3 (colored)

Import 4.4BSD-Lite for reference

Revision 1.47 / (download) - annotate - [select for diffs], Mon Nov 17 00:59:56 1997 UTC (26 years, 5 months ago) by ross
Branch: MAIN
Changes since 1.46: +1 -3 lines
Diff to previous 1.46 (colored) to selected 1.107.6.3 (colored)

Put it back the way it was.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Nov 15 09:27:33 1997 UTC (26 years, 5 months ago) by ross
Branch: MAIN
Changes since 1.45: +3 -1 lines
Diff to previous 1.45 (colored) to selected 1.107.6.3 (colored)

A new kprintf was imported on 10/24, and it will cause a kernel panic
whenever the %: format is used on NetBSD/Alpha. Disable %: for __alpha__.
Note: the "correct" (but untested on other architectures) fix is to
change the wrong: kprintf(cp, oflags, tp, NULL, va_arg(ap, va_list));
    to the right: kprintf(cp, oflags, tp, NULL, ap);

Revision 1.45 / (download) - annotate - [select for diffs], Fri Oct 24 18:14:25 1997 UTC (26 years, 6 months ago) by chuck
Branch: MAIN
Changes since 1.44: +841 -467 lines
Diff to previous 1.44 (colored) to selected 1.107.6.3 (colored)

import chris torek's vfprintf() from libc [renamed to kprintf and all
floating point stuff removed].

the new kprintf replaces the 3 different (and buggy) versions of
printf that were in the kernel before (kprintf, sprintf, and db_printf),
thus reducing duplicated code by 2/3's.   this fixes (or adds) several
printf formats.  examples:
 %#x   - previously only supported by db_printf [not printf/sprintf]
 %8.8s - printf would print "000chuck" for "chuck" before
 %5p   - printf would print "0x    1" for value 1 before

XXX: new kprintf still supports several non-standard '%' formats that
are supposed to eventually be removed:
  %: - passes an additional format string and argument list recursively
  %b - used to decode error registers
  %r - int, but print in radix "db_radix" [DDB only]
  %z - 'signed hex' [DDB only]
  %n - unsigned int, but print in radix "db_radix" [DDB only]

note that DDB's "%n" conflicts with standard "%n" which takes the
number of characters written so far and stores it into the integer
indicated by the "int *" pointer arg.  yuck!

while here, add comments for each function explaining what it is
supposed to do.

Revision 1.43.4.1 / (download) - annotate - [select for diffs], Mon Sep 22 06:33:49 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.43: +17 -9 lines
Diff to previous 1.43 (colored) next main 1.44 (colored) to selected 1.107.6.3 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Sep 19 13:56:41 1997 UTC (26 years, 7 months ago) by leo
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.43: +17 -9 lines
Diff to previous 1.43 (colored) to selected 1.107.6.3 (colored)

Implement the kernel part of pr-1891. This allows for a more flexible sized
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jun 26 05:17:45 1997 UTC (26 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.42: +8 -1 lines
Diff to previous 1.42 (colored) to selected 1.107.6.3 (colored)

Avoid running off the end of the format string if the caller botched
the format modifer.  Reported by and suggested fix from Daniel G. Pouzzner
in PR #2633.  Final fix is slightly different now that we support the %q
modifier.  This fix also includes the equivalent fix for sprintf().

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jun 26 00:43:10 1997 UTC (26 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored) to selected 1.107.6.3 (colored)

If KGDB is defined, pull in <sys/kgdb.h> for prototypes.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jun 16 15:02:27 1997 UTC (26 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.40: +59 -48 lines
Diff to previous 1.40 (colored) to selected 1.107.6.3 (colored)

Implement quad_t (%qx, %qd, %qo) printf formats.
Closes pr kern/3747.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Apr 17 00:06:28 1997 UTC (27 years ago) by thorpej
Branch: MAIN
Changes since 1.39: +27 -2 lines
Diff to previous 1.39 (colored) to selected 1.107.6.3 (colored)

XXX Kludge for PowerPC; needs a kernel vfprintf().

Revision 1.39 / (download) - annotate - [select for diffs], Wed Mar 26 22:42:18 1997 UTC (27 years ago) by gwr
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.107.6.3 (colored)

Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jan 9 05:38:22 1997 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored) to selected 1.107.6.3 (colored)

Only call Debugger() on panic if "db_onpanic" is set.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Nov 13 06:06:05 1996 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +102 -11 lines
Diff to previous 1.36 (colored) to selected 1.107.6.3 (colored)

Implement bitmask_snprintf(), which takes a value and a string
representing the names of those bits, prints them into a buffer
provided by the caller, and returns a pointer to that buffer.
Functionality is identical to that of the (non-standard) `%b' printf()
format, which will be deprecated.

Rename the non-exported function ksprintn() to ksnprintn(), and change
it to use a buffer provided by the caller, rather than at static
buffer.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Oct 27 21:55:20 1996 UTC (27 years, 5 months ago) by gwr
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.107.6.3 (colored)

Minor nit in my change regarding const and non-ansi code...

Revision 1.35 / (download) - annotate - [select for diffs], Sun Oct 27 20:50:00 1996 UTC (27 years, 5 months ago) by gwr
Branch: MAIN
Changes since 1.34: +2 -6 lines
Diff to previous 1.34 (colored) to selected 1.107.6.3 (colored)

Oops, part of that last commit was not meant to go in.
The definitions of va_alist, va_dcl belong elsewhere.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Oct 27 20:30:52 1996 UTC (27 years, 5 months ago) by gwr
Branch: MAIN
Changes since 1.33: +9 -4 lines
Diff to previous 1.33 (colored) to selected 1.107.6.3 (colored)

The hack-ish tricks to make the ANSI-style va_start macro work in
non-ANSI mode were not quite complete.  This makes non-ANSI work.
Perhaps it would be better to eliminate this hack altogether...

Revision 1.33 / (download) - annotate - [select for diffs], Fri Oct 25 22:01:44 1996 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored) to selected 1.107.6.3 (colored)

don't assign non-const pointers from const pointers; make the appropriate
pointers 'const'.  (-Wcast-qual)

Revision 1.32 / (download) - annotate - [select for diffs], Wed Oct 16 19:33:30 1996 UTC (27 years, 6 months ago) by ws
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored) to selected 1.107.6.3 (colored)

Rename recently checked in KGDB to IPKDB to resolve conflicts with older KGDB

Revision 1.31 / (download) - annotate - [select for diffs], Tue Oct 15 21:35:56 1996 UTC (27 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.107.6.3 (colored)

panic must print a newline

Revision 1.30 / (download) - annotate - [select for diffs], Sun Oct 13 02:32:39 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.29: +20 -20 lines
Diff to previous 1.29 (colored) to selected 1.107.6.3 (colored)

backout previous kprintf change

Revision 1.29 / (download) - annotate - [select for diffs], Thu Oct 10 22:46:27 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.28: +22 -21 lines
Diff to previous 1.28 (colored) to selected 1.107.6.3 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 30 17:32:01 1996 UTC (27 years, 6 months ago) by ws
Branch: MAIN
Changes since 1.27: +6 -1 lines
Diff to previous 1.27 (colored) to selected 1.107.6.3 (colored)

Enter new KGDB on panic just like other kernel debuggers

Revision 1.27 / (download) - annotate - [select for diffs], Wed Sep 25 21:03:45 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored) to selected 1.107.6.3 (colored)

Recognize %.2x as %02x

Revision 1.26 / (download) - annotate - [select for diffs], Fri Aug 9 10:30:23 1996 UTC (27 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored) to selected 1.107.6.3 (colored)

Change reboot(2) to take two arguments: bootopt like normal and also
a boot string for firmware that can do this, such as the SPARC and
the sun3 models.  It is currently silently ignored on all other
hardware now, however.  The MD function "boot()" has been changed to
also take a char *.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 22 01:38:46 1996 UTC (28 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored) to selected 1.107.6.3 (colored)

remove include of <sys/cpu.h>

Revision 1.24 / (download) - annotate - [select for diffs], Sat Mar 30 22:25:18 1996 UTC (28 years ago) by christos
Branch: MAIN
Changes since 1.23: +5 -6 lines
Diff to previous 1.23 (colored) to selected 1.107.6.3 (colored)

Change %r -> %: as for recursive printf's

Revision 1.23 / (download) - annotate - [select for diffs], Sat Mar 16 23:17:10 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.22: +2 -5 lines
Diff to previous 1.22 (colored) to selected 1.107.6.3 (colored)

Fix printf() formats.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Mar 14 19:01:11 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.21: +4 -1 lines
Diff to previous 1.21 (colored) to selected 1.107.6.3 (colored)

- fdopen -> filedescopen
- bring kgdb prototype in scope.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 9 19:00:01 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.20: +1 -3 lines
Diff to previous 1.20 (colored) to selected 1.107.6.3 (colored)

More proto fixes

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 4 02:16:42 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.19: +27 -14 lines
Diff to previous 1.19 (colored) to selected 1.107.6.3 (colored)

First pass at prototyping

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jun 16 10:52:17 1995 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.18: +30 -3 lines
Diff to previous 1.18 (colored) to selected 1.107.6.3 (colored)

copy some format specifiers from kprintf to sprintf.  b & r still missing

Revision 1.18 / (download) - annotate - [select for diffs], Sun Mar 19 23:23:11 1995 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored) to selected 1.107.6.3 (colored)

Actually, do the previous differently.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 19 23:17:16 1995 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.16: +6 -1 lines
Diff to previous 1.16 (colored) to selected 1.107.6.3 (colored)

Add a `%p' format.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Dec 28 06:30:35 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored) to selected 1.107.6.3 (colored)

Handle null pointers like libc.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:59 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored) to selected 1.107.6.3 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.14 / (download) - annotate - [select for diffs], Fri May 13 06:02:45 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.13: +35 -58 lines
Diff to previous 1.13 (colored) to selected 1.107.6.3 (colored)

update; minor clean, cruft removal.

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 12 10:26:19 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored) to selected 1.107.6.3 (colored)

Make logpri() non-static.

Revision 1.12 / (download) - annotate - [select for diffs], Thu May 5 05:38:22 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.11: +628 -1 lines
Diff to previous 1.11 (colored) to selected 1.107.6.3 (colored)

lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 4 03:42:01 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored) to selected 1.107.6.3 (colored)

Rename a lot of process flags.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jan 30 13:22:05 1994 UTC (30 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored) to selected 1.107.6.3 (colored)

make panic a varargs function

Revision 1.9 / (download) - annotate - [select for diffs], Sat Dec 18 04:21:28 1993 UTC (30 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored) to selected 1.107.6.3 (colored)

Canonicalize all #includes.

Revision 1.8.2.5 / (download) - annotate - [select for diffs], Sun Nov 14 21:07:09 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.4: +1 -1 lines
Diff to previous 1.8.2.4 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.107.6.3 (colored)

Canonicalize all #includes.

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Mon Sep 27 06:05:49 1993 UTC (30 years, 6 months ago) by deraadt
Branch: magnum
Changes since 1.8.2.3: +1 -1 lines
Diff to previous 1.8.2.3 (colored) to branchpoint 1.8 (colored) to selected 1.107.6.3 (colored)

Colour me a very bright shiny shade of stupid.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Mon Sep 27 02:45:10 1993 UTC (30 years, 6 months ago) by deraadt
Branch: magnum
Changes since 1.8.2.2: +1 -1 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) to selected 1.107.6.3 (colored)

no snprintf() inside the kernel, use sprintf() and pray

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Fri Sep 24 08:51:27 1993 UTC (30 years, 7 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.1: +1 -1 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) to selected 1.107.6.3 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Tue Sep 14 18:24:22 1993 UTC (30 years, 7 months ago) by mycroft
Branch: magnum
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored) to selected 1.107.6.3 (colored)

init_main.c:  clock changes from 4.4; initclocks() is called after vfsinit().
No startrtclock() or enablertclock().  Some pseudo-device cruft, but this needs
to be updated.
kern_clock.c:  from 4.4: gatherstats() --> statclock().  statclock(),
hardclock(), and softclock() take a `struct clockframe *'.  New initclocks(),
harclock(), statclock(), startprofclock(), and stopprofclock().
kern_synch.c:  from 4.4: machine-independent swtch(), which is now where
process time is integrated.  Calls cpu_swtch() with the current process as an
arg.
subr_autoconf.c:  Fix typo.
subr_prf.c:  msgbufp and msgbufmapped are define in machdep.c
tty.c:  Make TIOCHPCL #ifdef COMPAT_43.
Incorporate changes from main branch.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 27 23:45:58 1993 UTC (30 years, 7 months ago) by brezak
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored) to selected 1.107.6.3 (colored)

Machine independant changes to VM for handling non-contiguous memory.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 27 06:01:53 1993 UTC (30 years, 9 months ago) by andrew
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored) to selected 1.107.6.3 (colored)

ANSIfications - removed all implicit function return types and argument
definitions.  Ensured that all files include "systm.h" to gain access to
general prototypes.  Casts where necessary.

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 22 11:41:42 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored) to selected 1.107.6.3 (colored)

add include of select.h if necessary for protos, or delete if extraneous

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 18 18:19:21 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored) to selected 1.107.6.3 (colored)

make kernel select interface be one-stop shopping & clean it all up.

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 13 06:17:51 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored) to selected 1.107.6.3 (colored)

fix kernel printf %b format.
from Gordon Burditt <gordon@sneaky.lonestar.org>

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 10 12:06:18 1993 UTC (31 years ago) by glass
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored) to selected 1.107.6.3 (colored)

fixed to be compliant, subservient, and to take advantage of the newly
hacked config(8)

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 28 08:40:33 1993 UTC (31 years ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.107.6.3 (colored)

if PANICWAIT defined, will always wait for a key press before reboot
after panic.  (note that this only makes a difference if DDB is not
installed.)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.107.6.3 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: MAIN
Diff to selected 1.107.6.3 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>