The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.230.4.1 / (download) - annotate - [select for diffs], Wed Feb 22 13:28:01 2023 UTC (12 months, 1 week ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.230: +19 -6 lines
Diff to previous 1.230 (colored) next main 1.231 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #96):

	sys/kern/kern_subr.c: revision 1.231

If a specified root device does not exist when the kernel tries to
mount the root filesystem, retry for up to ROOT_WAITTIME (20) seconds.

This helps for root on hot-plug devices like USB disks.

Revision 1.231 / (download) - annotate - [select for diffs], Thu Jan 19 07:40:58 2023 UTC (13 months, 1 week ago) by mlelstv
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.230: +19 -6 lines
Diff to previous 1.230 (colored)

If a specified root device does not exist when the kernel tries to
mount the root filesystem, retry for up to ROOT_WAITTIME (20) seconds.
This helps for root on hot-plug devices like USB disks.

Revision 1.230 / (download) - annotate - [select for diffs], Sat Mar 19 13:51:35 2022 UTC (23 months, 2 weeks ago) by hannken
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.229: +4 -2 lines
Diff to previous 1.229 (colored)

Fix locking after opendisk(), VOP_IOCTL() needs an unlocked vnode,
vn_rdwr() needs flag IO_NODELOCKED.

Revision 1.223.4.2 / (download) - annotate - [select for diffs], Fri Mar 5 13:48:27 2021 UTC (2 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.223.4.1: +15 -3 lines
Diff to previous 1.223.4.1 (colored) to branchpoint 1.223 (colored) next main 1.224 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #1222):

	sys/kern/kern_subr.c: revision 1.229

Restore missing message for RB_ASKNAME.
Cleanups.

Revision 1.228.8.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:14 2020 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.228: +15 -3 lines
Diff to previous 1.228 (colored) next main 1.229 (colored)

Sync w/ HEAD.

Revision 1.229 / (download) - annotate - [select for diffs], Sat Nov 21 08:10:27 2020 UTC (3 years, 3 months ago) by mlelstv
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.228: +15 -3 lines
Diff to previous 1.228 (colored)

Restore missing message for RB_ASKNAME.
Cleanups.

Revision 1.219.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:04 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.219.4.1: +57 -43 lines
Diff to previous 1.219.4.1 (colored) to branchpoint 1.219 (colored) next main 1.220 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.228 / (download) - annotate - [select for diffs], Wed Jan 1 22:57:17 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Changes since 1.227: +6 -6 lines
Diff to previous 1.227 (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.217.10.2 / (download) - annotate - [select for diffs], Wed Sep 18 17:22:32 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.217.10.1: +12 -7 lines
Diff to previous 1.217.10.1 (colored) to branchpoint 1.217 (colored) next main 1.218 (colored)

Pull up following revision(s) (requested by manu in ticket #1381):

	share/man/man8/man8.x86/boot.8: revision 1.18
	sys/kern/kern_subr.c: revision 1.227

Accept root device specification as NAME=label
Document that bootdev option accepts device specification as NAME=label

Revision 1.223.4.1 / (download) - annotate - [select for diffs], Tue Sep 17 19:45:03 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.223: +12 -7 lines
Diff to previous 1.223 (colored)

Pull up following revision(s) (requested by manu in ticket #205):

	share/man/man8/man8.x86/boot.8: revision 1.18
	sys/kern/kern_subr.c: revision 1.227

Accept root device specification as NAME=label
Document that bootdev option accepts device specification as NAME=label

Revision 1.227 / (download) - annotate - [select for diffs], Mon Sep 16 00:01:16 2019 UTC (4 years, 5 months ago) by manu
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.226: +12 -7 lines
Diff to previous 1.226 (colored)

Accept root device specification as NAME=label

Revision 1.226 / (download) - annotate - [select for diffs], Sun Sep 15 23:59:33 2019 UTC (4 years, 5 months ago) by manu
Branch: MAIN
Changes since 1.225: +0 -10 lines
Diff to previous 1.225 (colored)

Rollback change to accept NAME=label root device specification

As suggested by Michael van Elst, the operation should be done
int getwedgename()

Revision 1.225 / (download) - annotate - [select for diffs], Fri Sep 13 01:33:20 2019 UTC (4 years, 5 months ago) by manu
Branch: MAIN
Changes since 1.224: +12 -2 lines
Diff to previous 1.224 (colored)

Accept root device specification as NAME=label

Revision 1.224 / (download) - annotate - [select for diffs], Sun Aug 18 06:28:42 2019 UTC (4 years, 6 months ago) by mlelstv
Branch: MAIN
Changes since 1.223: +45 -36 lines
Diff to previous 1.223 (colored)

Align parsing of boot devices. This allows to specify device names
as strings in the boot loader and the kernel configuration.

Revision 1.219.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.219: +270 -191 lines
Diff to previous 1.219 (colored)

Sync with HEAD

Revision 1.223 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:43 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.222: +2 -2 lines
Diff to previous 1.222 (colored)

Merge the [pgoyette-compat] branch

Revision 1.219.2.2 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:57 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.219.2.1: +268 -191 lines
Diff to previous 1.219.2.1 (colored) to branchpoint 1.219 (colored) next main 1.220 (colored)

Synch with HEAD

Revision 1.222 / (download) - annotate - [select for diffs], Sat Jan 5 18:03:41 2019 UTC (5 years, 1 month ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118
Changes since 1.221: +25 -5 lines
Diff to previous 1.221 (colored)

Restore code to create md0, this fixes booting an INSTALL kernel.

Revision 1.221 / (download) - annotate - [select for diffs], Sat Jan 5 09:39:56 2019 UTC (5 years, 1 month ago) by mlelstv
Branch: MAIN
Changes since 1.220: +248 -191 lines
Diff to previous 1.220 (colored)

Refactor setroot, no functional change intended.

setroot
- prepare special cases
- loop until root is set

setroot_nfs
- special case for disk boot + NFS root

setroot_ask
- Prompt user

setroot_root
- set root device

setroot_dump
- set dump device

Revision 1.219.2.1 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:45 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.219: +8 -6 lines
Diff to previous 1.219 (colored)

Sync with head

Revision 1.217.10.1 / (download) - annotate - [select for diffs], Sat Oct 13 17:14:13 2018 UTC (5 years, 4 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.217: +8 -6 lines
Diff to previous 1.217 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #1056):

	sys/kern/kern_subr.c: revision 1.220

Set rootdev for wedges.

Revision 1.220 / (download) - annotate - [select for diffs], Sun Oct 7 11:24:16 2018 UTC (5 years, 4 months ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020
Changes since 1.219: +8 -6 lines
Diff to previous 1.219 (colored)

Set rootdev for wedges.

Revision 1.213.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:44 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.213.2.1: +17 -5 lines
Diff to previous 1.213.2.1 (colored) to branchpoint 1.213 (colored) next main 1.214 (colored)

update from HEAD

Revision 1.219 / (download) - annotate - [select for diffs], Tue Nov 14 14:14:29 2017 UTC (6 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.218: +6 -5 lines
Diff to previous 1.218 (colored)

Include "flash" in list of block devices that don't use partitions.

Revision 1.218 / (download) - annotate - [select for diffs], Thu Nov 9 01:02:55 2017 UTC (6 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.217: +3 -2 lines
Diff to previous 1.217 (colored)

add a "booted_method" string to aid in debugging double boot matches.

Revision 1.214.4.1 / (download) - annotate - [select for diffs], Tue Jul 5 19:06:48 2016 UTC (7 years, 7 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.214: +4 -3 lines
Diff to previous 1.214 (colored) next main 1.215 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #1185):
	sys/kern/kern_subr.c: revision 1.215
don't crash if rootspec is invalid

Revision 1.216.2.1 / (download) - annotate - [select for diffs], Sun May 29 08:44:37 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.216: +5 -3 lines
Diff to previous 1.216 (colored) next main 1.217 (colored)

Sync with HEAD

Revision 1.217 / (download) - annotate - [select for diffs], Thu May 12 02:24:16 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.216: +5 -3 lines
Diff to previous 1.216 (colored)

Protect ifnet list with psz and psref

The change ensures that ifnet objects in the ifnet list aren't freed during
list iterations by using pserialize(9) and psref(9).

Note that the change adds a pslist(9) for ifnet but doesn't remove the
original ifnet list (ifnet_list) to avoid breaking kvm(3) users. We
shouldn't use the original list in the kernel anymore.

Revision 1.216 / (download) - annotate - [select for diffs], Sat Nov 22 11:04:57 2014 UTC (9 years, 3 months ago) by mlelstv
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.215: +7 -0 lines
Diff to previous 1.215 (colored)

Let MD code provide boot disk information as spec string that can be
parsed by MI code. The format is the same as provided by an embedded
'root on <rootspec>' string in the config file. An embedded string
(other than a wildcard) still takes precedence.

Revision 1.215 / (download) - annotate - [select for diffs], Sat Nov 22 10:24:02 2014 UTC (9 years, 3 months ago) by mlelstv
Branch: MAIN
Changes since 1.214: +4 -3 lines
Diff to previous 1.214 (colored)

don't crash if rootspec is invalid

Revision 1.213.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.213: +2 -85 lines
Diff to previous 1.213 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.212.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.212.2.1: +2 -85 lines
Diff to previous 1.212.2.1 (colored) to branchpoint 1.212 (colored) next main 1.213 (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.213.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.213: +2 -85 lines
Diff to previous 1.213 (colored) next main 1.214 (colored)

sync with head

Revision 1.214 / (download) - annotate - [select for diffs], Mon Dec 9 16:49:43 2013 UTC (10 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base, 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
Branch point for: netbsd-7
Changes since 1.213: +2 -85 lines
Diff to previous 1.213 (colored)

Group more syscall related routines together (kern_subr -> kern_syscall)

Revision 1.212.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:31 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.212: +5 -5 lines
Diff to previous 1.212 (colored)

sync with head

Revision 1.212.8.1 / (download) - annotate - [select for diffs], Thu Jul 5 18:12:47 2012 UTC (11 years, 7 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.212: +5 -5 lines
Diff to previous 1.212 (colored) next main 1.213 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #402):
	sys/dev/vnd.c: revision 1.221
	sys/kern/init_main.c: revision 1.443
	sys/kern/init_main.c: revision 1.444
	sys/dev/dkwedge/dk.c: revision 1.64
	sys/arch/x86/x86/x86_autoconf.c: revision 1.63
	sys/arch/sparc64/sparc64/autoconf.c: revision 1.187
	sys/sys/device.h: revision 1.141
	sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.17
	sys/kern/kern_subr.c: revision 1.213
	sys/arch/zaurus/zaurus/autoconf.c: revision 1.11
	sys/arch/xen/x86/autoconf.c: revision 1.14
	sys/sys/disk.h: revision 1.57
Use the label's packname to create wedge names instead of the classic
device names. Fall back to classic device names when the label has an
empty name or the default name 'fictitious'.
autodiscover wedges
Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for x86, xen, sparc64.
Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for zaurus.
Do not try to find the wedge we booted from if opendisk(booted_device)
failed.

Revision 1.213 / (download) - annotate - [select for diffs], Sun Jun 10 17:05:18 2012 UTC (11 years, 8 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.212: +5 -5 lines
Diff to previous 1.212 (colored)

Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for x86, xen, sparc64.

Revision 1.192.4.2 / (download) - annotate - [select for diffs], Sat Feb 4 16:57:59 2012 UTC (12 years ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.192.4.1: +17 -5 lines
Diff to previous 1.192.4.1 (colored) to branchpoint 1.192 (colored) next main 1.193 (colored)

Apply patch, requested by jmcneill in ticket #1668:
	sys/arch/amd64/amd64/syscall.c			patch
	sys/arch/i386/i386/syscall.c			patch
	sys/arch/i386/i386/trap.c			patch
	sys/kern/kern_sig.c				patch
	sys/kern/kern_sleepq.c				patch
	sys/kern/kern_subr.c				patch
	sys/kern/sys_process.c				patch
	sys/secmodel/bsd44/secmodel_bsd44_suser.c	patch
	sys/sys/proc.h					patch
	sys/sys/ptrace.h				patch

arch/i386/i386/machdep.c, arch/amd64/amd64/machdep.c (from
arch/x86/x86/machdep.c) by christos:
Remove code that was used to avoid register spills. setcontext(2) can change
the registers, so re-fetching will produce the wrong result for trace_exit().
arch/i386/i386/trap.c by reinoud:
Fix the illegal instruction return address. It was using the value of the
cpu's %cr2 register but thats not valid:

CR2 Contains a value called Page Fault Linear Address (PFLA). When a page
fault occurs, the address the program attempted to access is stored in the CR2
register.

And this is thus NOT the illegal instruction address!
kern/kern_sig.c by christos:
PR kern/45327: Jared McNeill: ptrace: siginfo doesn't work with traced processes
When saving the signal in p->p_xstat, clear it from the pending mask, but
don't remove it from the siginfo queue, so that next time the debugger
delivers it, the original information is found.
When posting a signal from the debugger l->l_sigpendset is not set, so we
use the process pending signal and add it back to the process pending set.
Split sigget into sigget() and siggetinfo(). When a signal comes from the
debugger (l->l_sigpendset == NULL), using siggetinfo() try to fetch the
siginfo information from l->l_sigpend and then from p->p_sigpend if it
was not found. This allows us to pass siginfo information for traps from
the debugger.
don't delete signal from the debugger.
kern/kern_sleepq.c by christos:
PR kern/40594: Antti Kantee: Don't call issignal() here to determine what errno
to set for the interrupted syscall, because issignal() will consume the signal
and it will not be delivered to the process afterwards. Instead call
sigispending() (which now returns the first pending signal) and does not
consume the signal.
We need to process SA_STOP signals immediately, and not deliver them to
the process. Instead of re-structuring the code to do that, call issignal()
like before in that case. (tail -F /file^Zfg should not get interrupted).
kern/kern_subr.c by jmcneill, christos:
PR kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.
For PT_SYSCALLEMU, no need to stop again on syscall exit.
ifdef unused variable with -UPTRACE

kern/sys_process.c, sys/proc.h, sys/ptrace.h, secmodel/bsd44/secmodel_bsd44_suser.c by jmcneill, christos:
PR kern/43681: PT_SYSCALL appears to be broken

sys_ptrace: For PT_CONTINUE/PT_SYSCALL/PT_DETACH, modify the p_trace_enabled
flag of the target process, not the calling process.
Process the signal now, otherwise calling issignal() and ignoring
the return will lose the signal if it came from the debugger
(issignal() clears p->p_xstat)
PR kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.
PR kern/45330: ptrace: signals can alter syscall return values

process_stoptrace: defer signal processing to userret, ok christos@

Revision 1.212 / (download) - annotate - [select for diffs], Mon Sep 19 23:54:29 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.211: +4 -2 lines
Diff to previous 1.211 (colored)

ifdef unused variable with -UPTRACE

Revision 1.211 / (download) - annotate - [select for diffs], Wed Aug 31 23:42:46 2011 UTC (12 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.210: +6 -4 lines
Diff to previous 1.210 (colored)

For PT_SYSCALLEMU, no need to stop again on syscall exit.

Revision 1.210 / (download) - annotate - [select for diffs], Wed Aug 31 22:58:39 2011 UTC (12 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.209: +12 -4 lines
Diff to previous 1.209 (colored)

PR# kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.

Revision 1.209 / (download) - annotate - [select for diffs], Wed Jul 27 14:35:34 2011 UTC (12 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.208: +2 -4 lines
Diff to previous 1.208 (colored)

These don't need uvm/uvm_extern.h.

Revision 1.206.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:16 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.206.4.1: +18 -15 lines
Diff to previous 1.206.4.1 (colored) to branchpoint 1.206 (colored) next main 1.207 (colored)

sync with head

Revision 1.192.4.1.8.1 / (download) - annotate - [select for diffs], Fri Jan 7 02:18:07 2011 UTC (13 years, 1 month ago) by matt
Branch: matt-nb5-pq3
Changes since 1.192.4.1: +29 -2 lines
Diff to previous 1.192.4.1 (colored) next main 1.192.4.2 (colored)

Add critpoll hooks.

Revision 1.208 / (download) - annotate - [select for diffs], Thu Nov 11 11:07:07 2010 UTC (13 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.207: +18 -15 lines
Diff to previous 1.207 (colored)

Change md(4) to:
- create md devices on first open and destroy on last close.
- add enough disk label support to make DIOCGDINFO and DIOCGPART work.
- add disk_busy()/disk_unbusy() instrumentation.

Ok: David Young <dyoung@netbsd.org>

Revision 1.185.2.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:40 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.185.2.3: +2 -102 lines
Diff to previous 1.185.2.3 (colored) to branchpoint 1.185 (colored) next main 1.186 (colored)

sync with head.

Revision 1.192.4.1.4.4 / (download) - annotate - [select for diffs], Thu Jun 10 00:42:16 2010 UTC (13 years, 8 months ago) by cliff
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.192.4.1.4.3: +15 -4 lines
Diff to previous 1.192.4.1.4.3 (colored) to branchpoint 1.192.4.1 (colored) next main 1.192.4.2 (colored)

- in setroot(), in the `root on <dev> ...' case, if the lookup failed
and we have no rootdev, then we have to ASK.

Revision 1.192.4.1.4.3 / (download) - annotate - [select for diffs], Tue Jun 8 18:29:11 2010 UTC (13 years, 8 months ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.192.4.1.4.2: +4 -13 lines
Diff to previous 1.192.4.1.4.2 (colored) to branchpoint 1.192.4.1 (colored)

pulled fix from -current (1.207) back to setroot():
when there is a rootspec, but it's a disk, don't say it's "not configured"
just on the basis of finddevice() returning NULL -- that will always happen
when e.g. rootspec is "sd0a" and the device xname is "sd0".

Revision 1.206.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:57 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.206: +2 -102 lines
Diff to previous 1.206 (colored)

sync with head

Revision 1.206.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:10 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.206: +2 -102 lines
Diff to previous 1.206 (colored) next main 1.207 (colored)

Sync with HEAD.

Revision 1.207 / (download) - annotate - [select for diffs], Wed Apr 14 14:46:59 2010 UTC (13 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Changes since 1.206: +2 -102 lines
Diff to previous 1.206 (colored)

Move routines related to syscall establishment from kern_subr.c and
kern_stub.c to kern_syscall.c.

Revision 1.185.2.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:17 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.185.2.2: +28 -661 lines
Diff to previous 1.185.2.2 (colored) to branchpoint 1.185 (colored)

sync with head

Revision 1.206 / (download) - annotate - [select for diffs], Sun Jan 31 01:38:48 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.205: +2 -327 lines
Diff to previous 1.205 (colored)

Place *hook implementations in kern_hook.c instead of them floating
around in the kern_subr.c gruel.  Arrrrr.

Revision 1.205 / (download) - annotate - [select for diffs], Sun Jan 31 00:48:07 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.204: +7 -7 lines
Diff to previous 1.204 (colored)

Use proper static initializers for *hooklist (currently they happened
to work accidentally anyway since the initializer is 0).

Revision 1.204 / (download) - annotate - [select for diffs], Sat Jan 30 23:19:55 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.203: +11 -15 lines
Diff to previous 1.203 (colored)

Trade 200-something bytes for the death of an ifdef.

Revision 1.192.4.1.4.2 / (download) - annotate - [select for diffs], Tue Jan 26 04:51:03 2010 UTC (14 years, 1 month ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.192.4.1.4.1: +2 -5 lines
Diff to previous 1.192.4.1.4.1 (colored) to branchpoint 1.192.4.1 (colored)

remove debug prints

Revision 1.192.4.1.4.1 / (download) - annotate - [select for diffs], Tue Jan 26 04:41:07 2010 UTC (14 years, 1 month ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.192.4.1: +15 -4 lines
Diff to previous 1.192.4.1 (colored)

fix bug in setroot() where device_class() would be called
with NULL pointer arg if root is specified in config but
the specified device does not exist in the system.

Revision 1.203 / (download) - annotate - [select for diffs], Thu Nov 5 18:07:19 2009 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.202: +11 -5 lines
Diff to previous 1.202 (colored)

Use deviter(9) instead of accessing alldevs directly.

Revision 1.202 / (download) - annotate - [select for diffs], Wed Nov 4 16:54:00 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.201: +2 -240 lines
Diff to previous 1.201 (colored)

Split uiomove() and high-level copy routines out of the crowded
kern_subr and into their own cozy home in subr_copy.

Revision 1.201 / (download) - annotate - [select for diffs], Fri Oct 2 15:48:41 2009 UTC (14 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.200: +2 -74 lines
Diff to previous 1.200 (colored)

Give humanize_number & format_bytes their own spots in the sun and move
from kern_subr to subr_humanize.

Revision 1.200 / (download) - annotate - [select for diffs], Fri Sep 25 19:21:09 2009 UTC (14 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.199: +20 -20 lines
Diff to previous 1.199 (colored)

Replace 'struct device *' with 'device_t', throughout.  No functional
change intended.

Revision 1.198.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:56 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.198: +6 -3 lines
Diff to previous 1.198 (colored) next main 1.199 (colored)

Sync with HEAD.

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

Revision 1.185.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:47 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.185.2.1: +156 -80 lines
Diff to previous 1.185.2.1 (colored) to branchpoint 1.185 (colored)

sync with head.

Revision 1.192.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:59 2009 UTC (14 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.192.2.1: +6 -3 lines
Diff to previous 1.192.2.1 (colored) to branchpoint 1.192 (colored) next main 1.193 (colored)

Sync with HEAD.

Revision 1.199 / (download) - annotate - [select for diffs], Thu Apr 2 17:25:24 2009 UTC (14 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.198: +6 -3 lines
Diff to previous 1.198 (colored)

In humanize_number(), avoid an integer overflow if the buffer
provided is "too large" (log10(2^64) = 19).
(It can still overflow if the input value is close to 2^64 but I don't
consider this a problem.)
fixes nonsense displayed as "total memory" on boot

Revision 1.192.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:38 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.192: +140 -22 lines
Diff to previous 1.192 (colored)

Sync with HEAD.

Revision 1.181.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:19 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.181.6.4: +138 -22 lines
Diff to previous 1.181.6.4 (colored) to branchpoint 1.181 (colored) next main 1.182 (colored)

Sync with HEAD.

Revision 1.198 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:52 2009 UTC (15 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.197: +12 -11 lines
Diff to previous 1.197 (colored)

merge christos-time_t

Revision 1.183.2.6 / (download) - annotate - [select for diffs], Tue Dec 30 19:31:51 2008 UTC (15 years, 2 months ago) by christos
Branch: christos-time_t
Changes since 1.183.2.5: +5 -4 lines
Diff to previous 1.183.2.5 (colored) to branchpoint 1.183 (colored) next main 1.184 (colored)

fix dev_t and time_t format.

Revision 1.183.2.5 / (download) - annotate - [select for diffs], Sat Dec 27 23:14:24 2008 UTC (15 years, 2 months ago) by christos
Branch: christos-time_t
Changes since 1.183.2.4: +22 -9 lines
Diff to previous 1.183.2.4 (colored) to branchpoint 1.183 (colored)

merge with head.

Revision 1.197 / (download) - annotate - [select for diffs], Fri Dec 19 17:11:57 2008 UTC (15 years, 2 months ago) by pgoyette
Branch: MAIN
CVS Tags: christos-time_t-nbase, christos-time_t-base
Changes since 1.196: +19 -9 lines
Diff to previous 1.196 (colored)

Store config(1)'s root filesystem type as a text string rather than
embedding the address of its xxx_mountroot() in swapnetbsd.c.  This
permits booting of kernels with hard-wired filesystem type even if the
filesystem is in a loadable module (ie, not linked into the kernel
image).

Discussed on current-users.  Tested on amd64 and i386 with both hard-
wired and '?' filesystem times, and on both modular and monolithic
kernels.

Thanks to pooka@ for code review and suggestions.

Addresses my PR kern/40167

Revision 1.190.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:08 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.190.2.1: +113 -6 lines
Diff to previous 1.190.2.1 (colored) to branchpoint 1.190 (colored) next main 1.191 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.196 / (download) - annotate - [select for diffs], Thu Nov 27 21:36:51 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.195: +5 -2 lines
Diff to previous 1.195 (colored)

better error messages, and more messages for DIAGNOSTIC.

Revision 1.183.2.4 / (download) - annotate - [select for diffs], Thu Nov 20 20:45:39 2008 UTC (15 years, 3 months ago) by christos
Branch: christos-time_t
Changes since 1.183.2.3: +110 -6 lines
Diff to previous 1.183.2.3 (colored) to branchpoint 1.183 (colored)

merge with head.

Revision 1.192.4.1 / (download) - annotate - [select for diffs], Mon Nov 17 18:56:05 2008 UTC (15 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-pq3, matt-nb5-mips64
Changes since 1.192: +12 -3 lines
Diff to previous 1.192 (colored)

Pull up following revision(s) (requested by ad in ticket #75):
	sys/kern/kern_subr.c: revision 1.195
PR kern/39913 exec, fork, exit hooks need locking
Acquire exec_lock where needed.

Revision 1.195 / (download) - annotate - [select for diffs], Fri Nov 14 13:01:18 2008 UTC (15 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.194: +12 -3 lines
Diff to previous 1.194 (colored)

PR kern/39913 exec, fork, exit hooks need locking

Acquire exec_lock where needed.

Revision 1.194 / (download) - annotate - [select for diffs], Wed Nov 12 14:29:31 2008 UTC (15 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.193: +100 -2 lines
Diff to previous 1.193 (colored)

Atomic insertion/removal of groups of system call vectors at runtime with
a basic facility for rollback.

Proposed on tech-kern@.

Revision 1.193 / (download) - annotate - [select for diffs], Tue Nov 11 06:46:44 2008 UTC (15 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.192: +2 -5 lines
Diff to previous 1.192 (colored)

It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.

Revision 1.183.2.3 / (download) - annotate - [select for diffs], Sun Nov 9 01:54:31 2008 UTC (15 years, 3 months ago) by christos
Branch: christos-time_t
Changes since 1.183.2.2: +8 -8 lines
Diff to previous 1.183.2.2 (colored) to branchpoint 1.183 (colored)

fix fhstat
make major and minor ull

Revision 1.183.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:27 2008 UTC (15 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.183.2.1: +34 -108 lines
Diff to previous 1.183.2.1 (colored) to branchpoint 1.183 (colored)

Sync with head.

Revision 1.190.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:28 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.190: +4 -6 lines
Diff to previous 1.190 (colored)

Sync with HEAD.

Revision 1.192 / (download) - annotate - [select for diffs], Tue Oct 14 14:17:49 2008 UTC (15 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.191: +2 -4 lines
Diff to previous 1.191 (colored)

M_IOV is used all over the place, so stuff it in with malloc_stdtypes

Revision 1.181.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:52 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.181.6.3: +2 -2 lines
Diff to previous 1.181.6.3 (colored) to branchpoint 1.181 (colored)

Sync with HEAD.

Revision 1.187.2.2 / (download) - annotate - [select for diffs], Wed Sep 24 16:38:56 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.187.2.1: +4 -4 lines
Diff to previous 1.187.2.1 (colored) to branchpoint 1.187 (colored) next main 1.188 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.191 / (download) - annotate - [select for diffs], Mon Sep 15 18:12:56 2008 UTC (15 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3
Changes since 1.190: +4 -4 lines
Diff to previous 1.190 (colored)

Replace intptr_t with uintptr_t in few more places.
OK by <matt>.

Revision 1.181.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:14 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.181.6.2: +6 -44 lines
Diff to previous 1.181.6.2 (colored) to branchpoint 1.181 (colored)

Sync with HEAD.

Revision 1.187.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.187: +12 -55 lines
Diff to previous 1.187 (colored)

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

Revision 1.189.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:35 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.189: +8 -46 lines
Diff to previous 1.189 (colored) next main 1.190 (colored)

Sync with head.

Revision 1.184.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:03 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.184.2.2: +8 -46 lines
Diff to previous 1.184.2.2 (colored) to branchpoint 1.184 (colored) next main 1.185 (colored)

sync with head.

Revision 1.190 / (download) - annotate - [select for diffs], Wed Jun 11 10:40:21 2008 UTC (15 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.189: +8 -46 lines
Diff to previous 1.189 (colored)

remove the hacks around fakemdrootdev[] which should be unnecessary now
that "md" devices show up in the "alldevs" list

Revision 1.184.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.184.2.1: +6 -11 lines
Diff to previous 1.184.2.1 (colored) to branchpoint 1.184 (colored)

sync with head

Revision 1.181.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:09 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.181.6.1: +56 -90 lines
Diff to previous 1.181.6.1 (colored) to branchpoint 1.181 (colored)

Sync with HEAD.

Revision 1.189 / (download) - annotate - [select for diffs], Wed May 28 15:40:58 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.188: +2 -10 lines
Diff to previous 1.188 (colored)

Run shutdown hooks whether or not the kernel has panicked.  Restores
NetBSD's shutdown behavior of more than 6 years before rev 1.176.
Ok joerg@.

It is essential that we restore some hardware to initial conditions
before rebooting, in order to avoid interfering with the BIOS
bootstrap.  For example, if NetBSD gives control back to the Soekris
comBIOS while the kernel text is write-protected, the BIOS bootstrap
hangs during the power-on self-test, "POST: 0123456789bcefghip".
In principle, bus masters can also interfere with BIOS boot.

Revision 1.188 / (download) - annotate - [select for diffs], Sat May 24 16:49:30 2008 UTC (15 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.187: +6 -3 lines
Diff to previous 1.187 (colored)

Coverity CID 5019: Check before deref.

Revision 1.184.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:08 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.184: +42 -71 lines
Diff to previous 1.184 (colored)

sync with head.

Revision 1.185.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:26 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.185: +41 -52 lines
Diff to previous 1.185 (colored)

sync with head.

Revision 1.187 / (download) - annotate - [select for diffs], Fri May 2 13:02:31 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.186: +41 -45 lines
Diff to previous 1.186 (colored)

Allow md_root_setconf() to set in a miniroot as the root file system
even if MEMORY_DISK_IS_ROOT is not defined (a runtime override).

Revision 1.186 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:03 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.185: +2 -9 lines
Diff to previous 1.185 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.185 / (download) - annotate - [select for diffs], Sun Apr 27 11:37:48 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.184: +3 -21 lines
Diff to previous 1.184 (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.184 / (download) - annotate - [select for diffs], Fri Apr 4 20:13:18 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.183: +15 -15 lines
Diff to previous 1.183 (colored)

use device_xname() where appropriate
OK martin

Revision 1.181.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:02 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.181: +5 -3 lines
Diff to previous 1.181 (colored)

Sync with HEAD.

Revision 1.183.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:47:00 2008 UTC (15 years, 11 months ago) by christos
Branch: christos-time_t
Changes since 1.183: +4 -4 lines
Diff to previous 1.183 (colored)

Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.181.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:14 2008 UTC (15 years, 11 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.181: +5 -3 lines
Diff to previous 1.181 (colored) next main 1.182 (colored)

sync with head.

Revision 1.164.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:59 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.164.2.2: +23 -33 lines
Diff to previous 1.164.2.2 (colored) to branchpoint 1.164 (colored) next main 1.165 (colored)

sync with HEAD

Revision 1.117.2.10 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:33 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117.2.9: +5 -3 lines
Diff to previous 1.117.2.9 (colored) next main 1.118 (colored)

sync with head.

Revision 1.183 / (download) - annotate - [select for diffs], Mon Mar 17 08:27:50 2008 UTC (15 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: christos-time_t
Changes since 1.182: +3 -3 lines
Diff to previous 1.182 (colored)

- simplify ASSERT_SLEEPABLE.
- move it from proc.h to systm.h.
- add some more checks.
- make it a little more lkm friendly.

Revision 1.182 / (download) - annotate - [select for diffs], Thu Feb 28 14:25:12 2008 UTC (16 years ago) by drochner
Branch: MAIN
Changes since 1.181: +4 -2 lines
Diff to previous 1.181 (colored)

Extend the pmf suspend/resume hooks by a shutdown method, so drivers
can register a shutdown handler explicitely.
Install a pci bus shutdown handler which disables bus master accesses
for all childs, so the drivers don't need to care.
This will hopefully be sufficient to replace the shutdownhooks
(together with the powerhooks). (It has been suggested to use some
general event notification framework for shutdown handlers, but there
might be cases where shutdown handlers must be run in an order following
the device hierarchy, which wouldn't be easy with event handlers
not tied to drivers.)
approved by David Young

Revision 1.117.2.9 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:55 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117.2.8: +6 -15 lines
Diff to previous 1.117.2.8 (colored)

sync with head.

Revision 1.181 / (download) - annotate - [select for diffs], Wed Feb 20 23:30:13 2008 UTC (16 years ago) by drochner
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.180: +2 -4 lines
Diff to previous 1.180 (colored)

Don't call pmf_system_shutdown() from doshutdownhooks() -- it does way
too much in the RB_HALT case, making the "press a key to reboot" prompt
a bad joke. doshutdownhooks() should do shutdownhooks, not more.
Since it is md code which decides about halt/poweroff etc,
pmf_system_shutdown() should be called from there if appropriate.

Revision 1.180 / (download) - annotate - [select for diffs], Wed Feb 20 15:08:14 2008 UTC (16 years ago) by njoly
Branch: MAIN
Changes since 1.179: +3 -3 lines
Diff to previous 1.179 (colored)

Make cnt of type size_t, to avoid uiomove() overrun its iovecs.
This makes write(2) works with large buffers (>=4GB).

Fix from pooka, tested by myself.

Revision 1.165.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:46 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.165.4.2: +26 -68 lines
Diff to previous 1.165.4.2 (colored) to branchpoint 1.165 (colored) next main 1.166 (colored)

Sync with HEAD.

Revision 1.179 / (download) - annotate - [select for diffs], Tue Feb 12 17:30:59 2008 UTC (16 years ago) by joerg
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.178: +3 -8 lines
Diff to previous 1.178 (colored)

Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.

Revision 1.178 / (download) - annotate - [select for diffs], Mon Feb 11 22:20:11 2008 UTC (16 years ago) by dyoung
Branch: MAIN
Changes since 1.177: +4 -6 lines
Diff to previous 1.177 (colored)

Use LIST_FOREACH().  Join lines.

Revision 1.117.2.8 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:58 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117.2.7: +5 -9 lines
Diff to previous 1.117.2.7 (colored)

sync with head.

Revision 1.177 / (download) - annotate - [select for diffs], Wed Feb 6 22:12:42 2008 UTC (16 years ago) by dsl
Branch: MAIN
Changes since 1.176: +5 -9 lines
Diff to previous 1.176 (colored)

Remove the 'args' parameter to 'trace_exit()' it is no longer used.
Instead of passing the (un)real system call code and syscall table pointer,
just pass the number of arguments - which is what ktrace really wants.
Ride forthcoming 4.99.53

Revision 1.117.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:12 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117.2.6: +28 -55 lines
Diff to previous 1.117.2.6 (colored)

sync with head

Revision 1.167.2.4 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:22 2008 UTC (16 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.167.2.3: +12 -0 lines
Diff to previous 1.167.2.3 (colored) to branchpoint 1.167 (colored) next main 1.168 (colored)

Sync with HEAD

Revision 1.176 / (download) - annotate - [select for diffs], Fri Jan 18 01:22:18 2008 UTC (16 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.175: +10 -2 lines
Diff to previous 1.175 (colored)

Short cut doshutdownhooks on panic. The system is wedged and so avoid
anything that could make the status worse.

Revision 1.175 / (download) - annotate - [select for diffs], Tue Jan 15 14:26:42 2008 UTC (16 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.174: +6 -2 lines
Diff to previous 1.174 (colored)

Don't use the block device to read crashdumps, if possible.

Revision 1.167.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 23:44:27 2008 UTC (16 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.167.2.2: +0 -11 lines
Diff to previous 1.167.2.2 (colored) to branchpoint 1.167 (colored)

Sync with HEAD

Revision 1.174 / (download) - annotate - [select for diffs], Thu Jan 10 16:29:17 2008 UTC (16 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.173: +2 -13 lines
Diff to previous 1.173 (colored)

uiomove: don't bother with kernel_lock any more.

Revision 1.164.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:09 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.164.2.1: +18 -46 lines
Diff to previous 1.164.2.1 (colored) to branchpoint 1.164 (colored)

sync with HEAD

Revision 1.167.2.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:36 2008 UTC (16 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.167.2.1: +8 -18 lines
Diff to previous 1.167.2.1 (colored) to branchpoint 1.167 (colored)

Sync with HEAD

Revision 1.173 / (download) - annotate - [select for diffs], Sat Jan 5 12:53:55 2008 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.172: +4 -4 lines
Diff to previous 1.172 (colored)

Don't pass 'curlwp' into trace_enter() and trace_exit().

Revision 1.172 / (download) - annotate - [select for diffs], Sat Jan 5 12:41:43 2008 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.171: +6 -16 lines
Diff to previous 1.171 (colored)

Don't pass curlwp into process_stoptrace()

Revision 1.171 / (download) - annotate - [select for diffs], Sat Jan 5 12:30:47 2008 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.170: +4 -4 lines
Diff to previous 1.170 (colored)

Don't pass l (== curlwp) into the system call trace code.
Delete inclusion of opt_syscall_debug.h into systm.h, every kernel object
file doesn't need to depend on opt_syscall_debug.h!

Revision 1.167.2.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:00 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.167: +10 -32 lines
Diff to previous 1.167 (colored)

Sync with HEAD

Revision 1.170 / (download) - annotate - [select for diffs], Mon Dec 31 15:32:11 2007 UTC (16 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.169: +6 -28 lines
Diff to previous 1.169 (colored)

Remove systrace. Ok core@.

Revision 1.165.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:02 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.165.4.1: +10 -6 lines
Diff to previous 1.165.4.1 (colored) to branchpoint 1.165 (colored)

Sync with HEAD.

Revision 1.166.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:09 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.166: +10 -6 lines
Diff to previous 1.166 (colored) next main 1.167 (colored)

Sync with head.

Revision 1.169 / (download) - annotate - [select for diffs], Sat Dec 22 16:19:34 2007 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.168: +3 -3 lines
Diff to previous 1.168 (colored)

Further constification of the syscall args buffer.
It will get __UNCONST() applied in the systrace code if/when systrace tries
to change the arguments.  This sucks since the syscall args might be in
the trap frame, and the syscall might return ERESTART so the restarted call
would use the wrong arguments.
OTOH systrace() (as a security measure) is almost impossible to implement
for a threaded app (validated filenames can be changed before namei() reads
them into memory).
The current code is just plain broken for threaded apps - data that needs
to be lwp-specified is proc-specific.
I believe ad is planning to nuke systrace ...

Revision 1.168 / (download) - annotate - [select for diffs], Sat Dec 22 11:38:54 2007 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.167: +6 -6 lines
Diff to previous 1.167 (colored)

Add a few buckets of 'const' and 'static' to the system call trace code.
sys_trace() still needs to be able to update the syscall args.

Revision 1.166.4.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:44:12 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-kmem
Changes since 1.166: +6 -2 lines
Diff to previous 1.166 (colored) next main 1.167 (colored)

sync with head.

Revision 1.167 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:43 2007 UTC (16 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.166: +6 -2 lines
Diff to previous 1.166 (colored)

Merge jmcneill-pm branch.

Revision 1.165.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:32 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.165: +4 -4 lines
Diff to previous 1.165 (colored)

Sync with HEAD.

Revision 1.163.2.9 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:39 2007 UTC (16 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.163.2.8: +4 -4 lines
Diff to previous 1.163.2.8 (colored) to branchpoint 1.163 (colored) next main 1.164 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.117.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:50 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117.2.5: +4 -4 lines
Diff to previous 1.117.2.5 (colored)

sync with head

Revision 1.163.2.8 / (download) - annotate - [select for diffs], Tue Nov 27 19:38:05 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.163.2.7: +4 -4 lines
Diff to previous 1.163.2.7 (colored) to branchpoint 1.163 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.166 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:02 2007 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.165: +4 -4 lines
Diff to previous 1.165 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.163.2.7 / (download) - annotate - [select for diffs], Wed Nov 14 02:19:29 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.163.2.6: +3 -3 lines
Diff to previous 1.163.2.6 (colored) to branchpoint 1.163 (colored)

Introduce pnp_system_shutdown which just complains if drivers don't
support the PNP framework, give the user 2 seconds to worry about that
and runs the class and driver suspend functions. Keep all devices
powered e.g. to allow deciphering messages from the screen.
Drop the argument to pnp_system_suspend now that the use for it is gone.

Revision 1.164.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:58 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.164: +32 -5 lines
Diff to previous 1.164 (colored)

sync with HEAD

Revision 1.163.2.6 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:36 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.163.2.5: +3 -3 lines
Diff to previous 1.163.2.5 (colored) to branchpoint 1.163 (colored)

Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.117.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:28 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117.2.4: +32 -5 lines
Diff to previous 1.117.2.4 (colored)

sync with head.

Revision 1.163.2.5 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:36 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.163.2.4: +32 -5 lines
Diff to previous 1.163.2.4 (colored) to branchpoint 1.163 (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.164.4.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:43 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.164: +32 -5 lines
Diff to previous 1.164 (colored) next main 1.165 (colored)

sync with head.

Revision 1.165 / (download) - annotate - [select for diffs], Fri Oct 12 13:00:18 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.164: +32 -5 lines
Diff to previous 1.164 (colored)

Merge from vmlocking:

- uiomove: don't bother dropping kernel_lock if moving less than 1k.
- Catch up with vfsops reference counting changes (for LKMs).
- Add crit_enter()/crit_exit(). These bound critical sections in which
  kernel preemption is to be disabled. Better names welcome.

Revision 1.156.2.7 / (download) - annotate - [select for diffs], Mon Oct 8 20:23:59 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.156.2.6: +10 -4 lines
Diff to previous 1.156.2.6 (colored) to branchpoint 1.156 (colored) next main 1.157 (colored)

uiomove: don't bother dropping kernel_lock if moving less than 1k.

Revision 1.117.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:55 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117.2.3: +112 -123 lines
Diff to previous 1.117.2.3 (colored)

sync with head.

Revision 1.160.2.2 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:00 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.160.2.1: +4 -10 lines
Diff to previous 1.160.2.1 (colored) to branchpoint 1.160 (colored) next main 1.161 (colored)

Sync with HEAD.

Revision 1.163.2.4 / (download) - annotate - [select for diffs], Tue Aug 21 06:39:39 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.163.2.3: +5 -2 lines
Diff to previous 1.163.2.3 (colored) to branchpoint 1.163 (colored)

After the shutdown hooks, walk over the device tree once and put
all devices into D3 state. The assumption is that devices are
silenced by the PNP callback already and that avoids the need for
most driver shutdown hooks.

Revision 1.156.2.6 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:34 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.156.2.5: +10 -98 lines
Diff to previous 1.156.2.5 (colored) to branchpoint 1.156 (colored)

Sync with HEAD.

Revision 1.163.2.3 / (download) - annotate - [select for diffs], Thu Aug 16 11:03:34 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.163.2.2: +4 -10 lines
Diff to previous 1.163.2.2 (colored) to branchpoint 1.163 (colored)

Sync with HEAD.

Revision 1.160.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:10 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.160: +8 -90 lines
Diff to previous 1.160 (colored)

Sync with HEAD.

Revision 1.164 / (download) - annotate - [select for diffs], Wed Aug 15 12:07:34 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap, matt-armv6
Changes since 1.163: +4 -10 lines
Diff to previous 1.163 (colored)

Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.

Revision 1.163.2.2 / (download) - annotate - [select for diffs], Thu Aug 9 10:54:11 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.163.2.1: +3 -4 lines
Diff to previous 1.163.2.1 (colored) to branchpoint 1.163 (colored)

Cleanup powerhook_establish warning message.

Revision 1.163.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 22:17:28 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.163: +4 -2 lines
Diff to previous 1.163 (colored)

Pull in power management changes from private branch.

Revision 1.163.4.2 / (download) - annotate - [select for diffs], Wed Aug 1 19:50:25 2007 UTC (16 years, 7 months ago) by degroote
Branch: matt-mips64
Changes since 1.163.4.1: +1426 -0 lines
Diff to previous 1.163.4.1 (colored) to branchpoint 1.163 (colored) next main 1.164 (colored)

Fix compilation in the POWERHOOK_DEBUG case

Revision 1.163.4.1, Wed Aug 1 19:50:24 2007 UTC (16 years, 7 months ago) by degroote
Branch: matt-mips64
Changes since 1.163: +0 -1426 lines
FILE REMOVED

file kern_subr.c was added on branch matt-mips64 on 2007-08-01 19:50:25 +0000

Revision 1.163 / (download) - annotate - [select for diffs], Wed Aug 1 19:50:24 2007 UTC (16 years, 7 months ago) by degroote
Branch: MAIN
CVS Tags: matt-mips64-base
Branch point for: matt-mips64, jmcneill-pm
Changes since 1.162: +4 -4 lines
Diff to previous 1.162 (colored)

Fix compilation in the POWERHOOK_DEBUG case

Revision 1.162 / (download) - annotate - [select for diffs], Wed Aug 1 10:57:07 2007 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.161: +8 -24 lines
Diff to previous 1.161 (colored)

improve on poerhooks debugging. from Anon Ymous

Revision 1.161 / (download) - annotate - [select for diffs], Sat Jul 28 12:53:52 2007 UTC (16 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: hpcarm-cleanup
Changes since 1.160: +2 -68 lines
Diff to previous 1.160 (colored)

Move hashinit() & hashdone() from kern_subr.c to subr_hash.c to
permit standalone compilation.  No functional change.

Revision 1.156.2.5 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:41 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.156.2.4: +82 -19 lines
Diff to previous 1.156.2.4 (colored) to branchpoint 1.156 (colored)

Sync with head.

Revision 1.156.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:56 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.156: +94 -22 lines
Diff to previous 1.156 (colored) next main 1.157 (colored)

Sync with head.

Revision 1.160 / (download) - annotate - [select for diffs], Sun Jun 24 20:12:34 2007 UTC (16 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.159: +43 -5 lines
Diff to previous 1.159 (colored)

autoconfigure dump partition for wedges.

Revision 1.159 / (download) - annotate - [select for diffs], Sun Jun 24 01:43:34 2007 UTC (16 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.158: +41 -16 lines
Diff to previous 1.158 (colored)

Extract common code from i386, xen, and sparc64, creating
config_handle_wedges() and read_disk_sectors().  On x86, handle_wedges()
is a thin wrapper for config_handle_wedges().  Share opendisk()
across architectures.

Add kernel code in support of specifying a root partition by wedge
name.  E.g., root specifications "wedge:wd0a", "wedge:David's Root
Volume" are possible.  (Patches for config(1) coming soon.)

In support of moving disks between architectures (esp. i386 <->
evbmips), I've written a routine convertdisklabel() that ensures
that the raw partition is at RAW_DISK by following these steps:

        0 If we have read a disklabel that has a RAW_PART with
          p_offset == 0 and p_size != 0, then use that raw partition.

        1 If we have read a disklabel that has both partitions 'c'
          and 'd', and RAW_PART has p_offset != 0 or p_size == 0,
          but the other partition is suitable for a raw partition
          (p_offset == 0, p_size != 0), then swap the two partitions
          and use the new raw partition.

        2 If the architecture's raw partition is 'd', and if there
          is no partition 'd', but there is a partition 'c' that
          is suitable for a raw partition, then copy partition 'c'
          to partition 'd'.

        3 Determine the drive's last sector, using either the
          d_secperunit the drive reported, or by guessing (0x1fffffff).
          If we cannot read the drive's last sector, then fail.

        4 If we have read a disklabel that has no partition slot
          RAW_PART, then create a partition RAW_PART.  Make it span
          the whole drive.

        5 If there are fewer than MAXPARTITIONS partitions,
          then "slide" the unsuitable raw partition RAW_PART, and
          subsequent partitions, into partition slots RAW_PART+1
          and subsequent slots.  Create a raw partition at RAW_PART.
          Make it span the whole drive.

The convertdisklabel() procedure can probably stand to be simplified,
but it ought to deal with all but an extraordinarily broken disklabel,
now.

i386: compiled and tested, sparc64: compiled, evbmips: compiled.

Revision 1.156.2.4 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:05 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.156.2.3: +4 -5 lines
Diff to previous 1.156.2.3 (colored) to branchpoint 1.156 (colored)

Sync with head.

Revision 1.156.2.3 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:22 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.156.2.2: +12 -2 lines
Diff to previous 1.156.2.2 (colored) to branchpoint 1.156 (colored)

Sync with head.

Revision 1.158 / (download) - annotate - [select for diffs], Sun Jun 3 07:47:50 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.157: +4 -5 lines
Diff to previous 1.157 (colored)

Move the #if at the top of trace_enter/exit back above the declaration of 'p'
(where it used to be in rev 1.147) so that this code compiles when none of
the trace options are in use.
Fixes PR kern/36431

Revision 1.151.2.3 / (download) - annotate - [select for diffs], Thu May 17 13:41:46 2007 UTC (16 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.151.2.2: +12 -2 lines
Diff to previous 1.151.2.2 (colored) to branchpoint 1.151 (colored) next main 1.152 (colored)

sync with head.

Revision 1.156.2.2 / (download) - annotate - [select for diffs], Sun May 13 17:36:35 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.156.2.1: +5 -2 lines
Diff to previous 1.156.2.1 (colored) to branchpoint 1.156 (colored)

- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.150.2.1 / (download) - annotate - [select for diffs], Sun May 13 10:28:37 2007 UTC (16 years, 9 months ago) by jdc
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.150: +12 -2 lines
Diff to previous 1.150 (colored) next main 1.151 (colored)

Pull up revision 1.157 (requested by manu in ticket #635).

Add the TFTPROOT kernel option for TFTP'ing root RAMdisk at root mount time.
This allows working around situations where a kernel with embedded RAMdisk
cannot be booted by the bootloader because the RAMdisk is too big.

Revision 1.157 / (download) - annotate - [select for diffs], Tue May 8 06:10:27 2007 UTC (16 years, 9 months ago) by manu
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.156: +12 -2 lines
Diff to previous 1.156 (colored)

Add the TFTPROOT kernel option for TFTP'ing root RAMdisk at root mount time.
This allows working around situations where a kernel with embedded RAMdisk
cannot be booted by the bootloader because the RAMdisk is too big.

Revision 1.156.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:50:57 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.156: +21 -3 lines
Diff to previous 1.156 (colored)

Pull in the initial set of changes for the vmlocking branch.

Revision 1.151.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:37 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.151.2.1: +12 -7 lines
Diff to previous 1.151.2.1 (colored) to branchpoint 1.151 (colored)

Sync with HEAD.

Revision 1.156 / (download) - annotate - [select for diffs], Thu Mar 8 21:25:27 2007 UTC (16 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.155: +10 -5 lines
Diff to previous 1.155 (colored)

trace_enter, trace_exit: acquire kernel_lock for systrace.

Revision 1.155 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:06 2007 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.154: +4 -4 lines
Diff to previous 1.154 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.151.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:25 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.151: +12 -12 lines
Diff to previous 1.151 (colored)

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

Revision 1.117.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:11 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117.2.2: +25 -24 lines
Diff to previous 1.117.2.2 (colored)

sync with head.

Revision 1.154 / (download) - annotate - [select for diffs], Thu Feb 22 06:34:44 2007 UTC (17 years ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.153: +8 -8 lines
Diff to previous 1.153 (colored)

TRUE -> true, FALSE -> false

Revision 1.153 / (download) - annotate - [select for diffs], Wed Feb 21 23:48:14 2007 UTC (17 years ago) by thorpej
Branch: MAIN
Changes since 1.152: +3 -3 lines
Diff to previous 1.152 (colored)

Pick up some additional files that were missed before due to conflicts
with newlock2 merge:

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.152 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:43 2007 UTC (17 years ago) by pavel
Branch: MAIN
Changes since 1.151: +5 -5 lines
Diff to previous 1.151 (colored)

Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.

Revision 1.151 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.150: +15 -14 lines
Diff to previous 1.150 (colored)

Merge newlock2 to head.

Revision 1.143.2.6 / (download) - annotate - [select for diffs], Sun Feb 4 16:04:30 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.143.2.5: +3 -6 lines
Diff to previous 1.143.2.5 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

Push the kernel_lock back in a couple of places. Sleep/wakeup and ktrace
are now MP safe.

Revision 1.143.2.5 / (download) - annotate - [select for diffs], Wed Jan 31 19:56:38 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.143.2.4: +3 -3 lines
Diff to previous 1.143.2.4 (colored) to branchpoint 1.143 (colored)

- Have callers to mi_switch() drop the kernel lock.
- Fix a deadlock and some typos.
- Unbreak ptrace().

Revision 1.143.2.4 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:41 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.143.2.3: +3 -3 lines
Diff to previous 1.143.2.3 (colored) to branchpoint 1.143 (colored)

Remove support for SA. Ok core@.

Revision 1.143.2.3 / (download) - annotate - [select for diffs], Thu Jan 11 22:23:00 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.143.2.2: +7 -5 lines
Diff to previous 1.143.2.2 (colored) to branchpoint 1.143 (colored)

Checkpoint work in progress.

Revision 1.117.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:05 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117.2.1: +63 -48 lines
Diff to previous 1.117.2.1 (colored)

sync with head.

Revision 1.143.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:44 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.143.4.1: +5 -5 lines
Diff to previous 1.143.4.1 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

sync with head.

Revision 1.143.2.2 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:22 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.143.2.1: +43 -35 lines
Diff to previous 1.143.2.1 (colored) to branchpoint 1.143 (colored)

Sync with head.

Revision 1.143.2.1 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:36 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.143: +13 -11 lines
Diff to previous 1.143 (colored)

Checkpoint work in progress.

Revision 1.150 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (17 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, newlock2-nbase, newlock2-base, netbsd-4-base
Branch point for: netbsd-4
Changes since 1.149: +5 -5 lines
Diff to previous 1.149 (colored)

remove some __unused from function parameters.

Revision 1.143.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:10 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.143: +46 -38 lines
Diff to previous 1.143 (colored)

sync with head

Revision 1.149 / (download) - annotate - [select for diffs], Tue Oct 17 18:21:29 2006 UTC (17 years, 4 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.148: +2 -16 lines
Diff to previous 1.148 (colored)

now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Oct 13 16:53:36 2006 UTC (17 years, 4 months ago) by dogcow
Branch: MAIN
Changes since 1.147: +19 -4 lines
Diff to previous 1.147 (colored)

More -Wunused fallout. sprinkle __unused when possible; otherwise, use the
	do { if (&x) {} } while (/* CONSTCOND */ 0);
construct as suggested by uwe in <20061012224845.GA9449@snark.ptc.spbu.ru>.

Revision 1.147 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:17 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.146: +5 -5 lines
Diff to previous 1.146 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.146 / (download) - annotate - [select for diffs], Sun Oct 8 02:39:01 2006 UTC (17 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.145: +4 -32 lines
Diff to previous 1.145 (colored)

Re-work some of the initialization code to now use config_attach_pseudo()
and friends.  Addresses PR#32881.  BOOT_FROM_RAID_HOOKS dies.
More simplification possible now.

Revision 1.145 / (download) - annotate - [select for diffs], Sun Sep 24 06:51:39 2006 UTC (17 years, 5 months ago) by dogcow
Branch: MAIN
Changes since 1.144: +3 -3 lines
Diff to previous 1.144 (colored)

make powerhook_establish use const char*, not char *. This solves lots of
gcc pointer whining. Since there's one LKM that uses this function, though,
it's kernel version bump time.

Revision 1.144 / (download) - annotate - [select for diffs], Sun Sep 24 03:54:00 2006 UTC (17 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.143: +38 -3 lines
Diff to previous 1.143 (colored)

Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@

Revision 1.123.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.123: +149 -90 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

sync with head

Revision 1.128.2.6 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.128.2.5: +21 -10 lines
Diff to previous 1.128.2.5 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

sync with head.

Revision 1.143 / (download) - annotate - [select for diffs], Sat Sep 2 06:30:53 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored)

comment out impossible comparison

Revision 1.142 / (download) - annotate - [select for diffs], Fri Sep 1 21:24:50 2006 UTC (17 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.141: +13 -2 lines
Diff to previous 1.141 (colored)

Properly deal with/without ktrace/ptrace/systrace

Revision 1.141 / (download) - annotate - [select for diffs], Sat Aug 12 21:46:03 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored)

fix a stray \n

Revision 1.140 / (download) - annotate - [select for diffs], Sat Aug 12 20:27:35 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.139: +7 -5 lines
Diff to previous 1.139 (colored)

Fix the dump printing too.

Revision 1.139 / (download) - annotate - [select for diffs], Sat Aug 12 19:58:55 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.138: +5 -7 lines
Diff to previous 1.138 (colored)

Only print the partition letter if the device supports partitions.

Revision 1.128.2.5 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.128.2.4: +5 -9 lines
Diff to previous 1.128.2.4 (colored) to branchpoint 1.128 (colored)

sync with head

Revision 1.138 / (download) - annotate - [select for diffs], Fri Jul 21 10:08:41 2006 UTC (17 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.137: +3 -7 lines
Diff to previous 1.137 (colored)

use ASSERT_SLEEPABLE where appropriate.

Revision 1.137 / (download) - annotate - [select for diffs], Wed Jul 19 21:11:38 2006 UTC (17 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.136: +4 -4 lines
Diff to previous 1.136 (colored)

- Hold a reference to the process credentials in each struct lwp.
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.

Revision 1.128.2.4 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:56 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.128.2.3: +3 -2 lines
Diff to previous 1.128.2.3 (colored) to branchpoint 1.128 (colored)

sync with head.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:38 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.117: +165 -86 lines
Diff to previous 1.117 (colored)

sync with head.

Revision 1.135.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:15 2006 UTC (17 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.135: +3 -2 lines
Diff to previous 1.135 (colored) next main 1.136 (colored)

Sync with head.

Revision 1.136 / (download) - annotate - [select for diffs], Sun Jun 11 07:32:18 2006 UTC (17 years, 8 months ago) by rjs
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.135: +3 -2 lines
Diff to previous 1.135 (colored)

Add includes of opt_multiprocessor.h and opt_lockdebug.h where missing.

Revision 1.123.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:59 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.123: +127 -76 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

Sync with head.

Revision 1.131.2.2 / (download) - annotate - [select for diffs], Wed Apr 19 05:13:59 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.131.2.1: +1414 -0 lines
Diff to previous 1.131.2.1 (colored) next main 1.132 (colored)

sync with head.

Revision 1.128.2.3 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:39 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.128.2.2: +10 -8 lines
Diff to previous 1.128.2.2 (colored) to branchpoint 1.128 (colored)

sync with head.

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:27 2006 UTC (17 years, 11 months ago) by tron
Branch: peter-altq
Changes since 1.134: +8 -6 lines
Diff to previous 1.134 (colored) next main 1.135 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.135 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:39 2006 UTC (17 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, elad-kernelauth-base
Branch point for: chap-midi
Changes since 1.134: +10 -8 lines
Diff to previous 1.134 (colored)

Use device_unit().

Revision 1.128.2.2 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:32 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.128.2.1: +1412 -0 lines
Diff to previous 1.128.2.1 (colored) to branchpoint 1.128 (colored)

sync with head.

Revision 1.134 / (download) - annotate - [select for diffs], Mon Mar 13 08:52:07 2006 UTC (17 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq
Changes since 1.133: +2 -2 lines
Diff to previous 1.133 (colored)

use UIO_SETUP_SYSSPACE instead of using vmspace_kernel() directly.

Revision 1.133 / (download) - annotate - [select for diffs], Mon Mar 13 03:17:47 2006 UTC (17 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.132: +2 -2 lines
Diff to previous 1.132 (colored)

copyin_vmspace, copyout_vmspace: set uio_vmspace correctly.
from Christos Zoulas.

Revision 1.132 / (download) - annotate - [select for diffs], Sun Mar 12 09:47:08 2006 UTC (17 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored)

fix copyout_proc after yamt-uio_vmspace merge.  from Christos Zoulas.

Revision 1.131.2.1, Tue Mar 7 07:21:51 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.131: +0 -1412 lines
FILE REMOVED

file kern_subr.c was added on branch elad-kernelauth on 2006-04-19 05:13:59 +0000

Revision 1.131 / (download) - annotate - [select for diffs], Tue Mar 7 07:21:51 2006 UTC (18 years ago) by thorpej
Branch: MAIN
Branch point for: elad-kernelauth
Changes since 1.130: +5 -2 lines
Diff to previous 1.130 (colored)

Syscall debug tracing is handled by trace_enter() / trace_exit().  Change
trace_is_enabled() to return TRUE if SYSCALL_DEBUG is defined, and g/c
all of the SYSCALL_DEBUG handling from individual system call dispatch
routines.

Revision 1.130 / (download) - annotate - [select for diffs], Tue Mar 7 03:32:06 2006 UTC (18 years ago) by thorpej
Branch: MAIN
Changes since 1.129: +22 -2 lines
Diff to previous 1.129 (colored)

Clean up fallout proc_is_traced_p() change:
- proc_is_traced_p() -> trace_is_enabled(), to match trace_enter() and
  trace_exit().
- trace_is_enabled() becomes a real function.
- Remove unnecessary include files from various files that used to care
  about KTRACE and SYSTRACE, but do no more.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Mar 6 02:17:53 2006 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.128: +2 -6 lines
Diff to previous 1.128 (colored)

always define proc, not just when ktrace and systrace are defined.

Revision 1.128.2.1, Sun Mar 5 07:21:38 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.128: +0 -1393 lines
FILE REMOVED

file kern_subr.c was added on branch yamt-pdpolicy on 2006-03-13 09:07:32 +0000

Revision 1.128 / (download) - annotate - [select for diffs], Sun Mar 5 07:21:38 2006 UTC (18 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base
Branch point for: yamt-pdpolicy
Changes since 1.127: +9 -2 lines
Diff to previous 1.127 (colored)

implement PT_SYSCALL

Revision 1.127 / (download) - annotate - [select for diffs], Wed Mar 1 22:12:09 2006 UTC (18 years ago) by cube
Branch: MAIN
Changes since 1.126: +4 -2 lines
Diff to previous 1.126 (colored)

Fix md(4) like raid(4) was fixed.

Revision 1.126 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (18 years ago) by yamt
Branch: MAIN
Changes since 1.125: +78 -56 lines
Diff to previous 1.125 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.123.2.7 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:46 2006 UTC (18 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.123.2.6: +11 -12 lines
Diff to previous 1.123.2.6 (colored) next main 1.124 (colored)

sync with head.

Revision 1.125 / (download) - annotate - [select for diffs], Mon Feb 27 03:04:28 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Changes since 1.124: +3 -4 lines
Diff to previous 1.124 (colored)

Use device_is_a().

Revision 1.124 / (download) - annotate - [select for diffs], Tue Feb 21 04:32:39 2006 UTC (18 years ago) by thorpej
Branch: MAIN
Changes since 1.123: +10 -10 lines
Diff to previous 1.123 (colored)

Use device_class() instead of accessing dv_class directly.

Revision 1.123.2.6 / (download) - annotate - [select for diffs], Sat Feb 18 13:34:21 2006 UTC (18 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.123.2.5: +7 -0 lines
Diff to previous 1.123.2.5 (colored)

make UIO_SETUP_SYSSPACE a function to avoid header dependency messes.

Revision 1.123.2.5 / (download) - annotate - [select for diffs], Sun Jan 15 10:44:52 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.123.2.4: +4 -4 lines
Diff to previous 1.123.2.4 (colored)

rename VMSPACE_IS_KERNEL to VMSPACE_IS_KERNEL_P.  ("predicate")
suggested by Matt Thomas.

Revision 1.123.2.4 / (download) - annotate - [select for diffs], Sat Dec 31 16:08:22 2005 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.123.2.3: +20 -17 lines
Diff to previous 1.123.2.3 (colored)

- check the kcopy case in copy{in,out}_vmspace.
- simplify uiomove instead.

Revision 1.123.2.3 / (download) - annotate - [select for diffs], Sat Dec 31 11:34:25 2005 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.123.2.2: +2 -2 lines
Diff to previous 1.123.2.2 (colored)

redo the previous correctly.

Revision 1.123.2.2 / (download) - annotate - [select for diffs], Sat Dec 31 11:21:51 2005 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.123.2.1: +2 -2 lines
Diff to previous 1.123.2.1 (colored)

use VMSPACE_IS_KERNEL.

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Sat Dec 31 11:14:01 2005 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.123: +59 -47 lines
Diff to previous 1.123 (colored)

uio_segflg/uio_lwp -> uio_vmspace.

Revision 1.115.8.1 / (download) - annotate - [select for diffs], Thu Dec 29 20:00:43 2005 UTC (18 years, 2 months ago) by riz
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Changes since 1.115: +6 -3 lines
Diff to previous 1.115 (colored) next main 1.116 (colored)

Pull up following revision(s) (requested by chs in ticket #1072):
	sys/kern/kern_subr.c: revision 1.122
hold kernel_lock while calling systrace_exit().
fixes PR 25856.

Revision 1.115.6.1 / (download) - annotate - [select for diffs], Thu Dec 29 20:00:12 2005 UTC (18 years, 2 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.115: +6 -3 lines
Diff to previous 1.115 (colored) next main 1.116 (colored)

Pull up following revision(s) (requested by chs in ticket #1072):
	sys/kern/kern_subr.c: revision 1.122
hold kernel_lock while calling systrace_exit().
fixes PR 25856.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Dec 27 04:06:46 2005 UTC (18 years, 2 months ago) by chs
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.122: +3 -5 lines
Diff to previous 1.122 (colored)

changes for making DIAGNOSTIC not change the kernel ABI:
 - for structure fields that are conditionally present,
   make those fields always present.
 - for functions which are conditionally inline, make them never inline.
 - remove some other functions which are conditionally defined but
   don't actually do anything anymore.
 - make a lock-debugging function conditional on only LOCKDEBUG.

as discussed on tech-kern some time back.

Revision 1.122 / (download) - annotate - [select for diffs], Tue Dec 27 00:27:34 2005 UTC (18 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.121: +6 -3 lines
Diff to previous 1.121 (colored)

hold kernel_lock while calling systrace_exit().
fixes PR 25856.

Revision 1.121 / (download) - annotate - [select for diffs], Mon Dec 26 18:45:27 2005 UTC (18 years, 2 months ago) by perry
Branch: MAIN
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored)

u_intN_t -> uintN_t

Revision 1.120 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.119: +11 -7 lines
Diff to previous 1.119 (colored)

merge ktrace-lwp.

Revision 1.102.2.10 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.102.2.9: +86 -126 lines
Diff to previous 1.102.2.9 (colored) next main 1.103 (colored)

Sync with HEAD. Here we go again...

Revision 1.119 / (download) - annotate - [select for diffs], Sun Aug 28 20:58:14 2005 UTC (18 years, 6 months ago) by reinoud
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
Changes since 1.118: +27 -2 lines
Diff to previous 1.118 (colored)

Create functions ioctl_copyin() and ioctl_copyout(). They are meant to be
used in ioctl routines to do the right thing when the FKIOCTL flag is
passed to the IOCTL routine indicating its a in-kernel VOP_IOCTL call and
indirect addresses provided in the arguments are to be seen as kernel
adresses rather than userland adresses.

A simple substitution and prepending of the `flags' passed on to the ioctl
handler is enough to DTRT.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Jul 6 22:30:42 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.117: +12 -15 lines
Diff to previous 1.117 (colored)

Make copy{in,out}_proc work on all processes (including curproc) by
special-casing the curproc case. Use copy{in,out}_proc directly instead
of checking for curproc each time. Discussed with thorpej.

Revision 1.117 / (download) - annotate - [select for diffs], Thu Jun 23 23:15:12 2005 UTC (18 years, 8 months ago) by thorpej
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.116: +45 -107 lines
Diff to previous 1.116 (colored)

Use ANSI function decls.  Apply some static.

Revision 1.116 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (18 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.115: +7 -7 lines
Diff to previous 1.115 (colored)

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

Revision 1.114.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:23 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored) next main 1.115 (colored)

sync with -current

Revision 1.102.2.9 / (download) - annotate - [select for diffs], Fri Feb 4 11:47:42 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.102.2.8: +3 -3 lines
Diff to previous 1.102.2.8 (colored)

Sync with HEAD.

Revision 1.115 / (download) - annotate - [select for diffs], Mon Jan 24 21:25:09 2005 UTC (19 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, 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, kent-audio2-base
Branch point for: netbsd-3-0, netbsd-3
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored)

Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.

Revision 1.102.2.8 / (download) - annotate - [select for diffs], Tue Nov 2 07:53:23 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.102.2.7: +36 -10 lines
Diff to previous 1.102.2.7 (colored)

Sync with HEAD.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Oct 24 17:06:24 2004 UTC (19 years, 4 months ago) by cube
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.113: +4 -3 lines
Diff to previous 1.113 (colored)

Add a check in DEV_USES_PARTITIONS macro in case dv->dv_cfdata is NULL,
as it is the case for md and raid. Raid case tested by Martin Husemann,
I could test the install floppies work again.

Revision 1.113 / (download) - annotate - [select for diffs], Sat Oct 23 17:14:11 2004 UTC (19 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.112: +35 -10 lines
Diff to previous 1.112 (colored)

- Centralize the declaration of booted_device and booted_partition.
- Add a booted_wedge variable that indicates the wedge that was booted
  from.  If this is NULL, booted_partition is consulted.
- Adjust setroot() and its support routines for root-on-wedges.  Could
  use some tidy-up, but this works for now.

Revision 1.102.2.7 / (download) - annotate - [select for diffs], Tue Oct 12 05:42:06 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.102.2.6: +4 -4 lines
Diff to previous 1.102.2.6 (colored)

Reduce diff to HEAD.

Revision 1.102.2.6 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:43 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.102.2.5: +16 -5 lines
Diff to previous 1.102.2.5 (colored)

Sync with HEAD.

Revision 1.112 / (download) - annotate - [select for diffs], Thu Sep 23 10:45:08 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.111: +16 -4 lines
Diff to previous 1.111 (colored)

release kernel lock in uiomove().

Revision 1.102.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:08 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.102.2.4: +13 -8 lines
Diff to previous 1.102.2.4 (colored)

Fix the sync with head I botched.

Revision 1.102.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:03 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.102.2.3: +8 -13 lines
Diff to previous 1.102.2.3 (colored)

Sync with HEAD.

Revision 1.102.2.3 / (download) - annotate - [select for diffs], Wed Aug 18 10:19:08 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.102.2.2: +4 -4 lines
Diff to previous 1.102.2.2 (colored)

Revert to passing struct proc for {exit,exec}hook.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:52 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.102.2.1: +74 -42 lines
Diff to previous 1.102.2.1 (colored)

Sync with HEAD

Revision 1.111 / (download) - annotate - [select for diffs], Wed Apr 21 20:31:50 2004 UTC (19 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.110: +7 -12 lines
Diff to previous 1.110 (colored)

Add prototype for uiomove_frombuf.  Change uiomove_frombuf to use size_t
for its length argument (to be the same as uiomove).  Remove code that
dealt with length being negative.

Revision 1.110 / (download) - annotate - [select for diffs], Wed Apr 21 18:40:38 2004 UTC (19 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.109: +30 -5 lines
Diff to previous 1.109 (colored)

kill sprintf, use snprintf

Revision 1.109 / (download) - annotate - [select for diffs], Tue Mar 23 13:22:33 2004 UTC (19 years, 11 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.108: +27 -28 lines
Diff to previous 1.108 (colored)

- Nuke __P().
- Drop trailing spaces.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Mar 11 15:17:55 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.107: +19 -4 lines
Diff to previous 1.107 (colored)

PR/24745: Jared Momose: kernel prompts for a root device when using md_root

Revision 1.107 / (download) - annotate - [select for diffs], Fri Oct 31 03:28:14 2003 UTC (20 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.106: +4 -5 lines
Diff to previous 1.106 (colored)

Don't pass the (unused) return value args to the
trace_enter()/systrace_enter() functions.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Oct 25 18:31:59 2003 UTC (20 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.105: +5 -3 lines
Diff to previous 1.105 (colored)

Fix uninitialized variable warning

Revision 1.105 / (download) - annotate - [select for diffs], Sun Sep 14 11:12:14 2003 UTC (20 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.104: +3 -2 lines
Diff to previous 1.104 (colored)

assert that uio passed to uiomove() has valid uio_iovcnt.

Revision 1.104 / (download) - annotate - [select for diffs], Wed Sep 10 10:55:50 2003 UTC (20 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

use curcpu() rather than curlwp->l_cpu.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:49 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.102: +3 -7 lines
Diff to previous 1.102 (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.102.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:39 2003 UTC (20 years, 8 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.102: +14 -9 lines
Diff to previous 1.102 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:22 2003 UTC (20 years, 8 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.101: +7 -12 lines
Diff to previous 1.101 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:55 2003 UTC (20 years, 8 months ago) by darrenr
Branch: MAIN
Changes since 1.100: +14 -9 lines
Diff to previous 1.100 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.100 / (download) - annotate - [select for diffs], Sat May 17 22:22:41 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.99: +7 -6 lines
Diff to previous 1.99 (colored)

Use aprint_normal() for the non-error (and thus non-interative) case
of mounting the root file system.

Revision 1.99 / (download) - annotate - [select for diffs], Fri May 16 14:25:03 2003 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

use strlcpy.  [fixed off-by-one in subr_prop.c]

Revision 1.98 / (download) - annotate - [select for diffs], Thu May 15 12:56:16 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored)

ktrace rval[1] - in order to get both fd numbers for pipe()

Revision 1.97 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:43 2003 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.96: +7 -4 lines
Diff to previous 1.96 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jan 24 01:42:53 2003 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.95: +33 -2 lines
Diff to previous 1.95 (colored)

Add "fork hooks", a'la "exec hooks" and "exit hooks" which allow
subsystems to do special processing to the parent and/or child at
fork time.

Revision 1.95 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:30 2003 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.94: +20 -16 lines
Diff to previous 1.94 (colored)

Merge the nathanw_sa branch.

Revision 1.75.2.21 / (download) - annotate - [select for diffs], Tue Jan 7 22:12:14 2003 UTC (21 years, 1 month ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.75.2.20: +3 -3 lines
Diff to previous 1.75.2.20 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

In the SA universe, the switch-to-this-LWP decision is made at a
different level than where preempt() calls are made, which renders
the "newlwp" argument useless.  Replace it with a "more work to do"
boolean argument.  Returning to userspace preempt() calls pass 0.
"Voluntary" preemptions in e.g. uiomove() pass 1.  This will be used
to indicate to the SA subsystem that the LWP is not yet finished in
the kernel.

Collapse the SA vs. non-SA cases of preempt() together, making the
conditional code block much smaller, and don't call sa_preempt() if
more work is to come.

NOTE: THIS IS NOT A COMPLETE FIX TO THE preempt()-in-uiomove() PROBLEM
THAT CURRENTLY EXISTS FOR SA PROCESSES.

Revision 1.75.2.20 / (download) - annotate - [select for diffs], Sun Dec 29 20:54:42 2002 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.75.2.19: +5 -4 lines
Diff to previous 1.75.2.19 (colored) to branchpoint 1.75 (colored)

Sync with HEAD.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Dec 21 16:23:57 2002 UTC (21 years, 2 months ago) by manu
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.93: +10 -5 lines
Diff to previous 1.93 (colored)

Pass the system call table to trace_enter() and ktrsys() so that it is
possible to use alternate system call tables. This is usefull for
displaying correctly the arguments in Mach binaries traces.

If NULL is given, then the regular systam call table for the process is used.

Revision 1.75.2.19 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:05 2002 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.75.2.18: +3 -2 lines
Diff to previous 1.75.2.18 (colored) to branchpoint 1.75 (colored)

Sync with HEAD.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Nov 16 07:40:41 2002 UTC (21 years, 3 months ago) by uebayasi
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.92: +5 -4 lines
Diff to previous 1.92 (colored)

Fix compilation errors introduced by recent trace_enter()/ktrsyscall() changes.

Provided by FUKAUMI Naoki <naoki at fukaumi dot org> in kern/19070.

Revision 1.75.2.18 / (download) - annotate - [select for diffs], Mon Nov 11 22:13:48 2002 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.17: +16 -2 lines
Diff to previous 1.75.2.17 (colored) to branchpoint 1.75 (colored)

Catch up to -current

Revision 1.92 / (download) - annotate - [select for diffs], Mon Nov 11 10:43:54 2002 UTC (21 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.91: +16 -2 lines
Diff to previous 1.91 (colored)

add comments for trace_enter()/trace_exit(); particularily comment
expected value of 'code'

Revision 1.80.6.1 / (download) - annotate - [select for diffs], Sat Nov 9 10:21:36 2002 UTC (21 years, 3 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.80: +84 -11 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

Pull up revision 1.82 (requested by thorpej in ticket #527):
* Add copyin_proc() and copyout_proc(), which are like copyin() and
  copyout(), except they can operate on any process, not just curproc.
* Use this in uiomove() to allow UIO_USERSPACE to non-curproc.

Revision 1.75.2.17 / (download) - annotate - [select for diffs], Fri Oct 18 05:20:56 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.16: +4 -4 lines
Diff to previous 1.75.2.16 (colored) to branchpoint 1.75 (colored)

KERNEL_PROC_LOCK(p) -> KERNEL_PROC_LOCK(l).

Revision 1.75.2.16 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:53 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.15: +17 -9 lines
Diff to previous 1.75.2.15 (colored) to branchpoint 1.75 (colored)

Catch up to -current.

Revision 1.76.2.5 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:10 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.76.2.4: +25 -44 lines
Diff to previous 1.76.2.4 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.91 / (download) - annotate - [select for diffs], Fri Sep 27 18:37:43 2002 UTC (21 years, 5 months ago) by drochner
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.90: +15 -7 lines
Diff to previous 1.90 (colored)

SI prefixes apply to decimal multiplies only. For binary (2^n) multiplies
the most "officially looking" is IEC 60027-2, ie "Ki", "Mi", ...,
which is not too popular, and which would require more code changes.
So stick with the traditional capital "K" for (divisor==1024), and use
the SI "k" otherwise (ie (divisor==1000)).

Revision 1.90 / (download) - annotate - [select for diffs], Thu Sep 26 15:06:47 2002 UTC (21 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.89: +6 -6 lines
Diff to previous 1.89 (colored)

Kilo abbreviation is a small k (PR 18408).

Revision 1.89 / (download) - annotate - [select for diffs], Mon Sep 23 03:37:59 2002 UTC (21 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored)

Don't return values in a couple of void functions.

Revision 1.75.2.15 / (download) - annotate - [select for diffs], Tue Sep 17 21:22:11 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.14: +6 -33 lines
Diff to previous 1.75.2.14 (colored) to branchpoint 1.75 (colored)

Catch up to -current.

Revision 1.88 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 6 months ago) by gehenna
Branch: MAIN
Changes since 1.87: +6 -33 lines
Diff to previous 1.87 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.76.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:47:57 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.76.2.3: +148 -28 lines
Diff to previous 1.76.2.3 (colored) to branchpoint 1.76 (colored)

sync kqueue branch with HEAD

Revision 1.87 / (download) - annotate - [select for diffs], Wed Sep 4 01:32:37 2002 UTC (21 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored)

Use the queue macros from <sys/queue.h> instead of referring to the queue
members directly.  Use *_FOREACH whenever possible.

Revision 1.80.4.4 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:08 2002 UTC (21 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.80.4.3: +20 -19 lines
Diff to previous 1.80.4.3 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored)

catch up with -current.

Revision 1.75.2.14 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:27 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.13: +20 -19 lines
Diff to previous 1.75.2.13 (colored) to branchpoint 1.75 (colored)

Catch up to -current.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Aug 25 22:32:02 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.85: +4 -4 lines
Diff to previous 1.85 (colored)

Fix a signed/unsigned comparison warning from GCC 3.3.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Aug 25 22:28:42 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.84: +4 -3 lines
Diff to previous 1.84 (colored)

Make uiomove()'s count argument a size_t rather than an int.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Aug 25 20:01:13 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.83: +7 -7 lines
Diff to previous 1.83 (colored)

Make hashinit() use unsigned quantities throughout.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Aug 23 20:50:25 2002 UTC (21 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.82: +11 -11 lines
Diff to previous 1.82 (colored)

Use the qtype_FOREACH macros.  Print out address of hook that could not
be disestablished.

Revision 1.75.2.13 / (download) - annotate - [select for diffs], Thu Aug 1 03:24:47 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.12: +2 -4 lines
Diff to previous 1.75.2.12 (colored) to branchpoint 1.75 (colored)

uiomove() uses the proc pointer outside of DIAGNOSTIC again.

Revision 1.75.2.12 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:21 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.11: +84 -13 lines
Diff to previous 1.75.2.11 (colored) to branchpoint 1.75 (colored)

Catch up to -current.

Revision 1.80.4.3 / (download) - annotate - [select for diffs], Sat Jul 20 11:35:11 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.80.4.2: +84 -11 lines
Diff to previous 1.80.4.2 (colored) to branchpoint 1.80 (colored)

catch up with -current.

Revision 1.82 / (download) - annotate - [select for diffs], Sat Jul 20 03:58:24 2002 UTC (21 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +84 -11 lines
Diff to previous 1.81 (colored)

* Add copyin_proc() and copyout_proc(), which are like copyin() and
  copyout(), except they can operate on any process, not just curproc.
* Use this in uiomove() to allow UIO_USERSPACE to non-curproc.

Revision 1.75.2.11 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:18 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.10: +2 -3 lines
Diff to previous 1.75.2.10 (colored) to branchpoint 1.75 (colored)

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

Revision 1.75.2.10 / (download) - annotate - [select for diffs], Mon Jun 24 22:10:52 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.9: +3 -3 lines
Diff to previous 1.75.2.9 (colored) to branchpoint 1.75 (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.76.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:31 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.76.2.2: +188 -178 lines
Diff to previous 1.76.2.2 (colored) to branchpoint 1.76 (colored)

catch up with -current on kqueue branch

Revision 1.75.2.9 / (download) - annotate - [select for diffs], Thu Jun 20 22:59:40 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.8: +14 -6 lines
Diff to previous 1.75.2.8 (colored) to branchpoint 1.75 (colored)

LWPify trace_enter() and trace_exit().

Revision 1.80.4.2 / (download) - annotate - [select for diffs], Thu Jun 20 16:02:20 2002 UTC (21 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.80.4.1: +48 -2 lines
Diff to previous 1.80.4.1 (colored) to branchpoint 1.80 (colored)

catch up with -current.

Revision 1.75.2.8 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:15 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.7: +48 -2 lines
Diff to previous 1.75.2.7 (colored) to branchpoint 1.75 (colored)

Catch up to -current.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Jun 17 16:22:51 2002 UTC (21 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.80: +48 -2 lines
Diff to previous 1.80 (colored)

Niels Provos systrace work, ported to NetBSD by kittenz and reworked...

Revision 1.80.4.1 / (download) - annotate - [select for diffs], Thu May 16 04:10:13 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.80: +6 -33 lines
Diff to previous 1.80 (colored)

Replace the local name <-> block major conversion function with devsw APIs.

Revision 1.75.2.7 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:54 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.6: +188 -179 lines
Diff to previous 1.75.2.6 (colored) to branchpoint 1.75 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.80 / (download) - annotate - [select for diffs], Sun Mar 17 22:19:20 2002 UTC (21 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.79: +188 -178 lines
Diff to previous 1.79 (colored)

- merge all the hook insertion and deletion code so that we don't create
  a fourth copy.
- add exithook to be executed when a process exits.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:48 2002 UTC (21 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.76.2.1: +19 -4 lines
Diff to previous 1.76.2.1 (colored) to branchpoint 1.76 (colored)

Catch up with -current.

Revision 1.79 / (download) - annotate - [select for diffs], Mon Mar 4 02:25:23 2002 UTC (22 years ago) by simonb
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.78: +2 -3 lines
Diff to previous 1.78 (colored)

Don't use local extern declarations for the mountroot variable or
declare local prototypes for nfs_mountroot() or md_root_setconf().

Revision 1.75.2.6 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:44 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.5: +19 -3 lines
Diff to previous 1.75.2.5 (colored) to branchpoint 1.75 (colored)

Catch up to -current.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Feb 8 00:58:58 2002 UTC (22 years ago) by thorpej
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.77: +19 -3 lines
Diff to previous 1.77 (colored)

Add a "ddb" command (if DDB is configured into the kernel) for
easy, convenient dropping into DDB at the "root device: " prompt.
Useful if your console can't do it w/o actually taking an interrupt
and you want to, say, look at the boot messages.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:55 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.76: +4 -1 lines
Diff to previous 1.76 (colored)

Sync kqueue branch with -current.

Revision 1.75.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:37 2001 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.4: +4 -1 lines
Diff to previous 1.75.2.4 (colored) to branchpoint 1.75 (colored)

Catch up to -current.

Revision 1.76.6.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:50 2001 UTC (22 years, 3 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.76: +4 -1 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

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

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

add RCSIDs

Revision 1.75.2.4 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:54 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.3: +7 -3 lines
Diff to previous 1.75.2.3 (colored) to branchpoint 1.75 (colored)

Catch up to -current.

Revision 1.76 / (download) - annotate - [select for diffs], Sun May 27 01:29:50 2001 UTC (22 years, 9 months ago) by thorpej
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, kqueue
Changes since 1.75: +7 -3 lines
Diff to previous 1.75 (colored)

Make "reboot" an option at the root device/filesystem prompt (we
already had a "halt").

Revision 1.70.2.2 / (download) - annotate - [select for diffs], Sun May 6 15:08:22 2001 UTC (22 years, 10 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.70.2.1: +23 -14 lines
Diff to previous 1.70.2.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

Pull up revisions 1.71,1.73 (requested by he):
  Add new powerhook argument values, PWR_SOFTSUSPEND, PWR_SOFTSTANDBY and
  PWR_SOFTRESUME.  Apm calls powerhook with the values in normal interrupt
  priority level while others are protected with splhigh().

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Fri Mar 30 21:46:40 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

Pull up revision 1.74 (requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

Revision 1.75.2.3 / (download) - annotate - [select for diffs], Mon Mar 19 17:45:02 2001 UTC (22 years, 11 months ago) by fvdl
Branch: nathanw_sa
Changes since 1.75.2.2: +2 -2 lines
Diff to previous 1.75.2.2 (colored) to branchpoint 1.75 (colored)

The previous change wasn't correct, use ifdef DIAGNOSTIC instead.

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Mon Mar 19 15:01:44 2001 UTC (22 years, 11 months ago) by fvdl
Branch: nathanw_sa
Changes since 1.75.2.1: +3 -1 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored)

Make this one compile.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:42 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.75: +6 -3 lines
Diff to previous 1.75 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.52.2.5 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:44 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52.2.4: +1 -1 lines
Diff to previous 1.52.2.4 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jan 12 22:55:10 2001 UTC (23 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

nuke extra token (;) after #endif

Revision 1.52.2.4 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:21 2000 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52.2.3: +1 -1 lines
Diff to previous 1.52.2.3 (colored) to branchpoint 1.52 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.74 / (download) - annotate - [select for diffs], Sun Dec 10 14:14:15 2000 UTC (23 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

findblkname is not static (and is in fact used outside this file).

Revision 1.52.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:13:55 2000 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52.2.2: +1 -1 lines
Diff to previous 1.52.2.2 (colored) to branchpoint 1.52 (colored)

Sync with HEAD.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Nov 26 11:08:59 2000 UTC (23 years, 3 months ago) by takemura
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored)

Add new powerhook argument values, PWR_SOFTSUSPEND, PWR_SOFTSTANDBY and
PWR_SOFTRESUME. Apm calls powerhook with the values in normal interrupt
priority level while others are protected with splhigh().

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:22 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52.2.1: +41 -13 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored)

Sync with HEAD.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:04 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52: +202 -156 lines
Diff to previous 1.52 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.72 / (download) - annotate - [select for diffs], Wed Nov 8 14:25:24 2000 UTC (23 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.71: +41 -13 lines
Diff to previous 1.71 (colored)

Allow for creation of both LIST and TAILQ based hashes by adding a `hash
type' argument to hashinit().

Revision 1.71 / (download) - annotate - [select for diffs], Wed Jul 26 12:24:52 2000 UTC (23 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.70: +23 -14 lines
Diff to previous 1.70 (colored)

Run power hooks in reverse installation order when powering down and
installation order when powering up.  This allows drivers in a hierarchy
to DTRT.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:10 2000 UTC (23 years, 8 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.68: +5 -4 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.70 / (download) - annotate - [select for diffs], Wed May 31 06:18:03 2000 UTC (23 years, 9 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.69: +2 -3 lines
Diff to previous 1.69 (colored)

Make this file compile with DIAGNOSTIC.

Revision 1.69 / (download) - annotate - [select for diffs], Wed May 31 05:02:33 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +4 -2 lines
Diff to previous 1.68 (colored)

Track which process a CPU is running/has last run on by adding a
p_cpu member to struct proc.  Use this in certain places when
accessing scheduler state, etc.  For the single-processor case,
just initialize p_cpu in fork1() to avoid having to set it in the
low-level context switch code on platforms which will never have
multiprocessing.

While I'm here, comment a few places where there are known issues
for the SMP implementation.

Revision 1.68 / (download) - annotate - [select for diffs], Sat May 27 01:43:27 2000 UTC (23 years, 9 months ago) by enami
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.67: +3 -2 lines
Diff to previous 1.67 (colored)

Make this file compiles with !DIAGNOSTIC.

Revision 1.67 / (download) - annotate - [select for diffs], Fri May 26 21:20:31 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored)

First sweep at scheduler state cleanup.  Collect MI scheduler
state into global and per-CPU scheduler state:

	- Global state: sched_qs (run queues), sched_whichqs (bitmap
	  of non-empty run queues), sched_slpque (sleep queues).
	  NOTE: These may collectively move into a struct schedstate
	  at some point in the future.

	- Per-CPU state, struct schedstate_percpu: spc_runtime
	  (time process on this CPU started running), spc_flags
	  (replaces struct proc's p_schedflags), and
	  spc_curpriority (usrpri of processes on this CPU).

	- Every platform must now supply a struct cpu_info and
	  a curcpu() macro.  Simplify existing cpu_info declarations
	  where appropriate.

	- All references to per-CPU scheduler state now made through
	  curcpu().  NOTE: this will likely be adjusted in the future
	  after further changes to struct proc are made.

Tested on i386 and Alpha.  Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.

Revision 1.66 / (download) - annotate - [select for diffs], Wed May 10 02:16:15 2000 UTC (23 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.65: +3 -1 lines
Diff to previous 1.65 (colored)

Check malloc failure.

Revision 1.65 / (download) - annotate - [select for diffs], Wed May 10 02:14:41 2000 UTC (23 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

Cosmetic change.

Revision 1.64 / (download) - annotate - [select for diffs], Mon May 8 16:30:59 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.63: +4 -56 lines
Diff to previous 1.63 (colored)

move static function getstr() to cons.c, make it publically available
as cngetsn().  there will be other consumer.

Revision 1.45.2.4 / (download) - annotate - [select for diffs], Fri May 5 13:03:34 2000 UTC (23 years, 10 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.45.2.3: +3 -1 lines
Diff to previous 1.45.2.3 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

Apply patch (requested by sommerfeld):
  Allow this to compile without DIAGNOSTIC defined.

Revision 1.45.2.3 / (download) - annotate - [select for diffs], Sun Apr 30 20:12:42 2000 UTC (23 years, 10 months ago) by he
Branch: netbsd-1-4
Changes since 1.45.2.2: +2 -2 lines
Diff to previous 1.45.2.2 (colored) to branchpoint 1.45 (colored)

Modify/re-do last pullup (via patch, requested by sommerfeld):
  Fix two bugs:
   o A malicious or erroneous program can hog the CPU in uiomove()
   o A ktrace of such a program can hog large amounts of kernel memory
  This version of the fix does not increase the size of struct proc
  compared to 1.4.2.

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Sun Apr 30 12:07:35 2000 UTC (23 years, 10 months ago) by he
Branch: netbsd-1-4
Changes since 1.45.2.1: +5 -2 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored)

Pull up revision 1.62 (via patch, requested by sommerfeld):
  Fix two bugs:
   o A malicious or erroneous program can hog the CPU in uiomove()
   o A ktrace of such a program can hog large amounts of kernel memory
  This increses the size of struct proc, so kernel-grovellers need
  rebuild after this.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:12 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.62: +8 -8 lines
Diff to previous 1.62 (colored)

Get rid of register declarations.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Mar 23 20:39:58 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.61: +5 -2 lines
Diff to previous 1.61 (colored)

uiomove(): if we're informed that we should yield the CPU, use the new
preempt() primitive to do so.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Mar 16 17:19:53 2000 UTC (23 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.60: +12 -1 lines
Diff to previous 1.60 (colored)

add hashdone() - frees memory previously allocated via hashinit()

Revision 1.60 / (download) - annotate - [select for diffs], Wed Mar 1 03:51:29 2000 UTC (24 years ago) by enami
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Remove unnecessary asterisk in comment (probably it was comment leader of
multiline comment).

Revision 1.59 / (download) - annotate - [select for diffs], Wed Mar 1 03:50:04 2000 UTC (24 years ago) by enami
Branch: MAIN
Changes since 1.58: +8 -9 lines
Diff to previous 1.58 (colored)

Cosmetic changes.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Feb 20 19:32:30 2000 UTC (24 years ago) by sommerfeld
Branch: MAIN
Changes since 1.57: +5 -4 lines
Diff to previous 1.57 (colored)

Add a fifth "divisor" argument to humanize_number; suitable values are
either 1024 or 1000.
Needed because frequencies use decimal rather than power-of-two SI
prefixes.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Feb 13 04:57:44 2000 UTC (24 years ago) by oster
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.56: +31 -2 lines
Diff to previous 1.56 (colored)

Add support for / on RAID.  A bit of a gross hack, but sufficient for now.
Note that this doesn't help you much until the RAID autoconfig code
in sys/dev/raidframe/rf_netbsdkintf.c is turned on.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Tue Feb 1 22:54:45 2000 UTC (24 years, 1 month ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002
Changes since 1.45: +67 -1 lines
Diff to previous 1.45 (colored)

Pull up revision 1.53 (requested by fvdl):
  Close procfs security hole.  Fixes SA#2000-001.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Feb 1 05:28:01 2000 UTC (24 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.55: +23 -28 lines
Diff to previous 1.55 (colored)

Factor out a common functionality into a subroutine.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jan 25 09:23:59 2000 UTC (24 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.54: +22 -39 lines
Diff to previous 1.54 (colored)

- Print a name of root device even if it is a network device.
- If RB_ASKNAME, only dumpdv holds the results asked interactively.
  Examie dumpspec only when !RB_ASKNAME.  This allows us to override
  dumps on none in kernel config file by booting kernel with RB_ASKNAME.
- Slightly rearrange code so that it more matches to comment.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Jan 25 03:42:36 2000 UTC (24 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.53: +3 -7 lines
Diff to previous 1.53 (colored)

Cleanup setroot() a bit:
- No longer necessary to use goto, just breaking the loop like other case
  is enough.
- Don't caliculate loop invariant every time.  Just reuse.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Jan 25 01:15:14 2000 UTC (24 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.52: +67 -1 lines
Diff to previous 1.52 (colored)

Add an exec hook mechanism, where kernel subsystem can register to
execute certain functions when a process does an exec(). Currently
uses a global list. Could possibly be done using a per-process list,
but this needs more thought.

Revision 1.52.8.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:19:57 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.52: +73 -1 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.45.4.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:43:20 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.45.4.1: +67 -1 lines
Diff to previous 1.45.4.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

Sync w/ -current.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Jun 26 08:25:25 1999 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.51: +67 -1 lines
Diff to previous 1.51 (colored)

Add powerhooks, i.e., the ability to register a function that will be
called when the machine does a suspend or resume.
XXX Will go away when Jason's kevents come to life.

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:02 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.45: +94 -50 lines
Diff to previous 1.45 (colored)

Sync w/ -current.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Jun 7 20:16:09 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +25 -48 lines
Diff to previous 1.50 (colored)

Don't pass a nam2blk around at all; just have setroot() and friends reference
dev_name2blk[] directly.  Addresses PR #7622 (ITOH Yasufumi), although
in a different way.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jun 2 05:53:56 1999 UTC (24 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

in humanize_number(), when printing a u_int64_t, use '%qu' (unsigned long long)
instead of '%qd' (long long)

Revision 1.49 / (download) - annotate - [select for diffs], Thu May 20 05:58:19 1999 UTC (24 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.48: +40 -14 lines
Diff to previous 1.48 (colored)

rework format_bytes() into a more generic humanize_number().
implement the former with the latter.

Revision 1.48 / (download) - annotate - [select for diffs], Sun May 9 13:48:44 1999 UTC (24 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.47: +44 -3 lines
Diff to previous 1.47 (colored)

Implement format_bytes(), which pretty prints a given u_int64_t into a
given buffer, and if necessary, reducing the display width of the
number to fit in the buffer by increasing the units (from kilobytes
(2^10) through to exabytes (2^60)).

Revision 1.47 / (download) - annotate - [select for diffs], Wed Apr 21 02:37:07 1999 UTC (24 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.46: +0 -5 lines
Diff to previous 1.46 (colored)

revert previous.  oops.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Apr 21 02:31:49 1999 UTC (24 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.45: +6 -1 lines
Diff to previous 1.45 (colored)

properly test the msgsz as "msgsz - len".  from PR#7386

Revision 1.45 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:25 1999 UTC (24 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.44: +1 -9 lines
Diff to previous 1.44 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Feb 10 17:03:28 1999 UTC (25 years ago) by kleink
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Use of casts as lvalues is a GNU C extension; rearrange slightly.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Feb 7 09:34:59 1999 UTC (25 years, 1 month ago) by jonathan
Branch: MAIN
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

defopt MEMORY_DISK_{HOOKS,SERVER,IS_ROOT}.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 22 07:57:13 1999 UTC (25 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.41: +5 -2 lines
Diff to previous 1.41 (colored)

fix an off-by-one space-waster in hashinit() and add some description.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Mon Nov 9 06:06:32 1998 UTC (25 years, 3 months ago) by chs
Branch: chs-ubc
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

initial snapshot.  lots left to do.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Thu Oct 1 17:55:36 1998 UTC (25 years, 5 months ago) by cgd
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

pull up revision 1.35 (via patch) from trunk. (tls)

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:55 1998 UTC (25 years, 7 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:14 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base
Branch point for: chs-ubc
Changes since 1.40: +5 -5 lines
Diff to previous 1.40 (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.40 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:50 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.

Revision 1.39 / (download) - annotate - [select for diffs], Fri May 8 18:18:59 1998 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

Fix some arithmetics lossage on typeless pointers.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:30 1998 UTC (26 years ago) by fvdl
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:12:59 1998 UTC (26 years ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +10 -5 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:42 1998 UTC (26 years ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +210 -1 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.37 / (download) - annotate - [select for diffs], Sun Feb 22 12:53:53 1998 UTC (26 years ago) by hannken
Branch: MAIN
Changes since 1.36: +4 -1 lines
Diff to previous 1.36 (colored)

Didn't compile with option MEMORY_DISK_HOOKS.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Feb 18 07:11:46 1998 UTC (26 years ago) by thorpej
Branch: MAIN
Changes since 1.35: +17 -14 lines
Diff to previous 1.35 (colored)

vfssw[] is gone; use vfs_list instead.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Feb 13 17:36:41 1998 UTC (26 years ago) by tls
Branch: MAIN
Changes since 1.34: +1 -2 lines
Diff to previous 1.34 (colored)

Remove rounding-down of hash size in hashinit(); support non &hashmask hash functions such as % [prime number] without bletcherous hacks.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Feb 10 14:09:43 1998 UTC (26 years ago) by mrg
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Feb 7 02:44:47 1998 UTC (26 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

add flags arg to hashinit(), to pass to malloc().

Revision 1.32 / (download) - annotate - [select for diffs], Thu Feb 5 07:59:55 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.31: +10 -1 lines
Diff to previous 1.31 (colored)

initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the rest of the MI portion changes.

this will be KNF'd shortly.  :-)

Revision 1.27.4.3 / (download) - annotate - [select for diffs], Tue Oct 14 10:26:03 1997 UTC (26 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.27.4.2: +38 -2 lines
Diff to previous 1.27.4.2 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Oct 5 18:39:50 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.30: +38 -2 lines
Diff to previous 1.30 (colored)

Copyright assigned to The NetBSD Foundation.

Revision 1.27.4.2 / (download) - annotate - [select for diffs], Tue Sep 16 03:51:03 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.27.4.1: +5 -3 lines
Diff to previous 1.27.4.1 (colored) to branchpoint 1.27 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Sep 13 07:38:25 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored)

Prevent an extra newline from being printed if the root device is a network
interface.

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:14:07 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.27: +28 -10 lines
Diff to previous 1.27 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Aug 6 16:57:33 1997 UTC (26 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Changes since 1.28: +7 -2 lines
Diff to previous 1.28 (colored)

eliminate unused variable warnings
closes PR kern/3946 by Erik Bertelsen

Revision 1.28 / (download) - annotate - [select for diffs], Sun Aug 3 20:36:03 1997 UTC (26 years, 7 months ago) by leo
Branch: MAIN
Changes since 1.27: +24 -11 lines
Diff to previous 1.27 (colored)

Allow for more than one md-device.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jun 16 00:25:05 1997 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.26: +15 -3 lines
Diff to previous 1.26 (colored)

Fix a slight botch in dumpdev configuration logic in the RB_ASKNAME
case if a network interface is selected as the root device.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jun 14 04:17:32 1997 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +143 -25 lines
Diff to previous 1.25 (colored)

Fix crash dump device selection after the recent swap changes:
- If RB_ASKNAME, prompt for the dump device, defaulting to
  partition 'b' of the root device, if the root device is a disk.
- Else, if dumpspec is set to "none", do not configure a dump device.
- Else, if dumpspec is set by config(8), attempt to use that device.
- Else, dumpspec is wildcarded or unspecified; if the root device is
  a disk, select partition b.  (which was the previous default dump
  partition)

Note, dumps to a local disk now work even if root is on nfs.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jun 12 17:12:20 1997 UTC (26 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.24: +11 -152 lines
Diff to previous 1.24 (colored)

remove swap configuration.

Revision 1.24 / (download) - annotate - [select for diffs], Sun May 25 19:20:30 1997 UTC (26 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +8 -8 lines
Diff to previous 1.23 (colored)

Move the test for "no rootspec and no bootdv" to after we've had a chance
to set rootspec in the case of "root on ? type nfs" and no bootdv was
found.  From maximum entropy <entropy@tanstaafl.bernstein.com>, PR #3669.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 26 22:42:16 1997 UTC (26 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

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

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Wed Mar 12 21:23:41 1997 UTC (26 years, 11 months ago) by is
Branch: is-newarp
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Merge in changes from Trunk

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Sun Mar 2 16:18:28 1997 UTC (27 years ago) by mrg
Branch: mrg-vm-swap
Changes since 1.20: +14 -146 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

swap configuration is no longer done at boot time.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Feb 24 12:20:47 1997 UTC (27 years ago) by leo
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Only make the memory-disk device the default root device when
MEMORY_DISK_IS_ROOT is defined.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Feb 12 19:27:08 1997 UTC (27 years ago) by ragge
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Fix bug that caused crash when root device was specified as 'ra0*'.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Feb 1 02:28:48 1997 UTC (27 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: is-newarp-base
Branch point for: mrg-vm-swap, is-newarp
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

use cnpollc() appropriately in getstr()

Revision 1.19 / (download) - annotate - [select for diffs], Sat Feb 1 00:39:14 1997 UTC (27 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

list 'a'+MAXPARTITONS-1, rather than just 'a'+MAXPARTITIONS, as last partition

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jan 31 02:31:33 1997 UTC (27 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.17: +648 -1 lines
Diff to previous 1.17 (colored)

- Implement a new machine-independent setroot() function, mostly derived
  from the version used by NetBSD/alpha, with several changes by me.
  Support for asking for root device and root file system type on any
  kernel, obsoleting "options GENERIC".
- Make my mountroothook implementation used by the sparc and x68k
  ports machine-independent, and use it here.  Mountroothooks allow
  devices to execute special functions before being mounted as the
  root device (such as ejecting the floppy and prompting for a new
  floppy disk).
- Make swapconf() machine-independent.  It was identical on all ports.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Tue Jan 14 21:27:04 1997 UTC (27 years, 1 month ago) by thorpej
Branch: thorpej-setroot
Changes since 1.17: +648 -1 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Snapshot of work-in-progress, committed to private branch.

These changes implement machine-independent root device and file system
selection.  Notable features:

	- All ports behave in a consistent manner regarding root
	  device selection.
	- No more "options GENERIC"; all kernels have the ability
	  to boot with RB_ASKNAME to select root device and file system
	  type.
	- Root file system type can be wildcarded; a machine-independent
	  function will try all possible file systems for the selected
	  root device until one succeeds.
	- If the root file system fails to mount, the operator will
	  be given the chance to select a new root device and file
	  system type, rather than having the machine simply panic.
	- nfs_mountroot() no longer panics if any part of the NFS
	  mount process fails; it now returns an error, giving the
	  operator a chance to recover.
	- New, more consistent, config(8) grammar.  The constructs:

		config netbsd swap generic
		config netbsd root on nfs

	  have been replaced with:

		config netbsd root on ? type ?
		config netbsd root on ? type nfs

	  Additionally, the operator may select or wildcard root file
	  system type in the kernel configuration file:

		config netbsd root on cd0a type cd9660

	  config(8) now requires that a "root" specification be
	  made.  "root" may be wired down or wildcarded.  "swap" and
	  "dump" specifications are optional, and follow previous
	  semantics.

	- config(8) has a new "file-system" keyword, used to configure
	  file systems into the kernel.  Eventually, this will be used
	  to generate the default vfssw[].

	- "options NFSCLIENT" is obsolete, and is replaced by
	  "file-system NFS".  "options NFSSERVER" still exists, since
	  NFS server support is independent of the NFS file system
	  client.

	- sys/arch/<foo>/<foo>/swapgeneric.c is no longer used, and
	  will be removed; all information is now generated by config(8).

As of this commit, all ports except arm32 have been updated to use
the new setroot().  Only SPARC, i386, and Alpha ports have been
tested at this time.  Port masters should test these changes on their
ports, and report any problems back to me.

More changes are on their way, including RB_ASKNAME support in
nfs_mountroot() (to prompt for server address and path) and, potentially,
the ability to select rarp/bootparam or bootp in nfs_mountroot().

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Thu Dec 5 07:36:25 1996 UTC (27 years, 3 months ago) by rat
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.15: +18 -8 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Pullup request 1.16 -> 1.17 from Chris G Demetriou <cgd@NetBSD.ORG>

>If a shutdown hook causes a fatal trap, the kernel will try to
>re-run the same shutdown hook over and over... probably eventually
>crashing and rebooting, but that "eventually" might take a while.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Nov 24 00:42:31 1996 UTC (27 years, 3 months ago) by cgd
Branch: MAIN
Branch point for: thorpej-setroot
Changes since 1.16: +18 -8 lines
Diff to previous 1.16 (colored)

fix two problems with shutdown hook code:
(1) after removing a shutdown hook (in shutdownhook_disestablish()),
    free it.  We created it, we have to free it.  Without this,
    shutdownhook_disestablish() leaks memory.
(2) in doshutdownhooks(), before running each hook, remove it from the
    shutdown hook list.  This makes sure that every hook is tried once
    (because doshutdownhooks() is called from before rebooting, and
    a fault in a shutdown hook will cause doshutdownhooks() to be called
    again), but prevents the hooks from potentially being run infinitely
    (as used to be possible, in the above-mentioned situation).

Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 13 02:27:52 1996 UTC (27 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.15: +6 -5 lines
Diff to previous 1.15 (colored)

fix uiomove's first argument and remove unnecessary casts

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 9 17:21:56 1996 UTC (27 years, 10 months ago) by ragge
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.14: +1 -44 lines
Diff to previous 1.14 (colored)

Removed a function that were #ifdef vax'ed.

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 31 20:41:44 1995 UTC (28 years, 9 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.13: +70 -1 lines
Diff to previous 1.13 (colored)

add a facility by which to register 'hooks' to be run at shutdown time.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Feb 8 15:06:48 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.12: +1 -11 lines
Diff to previous 1.12 (colored)

Remove UIO_USERISPACE.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:43 1994 UTC (29 years, 8 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.11: +3 -2 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 18 12:46:29 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +10 -5 lines
Diff to previous 1.10 (colored)

Some nits.

Revision 1.10 / (download) - annotate - [select for diffs], Wed May 18 10:21:18 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.9: +34 -55 lines
Diff to previous 1.9 (colored)

update from lite.  delete obsolete (wfj) function, add hashinit()

Revision 1.9 / (download) - annotate - [select for diffs], Tue May 17 04:22:00 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.8: +232 -1 lines
Diff to previous 1.8 (colored)

copyright foo

Revision 1.8 / (download) - annotate - [select for diffs], Wed Feb 16 17:34:01 1994 UTC (30 years ago) by pk
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

Check `uio_resid' separately (and panic if invalid).

Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 18 04:21:10 1993 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

Canonicalize all #includes.

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Sun Nov 14 20:32:10 1993 UTC (30 years, 3 months ago) by mycroft
Branch: magnum
Changes since 1.5.4.1: +1 -1 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Canonicalize all #includes.

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Tue Sep 14 18:24:18 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (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.6 / (download) - annotate - [select for diffs], Sat Sep 11 00:08:03 1993 UTC (30 years, 5 months ago) by jtc
Branch: MAIN
CVS Tags: magnum-base
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

Removed functions moved to libkern: strcpy, strcmp, strlen, ffs, etc.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jun 27 06:01:45 1993 UTC (30 years, 8 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
Branch point for: magnum
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Wed Jun 2 23:47:23 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

make strcpy "normal" and get rid of extra (random) spacing...

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 02:54:41 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

add $Id$ strings, and clean up file headers where necessary

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: 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 (30 years, 11 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>