The NetBSD Project

CVS log for src/sys/arch/news68k/news68k/trap.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.77: download - view: text, markup, annotated - select for diffs
Sat Jan 20 00:15:32 2024 UTC (10 months, 3 weeks ago) by thorpej
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +2 -4 lines
Largely unify the <machine/cpu.h> headers on the m68k platforms.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Oct 5 19:41:05 2023 UTC (14 months, 1 week ago) by ad
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +2 -3 lines
Arrange to update cached LWP credentials in userret() rather than during
syscall/trap entry, eliminating a test+branch on every syscall/trap.

This wasn't possible in the 3.99.x timeframe when l->l_cred came about
because there wasn't a reliable/timely way to force an ONPROC LWP running on
a remote CPU into the kernel (which is just about the only new thing in
this scheme).

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Oct 1 19:28:36 2023 UTC (14 months, 1 week ago) by andvar
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -3 lines
Improve KGDB enabled build for news68k:
* include sys/kgdb.h in news68k/trap.c for missing definitions.
* cast second kgdb_trap argument to (db_regs_t *).
* build m68k/kgdb_machdep.c for kgdb_trap() implementation.

Same as for mvme68k, build complains about undefined reference to zs_check_kgdb
due to missing port specific zs kgdb implementation for MI zs(4) driver though.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Apr 22 10:09:12 2023 UTC (19 months, 3 weeks ago) by tsutsui
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -3 lines
Remove ancient /*ARGSUSED*/ comments.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sat Sep 25 19:16:31 2021 UTC (3 years, 2 months ago) by tsutsui
Branches: MAIN
CVS tags: 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +6 -3 lines
Call cnpollc(9) before cngetc(9) as the cons(9) man page says.

Affects only inside #ifdef DEBUG part on "trap during panic" in trap.c
derived from hp300.

Revision 1.69.18.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:47 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.69.18.1: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.18.1: +2 -4 lines
Merge changes from current as of 20200406

Revision 1.72: download - view: text, markup, annotated - select for diffs
Thu Nov 21 19:24:00 2019 UTC (5 years ago) by ad
Branches: 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, 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
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -4 lines
mi_userret(): take care of calling preempt(), set spc_curpriority directly,
and remove MD code that does the same.

Revision 1.69.18.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:34 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -324 lines
Sync with HEAD

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sat Apr 6 03:06:26 2019 UTC (5 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, 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
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -17 lines
Overhaul the API used to fetch and store individual memory cells in
userspace.  The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms.  The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Feb 18 01:12:24 2019 UTC (5 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -309 lines
Refactor the 68040 writeback() from each m68k port's trap handler into a
shared copy: m68040_writeback().  It is essentially a copy of the Atari
version, with some minor cosmetic tweaks and one small performance optimization
from the mvme68k port.

Tested by rjs@ on a Quadra 950.  (Thanks!)

Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:32 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +16 -4 lines
update from HEAD

Revision 1.68.16.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:17:59 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +16 -4 lines
Sync with HEAD

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Mar 4 20:30:00 2015 UTC (9 years, 9 months ago) by martin
Branches: 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-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, 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, pgoyette-compat, 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, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +16 -4 lines
Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF

Revision 1.67.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:43 2012 UTC (12 years, 8 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +2 -11 lines
sync with head

Revision 1.67.8.1: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:32 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +2 -11 lines
sync to -current.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Feb 19 21:06:21 2012 UTC (12 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -11 lines
Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:06:18 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +4 -41 lines
Sync with HEAD.

Revision 1.61.4.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:51:23 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.61.4.2: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.4.2: +8 -42 lines
sync with head

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Thu Feb 17 11:59:52 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +3 -41 lines
Sync with HEAD

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Feb 8 20:20:21 2011 UTC (13 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, uebayasi-xip-base7, rmind-uvmplock-nbase, rmind-uvmplock-base, 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, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -41 lines
Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Jan 17 14:53:43 2011 UTC (13 years, 10 months ago) by tsutsui
Branches: MAIN
Branch point for: bouyer-quota2
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -2 lines
Explicitly include <machine/pcb.h> for struct pcb.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Dec 20 00:25:40 2010 UTC (13 years, 11 months ago) by matt
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits.  Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.

Revision 1.61.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:44:56 2010 UTC (14 years, 4 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.61.2.1: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.2.1: +4 -0 lines
Sync with HEAD.

Revision 1.58.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:52:27 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.58.2.2: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.2: +25 -13 lines
sync with head.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed Jul 7 01:16:25 2010 UTC (14 years, 5 months ago) by chs
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +5 -2 lines
implement ucas_* for m68k.

Revision 1.61.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:23 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.61.4.1: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.4.1: +3 -2 lines
sync with head

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Jun 6 04:50:07 2010 UTC (14 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -2 lines
fix PR 6724 - convert m68k options to defflag's.  this means that
M680[12346] are now available from opt_m68k_arch.h.  FPSP meantioned
in the PR has already been fixed, and i could not find any more.

i built these kernels to ensure i did not break their builds:

amiga: GENERIC DRACO
atari: HADES FALCON MILAN-PCIIDE
mac68k: GENERIC
sun2: GENERIC
sun3: GENERIC GENERIC3X
cesfic: attempted GENERIC, does not build due to lack of machine/bus.h
hp300: GENERIC
luna68k: GENERIC
mvme68k: GENERIC
news68k: GENERIC
next68k: GENERIC
x68k: GENERIC

Revision 1.61.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:00 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +21 -13 lines
sync with head

Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:39:39 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +21 -13 lines
Sync with HEAD.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Mar 20 23:31:28 2010 UTC (14 years, 8 months ago) by chs
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +21 -13 lines
fix copy{in,out}{,str}() to return the error returned by uvm_fault().
fixes PR 41813.

Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:02:45 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.1: +13 -16 lines
sync with head

Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Nov 23 00:11:44 2009 UTC (15 years ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +13 -16 lines
Use lwp_getpcb() on m68k ports, clean from struct user usage.

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:11:37 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +15 -10 lines
sync with head.

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:29:04 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +4 -9 lines
Sync with HEAD.

Revision 1.59.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 2 00:48:56 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +4 -9 lines
Pull up following revision(s) (requested by martin in ticket #332):
	sys/arch/amiga/amiga/trap.c: revision 1.122
	sys/arch/atari/atari/trap.c: revision 1.99
	sys/arch/cesfic/cesfic/trap.c: revision 1.43
	sys/arch/hp300/hp300/trap.c: revision 1.140
	sys/arch/luna68k/luna68k/trap.c: revision 1.55
	sys/arch/m68k/include/signal.h: revision 1.25
	sys/arch/m68k/m68k/sig_machdep.c: revision 1.41
	sys/arch/mac68k/mac68k/trap.c: revision 1.136 via patch
	sys/arch/mvme68k/mvme68k/trap.c: revision 1.98
	sys/arch/news68k/news68k/trap.c: revision 1.60
	sys/arch/next68k/next68k/trap.c: revision 1.75
	sys/arch/sun2/sun2/trap.c: revision 1.37
	sys/arch/sun3/sun3/trap.c: revision 1.136
	sys/arch/x68k/x68k/trap.c: revision 1.97
Centralize fpu exception to siginfo code encoding for all m68k archs,
fixes a failure in the lib/libc/ieeefp/except regression test.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Jan 27 20:30:13 2009 UTC (15 years, 10 months ago) by martin
Branches: 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-base2, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -9 lines
Centralize fpu exception to siginfo code encoding for all m68k archs,
fixes a failure in the lib/libc/ieeefp/except regression test.

Revision 1.57.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:21 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.57.6.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.6.1: +11 -1 lines
Sync with HEAD.

Revision 1.58.8.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:15:53 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +13 -3 lines
Sync with HEAD.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Oct 15 06:51:18 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +13 -3 lines
Merge wrstuden-revivesa into HEAD.

Revision 1.58.4.4: download - view: text, markup, annotated - select for diffs
Mon Jun 30 04:55:55 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.58.4.3: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.4.3: +4 -3 lines
Change how we make SA threads not generate upcalls. Instead of clearing
LW_SA, use a private flag, LP_SA_NOBLOCK, that we set when we want
to not generate upcalls. This means we do NOT need to lock (l)
(ourselves) to set it.

Adjust tests that look at LW_SA. Now, we are an upcall-generating
lwp if ((l->l_flag & LW_SA) && (~l->l_pflag & LP_SA_NOBLOCK)).

Introduce code pattern to set & remember this:

	f = ~l->l_pflag & LP_SA_NOBLOCK;
	l->l_pflag |= LP_SA_NOBLOCK;

	...

	/* f is now LP_SA_NOBLOCK if it wasn't set in l_pflag before */

	l->l_pflag ^= f;

I updated a lot of the trap handlers to do trap handling iff LP_SA_NOBLOCK
is not set. I tried to figure out if the trap handler could be triggered
for user-based faults as opposed to kernel faults to user addresses, and
only look at LP_SA_NOBLOCK for the latter.

Above is a result of discussions with rmind at to reduce lock twiddling.

Also, per same discussions, add locking to sys_sa_preempt(). p_lock is
the lock we want.

Also, per same discussions, remove use of LSSUSPENDED as a thread state.
We needed to use it when we were emulating the 4.X and previous behavior
of hiding cached threads. For the moment, we now have them instead
remain visible to all and have them sleeping on the "lwpcache" wait
channel.

sa_newcachelwp(): sa_putcachelwp() wants savp_mutex held, not p_lock.

Tweak some comments.

Revision 1.58.4.3: download - view: text, markup, annotated - select for diffs
Sun Jun 22 18:12:03 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.58.4.2: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.4.2: +10 -3 lines
Re-add cpu_upcall() and page fault code. i386 kernels now compile.
They don't boot, but that seems to be a consequence of current from the
day this branch was started.

Revision 1.57.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:28 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -4 lines
Sync with HEAD.

Revision 1.57.8.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:32:31 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +4 -4 lines
sync with head.

Revision 1.58.4.2: download - view: text, markup, annotated - select for diffs
Wed May 14 19:54:10 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.58.4.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.4.1: +3 -3 lines
Per discussion with ad at n dot o, revert signal mask handling
changes.

The l_sigstk changes are most likely totally un-needed as SA will
never use a signal stack - we send an upcall (or will as other
diffs are brought in).

The l_sigmask changes were too controvertial. In all honesty, I
think it's probably best to revert them. The main reason they were
there is the fact that in an SA process, we don't mask signals per
kernel thread, we mask them per user thread. In the kernel, we want
them all to get turned into upcalls. Thus the normal state of
l_sigmask in an SA process is for it to always be empty.

While we are in the process of delivering a signal, we want to
temporarily mask a signal (so we don't recursively exhaust our
upcall stacks). However signal delivery is rare (important, but
rare), and delivering back-to-back signals is even rarer. So rather
than cause every user of a signal mask to be prepared for this very
rare case, we will just add a second check later in the signal
delivery code. Said change is not in this diff.

This also un-compensates all of our compatability code for dealing
with SA. SA is a NetBSD-specific thing, so there's no need for
Irix, Linux, Solaris, SVR4 and so on to cope with it.

As previously, everything other than kern_sa.c compiles in i386
GENERIC as of this checkin. I will switch to ALL soon for compile
testing.

Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Sat May 10 23:48:45 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -3 lines
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.58: download - view: text, markup, annotated - select for diffs
Thu Apr 24 18:39:21 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, 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, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, haad-dm
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -4 lines
Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.56.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:04:52 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +2 -55 lines
Sync with HEAD.

Revision 1.39.2.6: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:37:56 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.39.2.5: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.5: +2 -55 lines
sync with head

Revision 1.53.10.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:47:30 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.53.10.1: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.10.1: +2 -55 lines
sync with HEAD

Revision 1.56.8.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:48:50 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +2 -55 lines
Sync with HEAD

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Dec 31 13:38:52 2007 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -55 lines
Remove COMPAT_HPUX.

Revision 1.51.2.4: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:37:53 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.51.2.3: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.2.3: +2 -3 lines
Sync with HEAD.

Revision 1.39.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:43:11 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.39.2.4: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.4: +2 -3 lines
sync with head.

Revision 1.54.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 15:58:54 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +2 -3 lines
Sync with HEAD

Revision 1.53.10.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:19:41 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -5 lines
sync with HEAD

Revision 1.53.8.2: download - view: text, markup, annotated - select for diffs
Tue Nov 6 19:25:03 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.53.8.1: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.8.1: +2 -3 lines
Sync with HEAD.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Nov 5 20:43:04 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, 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: mjf-devfs, bouyer-xeni386
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -3 lines
Don't set l_usrpri / spc_curpriority here. mi_userret() does it.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:55:54 2007 UTC (17 years, 2 months ago) by garbled
Branches: MAIN
CVS tags: yamt-x86pmap-base4
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -2 lines
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.51.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:38:15 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.51.2.2: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.2: +5 -4 lines
Sync with head.

Revision 1.51.10.3: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:24:30 2007 UTC (17 years, 2 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.51.10.2: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.10.2: +5 -4 lines
Sync with HEAD

Revision 1.47.10.2: download - view: text, markup, annotated - select for diffs
Sun Sep 23 21:36:25 2007 UTC (17 years, 2 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.47.10.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.10.1: +5 -4 lines
Sync with somewhat-recent netbsd-4.

Revision 1.47.8.2: download - view: text, markup, annotated - select for diffs
Tue Sep 11 08:01:37 2007 UTC (17 years, 3 months ago) by msaitoh
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.47.8.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.8.1: +3 -2 lines
Pull up following revision(s) (requested by mhitch in ticket #866):
	sys/arch/atari/atari/trap.c:		1.92
	sys/arch/mac68k/mac68k/trap.c:		1.129
	sys/arch/amiga/amiga/trap.c:		1.116
	sys/arch/mvme68k/mvme68k/trap.c:	1.91
	sys/arch/news68k/news68k/trap.c:	1.54
	sys/arch/sun3/sun3/trap.c:		1.131
	sys/arch/next68k/next68k/trap.c:	1.68
	sys/arch/luna68k/luna68k/trap.c:	1.47
	sys/arch/cesfic/cesfic/trap.c:		1.36
	sys/arch/x68k/x68k/trap.c:		1.90
	sys/arch/hp300/hp300/trap.c:		1.132
68030 and 68040 processors consider the read portion of a read-modify-write
transfer as a write to ensure the memory is writable before starting any
transfer.  The fault status information does not reflect this in the 'read'
status bit (i.e. it shows up as a read access), so faults with a RMW access
to non-writable memory was not getting the correct protection.  The page would
be read-only and the instruction would fault over and over.
A specific example is when a process forks, and the child process attempts
to execute a RMW access to a data page, which is read-only because it's CoP
Copy-On-Write.
When checking if the page needs to be writablek, also check the locked transfer
and treat any locked transfer as a write.
68060 already handled this correctly, since it has separate read and write
fault bits, and both are set on a RMW access and the trap code was checking
the write status bit.
Fixes PR#36848.

Revision 1.53.8.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:47:35 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -4 lines
Sync with HEAD.

Revision 1.39.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:28:21 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.39.2.3: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.3: +48 -49 lines
sync with head.

Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:19:29 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +5 -4 lines
Sync with HEAD.

Revision 1.47.10.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:03:44 2007 UTC (17 years, 3 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +26 -26 lines
Sync w/ NetBSD-4-RC_1

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Sep 1 21:31:56 2007 UTC (17 years, 3 months ago) by mhitch
Branches: MAIN
CVS tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5
Branch point for: bouyer-xenamd64
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -4 lines
68030 and 68040 processors consider the read portion of a read-modify-write
transfer as a write to ensure the memory is writable before starting any
transfer.  The fault status information does not reflect this in the 'read'
status bit (i.e. it shows up as a read access), so faults with a RMW access
to non-writable memory was not getting the correct protection.  The page would
be read-only and the instruction would fault over and over.

A specific example is when a process forks, and the child process attempts
to execute a RMW access to a data page, which is read-only because it's CoP
Copy-On-Write.

When checking if the page needs to be writablek, also check the locked transfer
and treat any locked transfer as a write.

68060 already handled this correctly, since it has separate read and write
fault bits, and both are set on a RMW access and the trap code was checking
the write status bit.

Fixes PR#36848.

Revision 1.51.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:16:32 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.51.2.1: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.1: +26 -26 lines
Sync with head.

Revision 1.51.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:01:04 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +27 -29 lines
Sync with head.

Revision 1.51.10.2: download - view: text, markup, annotated - select for diffs
Tue Jun 26 18:13:08 2007 UTC (17 years, 5 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.51.10.1: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.10.1: +26 -26 lines
Sync with HEAD.

Revision 1.47.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 18 09:31:07 2007 UTC (17 years, 6 months ago) by liamjfoy
Branches: netbsd-4
CVS tags: netbsd-4-0-RC1
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +26 -26 lines
Pull up following revision(s) (requested by mhitch in ticket #728):
	sys/arch/mvme68k/mvme68k/locore.s: revision 1.98
	sys/arch/mac68k/mac68k/trap.c: revision 1.128
	sys/arch/next68k/next68k/locore.s: revision 1.48
	sys/arch/mac68k/mac68k/locore.s: revision 1.152
	sys/arch/sun3/sun3/locore.s: revision 1.88
	sys/arch/sun2/sun2/locore.s: revision 1.19
	sys/arch/sun2/sun2/trap.c: revision 1.32
	sys/arch/m68k/m68k/db_trace.c: revision 1.51
	sys/arch/mvme68k/mvme68k/trap.c: revision 1.90
	sys/arch/news68k/news68k/trap.c: revision 1.53
	sys/arch/luna68k/luna68k/locore.s: revision 1.27
	sys/arch/atari/atari/locore.s: revision 1.99
	sys/arch/sun3/sun3/trap.c: revision 1.130
	sys/arch/x68k/x68k/trap.c: revision 1.89
	sys/arch/next68k/next68k/trap.c: revision 1.67
	sys/arch/x68k/x68k/locore.s: revision 1.79
	sys/arch/news68k/news68k/locore.s: revision 1.43
	sys/arch/luna68k/luna68k/trap.c: revision 1.46
	sys/arch/hp300/hp300/locore.s: revision 1.140
	sys/arch/cesfic/cesfic/locore.s: revision 1.15
	sys/arch/cesfic/cesfic/trap.c: revision 1.35
	sys/arch/m68k/m68k/trap_subr.s: revision 1.12
	sys/arch/amiga/amiga/locore.s: revision 1.143
Pass a frame pointer to trap() rather than the 'entire frame' trick.  Gcc4
was optimizing away modifications to the frame contents (it's not nice to
trick gcc).  Pass the pointer as the first argument to reduce the number
of places that would be changed otherwise.  Fixes the getcwd regression
test on most m68k ports.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Jun 12 03:37:22 2007 UTC (17 years, 6 months ago) by mhitch
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +26 -26 lines
Pass a frame pointer to trap() rather than the 'entire frame' trick.  Gcc4
was optimizing away modifications to the frame contents (it's not nice to
trick gcc).  Pass the pointer as the first argument to reduce the number
of places that would be changed otherwise.  Fixes the getcwd regression
test on most m68k ports.

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Sun May 27 12:27:52 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -5 lines
Sync with head.

Revision 1.51.10.1: download - view: text, markup, annotated - select for diffs
Tue May 22 17:27:16 2007 UTC (17 years, 6 months ago) by matt
Branches: ppcoea-renovation
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -5 lines
Update to HEAD.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri May 18 10:13:25 2007 UTC (17 years, 7 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -5 lines
Adapt news68k to yamt-idlelwp. Tested on NWS-1750.

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:49:40 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +20 -20 lines
Sync with HEAD.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:00:25 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, ppcoea-renovation, mjf-ufs-trans
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +19 -19 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Feb 28 04:21:54 2007 UTC (17 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
TRUE -> true, FALSE -> false

Revision 1.39.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:07:39 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.39.2.2: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.2: +14 -19 lines
sync with head.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Feb 10 02:01:26 2007 UTC (17 years, 10 months ago) by tsutsui
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +12 -8 lines
Apply some changes for newlock2, taken from other m68k ports.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:07 2007 UTC (17 years, 10 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -13 lines
Merge newlock2 to head.

Revision 1.47.4.1: download - view: text, markup, annotated - select for diffs
Tue Jan 30 13:49:36 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +4 -13 lines
Remove support for SA. Ok core@.

Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:46:37 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.39.2.1: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.1: +6 -5 lines
sync with head.

Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:41:47 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +40 -36 lines
sync with head

Revision 1.41.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:42:23 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.41.2.2: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.2: +6 -5 lines
sync with head

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:06 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, newlock2-nbase, newlock2-base, netbsd-4-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, newlock2, netbsd-4
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -5 lines
Use the LWP cached credentials where sane.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Jul 19 21:11:44 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -2 lines
- 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.39.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:54:10 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +39 -36 lines
sync with head.

Revision 1.40.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:35:06 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.40.6.1: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.6.1: +6 -5 lines
Sync with head.

Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:48:14 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.42.2.1: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.1: +6 -5 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:00 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.1: +6 -5 lines
sync with head.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon May 15 12:43:45 2006 UTC (18 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -0 lines
include kauth.h for kauth_cred_geteuid.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun May 14 21:55:38 2006 UTC (18 years, 7 months ago) by elad
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -5 lines
integrate kauth.

Revision 1.40.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:37:49 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +35 -33 lines
Sync with head.

Revision 1.41.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 19 02:33:25 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.41.4.1: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.4.1: +34 -32 lines
sync with head - hopefully this will work

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:06:23 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +34 -32 lines
sync with head.

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:47:17 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +30 -28 lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Mar 26 02:36:49 2006 UTC (18 years, 8 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, elad-kernelauth-base
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +30 -28 lines
Reduce diff against hp300/trap.c.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Mar 15 18:12:02 2006 UTC (18 years, 9 months ago) by drochner
Branches: MAIN
CVS tags: peter-altq-base
Branch point for: peter-altq
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +6 -6 lines
adapt to uvm_fault() interface cleanup: kill the useless 3rd argument

Revision 1.41.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:43:07 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +5 -5 lines
Adapt to kernel authorization KPI.

I expect *some* lossage here...

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:27:59 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +3 -3 lines
sync with head.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Feb 25 02:28:57 2006 UTC (18 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, elad-kernelauth
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
Fix some typos.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:18:23 2005 UTC (19 years ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -2 lines
merge ktrace-lwp.

Revision 1.27.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 10 13:57:54 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.4: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.4: +3 -3 lines
Sync with HEAD. Here we go again...

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Jun 2 14:48:24 2005 UTC (19 years, 6 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
Add a const.

Revision 1.27.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:19:30 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.3: preferred, colored
Changes since revision 1.27.2.3: +2 -2 lines
Fix the sync with head I botched.

Revision 1.27.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:38:04 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.2: preferred, colored
Changes since revision 1.27.2.2: +13 -29 lines
Sync with HEAD.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Sep 4 13:43:11 2004 UTC (20 years, 3 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +13 -29 lines
- Use ANSI function declarations and make some functions static.
- Some KNF

Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Fri Sep 3 12:44:57 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27.2.1: preferred, colored
Changes since revision 1.27.2.1: +5 -12 lines
Sync with HEAD

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Aug 28 17:53:01 2004 UTC (20 years, 3 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +5 -12 lines
use uvm_grow() to update stack segment size on stack page fault instead
of MD code

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:38:23 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +111 -52 lines
Sync with HEAD

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Mar 14 01:08:48 2004 UTC (20 years, 9 months ago) by cl
Branches: 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
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -4 lines
add kernel part of concurrency support for SA on MP systems
- move per VP data into struct sadata_vp referenced from l->l_savp
  * VP id
  * lock on VP data
  * LWP on VP
  * recently blocked LWP on VP
  * queue of LWPs woken which ran on this VP before sleep
  * faultaddr
  * LWP cache for upcalls
  * upcall queue
- add current concurrency and requested concurrency variables
- make process exit run LWP on all VPs
- make signal delivery consider all VPs
- make timer events consider all VPs
- add sa_newsavp to allocate new sadata_vp structure
- add sa_increaseconcurrency to prepare new VP
- make sys_sa_setconcurrency request new VP or wakeup idle VP
- make sa_yield lower current concurrency
- set sa_cpu = VP id in upcalls
- maintain cached LWPs per VP

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Nov 8 12:17:25 2003 UTC (21 years, 1 month ago) by tsutsui
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -3 lines
Remove obsolete comments about curproc.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Nov 2 16:49:38 2003 UTC (21 years, 1 month ago) by cl
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3 lines
Extend the #ifdef M68040 so that the `sig' variable declaration is moved
in as well, as it's otherwise not used. (from atari/atari/trap.c and
x68k/x68k/trap.c)

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Oct 31 16:44:35 2003 UTC (21 years, 1 month ago) by cl
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -13 lines
Reduce code duplication by adding mi_userret() in sys/userret.h
containing signal posting, kernel-exit handling and sa_upcall processing.

XXX the pc532, sparc, sparc64 and vax ports should have their
XXX userret() code rearranged to use this.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Oct 8 00:28:42 2003 UTC (21 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
* Shuffle some data structures so, and add a flags word to ksiginfo_t.
  Right now the only flag is used to indicate if a ksiginfo_t is a
  result of a trap.  Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap.  Expands to 0 if the ksiginfo_t was
  not the result of a trap.  This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
  Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
  the case of non-trap-generated signals that have a > 0 si_code.

This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.

As discussed on tech-kern.  Reviewed and OK's by Christos.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Sep 22 14:27:10 2003 UTC (21 years, 2 months ago) by cl
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +62 -38 lines
SA_SIGINFO support for m68k (port specific changes)

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Sep 17 23:17:45 2003 UTC (21 years, 3 months ago) by cl
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +11 -3 lines
add MD part of SA/pthread pagefault handling on all m68k ports

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:28:52 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +37 -3 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Jul 15 02:59:27 2003 UTC (21 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -1 lines
__KERNEL_RCSID()

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Apr 2 04:05:32 2003 UTC (21 years, 8 months ago) by thorpej
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
Use PAGE_SIZE rather than NBPG.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Jan 28 22:35:12 2003 UTC (21 years, 10 months ago) by wiz
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
success, not sucess. Noted by mjl.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jan 18 06:05:43 2003 UTC (21 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +44 -36 lines
Merge the nathanw_sa branch.

Revision 1.19.4.12: download - view: text, markup, annotated - select for diffs
Wed Jan 15 18:22:29 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.19.4.11: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.4.11: +4 -4 lines
Sync with HEAD.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jan 11 16:00:50 2003 UTC (21 years, 11 months ago) by tsutsui
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -4 lines
Fix -Wsign-compare warnings.

Revision 1.19.4.11: download - view: text, markup, annotated - select for diffs
Tue Jan 7 22:12:32 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.19.4.10: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.10: +2 -2 lines
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.19.4.10: download - view: text, markup, annotated - select for diffs
Sun Dec 29 19:33:47 2002 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.19.4.9: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.9: +8 -8 lines
Sync with HEAD.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Dec 20 16:54:17 2002 UTC (21 years, 11 months ago) by tsutsui
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +8 -8 lines
Remove __P().

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 18 01:05:32 2002 UTC (22 years ago) by gmcgarry
Branches: gmcgarry_ucred
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +2 -3 lines
Merge pcred and ucred, and poolify.  TBD: check backward compatibility
and factor-out some higher-level functionality.

Revision 1.19.4.9: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:02:02 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.4.8: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.8: +2 -1 lines
Catch up to -current

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Nov 2 20:03:07 2002 UTC (22 years, 1 month ago) by chs
Branches: MAIN
CVS tags: gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Branch point for: gmcgarry_ucred
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -3 lines
finish conversion to the common m68k cacheops:
add support for machine-specific flavors of the ops for off-chip caches.
many thanks to Izumi Tsutsui for his help with this.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Oct 20 02:37:32 2002 UTC (22 years, 1 month ago) by chs
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-aftermerge
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -1 lines
merge the 12 copies of vm_machdep.c on the m68k platforms.
clean up some other stuff along the way, including:
 - use m68k/cacheops.*, remove duplicates from cpu.h.
 - centralize a few declarations in (all the copies of) cpu.h.
 - define M68K_VAC on platforms which have a VAC.
 - switch the sun platforms to the (now common) proc_trampoline().
 - do the phys_map thang on the sun platforms too, no reason not to.

Revision 1.19.4.8: download - view: text, markup, annotated - select for diffs
Thu Sep 26 20:04:50 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.4.7: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.7: +2 -2 lines
Change "if (l->l_flag & L_SA_UPCALL)" to "while (l->l_flag & L_SA_UPCALL)"
in userret() functions or equivalent, to permit delivery of multiple upcalls
in a single kernel entry.

XXX It's getting crowded in here. Collapsing posting signals, upcalls, and
XXX kernel-exit handling into one mechanism would be nice.

Revision 1.19.4.7: download - view: text, markup, annotated - select for diffs
Fri Jul 12 01:39:41 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.4.6: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.6: +1 -2 lines
No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.19.4.6: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:06:31 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.4.5: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.5: +4 -4 lines
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.18.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 16 15:59:02 2002 UTC (22 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.1: +2 -2 lines
Catch up with -current.

Revision 1.19.4.5: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:11:15 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.4.4: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.4: +2 -2 lines
Catch up to -current.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Feb 14 07:08:11 2002 UTC (22 years, 10 months ago) by chs
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, kqueue-base, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
allow writing to write-only mappings.  fixes PR 3493.

Revision 1.19.4.4: download - view: text, markup, annotated - select for diffs
Mon Dec 17 21:34:43 2001 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.19.4.3: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.3: +2 -2 lines
cpu_upcall() -> sa_upcall_userret().

Revision 1.19.4.3: download - view: text, markup, annotated - select for diffs
Sun Nov 25 10:36:03 2001 UTC (23 years ago) by scw
Branches: nathanw_sa
Diff to: previous 1.19.4.2: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.2: +3 -10 lines
Deal with `want_resched' with trap()'s T_ASTFLT case where it belongs
instead of in userret().

Revision 1.19.4.2: download - view: text, markup, annotated - select for diffs
Sun Nov 18 18:42:20 2001 UTC (23 years, 1 month ago) by scw
Branches: nathanw_sa
Diff to: previous 1.19.4.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.1: +958 -0 lines
MD Scheduler Activation bits for News68k.
Compile-tested only.

Revision 1.18.4.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:41:08 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +3 -3 lines
Catch up with -current.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 13 01:14:07 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
Update the kqueue branch to HEAD.

Revision 1.19.4.1
Mon Sep 10 21:19:33 2001 UTC (23 years, 3 months ago) by scw
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.19: +0 -942 lines
file trap.c was added on branch nathanw_sa on 2001-11-18 18:42:20 +0000

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Sep 10 21:19:33 2001 UTC (23 years, 3 months ago) by chris
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: nathanw_sa
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Jul 7 05:09:44 2001 UTC (23 years, 5 months ago) by tsutsui
Branches: MAIN
CVS tags: thorpej-devvp-base
Branch point for: thorpej-devvp, kqueue
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -4 lines
bcopy() -> memcpy() (I guess there is no overlap here)

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 19:29:54 2001 UTC (23 years, 5 months ago) by nathanw
Diff to: previous 1.13.2.1: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.1: +6 -3 lines
Catch up to -current.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Jun 2 18:09:17 2001 UTC (23 years, 6 months ago) by chs
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
replace vm_map{,_entry}_t with struct vm_map{,_entry} *.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed May 30 15:24:35 2001 UTC (23 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -1 lines
add missing   #include "opt_kgdb.h"

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Apr 24 04:31:05 2001 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_beforemerge
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -1 lines
Sprinkle pmap_update() calls after calls to:
- pmap_enter()
- pmap_remove()
- pmap_protect()
- pmap_kenter_pa()
- pmap_kremove()
as described in pmap(9).

These calls are relatively conservative.  It may be possible to
optimize these a little more.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:54:18 2001 UTC (23 years, 8 months ago) by nathanw
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -8 lines
Catch up with -current.

Revision 1.7.2.7: download - view: text, markup, annotated - select for diffs
Tue Mar 27 15:31:16 2001 UTC (23 years, 8 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.6: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.6: +8 -8 lines
Sync with HEAD.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Mar 15 06:10:44 2001 UTC (23 years, 9 months ago) by chs
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_base
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -8 lines
eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

KERN_SUCCESS			0
KERN_INVALID_ADDRESS		EFAULT
KERN_PROTECTION_FAILURE		EACCES
KERN_NO_SPACE			ENOMEM
KERN_INVALID_ARGUMENT		EINVAL
KERN_FAILURE			various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE		ENOMEM
KERN_NOT_RECEIVER		<unused>
KERN_NO_ACCESS			<unused>
KERN_PAGES_LOCKED		<unused>

Revision 1.7.2.6: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:29:09 2001 UTC (23 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.5: preferred, colored
Changes since revision 1.7.2.5: +3 -3 lines
Sync with HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Feb 25 13:28:32 2001 UTC (23 years, 9 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Sync with x68k:
 Use m68k_page_offset and m68k_trunc_page macros,
 instead of using PGOFSET directly.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Feb 17 18:34:57 2001 UTC (23 years, 10 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
include sunos_exec.h to declare emul_sunos.

Revision 1.7.2.5: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:34:52 2001 UTC (23 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.4: preferred, colored
Changes since revision 1.7.2.4: +21 -221 lines
Sync with HEAD

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Dec 23 09:35:52 2000 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -5 lines
split off thread specific stuff from struct sigacts to struct sigctx, leaving
    only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx

This addresses kern/10981 by Matthew Orgass.

XXX I wish m68k ports would share trap.c

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Dec 19 21:09:57 2000 UTC (23 years, 11 months ago) by scw
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +17 -217 lines
Unification of the m68k syscall() function.

Revision 1.7.2.4: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:28:47 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.3: preferred, colored
Changes since revision 1.7.2.3: +2 -2 lines
Sync with HEAD.

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:01:03 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.2: preferred, colored
Changes since revision 1.7.2.2: +4 -16 lines
Sync with HEAD.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Nov 21 23:19:43 2000 UTC (24 years ago) by tsutsui
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
s/struct const sysent/const struct sysent/

(BTW, luna68k was missed in emul/execsw changes?)

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Nov 21 00:37:51 2000 UTC (24 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -16 lines
restructure struct emul and execsw, in preparation to make emulations LKMable:
* move all exec-type specific information from struct emul to execsw[] and
  provide single struct emul per emulation
* elf:
  - kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry
    per emulation and contains pointer to respective probe function
  - interp is allocated via MALLOC() rather than on stack
  - elf_args structure is allocated via MALLOC() rather than malloc()
* ecoff: the per-emulation hooks moved from alpha and mips specific code
  to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per
  emulation supporting ecoff with appropriate probe function
* the makecmds/probe functions don't set emulation, pointer to emulation is
  part of appropriate execsw[] entry
* constify couple of structures

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 20 20:16:17 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.1: preferred, colored
Changes since revision 1.7.2.1: +1149 -0 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.7.2.1
Thu Jun 29 08:02:52 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
FILE REMOVED
Changes since revision 1.7: +0 -1149 lines
file trap.c was added on branch thorpej_scsipi on 2000-11-20 20:16:17 +0000

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Jun 29 08:02:52 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Branch point for: thorpej_scsipi
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -3 lines
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jun 27 04:19:02 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -2 lines
remove redudant <vm/pmap.h> includes. <vm/pmap.h> -> <uvm/uvm_pmap.h>

Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:01:53 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +2 -1 lines
Sync w/ netbsd-1-5-base.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Jun 6 18:52:42 2000 UTC (24 years, 6 months ago) by soren
Branches: 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
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -1 lines
defopt SYSCALL_DEBUG.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat May 27 00:40:36 2000 UTC (24 years, 6 months ago) by sommerfeld
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
Reduce use of curproc in several places:

 - Change ktrace interface to pass in the current process, rather than
p->p_tracep, since the various ktr* function need curproc anyway.

 - Add curproc as a parameter to mi_switch() since all callers had it
handy anyway.

 - Add a second proc argument for inferior() since callers all had
curproc handy.

Also, miscellaneous cleanups in ktrace:

 - ktrace now always uses file-based, rather than vnode-based I/O
(simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD.
Do non-blocking I/O, and yield a finite number of times when receiving
EWOULDBLOCK before giving up.

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri May 26 21:20:01 2000 UTC (24 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
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.2: download - view: text, markup, annotated - select for diffs
Wed May 24 16:48:41 2000 UTC (24 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -13 lines
Use preempt(), not an open-coded equivalent (which won't be
equivalent for long).

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:33:02 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +1 -1 lines
Pull up to last week's -current.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Dec 9 14:53:18 1999 UTC (25 years ago) by tsutsui
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Branch point for: wrstuden-devbsize
Initial import of news68k port.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>