The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.64 / (download) - annotate - [select for diffs], Wed Oct 26 23:23:52 2022 UTC (17 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.63: +2 -4 lines
Diff to previous 1.63 (colored) to selected 1.2 (colored)

sys: Put externs for time_adjtime and time_adjusted in .h files.

time_adjtime: sys/timex.h (defined in ntp code)
time_adjusted: sys/timevar.h (defined in non-ntp code)

(Not really sure this is a valuable distinction to maintain; there's
non-ntp code that uses time_adjtime too.)

Revision 1.63 / (download) - annotate - [select for diffs], Sun Mar 13 12:57:33 2022 UTC (2 years, 1 month ago) by riastradh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.62: +6 -3 lines
Diff to previous 1.62 (colored) to selected 1.2 (colored)

ntp(9): Avoid left shift of negative.

Kinda silly that this is UB at all...

Reported-by: syzbot+baf29c7f0756293b8257@syzkaller.appspotmail.com

Revision 1.62 / (download) - annotate - [select for diffs], Sun Mar 13 12:30:47 2022 UTC (2 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.61: +9 -5 lines
Diff to previous 1.61 (colored) to selected 1.2 (colored)

ntp(9): Clamp ntv->offset to avoid arithmetic overflow on adjtime.

Reported-by: syzbot+b8406db60db88650652e@syzkaller.appspotmail.com

Revision 1.61 / (download) - annotate - [select for diffs], Sat Feb 5 15:29:50 2022 UTC (2 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.60: +4 -3 lines
Diff to previous 1.60 (colored) to selected 1.2 (colored)

kernel: Avoid arithmetic overflow in ntp_adjtime.

Reported-by: syzbot+f4343a1c91ddfe8bbe97@syzkaller.appspotmail.com

Revision 1.57.18.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.2 (colored)

Sync with HEAD

Revision 1.57.10.1 / (download) - annotate - [select for diffs], Thu Jan 24 15:35:14 2019 UTC (5 years, 2 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.2 (colored)

Pull up following revision(s) (requested by maxv in ticket #1168):

	sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.

Reported by Thomas Barabosch.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Thu Jan 24 14:14:13 2019 UTC (5 years, 2 months ago) by martin
Branch: netbsd-7
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored) next main 1.56 (colored) to selected 1.2 (colored)

Pull up following revision(s) (requested by maxv in ticket #1675):

	sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.

Revision 1.55.12.1 / (download) - annotate - [select for diffs], Thu Jan 24 14:13:26 2019 UTC (5 years, 2 months ago) by martin
Branch: netbsd-7-1
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored) next main 1.56 (colored) to selected 1.2 (colored)

Pull up following revision(s) (requested by maxv in ticket #1675):

	sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.

Revision 1.55.8.1 / (download) - annotate - [select for diffs], Thu Jan 24 14:12:09 2019 UTC (5 years, 2 months ago) by martin
Branch: netbsd-7-0
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored) next main 1.56 (colored) to selected 1.2 (colored)

Pull up following revision(s) (requested by maxv in ticket #1675):

	sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.

Revision 1.57.16.2 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:50 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.57.16.1: +3 -2 lines
Diff to previous 1.57.16.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored) to selected 1.2 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.60 / (download) - annotate - [select for diffs], Mon Oct 29 22:02:25 2018 UTC (5 years, 5 months ago) by christos
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-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.59: +3 -2 lines
Diff to previous 1.59 (colored) to selected 1.2 (colored)

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.

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

Sync with HEAD

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jul 1 15:12:06 2018 UTC (5 years, 9 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Changes since 1.58: +1 -1 lines
Diff to previous 1.58 (colored) to selected 1.2 (colored)

Revert "Sprinkle cold conditionals to make tc_ticktock before inittimecounter."

Not needed if we're no longer doing tc_ticktock in printf.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Jun 30 22:47:51 2018 UTC (5 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.2 (colored)

Sprinkle cold conditionals to make tc_ticktock before inittimecounter.

Enables Xen to boot again.

XXX Maybe we should have a tc_ticktock_cold instead or something so we
don't have to reach this far into the call graph.

Revision 1.54.18.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:44 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.54.18.1: +2 -2 lines
Diff to previous 1.54.18.1 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored) to selected 1.2 (colored)

update from HEAD

Revision 1.55.6.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:05 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.55.6.1: +3 -3 lines
Diff to previous 1.55.6.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.2 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.57 / (download) - annotate - [select for diffs], Mon Nov 23 23:45:44 2015 UTC (8 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, 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, 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, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, 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: phil-wifi, pgoyette-compat, netbsd-8
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.2 (colored)

Cast argument to uint64_t first before shifting to avoid UB for
left-shifting negative values.

Revision 1.55.6.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:07 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.2 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Fri Jul 24 13:02:52 2015 UTC (8 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.2 (colored)

Unused inits (harmless).

Found by Brainy.

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

Rebase to HEAD as of a few days ago.

Revision 1.54.8.1 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.54: +2 -8 lines
Diff to previous 1.54 (colored) next main 1.55 (colored) to selected 1.2 (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.54.22.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.54: +2 -8 lines
Diff to previous 1.54 (colored) next main 1.55 (colored) to selected 1.2 (colored)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:11 2014 UTC (10 years, 1 month 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, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, 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-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7
Changes since 1.54: +2 -8 lines
Diff to previous 1.54 (colored) to selected 1.2 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:39 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.48.2.2: +5 -3 lines
Diff to previous 1.48.2.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.52.6.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:57 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.52: +5 -3 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.2 (colored)

sync with head

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:10 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.52: +5 -3 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.2 (colored)

Sync with HEAD.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Apr 13 22:46:10 2010 UTC (14 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, khorben-n900, jruoho-x86intr-base, jruoho-x86intr, 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, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Changes since 1.53: +4 -2 lines
Diff to previous 1.53 (colored) to selected 1.2 (colored)

_KERNEL_OPT

Revision 1.53 / (download) - annotate - [select for diffs], Fri Apr 2 23:31:42 2010 UTC (14 years ago) by tsutsui
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.2 (colored)

Use time_t (not long) to save time_second value.

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.48.2.1: +3 -51 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.49.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:38 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.49: +3 -51 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.2 (colored)

Sync with HEAD.

Revision 1.46.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.46.6.2: +1 -49 lines
Diff to previous 1.46.6.2 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.2 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Jan 11 21:00:11 2009 UTC (15 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.51: +2 -12 lines
Diff to previous 1.51 (colored) to selected 1.2 (colored)

remove !NTP stub.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:52 2009 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.50: +4 -35 lines
Diff to previous 1.50 (colored) to selected 1.2 (colored)

merge christos-time_t

Revision 1.49.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:08 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.49: +4 -11 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.2 (colored)

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

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Thu Nov 20 20:45:39 2008 UTC (15 years, 5 months ago) by christos
Branch: christos-time_t
Changes since 1.47.2.2: +2 -5 lines
Diff to previous 1.47.2.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.2 (colored)

merge with head.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:06 2008 UTC (15 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.49: +4 -11 lines
Diff to previous 1.49 (colored) to selected 1.2 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:27 2008 UTC (15 years, 5 months ago) by christos
Branch: christos-time_t
Changes since 1.47.2.1: +51 -12 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) to selected 1.2 (colored)

Sync with head.

Revision 1.46.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:08 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.46.6.1: +49 -10 lines
Diff to previous 1.46.6.1 (colored) to branchpoint 1.46 (colored) to selected 1.2 (colored)

Sync with HEAD.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:08 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.47: +51 -12 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.2 (colored)

sync with head.

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

sync with head.

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:13 2008 UTC (15 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.49.2.1: +2 -3 lines
Diff to previous 1.49.2.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored) to selected 1.2 (colored)

Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:04 2008 UTC (15 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.49: +3 -2 lines
Diff to previous 1.49 (colored) to selected 1.2 (colored)

Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:03 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: wrstuden-revivesa, nick-hppapmap, haad-dm
Changes since 1.48: +2 -9 lines
Diff to previous 1.48 (colored) to selected 1.2 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.48 / (download) - annotate - [select for diffs], Mon Apr 21 12:56:31 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.47: +58 -12 lines
Diff to previous 1.47 (colored) to selected 1.2 (colored)

Make ntp, pmc, reboot, sysarch, time syscalls MPSAFE.

Revision 1.46.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:01 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) to selected 1.2 (colored)

Sync with HEAD.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:47:00 2008 UTC (16 years ago) by christos
Branch: christos-time_t
Changes since 1.47: +4 -39 lines
Diff to previous 1.47 (colored) to selected 1.2 (colored)

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

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:13 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.43.16.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:59 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.43.16.2: +3 -246 lines
Diff to previous 1.43.16.2 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored) to selected 1.2 (colored)

sync with HEAD

Revision 1.28.4.7 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:33 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.4.6: +3 -3 lines
Diff to previous 1.28.4.6 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Feb 27 19:55:59 2008 UTC (16 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, christos-time_t
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) to selected 1.2 (colored)

Convert stragglers to ansi definitions from old-style definitons.
Remember that func() is not ansi, func(void) is.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:46 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.44: +2 -250 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.2 (colored)

Sync with HEAD.

Revision 1.44.8.2 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:40 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.44.8.1: +0 -243 lines
Diff to previous 1.44.8.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored) to selected 1.2 (colored)

Sync with HEAD.

Revision 1.28.4.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:07 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.4.5: +15 -268 lines
Diff to previous 1.28.4.5 (colored) to branchpoint 1.28 (colored) to selected 1.2 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jan 20 18:09:11 2008 UTC (16 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.45: +2 -245 lines
Diff to previous 1.45 (colored) to selected 1.2 (colored)

Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.

Revision 1.43.16.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:05 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.43.16.1: +21 -31 lines
Diff to previous 1.43.16.1 (colored) to branchpoint 1.43 (colored) to selected 1.2 (colored)

sync with HEAD

Revision 1.44.8.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:54 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.44: +21 -31 lines
Diff to previous 1.44 (colored) to selected 1.2 (colored)

Sync with HEAD

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:08 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.44: +21 -31 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.2 (colored)

Sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:08 2007 UTC (16 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-base
Changes since 1.44: +21 -31 lines
Diff to previous 1.44 (colored) to selected 1.2 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

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

sync with HEAD

Revision 1.28.4.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:25 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.4.4: +5 -5 lines
Diff to previous 1.28.4.4 (colored) to branchpoint 1.28 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.43.14.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:33 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored) next main 1.44 (colored) to selected 1.2 (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.43.20.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:40:01 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored) next main 1.44 (colored) to selected 1.2 (colored)

Sync with HEAD.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:11 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored) next main 1.44 (colored) to selected 1.2 (colored)

Sync with head.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:43 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored) to selected 1.2 (colored)

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

Revision 1.28.4.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:51 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.4.3: +9 -9 lines
Diff to previous 1.28.4.3 (colored) to branchpoint 1.28 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:35 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.42: +9 -9 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.2 (colored)

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:05 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: vmlocking, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.42: +9 -9 lines
Diff to previous 1.42 (colored) to selected 1.2 (colored)

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

Revision 1.28.4.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:08 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.4.2: +3 -5 lines
Diff to previous 1.28.4.2 (colored) to branchpoint 1.28 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:30 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.41: +3 -5 lines
Diff to previous 1.41 (colored) to selected 1.2 (colored)

Merge newlock2 to head.

Revision 1.35.4.2 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:40 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.35.4.1: +3 -5 lines
Diff to previous 1.35.4.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.2 (colored)

Remove support for SA. Ok core@.

Revision 1.28.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:05 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.4.1: +23 -36 lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.37.2.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:44 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.37.2.1: +7 -13 lines
Diff to previous 1.37.2.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:22 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.35: +13 -23 lines
Diff to previous 1.35 (colored) to selected 1.2 (colored)

Sync with head.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.40: +7 -13 lines
Diff to previous 1.40 (colored) to selected 1.2 (colored)

remove some __unused from function parameters.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:10 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.37: +11 -17 lines
Diff to previous 1.37 (colored) to selected 1.2 (colored)

sync with head

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

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

Revision 1.39 / (download) - annotate - [select for diffs], Fri Oct 13 16:53:36 2006 UTC (17 years, 6 months ago) by dogcow
Branch: MAIN
Changes since 1.38: +10 -9 lines
Diff to previous 1.38 (colored) to selected 1.2 (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.38 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:16 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.37: +5 -11 lines
Diff to previous 1.37 (colored) to selected 1.2 (colored)

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

Revision 1.29.8.4 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.29.8.3: +9 -7 lines
Diff to previous 1.29.8.3 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Sep 9 11:52:56 2006 UTC (17 years, 7 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Changes since 1.36: +7 -7 lines
Diff to previous 1.36 (colored) to selected 1.2 (colored)

Authorize ntp_adjtime() on the correct scope.

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

sync with head

Revision 1.36 / (download) - annotate - [select for diffs], Fri Sep 8 20:58:57 2006 UTC (17 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.35: +9 -7 lines
Diff to previous 1.35 (colored) to selected 1.2 (colored)

First take at security model abstraction.

- Add a few scopes to the kernel: system, network, and machdep.

- Add a few more actions/sub-actions (requests), and start using them as
  opposed to the KAUTH_GENERIC_ISSUSER place-holders.

- Introduce a basic set of listeners that implement our "traditional"
  security model, called "bsd44". This is the default (and only) model we
  have at the moment.

- Update all relevant documentation.

- Add some code and docs to help folks who want to actually use this stuff:

  * There's a sample overlay model, sitting on-top of "bsd44", for
    fast experimenting with tweaking just a subset of an existing model.

    This is pretty cool because it's *really* straightforward to do stuff
    you had to use ugly hacks for until now...

  * And of course, documentation describing how to do the above for quick
    reference, including code samples.

All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:

	http://kauth.linbsd.org/kauthwiki

NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:

  - Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
  - Checks 'securelevel' directly,
  - Checks a uid/gid directly.

(or if you feel you have to, contact me first)

This is still work in progress; It's far from being done, but now it'll
be a lot easier.

Relevant mailing list threads:

http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html

Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).

Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.

Happy birthday Randi! :)

Revision 1.29.8.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.29.8.2: +17 -20 lines
Diff to previous 1.29.8.2 (colored) to branchpoint 1.29 (colored) to selected 1.2 (colored)

sync with head

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (17 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.34: +14 -18 lines
Diff to previous 1.34 (colored) to selected 1.2 (colored)

Use the LWP cached credentials where sane.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:50 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.33: +6 -5 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.2 (colored)

Merge from HEAD.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jul 1 05:44:26 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored) to selected 1.2 (colored)

L_CLR(time_adj) each round so adjtime() corrections don't
accumulate over time resulting in a constantly speeding/
slowing clock. found with wiz@ in a timecounter non NTP
kernel configuration.

Revision 1.29.8.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:56 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.29.8.1: +991 -154 lines
Diff to previous 1.29.8.1 (colored) to branchpoint 1.29 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:37 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28: +994 -155 lines
Diff to previous 1.28 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:15 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.30: +991 -154 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.2 (colored)

Sync with head.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:40 2006 UTC (17 years, 10 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Changes since 1.32: +968 -126 lines
Diff to previous 1.32 (colored) to selected 1.2 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.29.6.8 / (download) - annotate - [select for diffs], Fri Jun 2 17:04:01 2006 UTC (17 years, 10 months ago) by drochner
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.29.6.7: +5 -5 lines
Diff to previous 1.29.6.7 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored) to selected 1.2 (colored)

fix the ntp_timestatus return value in the !TIMECOUNTERS case, makes
it compile on alpha

Revision 1.29.6.7 / (download) - annotate - [select for diffs], Fri Jun 2 13:05:29 2006 UTC (17 years, 10 months ago) by drochner
Branch: simonb-timecounters
Changes since 1.29.6.6: +5 -3 lines
Diff to previous 1.29.6.6 (colored) to branchpoint 1.29 (colored) to selected 1.2 (colored)

make ntp_adjtime() work after kauth merge

Revision 1.29.6.6 / (download) - annotate - [select for diffs], Fri Jun 2 00:13:12 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.29.6.5: +109 -289 lines
Diff to previous 1.29.6.5 (colored) to branchpoint 1.29 (colored) to selected 1.2 (colored)

- track kauth change
- unify helper and compatibility functions

Revision 1.29.6.5 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:07 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.29.6.4: +130 -133 lines
Diff to previous 1.29.6.4 (colored) to branchpoint 1.29 (colored) to selected 1.2 (colored)

Sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Mon May 29 16:43:05 2006 UTC (17 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: simonb-timecounters-base
Changes since 1.31: +4 -7 lines
Diff to previous 1.31 (colored) to selected 1.2 (colored)

export ntp_gettime() and ntp_timestatus(), for use by compat code

Revision 1.31 / (download) - annotate - [select for diffs], Mon May 29 09:57:54 2006 UTC (17 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.30: +129 -131 lines
Diff to previous 1.30 (colored) to selected 1.2 (colored)

Extend "struct ntptimeval" for the needs of "timecounters".
Allocate a new syscall for ntp_gettime() and set up COMPAT_30 for
the old one.

Revision 1.29.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored) to selected 1.2 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.29.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:41 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored) to selected 1.2 (colored)

sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5
Branch point for: chap-midi
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored) to selected 1.2 (colored)

integrate kauth.

Revision 1.29.10.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:30 2006 UTC (17 years, 11 months ago) by christos
Branch: elad-kernelauth
Changes since 1.29.10.2: +3 -2 lines
Diff to previous 1.29.10.2 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored) to selected 1.2 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.29.6.4 / (download) - annotate - [select for diffs], Sun Apr 30 18:03:13 2006 UTC (17 years, 11 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.29.6.3: +104 -95 lines
Diff to previous 1.29.6.3 (colored) to branchpoint 1.29 (colored) to selected 1.2 (colored)

- simplify interfacing with the rest by
  separation of input/output (copy{in,out})
  and functional implementation

Revision 1.29.6.3 / (download) - annotate - [select for diffs], Wed Mar 15 22:52:05 2006 UTC (18 years, 1 month ago) by kardel
Branch: simonb-timecounters
Changes since 1.29.6.2: +4 -4 lines
Diff to previous 1.29.6.2 (colored) to branchpoint 1.29 (colored) to selected 1.2 (colored)

fix #undef NTP case

Revision 1.29.10.2 / (download) - annotate - [select for diffs], Fri Mar 10 13:53:24 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.29.10.1: +3 -3 lines
Diff to previous 1.29.10.1 (colored) to branchpoint 1.29 (colored) to selected 1.2 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.29.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:40 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.29: +4 -3 lines
Diff to previous 1.29 (colored) to selected 1.2 (colored)

Adapt to kernel authorization KPI.

Revision 1.29.6.2 / (download) - annotate - [select for diffs], Tue Feb 28 21:01:52 2006 UTC (18 years, 1 month ago) by kardel
Branch: simonb-timecounters
Changes since 1.29.6.1: +27 -15 lines
Diff to previous 1.29.6.1 (colored) to branchpoint 1.29 (colored) to selected 1.2 (colored)

compile fixes
keep enough mechanics to support adjtime() even when NTP
is not defined

Revision 1.29.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 12:47:20 2006 UTC (18 years, 2 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.29: +1001 -2 lines
Diff to previous 1.29 (colored) to selected 1.2 (colored)

If using timecounters, use the 2001-04-02 version of the nanokernel code
from Dave Mills.  From FreeBSD.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.2 (colored)

merge ktrace-lwp.

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:23 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.2 (colored)

sync with -current

Revision 1.27.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:11 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.2 (colored)

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

Revision 1.23.2.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:58 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.23.2.3: +5 -5 lines
Diff to previous 1.23.2.3 (colored) next main 1.24 (colored) to selected 1.2 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.28 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-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, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored) to selected 1.2 (colored)

nuke trailing whitespace

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

Fix the sync with head I botched.

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

Sync with HEAD.

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

Sync with HEAD

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Wed Apr 21 04:27:44 2004 UTC (20 years ago) by jmc
Branch: netbsd-2-0
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-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
Changes since 1.26: +4 -3 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.2 (colored)

Pullup rev 1.27 (requested by atatat in ticket #93)

Lots of sysctl descriptions mostly copied from sysctl(3).

Revision 1.27 / (download) - annotate - [select for diffs], Thu Apr 8 06:20:29 2004 UTC (20 years ago) by atatat
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.26: +4 -3 lines
Diff to previous 1.26 (colored) to selected 1.2 (colored)

Lots of sysctl descriptions (if someone wants to help out here, that
would be good) mostly copied from sysctl(3).  This takes care of the
top-level, most of kern.* and hw.* (modulo the ath and bge stuff), and
all of proc.*.

If you don't want the added rodata in your kernel, use "options
SYSCTL_NO_DESCR" in your kernel config.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:52 2004 UTC (20 years, 1 month ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.25: +6 -4 lines
Diff to previous 1.25 (colored) to selected 1.2 (colored)

Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:23 2003 UTC (20 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.24: +25 -7 lines
Diff to previous 1.24 (colored) to selected 1.2 (colored)

Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Dec 4 19:23:00 2003 UTC (20 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored) to selected 1.2 (colored)

fix typo in comment

Revision 1.23 / (download) - annotate - [select for diffs], Wed Apr 16 21:35:07 2003 UTC (21 years ago) by dsl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.22: +6 -2 lines
Diff to previous 1.22 (colored) to selected 1.2 (colored)

Remember if ntp has adjusted clock rate, hardware RTC may be wrong.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:28 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +10 -8 lines
Diff to previous 1.21 (colored) to selected 1.2 (colored)

Merge the nathanw_sa branch.

Revision 1.13.2.8 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:17 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.13.2.7: +2 -3 lines
Diff to previous 1.13.2.7 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored) to selected 1.2 (colored)

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

Revision 1.13.4.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:30 2002 UTC (21 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.13.4.1: +4 -14 lines
Diff to previous 1.13.4.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored) to selected 1.2 (colored)

catch up with -current on kqueue branch

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

Catch up to -current.

Revision 1.13.2.6 / (download) - annotate - [select for diffs], Wed May 29 21:33:11 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.5: +3 -2 lines
Diff to previous 1.13.2.5 (colored) to branchpoint 1.13 (colored) to selected 1.2 (colored)

#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)

Revision 1.21 / (download) - annotate - [select for diffs], Fri May 3 01:22:30 2002 UTC (21 years, 11 months ago) by eeh
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored) to selected 1.2 (colored)

Back out previous.

Revision 1.20 / (download) - annotate - [select for diffs], Fri May 3 00:22:16 2002 UTC (21 years, 11 months ago) by eeh
Branch: MAIN
Changes since 1.19: +7 -7 lines
Diff to previous 1.19 (colored) to selected 1.2 (colored)

Move the copyout out of ntp_adjtime1 and into the syscall wrapper.

Revision 1.13.2.5 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:53 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.4: +4 -14 lines
Diff to previous 1.13.2.4 (colored) to branchpoint 1.13 (colored) to selected 1.2 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Sun Mar 17 11:15:49 2002 UTC (22 years, 1 month ago) by simonb
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.18: +3 -11 lines
Diff to previous 1.18 (colored) to selected 1.2 (colored)

White space nits.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Mar 17 11:10:43 2002 UTC (22 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.17: +3 -5 lines
Diff to previous 1.17 (colored) to selected 1.2 (colored)

We don't need to include <uvm/uvm_extern.h> before <sys/sysctl.h> anymore.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:51 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.13: +55 -37 lines
Diff to previous 1.13 (colored) to selected 1.2 (colored)

Sync kqueue branch with -current.

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:33 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.3: +2 -3 lines
Diff to previous 1.13.2.3 (colored) to branchpoint 1.13 (colored) to selected 1.2 (colored)

Catch up to -current.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 9 16:10:43 2001 UTC (22 years, 4 months ago) by manu
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.16: +2 -3 lines
Diff to previous 1.16 (colored) to selected 1.2 (colored)

Changed clocktl interface to use syscallargs structures

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:36 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.2: +5 -1 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored) to selected 1.2 (colored)

Catch up to -current.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:48 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.15: +5 -1 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.2 (colored)

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

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

add RCSIDs

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:51 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.13: +52 -37 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.2 (colored)

Catch up with -current.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:25 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.13.2.1: +52 -37 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) to selected 1.2 (colored)

Catch up to -current.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 16 09:55:26 2001 UTC (22 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.14: +34 -30 lines
Diff to previous 1.14 (colored) to selected 1.2 (colored)

Fix issues areound compilation errors (ntv is a pointer in adjtime1 and needs
-> rather than . access and adjtime1 needs the syscall args passed in)

Revision 1.14 / (download) - annotate - [select for diffs], Sun Sep 16 06:50:06 2001 UTC (22 years, 7 months ago) by manu
Branch: MAIN
Changes since 1.13: +21 -10 lines
Diff to previous 1.13 (colored) to selected 1.2 (colored)

Split root-only time-related system calls so that we have an upper part, that
checks root privs, and a lower part that does the actual job. The lower part
will be called by the upcoming clockctl driver. Approved by Christos
Also fixed a few cosmetic things

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:41 2001 UTC (23 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.13: +9 -7 lines
Diff to previous 1.13 (colored) to selected 1.2 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.7.12.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:02 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.7: +6 -30 lines
Diff to previous 1.7 (colored) next main 1.8 (colored) to selected 1.2 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 7 18:10:21 2000 UTC (23 years, 8 months ago) by bjh21
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Changes since 1.12: +4 -27 lines
Diff to previous 1.12 (colored) to selected 1.2 (colored)

Second phase of changes to remove ntp_adjtime(2) from the kernel entirely if
NTP is not defined.

Also removes sysctl_ntptime, since that's unreferenced without NTP.

ntp_gettime(2) is left alone, since it doesn't raise SIGSYS, which sys_nosys()
does.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:23 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.2 (colored)

remove include of <vm/vm.h>

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:08 2000 UTC (23 years, 10 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.2 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 2 18:22:44 2000 UTC (23 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.2 (colored)

fix type of sysctl_ntptime 'where' arg in defined(NTP) case

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 2 15:53:04 2000 UTC (23 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.2 (colored)

Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO",
"KERN_SYSVIPC_SEM_INFO" and "KERN_SYSVIPC_SHM_INFO" to return the
info and data structures for the relevent SysV IPC types.  The return
structures use fixed-size types and should be compat32 safe.  All
user-visible changes are protected with
	#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)

Make all variable declarations extern in msg.h, sem.h and shm.h and
add relevent variable declarations to sysv_*.c and remove unneeded
header files from those .c files.

Make compat14 SysV IPC conversion functions and sysctl_file() static.

Change the data pointer to "void *" in sysctl_clockrate(),
sysctl_ntptime(), sysctl_file() and sysctl_doeproc().

Revision 1.9 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:11 2000 UTC (24 years ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) to selected 1.2 (colored)

Get rid of register declarations.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 28 22:01:52 2000 UTC (24 years ago) by simonb
Branch: MAIN
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored) to selected 1.2 (colored)

Delete duplicate definition of kernel time variable (in <sys/kernel.h>).

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:54 1998 UTC (25 years, 8 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.2 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:50 1998 UTC (25 years, 8 months ago) by perry
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: thorpej_scsipi
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.2 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Wed Apr 22 07:08:11 1998 UTC (26 years ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored) to selected 1.2 (colored)

defopt NTP and PPS_SYNC, in preparation for adding PPS support.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Dec 22 06:23:40 1996 UTC (27 years, 4 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored) to selected 1.2 (colored)

ntp_gettime()'s argument is a struct ntptimeval *, not a struct timex *

Revision 1.4 / (download) - annotate - [select for diffs], Fri Dec 6 20:10:51 1996 UTC (27 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +40 -0 lines
Diff to previous 1.3 (colored) to selected 1.2 (colored)

Back out this piece of revision 1.3:

>- Optional systems calls are "UNIMPL" if the support is not being
>  compiled into the kernel.

It had implications that didn't occurr to me at the time.  *sigh*

Revision 1.3 / (download) - annotate - [select for diffs], Thu Nov 14 04:51:09 1996 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +5 -45 lines
Diff to previous 1.2 (colored)

Make ntp_gettime() and ntp_adjtime() like other system calls:
- The functions that implement them and the argument names are
  prepended with "sys_".
- Optional systems calls are "UNIMPL" if the support is not being
  compiled into the kernel.

Revision 1.2 / (download) - annotate - [selected], Thu Mar 7 14:31:20 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.1: +5 -1 lines
Diff to previous 1.1 (colored)

- Make things compile cleanly after the NTP additions.
- Remove unused variables in exec_ecoff.c

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 27 04:20:38 1996 UTC (28 years, 1 month ago) by jonathan
Branch: MAIN
Diff to selected 1.2 (colored)

Add NTP kernel precision timekeeping from Dave Mill's xntp distribution
and the "kernel.tar.Z" distribution on louie.udel.edu, which is older than
xntp 3.4y or 3.5a, but contains newer kernel source fragments.

This commit adds support for a new kernel configuration option, NTP.
If NTP is selected, then the system clock should be run at "HZ", which
must be defined at compile time to be one value from:
  60, 64, 100, 128, 256, 512, 1024.

Powers of 2 are ideal; 60 and 100 are supported but are marginally less
accurate.

If NTP is not configured, there should be no change in behavior relative
to pre-NTP kernels.

These changes have been tested extensively with xntpd 3.4y on a decstation;
almost identical kernel mods work on an i386.  No pulse-per-second (PPS)
line discipline support is included, due to unavailability of hardware
to test it.

With this in-kernel PLL support for NetBSD, both xntp 3.4y and xntp
3.5a user-level code need minor changes. xntp's prototype for
syscall() is  correct for FreeBSD, but not for NetBSD.

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>