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.196 / (download) - annotate - [select for diffs], Mon Oct 31 09:14:18 2022 UTC (3 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.195: +4 -2 lines
Diff to previous 1.195 (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 (3 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.194: +2 -3 lines
Diff to previous 1.194 (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 (3 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.193: +21 -9 lines
Diff to previous 1.193 (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 (3 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.192: +9 -21 lines
Diff to previous 1.192 (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 (3 months, 4 weeks ago) by riastradh
Branch: MAIN
Changes since 1.191: +21 -9 lines
Diff to previous 1.191 (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 (4 months ago) by riastradh
Branch: MAIN
Changes since 1.190: +9 -21 lines
Diff to previous 1.190 (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 (4 months ago) by riastradh
Branch: MAIN
Changes since 1.189: +21 -9 lines
Diff to previous 1.189 (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 (5 months, 3 weeks 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)

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 (9 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.187: +9 -6 lines
Diff to previous 1.187 (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 (10 months, 2 weeks ago) by andvar
Branch: MAIN
Changes since 1.186: +4 -4 lines
Diff to previous 1.186 (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 (22 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.185: +16 -2 lines
Diff to previous 1.185 (colored) next main 1.186 (colored)

Sync with HEAD.

Revision 1.186 / (download) - annotate - [select for diffs], Wed Mar 10 13:27:51 2021 UTC (22 months, 3 weeks 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)

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 (2 years, 6 months ago) by maxv
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.184: +10 -9 lines
Diff to previous 1.184 (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 (2 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.183: +9 -9 lines
Diff to previous 1.183 (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 (2 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.182: +10 -68 lines
Diff to previous 1.182 (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 (2 years, 9 months 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)

Merge changes from current as of 20200406

Revision 1.182 / (download) - annotate - [select for diffs], Wed Jan 1 22:57:17 2020 UTC (3 years, 1 month 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)

- 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 (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.171: +61 -36 lines
Diff to previous 1.171 (colored)

Sync with HEAD

Revision 1.181 / (download) - annotate - [select for diffs], Tue May 21 04:57:02 2019 UTC (3 years, 8 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)

put back line accidentally removed.

Revision 1.180 / (download) - annotate - [select for diffs], Tue May 21 04:55:07 2019 UTC (3 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.179: +2 -5 lines
Diff to previous 1.179 (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 (3 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.178: +8 -5 lines
Diff to previous 1.178 (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 (3 years, 8 months ago) by kre
Branch: MAIN
Changes since 1.177: +3 -2 lines
Diff to previous 1.177 (colored)


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

Revision 1.177 / (download) - annotate - [select for diffs], Mon May 20 20:35:45 2019 UTC (3 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.176: +14 -2 lines
Diff to previous 1.176 (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 (4 years 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)

Synch with HEAD

Revision 1.176 / (download) - annotate - [select for diffs], Mon Jan 14 19:21:54 2019 UTC (4 years 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)

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 (4 years ago) by martin
Branch: MAIN
Changes since 1.174: +27 -28 lines
Diff to previous 1.174 (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 (4 years, 6 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)

Sync with HEAD

Revision 1.174 / (download) - annotate - [select for diffs], Sun Jul 15 07:24:11 2018 UTC (4 years, 6 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)

More ipkdb removal

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

Revert previous

Revision 1.172 / (download) - annotate - [select for diffs], Sat Jun 30 17:15:01 2018 UTC (4 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.171: +6 -2 lines
Diff to previous 1.171 (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 (4 years, 7 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)

Sync with HEAD

Revision 1.171 / (download) - annotate - [select for diffs], Sun Jun 3 15:26:03 2018 UTC (4 years, 8 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)

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 (4 years, 9 months 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)

Sync with HEAD, resolve some conflicts

Revision 1.170 / (download) - annotate - [select for diffs], Sat Apr 14 01:53:38 2018 UTC (4 years, 9 months 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)


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 (4 years, 9 months ago) by kre
Branch: MAIN
Changes since 1.168: +24 -7 lines
Diff to previous 1.168 (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 (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.167: +3 -3 lines
Diff to previous 1.167 (colored)

make this narrower by popular request.

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

fix type confusion on 32 bits

Revision 1.166 / (download) - annotate - [select for diffs], Wed Apr 11 15:25:58 2018 UTC (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.165: +4 -4 lines
Diff to previous 1.165 (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 (4 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.162: +72 -24 lines
Diff to previous 1.162 (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 (4 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0407
Changes since 1.164: +28 -0 lines
Diff to previous 1.164 (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 (4 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.163: +42 -22 lines
Diff to previous 1.163 (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 (4 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.162: +4 -4 lines
Diff to previous 1.162 (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 (5 years, 2 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)

update from HEAD

Revision 1.162 / (download) - annotate - [select for diffs], Fri Oct 27 12:25:15 2017 UTC (5 years, 3 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)

Revert printf return value change.

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

Sync with HEAD

Revision 1.159.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:09 2016 UTC (6 years, 5 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)

Sync with HEAD

Revision 1.160 / (download) - annotate - [select for diffs], Wed Jul 27 09:57:26 2016 UTC (6 years, 6 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, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.159: +3 -3 lines
Diff to previous 1.159 (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 (7 years, 4 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)

Sync with HEAD

Revision 1.159 / (download) - annotate - [select for diffs], Mon Aug 24 22:50:32 2015 UTC (7 years, 5 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 garnish, dust with _KERNEL_OPT

Revision 1.156.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:22 2015 UTC (7 years, 8 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)

Sync with HEAD

Revision 1.158 / (download) - annotate - [select for diffs], Mon Apr 13 16:46:33 2015 UTC (7 years, 9 months ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (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 (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.156: +3 -3 lines
Diff to previous 1.156 (colored)

Sync with HEAD

Revision 1.157 / (download) - annotate - [select for diffs], Wed Feb 4 07:10:47 2015 UTC (8 years ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.156: +3 -3 lines
Diff to previous 1.156 (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 (8 years, 5 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)

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 (8 years, 5 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)

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 (8 years, 5 months ago) by martin
Branch: netbsd-7
Changes since 1.154: +7 -5 lines
Diff to previous 1.154 (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 (8 years, 5 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)

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 (8 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.154: +7 -5 lines
Diff to previous 1.154 (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 (8 years, 5 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)

Merge tls-earlyentropy branch into HEAD.

Revision 1.153.2.4 / (download) - annotate - [select for diffs], Sun Aug 10 08:10:31 2014 UTC (8 years, 5 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)

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 (8 years, 6 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)

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 (8 years, 8 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)

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 (8 years, 8 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)

sync with head

Revision 1.153.2.2 / (download) - annotate - [select for diffs], Wed Apr 9 03:41:30 2014 UTC (8 years, 9 months 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)

Skip mutex_tryenter() if !kprnd_added.

Revision 1.153.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 02:20:00 2014 UTC (8 years, 10 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.153: +67 -8 lines
Diff to previous 1.153 (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 (8 years, 10 months 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)

remove {v,}sprintf

Revision 1.124.4.1.4.2 / (download) - annotate - [select for diffs], Fri Feb 14 18:38:15 2014 UTC (8 years, 11 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)

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 (9 years ago) by joerg
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.151: +0 -13 lines
Diff to previous 1.151 (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 (9 years ago) by christos
Branch: MAIN
Changes since 1.150: +15 -2 lines
Diff to previous 1.150 (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 (9 years, 2 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)

more things for xhci

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

resync with head

Revision 1.150 / (download) - annotate - [select for diffs], Sun Feb 10 11:04:19 2013 UTC (9 years, 11 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)

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 (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.143: +42 -38 lines
Diff to previous 1.143 (colored)

sync with head

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

sync to latest -current.

Revision 1.149 / (download) - annotate - [select for diffs], Mon Mar 12 19:21:07 2012 UTC (10 years, 10 months 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)

Repeated typo/varargs anachronism in comments.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Nov 24 01:45:39 2011 UTC (11 years, 2 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)

- 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 (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.146: +9 -9 lines
Diff to previous 1.146 (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 (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.145: +4 -2 lines
Diff to previous 1.145 (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 (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.144: +19 -11 lines
Diff to previous 1.144 (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 (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.143: +22 -26 lines
Diff to previous 1.143 (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 (11 years, 4 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)

Add vpanic()

Revision 1.142 / (download) - annotate - [select for diffs], Thu Sep 8 18:15:56 2011 UTC (11 years, 4 months ago) by jym
Branch: MAIN
Changes since 1.141: +16 -7 lines
Diff to previous 1.141 (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 (11 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.140: +2 -10 lines
Diff to previous 1.140 (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 (11 years, 8 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)

Sync with HEAD.

Revision 1.138.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:05:02 2011 UTC (11 years, 8 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)

sync with head

Revision 1.140 / (download) - annotate - [select for diffs], Sun Apr 24 18:46:22 2011 UTC (11 years, 9 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)

- 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 (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.138: +14 -2 lines
Diff to previous 1.138 (colored)

sync with head

Revision 1.138.8.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:59 2011 UTC (11 years, 11 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)

Sync with HEAD

Revision 1.139 / (download) - annotate - [select for diffs], Fri Jan 21 17:46:19 2011 UTC (12 years 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)

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 (12 years, 10 months 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)

sync with head

Revision 1.138 / (download) - annotate - [select for diffs], Tue Jan 26 12:59:50 2010 UTC (13 years 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)

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 (13 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.136: +5 -2 lines
Diff to previous 1.136 (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 (13 years, 6 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)

Sync with HEAD.

Revision 1.120.2.4 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:23 2009 UTC (13 years, 6 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)

sync with head.

Revision 1.136 / (download) - annotate - [select for diffs], Sun Jun 28 15:30:30 2009 UTC (13 years, 7 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)

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 (13 years, 7 months ago) by cegger
Branch: MAIN
Changes since 1.134: +6 -4 lines
Diff to previous 1.134 (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 (13 years, 7 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)

sync with head

Revision 1.134 / (download) - annotate - [select for diffs], Thu Jun 18 06:26:58 2009 UTC (13 years, 7 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)

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 (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.130: +31 -29 lines
Diff to previous 1.130 (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 (13 years, 9 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)

sync with head.

Revision 1.124.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:00 2009 UTC (13 years, 9 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)

Sync with HEAD.

Revision 1.133 / (download) - annotate - [select for diffs], Sat Apr 25 15:06:32 2009 UTC (13 years, 9 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)

- 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 (13 years, 10 months ago) by cegger
Branch: MAIN
Changes since 1.131: +5 -5 lines
Diff to previous 1.131 (colored)

ansify function definitions

Revision 1.131 / (download) - annotate - [select for diffs], Tue Mar 10 10:48:09 2009 UTC (13 years, 10 months ago) by mlelstv
Branch: MAIN
Changes since 1.130: +25 -23 lines
Diff to previous 1.130 (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 (13 years, 11 months 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)

Sync with HEAD.

Revision 1.124.4.1 / (download) - annotate - [select for diffs], Mon Feb 2 19:47:47 2009 UTC (14 years 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)

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 (14 years 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)

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 (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.124: +94 -54 lines
Diff to previous 1.124 (colored)

Sync with HEAD.

Revision 1.116.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (14 years 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)

Sync with HEAD.

Revision 1.129 / (download) - annotate - [select for diffs], Fri Jan 2 22:03:00 2009 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.128: +4 -2 lines
Diff to previous 1.128 (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 (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.127: +3 -2 lines
Diff to previous 1.127 (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 (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.126: +18 -2 lines
Diff to previous 1.126 (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 (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.125: +75 -52 lines
Diff to previous 1.125 (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 (14 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.124: +3 -5 lines
Diff to previous 1.124 (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 (14 years, 3 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)

Sync with HEAD.

Revision 1.120.4.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:34:14 2008 UTC (14 years, 3 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)

Sync with HEAD.

Revision 1.116.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:53 2008 UTC (14 years, 4 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)

Sync with HEAD.

Revision 1.124 / (download) - annotate - [select for diffs], Tue Sep 23 22:20:24 2008 UTC (14 years, 4 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)

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 (14 years, 7 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)

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 (14 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.123: +11 -2 lines
Diff to previous 1.123 (colored)

Sync with head.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.120: +17 -4 lines
Diff to previous 1.120 (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 (14 years, 8 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)

sync with head

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

Sync with HEAD.

Revision 1.123 / (download) - annotate - [select for diffs], Sat May 31 20:27:24 2008 UTC (14 years, 8 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)

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 (14 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-nbase
Changes since 1.121: +2 -3 lines
Diff to previous 1.121 (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 (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.118: +11 -12 lines
Diff to previous 1.118 (colored)

sync with head.

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

sync with head.

Revision 1.121 / (download) - annotate - [select for diffs], Tue May 13 11:54:45 2008 UTC (14 years, 8 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)

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 (14 years, 9 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)

- 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 (14 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.118: +10 -10 lines
Diff to previous 1.118 (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 (14 years, 9 months 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)

acquire proclist_lock for SESSHOLD/SESSRELE.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Apr 12 17:16:09 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.116: +3 -3 lines
Diff to previous 1.116 (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 (14 years, 10 months 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 (14 years, 11 months 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)

sync with head.

Revision 1.116 / (download) - annotate - [select for diffs], Tue Feb 19 07:46:51 2008 UTC (14 years, 11 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)

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 (14 years, 11 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)

Sync with HEAD.

Revision 1.115 / (download) - annotate - [select for diffs], Mon Feb 18 14:46:58 2008 UTC (14 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.114: +32 -2 lines
Diff to previous 1.114 (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 (15 years 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)

sync with head

Revision 1.107.6.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:18 2008 UTC (15 years 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 (15 years 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)

Sync with HEAD

Revision 1.114 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:13 2008 UTC (15 years, 1 month 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)

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 (15 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.112: +2 -4 lines
Diff to previous 1.112 (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 (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.111: +2 -15 lines
Diff to previous 1.111 (colored)

Sync with HEAD

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

tablefull: subr_prf -> subr_prf2

Revision 1.111.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 17:55:06 2007 UTC (15 years, 1 month 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)

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 (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.111: +7 -3 lines
Diff to previous 1.111 (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 (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.110: +4 -27 lines
Diff to previous 1.110 (colored)

Sync with HEAD.

Revision 1.99.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:50 2007 UTC (15 years, 2 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)

sync with head.

Revision 1.109.2.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:22 2007 UTC (15 years, 2 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)

Sync with HEAD

Revision 1.107.4.3 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:09 2007 UTC (15 years, 2 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)

Sync with HEAD.

Revision 1.107.6.2 / (download) - annotate - [select for diffs], Thu Nov 8 11:00:05 2007 UTC (15 years, 2 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)

sync with -HEAD

Revision 1.111 / (download) - annotate - [select for diffs], Wed Nov 7 00:19:08 2007 UTC (15 years, 3 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)

Merge from vmlocking.

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

sync with HEAD

Revision 1.105.4.5 / (download) - annotate - [select for diffs], Sun Oct 28 15:47:15 2007 UTC (15 years, 3 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)

/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 (15 years, 3 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)

sync with head.

Revision 1.107.4.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:40 2007 UTC (15 years, 3 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)

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 (15 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored)

Sync with HEAD.

Revision 1.105.4.4 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:13 2007 UTC (15 years, 3 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)

Sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:43 2007 UTC (15 years, 3 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)

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 (15 years, 3 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)

Sync with head.

Revision 1.107.8.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:45 2007 UTC (15 years, 4 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)

sync with head.

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

Sync with HEAD.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Sep 26 07:40:36 2007 UTC (15 years, 4 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)

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 (15 years, 4 months ago) by joerg
Branch: MAIN
Changes since 1.107: +192 -33 lines
Diff to previous 1.107 (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 (15 years, 5 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)

sync with head.

Revision 1.105.4.2 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:38 2007 UTC (15 years, 5 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)

Sync with HEAD.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:13 2007 UTC (15 years, 5 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)

Sync with HEAD.

Revision 1.107.10.2 / (download) - annotate - [select for diffs], Sun Jul 29 09:38:02 2007 UTC (15 years, 6 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)

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 (15 years, 6 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 (15 years, 6 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)

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 (15 years, 6 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)

Sync with head.

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

Sync with head.

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Mon May 7 10:55:47 2007 UTC (15 years, 9 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)

sync with head.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Apr 28 13:11:53 2007 UTC (15 years, 9 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)

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 (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (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 (15 years, 11 months 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)

sync with head.

Revision 1.105 / (download) - annotate - [select for diffs], Thu Feb 22 06:34:45 2007 UTC (15 years, 11 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)

TRUE -> true, FALSE -> false

Revision 1.104 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (15 years, 11 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)

Merge newlock2 to head.

Revision 1.103.2.3 / (download) - annotate - [select for diffs], Sat Jan 20 00:19:01 2007 UTC (16 years 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)

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 (16 years, 1 month 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)

sync with head.

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:44 2006 UTC (16 years, 1 month 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)

Checkpoint work in progress.

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

Checkpoint work in progress.

Revision 1.102.6.1 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (16 years, 4 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)

sync with head.

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (16 years, 4 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)

sync with head

Revision 1.103 / (download) - annotate - [select for diffs], Sun Sep 3 17:06:36 2006 UTC (16 years, 5 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)

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 (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99: +9 -7 lines
Diff to previous 1.99 (colored)

sync with head.

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:20 2006 UTC (17 years 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)

sync with head.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jan 28 14:37:31 2006 UTC (17 years 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)

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 (17 years ago) by darrenr
Branch: MAIN
Changes since 1.100: +8 -6 lines
Diff to previous 1.100 (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 (17 years, 1 month ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

merge ktrace-lwp.

Revision 1.92.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (17 years, 2 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)

Sync with HEAD. Here we go again...

Revision 1.99 / (download) - annotate - [select for diffs], Thu Jun 23 18:46:17 2005 UTC (17 years, 7 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)

Use ANSI function decls.

Revision 1.98 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.97: +37 -34 lines
Diff to previous 1.97 (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 (17 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.96: +9 -6 lines
Diff to previous 1.96 (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 (17 years, 9 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)

sync with -current

Revision 1.95.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.95: +12 -12 lines
Diff to previous 1.95 (colored) next main 1.96 (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 (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.4: +12 -12 lines
Diff to previous 1.92.2.4 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.96 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (17 years, 11 months 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)

nuke trailing whitespace

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

Sync with HEAD

Revision 1.95 / (download) - annotate - [select for diffs], Wed Sep 29 23:54:11 2004 UTC (18 years, 4 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)

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 (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.2: +2 -2 lines
Diff to previous 1.92.2.2 (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 (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.92.2.1: +0 -0 lines
Diff to previous 1.92.2.1 (colored)

Sync with HEAD.

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

Sync with HEAD

Revision 1.94 / (download) - annotate - [select for diffs], Tue Mar 23 13:22:04 2004 UTC (18 years, 10 months 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)

Nuke __P().

Revision 1.93 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:53 2003 UTC (19 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.92: +3 -7 lines
Diff to previous 1.92 (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 (19 years, 11 months ago) by matt
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.91: +4 -2 lines
Diff to previous 1.91 (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 (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.90: +4 -105 lines
Diff to previous 1.90 (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 (19 years, 11 months ago) by atatat
Branch: MAIN
Changes since 1.89: +11 -3 lines
Diff to previous 1.89 (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 (20 years, 1 month 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)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Dec 31 23:45:36 2002 UTC (20 years, 1 month 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)

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 (20 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.87: +124 -2 lines
Diff to previous 1.87 (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 (20 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.86: +5 -34 lines
Diff to previous 1.86 (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 (20 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.10: +4 -4 lines
Diff to previous 1.76.2.10 (colored)

Catch up to -current

Revision 1.86 / (download) - annotate - [select for diffs], Sat Nov 2 07:25:22 2002 UTC (20 years, 3 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)

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

Revision 1.80.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:06 2002 UTC (20 years, 5 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)

sync kqueue branch with HEAD

Revision 1.83.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:11 2002 UTC (20 years, 5 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)

catch up with -current.

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

Catch up to -current.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Aug 26 11:34:27 2002 UTC (20 years, 5 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)

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 (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.8: +2 -3 lines
Diff to previous 1.76.2.8 (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 (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.7: +3 -3 lines
Diff to previous 1.76.2.7 (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 (20 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.80.2.2: +12 -2 lines
Diff to previous 1.80.2.2 (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 (20 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.83: +12 -2 lines
Diff to previous 1.83 (colored)

catch up with -current.

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

Catch up to -current.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Jun 5 17:53:52 2002 UTC (20 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.83: +12 -2 lines
Diff to previous 1.83 (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 (21 years ago) by thorpej
Branch: kqueue
Changes since 1.80.2.1: +7 -3 lines
Diff to previous 1.80.2.1 (colored)

Sync kqueue branch with -current.

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

Catch up to -current.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Nov 21 00:55:39 2001 UTC (21 years, 2 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)

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 (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.4: +4 -1 lines
Diff to previous 1.76.2.4 (colored)

Catch up to -current.

Revision 1.81.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:52 2001 UTC (21 years, 2 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)

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

Revision 1.82 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:21 2001 UTC (21 years, 2 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)

add RCSIDs

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

Catch up with -current.

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

update to -current

Revision 1.81 / (download) - annotate - [select for diffs], Tue Jul 10 20:40:56 2001 UTC (21 years, 6 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)

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 (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.2: +40 -6 lines
Diff to previous 1.76.2.2 (colored)

Catch up to -current.

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

add missing   #include "opt_kgdb.h"

Revision 1.79 / (download) - annotate - [select for diffs], Sun May 6 13:23:42 2001 UTC (21 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.78: +9 -1 lines
Diff to previous 1.78 (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 (21 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.77: +31 -6 lines
Diff to previous 1.77 (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 (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76.2.1: +2 -2 lines
Diff to previous 1.76.2.1 (colored)

Catch up with -current.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:37 2001 UTC (21 years, 10 months 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)

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Mar 9 13:35:50 2001 UTC (21 years, 11 months 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)

Declare constty extern.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:44 2001 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.76: +3 -2 lines
Diff to previous 1.76 (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 (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.64: +56 -193 lines
Diff to previous 1.64 (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 (22 years, 6 months ago) by tv
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.75: +10 -155 lines
Diff to previous 1.75 (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 (22 years, 7 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)

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 (22 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.74: +7 -4 lines
Diff to previous 1.74 (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 (22 years, 7 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)

Sync w/ netbsd-1-5-base.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Jun 10 18:44:44 2000 UTC (22 years, 7 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)

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 (22 years, 8 months ago) by jhawk
Branch: MAIN
Changes since 1.72: +13 -5 lines
Diff to previous 1.72 (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 (22 years, 8 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)

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 (22 years, 8 months ago) by jhawk
Branch: MAIN
Changes since 1.70: +1 -10 lines
Diff to previous 1.70 (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 (22 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (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 (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.68: +6 -6 lines
Diff to previous 1.68 (colored)

Get rid of register declarations.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Mar 29 03:05:18 2000 UTC (22 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.67: +1 -3 lines
Diff to previous 1.67 (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 (22 years, 10 months ago) by ws
Branch: MAIN
Changes since 1.66: +7 -3 lines
Diff to previous 1.66 (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 (23 years ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.65: +3 -10 lines
Diff to previous 1.65 (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 (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Pull up to last week's -current.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Dec 13 01:29:03 1999 UTC (23 years, 1 month 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)

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 (23 years, 5 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)

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

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Mon Aug 2 22:19:14 1999 UTC (23 years, 6 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)

Update from trunk.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jul 27 21:50:37 1999 UTC (23 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.62: +9 -4 lines
Diff to previous 1.62 (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 (23 years, 11 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)

Fix some printf format problems on Alpha.

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

no need to set tailp twice.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Feb 6 11:57:35 1999 UTC (24 years ago) by explorer
Branch: MAIN
Changes since 1.59: +14 -13 lines
Diff to previous 1.59 (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 (24 years ago) by msaitoh
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

fix compiler warning

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

Implement [v]snprintf()

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jan 26 17:05:41 1999 UTC (24 years ago) by drochner
Branch: MAIN
Changes since 1.56: +1 -14 lines
Diff to previous 1.56 (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 (24 years, 3 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)

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 (24 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.54: +19 -2 lines
Diff to previous 1.54 (colored)

Implement vsprintf().

Revision 1.54 / (download) - annotate - [select for diffs], Tue Sep 29 01:49:43 1998 UTC (24 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.53: +81 -14 lines
Diff to previous 1.53 (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 (24 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored)

Nuke spurious pointer incrementation.

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

minor KNF nit

Revision 1.51 / (download) - annotate - [select for diffs], Sun Aug 23 22:42:32 1998 UTC (24 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.50: +91 -30 lines
Diff to previous 1.50 (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 (24 years, 6 months ago) by perry
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (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 (24 years, 7 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)

defopt DDB.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:31 1998 UTC (24 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.47: +7 -2 lines
Diff to previous 1.47 (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 (24 years, 11 months 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)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:45 1998 UTC (24 years, 11 months 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)

Import 4.4BSD-Lite for reference

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

Put it back the way it was.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Nov 15 09:27:33 1997 UTC (25 years, 2 months ago) by ross
Branch: MAIN
Changes since 1.45: +3 -1 lines
Diff to previous 1.45 (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 (25 years, 3 months ago) by chuck
Branch: MAIN
Changes since 1.44: +841 -467 lines
Diff to previous 1.44 (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 (25 years, 4 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)

Update marc-pcmcia branch from trunk.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Sep 19 13:56:41 1997 UTC (25 years, 4 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)

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 (25 years, 7 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)

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 (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (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 (25 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.40: +59 -48 lines
Diff to previous 1.40 (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 (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +27 -2 lines
Diff to previous 1.39 (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 (25 years, 10 months ago) by gwr
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

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

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jan 9 05:38:22 1997 UTC (26 years, 1 month 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)

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 (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +102 -11 lines
Diff to previous 1.36 (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 (26 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (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 (26 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.34: +2 -6 lines
Diff to previous 1.34 (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 (26 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.33: +9 -4 lines
Diff to previous 1.33 (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 (26 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (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 (26 years, 3 months ago) by ws
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (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 (26 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

panic must print a newline

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

backout previous kprintf change

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

printf -> kprintf, sprintf -> ksprintf

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 30 17:32:01 1996 UTC (26 years, 4 months ago) by ws
Branch: MAIN
Changes since 1.27: +6 -1 lines
Diff to previous 1.27 (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 (26 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Recognize %.2x as %02x

Revision 1.26 / (download) - annotate - [select for diffs], Fri Aug 9 10:30:23 1996 UTC (26 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (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 (26 years, 9 months 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)

remove include of <sys/cpu.h>

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

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

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

Fix printf() formats.

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

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

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

More proto fixes

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

First pass at prototyping

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jun 16 10:52:17 1995 UTC (27 years, 7 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)

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 (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

Actually, do the previous differently.

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

Add a `%p' format.

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

Handle null pointers like libc.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:59 1994 UTC (28 years, 7 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)

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 (28 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.13: +35 -58 lines
Diff to previous 1.13 (colored)

update; minor clean, cruft removal.

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

Make logpri() non-static.

Revision 1.12 / (download) - annotate - [select for diffs], Thu May 5 05:38:22 1994 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.11: +628 -1 lines
Diff to previous 1.11 (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 (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored)

Rename a lot of process flags.

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

make panic a varargs function

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

Canonicalize all #includes.

Revision 1.8.2.5 / (download) - annotate - [select for diffs], Sun Nov 14 21:07:09 1993 UTC (29 years, 2 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)

Canonicalize all #includes.

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Mon Sep 27 06:05:49 1993 UTC (29 years, 4 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)

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 (29 years, 4 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)

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 (29 years, 4 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)

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 (29 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (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 (29 years, 5 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)

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 (29 years, 7 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)

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 (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (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 (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (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 (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.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 (29 years, 10 months 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)

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 (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (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 (29 years, 10 months 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)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN

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>