The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.150 / (download) - annotate - [select for diffs], Sat Jan 20 00:15:33 2024 UTC (2 months, 4 weeks ago) by thorpej
Branch: MAIN
CVS Tags: HEAD
Changes since 1.149: +3 -3 lines
Diff to previous 1.149 (colored)

Largely unify the <machine/cpu.h> headers on the m68k platforms.

Revision 1.149 / (download) - annotate - [select for diffs], Wed Dec 27 17:35:37 2023 UTC (3 months, 3 weeks ago) by thorpej
Branch: MAIN
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored)

Re-factor the 680x0 Function Code definitions into their own
separate file (as was done on the sun2/sun3 ports ages ago)
and switch everyone to the common header.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Oct 5 19:41:06 2023 UTC (6 months, 2 weeks ago) by ad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.147: +2 -3 lines
Diff to previous 1.147 (colored)

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.147 / (download) - annotate - [select for diffs], Mon Aug 10 10:51:21 2020 UTC (3 years, 8 months ago) by rin
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, 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.146: +9 -4 lines
Diff to previous 1.146 (colored)

Fix siginfo support for amiga, mac68k, and sun3:

- T_ZERODIV is integer divide by zero. Therefore, ksi_code should be
  FPE_INTDIV, not FPE_FLTDIV.

- Set ksi_addr for SIGTRAP. Also, set TRAP_BRKPT or TRAP_TRACE to
  ksi_code appropriately.

This fixes some tests in lib/libc/sys and lib/libc/gen.

XXX
Apply similar fixes to other m68k ports.

Revision 1.144.18.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:55 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.144.18.1: +2 -4 lines
Diff to previous 1.144.18.1 (colored) to branchpoint 1.144 (colored) next main 1.145 (colored)

Merge changes from current as of 20200406

Revision 1.146 / (download) - annotate - [select for diffs], Thu Nov 21 19:24:01 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.145: +2 -4 lines
Diff to previous 1.145 (colored)

mi_userret(): take care of calling preempt(), set spc_curpriority directly,
and remove MD code that does the same.

Revision 1.144.18.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:49 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.144: +2 -22 lines
Diff to previous 1.144 (colored)

Sync with HEAD

Revision 1.145 / (download) - annotate - [select for diffs], Sat Apr 6 03:06:28 2019 UTC (5 years ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.144: +2 -22 lines
Diff to previous 1.144 (colored)

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.142.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:46 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.142.2.1: +14 -2 lines
Diff to previous 1.142.2.1 (colored) to branchpoint 1.142 (colored) next main 1.143 (colored)

update from HEAD

Revision 1.143.6.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:03 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.143: +16 -4 lines
Diff to previous 1.143 (colored) next main 1.144 (colored)

Sync with HEAD

Revision 1.144 / (download) - annotate - [select for diffs], Wed Mar 4 20:30:00 2015 UTC (9 years, 1 month ago) by martin
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-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-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
Changes since 1.143: +16 -4 lines
Diff to previous 1.143 (colored)

Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:26 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.142: +13 -13 lines
Diff to previous 1.142 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.141.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:10 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.141.6.1: +13 -13 lines
Diff to previous 1.141.6.1 (colored) to branchpoint 1.141 (colored) next main 1.142 (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.142.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:27 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.142: +13 -13 lines
Diff to previous 1.142 (colored) next main 1.143 (colored)

sync with head

Revision 1.143 / (download) - annotate - [select for diffs], Sat Sep 7 15:56:11 2013 UTC (10 years, 7 months ago) by tsutsui
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, 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
Branch point for: nick-nhusb
Changes since 1.142: +13 -13 lines
Diff to previous 1.142 (colored)

Whitespace cleanup.

Revision 1.141.6.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:58 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.141: +3 -11 lines
Diff to previous 1.141 (colored)

sync with head

Revision 1.141.10.1 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:35 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.141: +3 -11 lines
Diff to previous 1.141 (colored) next main 1.142 (colored)

sync to -current.

Revision 1.142 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:32 2012 UTC (12 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, rmind-smpnet
Changes since 1.141: +3 -11 lines
Diff to previous 1.141 (colored)

Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.140.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:06:57 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.140: +3 -2 lines
Diff to previous 1.140 (colored) next main 1.141 (colored)

Sync with HEAD.

Revision 1.137.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:52:13 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.137.4.1: +7 -3 lines
Diff to previous 1.137.4.1 (colored) to branchpoint 1.137 (colored) next main 1.138 (colored)

sync with head

Revision 1.141 / (download) - annotate - [select for diffs], Mon Jan 17 14:36:33 2011 UTC (13 years, 3 months ago) by tsutsui
Branch: 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, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.140: +3 -2 lines
Diff to previous 1.140 (colored)

Explicitly include <machine/pcb.h> for struct pcb.

Revision 1.140 / (download) - annotate - [select for diffs], Mon Dec 20 00:25:45 2010 UTC (13 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr
Changes since 1.139: +3 -3 lines
Diff to previous 1.139 (colored)

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.137.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:45:23 2010 UTC (13 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.137.2.1: +3 -0 lines
Diff to previous 1.137.2.1 (colored) to branchpoint 1.137 (colored) next main 1.138 (colored)

Sync with HEAD.

Revision 1.134.2.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:52:50 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.134.2.2: +17 -16 lines
Diff to previous 1.134.2.2 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored)

sync with head.

Revision 1.139 / (download) - annotate - [select for diffs], Wed Jul 7 01:16:26 2010 UTC (13 years, 9 months ago) by chs
Branch: 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
Changes since 1.138: +5 -2 lines
Diff to previous 1.138 (colored)

implement ucas_* for m68k.

Revision 1.137.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:10 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.137: +14 -16 lines
Diff to previous 1.137 (colored)

sync with head

Revision 1.137.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:39:55 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.137: +14 -16 lines
Diff to previous 1.137 (colored)

Sync with HEAD.

Revision 1.138 / (download) - annotate - [select for diffs], Sat Mar 20 23:31:29 2010 UTC (14 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.137: +14 -16 lines
Diff to previous 1.137 (colored)

fix copy{in,out}{,str}() to return the error returned by uvm_fault().
fixes PR 41813.

Revision 1.134.2.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:03 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.134.2.1: +15 -17 lines
Diff to previous 1.134.2.1 (colored) to branchpoint 1.134 (colored)

sync with head

Revision 1.137 / (download) - annotate - [select for diffs], Sat Nov 21 04:16:53 2009 UTC (14 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.136: +15 -17 lines
Diff to previous 1.136 (colored)

Use lwp_getpcb() on sparc{64} and sun2/3 MD code, clean from struct user usage.

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:01 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.134: +13 -9 lines
Diff to previous 1.134 (colored)

sync with head.

Revision 1.135.2.1 / (download) - annotate - [select for diffs], Tue Mar 3 18:29:27 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.135: +4 -9 lines
Diff to previous 1.135 (colored) next main 1.136 (colored)

Sync with HEAD.

Revision 1.135.4.1 / (download) - annotate - [select for diffs], Mon Feb 2 00:48:56 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.135: +4 -9 lines
Diff to previous 1.135 (colored) next main 1.136 (colored)

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.136 / (download) - annotate - [select for diffs], Tue Jan 27 20:30:13 2009 UTC (15 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend
Changes since 1.135: +4 -9 lines
Diff to previous 1.135 (colored)

Centralize fpu exception to siginfo code encoding for all m68k archs,
fixes a failure in the lib/libc/ieeefp/except regression test.

Revision 1.133.16.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:34 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.133.16.1: +9 -0 lines
Diff to previous 1.133.16.1 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored)

Sync with HEAD.

Revision 1.134.8.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:02 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.134: +11 -2 lines
Diff to previous 1.134 (colored) next main 1.135 (colored)

Sync with HEAD.

Revision 1.135 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:19 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: 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
Changes since 1.134: +11 -2 lines
Diff to previous 1.134 (colored)

Merge wrstuden-revivesa into HEAD.

Revision 1.134.4.3 / (download) - annotate - [select for diffs], Sun Jun 22 18:12:03 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.134.4.2: +9 -2 lines
Diff to previous 1.134.4.2 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored)

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.133.16.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:47 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored)

Sync with HEAD.

Revision 1.133.18.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:57 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored) next main 1.134 (colored)

sync with head.

Revision 1.134.4.2 / (download) - annotate - [select for diffs], Wed May 14 19:54:11 2008 UTC (15 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.134.4.1: +3 -3 lines
Diff to previous 1.134.4.1 (colored) to branchpoint 1.134 (colored)

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.134.4.1 / (download) - annotate - [select for diffs], Sat May 10 23:48:47 2008 UTC (15 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.134: +5 -3 lines
Diff to previous 1.134 (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.134 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:22 2008 UTC (15 years, 11 months ago) by ad
Branch: 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
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored)

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.128.2.4 / (download) - annotate - [select for diffs], Mon Dec 3 18:39:42 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.3: +2 -4 lines
Diff to previous 1.128.2.3 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

Sync with HEAD.

Revision 1.119.2.5 / (download) - annotate - [select for diffs], Thu Nov 15 11:43:34 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.119.2.4: +2 -4 lines
Diff to previous 1.119.2.4 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)

sync with head.

Revision 1.131.4.1 / (download) - annotate - [select for diffs], Tue Nov 13 15:59:55 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.131: +2 -4 lines
Diff to previous 1.131 (colored) next main 1.132 (colored)

Sync with HEAD

Revision 1.130.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:23:07 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.130: +4 -5 lines
Diff to previous 1.130 (colored) next main 1.131 (colored)

sync with HEAD

Revision 1.130.8.2 / (download) - annotate - [select for diffs], Tue Nov 6 19:25:14 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.130.8.1: +2 -4 lines
Diff to previous 1.130.8.1 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored)

Sync with HEAD.

Revision 1.133 / (download) - annotate - [select for diffs], Mon Nov 5 20:43:05 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, 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, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.132: +2 -4 lines
Diff to previous 1.132 (colored)

Don't set l_usrpri / spc_curpriority here. mi_userret() does it.

Revision 1.132 / (download) - annotate - [select for diffs], Wed Oct 17 19:57:46 2007 UTC (16 years, 6 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Changes since 1.131: +2 -2 lines
Diff to previous 1.131 (colored)

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.128.2.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:38:38 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.2: +4 -3 lines
Diff to previous 1.128.2.2 (colored) to branchpoint 1.128 (colored)

Sync with head.

Revision 1.128.10.3 / (download) - annotate - [select for diffs], Wed Oct 3 19:25:36 2007 UTC (16 years, 6 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.128.10.2: +4 -3 lines
Diff to previous 1.128.10.2 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

Sync with HEAD

Revision 1.126.10.2 / (download) - annotate - [select for diffs], Sun Sep 23 21:36:26 2007 UTC (16 years, 6 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.126.10.1: +4 -3 lines
Diff to previous 1.126.10.1 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

Sync with somewhat-recent netbsd-4.

Revision 1.126.8.2 / (download) - annotate - [select for diffs], Tue Sep 11 08:01:38 2007 UTC (16 years, 7 months ago) by msaitoh
Branch: 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
Changes since 1.126.8.1: +2 -1 lines
Diff to previous 1.126.8.1 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

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.130.8.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:47:44 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.130: +4 -3 lines
Diff to previous 1.130 (colored)

Sync with HEAD.

Revision 1.119.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:30:41 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.119.2.3: +28 -30 lines
Diff to previous 1.119.2.3 (colored) to branchpoint 1.119 (colored)

sync with head.

Revision 1.130.4.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:19:39 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.130: +4 -3 lines
Diff to previous 1.130 (colored) next main 1.131 (colored)

Sync with HEAD.

Revision 1.126.10.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:09 2007 UTC (16 years, 7 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.126: +21 -21 lines
Diff to previous 1.126 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.131 / (download) - annotate - [select for diffs], Sat Sep 1 21:31:56 2007 UTC (16 years, 7 months ago) by mhitch
Branch: 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
Changes since 1.130: +4 -3 lines
Diff to previous 1.130 (colored)

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.128.2.2 / (download) - annotate - [select for diffs], Sun Jul 15 13:17:09 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.1: +21 -21 lines
Diff to previous 1.128.2.1 (colored) to branchpoint 1.128 (colored)

Sync with head.

Revision 1.128.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:02:51 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.128: +22 -25 lines
Diff to previous 1.128 (colored) next main 1.129 (colored)

Sync with head.

Revision 1.128.10.2 / (download) - annotate - [select for diffs], Tue Jun 26 18:13:50 2007 UTC (16 years, 9 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.128.10.1: +21 -21 lines
Diff to previous 1.128.10.1 (colored) to branchpoint 1.128 (colored)

Sync with HEAD.

Revision 1.126.8.1 / (download) - annotate - [select for diffs], Mon Jun 18 09:31:05 2007 UTC (16 years, 10 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC1
Changes since 1.126: +21 -21 lines
Diff to previous 1.126 (colored)

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.130 / (download) - annotate - [select for diffs], Tue Jun 12 03:34:33 2007 UTC (16 years, 10 months ago) by mhitch
Branch: 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
Changes since 1.129: +21 -21 lines
Diff to previous 1.129 (colored)

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.128.2.1 / (download) - annotate - [select for diffs], Sun May 27 14:26:53 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.128: +3 -6 lines
Diff to previous 1.128 (colored)

Sync with head.

Revision 1.128.10.1 / (download) - annotate - [select for diffs], Tue May 22 17:27:39 2007 UTC (16 years, 11 months ago) by matt
Branch: ppcoea-renovation
Changes since 1.128: +3 -6 lines
Diff to previous 1.128 (colored)

Update to HEAD.

Revision 1.129 / (download) - annotate - [select for diffs], Fri May 18 10:18:26 2007 UTC (16 years, 11 months ago) by tsutsui
Branch: MAIN
Changes since 1.128: +3 -6 lines
Diff to previous 1.128 (colored)

Adapt sun68k ports to yamt-idlelwp.
Tested on TME (sun2 and sun3) and 3/80 (sun3x).

Revision 1.127.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:51:10 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.127: +6 -6 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

Sync with HEAD.

Revision 1.128 / (download) - annotate - [select for diffs], Sun Mar 4 06:00:55 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, ppcoea-renovation, mjf-ufs-trans
Changes since 1.127: +6 -6 lines
Diff to previous 1.127 (colored)

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

Revision 1.119.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:08:36 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.119.2.2: +13 -18 lines
Diff to previous 1.119.2.2 (colored) to branchpoint 1.119 (colored)

sync with head.

Revision 1.127 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:13 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.126: +13 -18 lines
Diff to previous 1.126 (colored)

Merge newlock2 to head.

Revision 1.126.4.2 / (download) - annotate - [select for diffs], Tue Feb 6 20:54:26 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.126.4.1: +12 -8 lines
Diff to previous 1.126.4.1 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

Update m68k pasteware.

Revision 1.126.4.1 / (download) - annotate - [select for diffs], Tue Jan 30 13:49:38 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.126: +3 -12 lines
Diff to previous 1.126 (colored)

Remove support for SA. Ok core@.

Revision 1.119.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:13 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.119.2.1: +5 -4 lines
Diff to previous 1.119.2.1 (colored) to branchpoint 1.119 (colored)

sync with head.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:44:13 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.120: +10 -8 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

sync with head

Revision 1.121.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:43:11 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.121.2.2: +5 -4 lines
Diff to previous 1.121.2.2 (colored) to branchpoint 1.121 (colored) next main 1.122 (colored)

sync with head

Revision 1.126 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:07 2006 UTC (17 years, 9 months ago) by ad
Branch: 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
Changes since 1.125: +4 -4 lines
Diff to previous 1.125 (colored)

Use the LWP cached credentials where sane.

Revision 1.125 / (download) - annotate - [select for diffs], Wed Jul 19 21:11:47 2006 UTC (17 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.124: +3 -2 lines
Diff to previous 1.124 (colored)

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

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:57:16 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.119: +9 -8 lines
Diff to previous 1.119 (colored)

sync with head.

Revision 1.120.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:35:29 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.120.6.1: +5 -4 lines
Diff to previous 1.120.6.1 (colored) next main 1.121 (colored)

Sync with head.

Revision 1.122.2.1 / (download) - annotate - [select for diffs], Wed May 24 15:48:24 2006 UTC (17 years, 11 months ago) by tron
Branch: peter-altq
Changes since 1.122: +5 -4 lines
Diff to previous 1.122 (colored) next main 1.123 (colored)

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

Revision 1.121.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:57:18 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.121.2.1: +5 -4 lines
Diff to previous 1.121.2.1 (colored) to branchpoint 1.121 (colored)

sync with head.

Revision 1.124 / (download) - annotate - [select for diffs], Mon May 15 12:37:04 2006 UTC (17 years, 11 months ago) by yamt
Branch: 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
Changes since 1.123: +1 -0 lines
Diff to previous 1.123 (colored)

include kauth.h for kauth_cred_geteuid.

Revision 1.123 / (download) - annotate - [select for diffs], Sun May 14 21:57:13 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
Changes since 1.122: +4 -4 lines
Diff to previous 1.122 (colored)

integrate kauth.

Revision 1.120.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:05 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
Changes since 1.120: +6 -6 lines
Diff to previous 1.120 (colored)

Sync with head.

Revision 1.121.4.2 / (download) - annotate - [select for diffs], Wed Apr 19 02:33:50 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.121.4.1: +5 -5 lines
Diff to previous 1.121.4.1 (colored) to branchpoint 1.121 (colored) next main 1.122 (colored)

sync with head - hopefully this will work

Revision 1.121.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:06:32 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.121: +5 -5 lines
Diff to previous 1.121 (colored)

sync with head.

Revision 1.122 / (download) - annotate - [select for diffs], Wed Mar 15 18:12:03 2006 UTC (18 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, peter-altq-base, elad-kernelauth-base
Branch point for: peter-altq
Changes since 1.121: +5 -5 lines
Diff to previous 1.121 (colored)

adapt to uvm_fault() interface cleanup: kill the useless 3rd argument

Revision 1.121.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:43:14 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.121: +4 -4 lines
Diff to previous 1.121 (colored)

Adapt to kernel authorization KPI.

I expect *some* lossage here...

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:06 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

sync with head.

Revision 1.121 / (download) - annotate - [select for diffs], Sat Feb 25 02:28:57 2006 UTC (18 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, elad-kernelauth
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored)

Fix some typos.

Revision 1.120 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:27 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored)

merge ktrace-lwp.

Revision 1.108.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 13:59:54 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.108.2.5: +3 -3 lines
Diff to previous 1.108.2.5 (colored) next main 1.109 (colored)

Sync with HEAD. Here we go again...

Revision 1.119 / (download) - annotate - [select for diffs], Fri Jun 3 15:04:21 2005 UTC (18 years, 10 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

Constify.

Revision 1.117.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:26 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.117: +19 -33 lines
Diff to previous 1.117 (colored) next main 1.118 (colored)

sync with -current

Revision 1.108.2.5 / (download) - annotate - [select for diffs], Mon Jan 24 08:34:55 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.108.2.4: +19 -33 lines
Diff to previous 1.108.2.4 (colored)

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Jan 22 15:36:10 2005 UTC (19 years, 3 months ago) by chs
Branch: 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
Changes since 1.117: +19 -33 lines
Diff to previous 1.117 (colored)

de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.

Revision 1.108.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:23:29 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.108.2.3: +2 -2 lines
Diff to previous 1.108.2.3 (colored)

Fix the sync with head I botched.

Revision 1.108.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:41:48 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.108.2.2: +2 -2 lines
Diff to previous 1.108.2.2 (colored)

Sync with HEAD.

Revision 1.108.2.2 / (download) - annotate - [select for diffs], Fri Sep 3 12:45:08 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.108.2.1: +5 -11 lines
Diff to previous 1.108.2.1 (colored)

Sync with HEAD

Revision 1.117 / (download) - annotate - [select for diffs], Sat Aug 28 17:53:02 2004 UTC (19 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.116: +5 -11 lines
Diff to previous 1.116 (colored)

use uvm_grow() to update stack segment size on stack page fault instead
of MD code

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:42:12 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.108: +92 -46 lines
Diff to previous 1.108 (colored)

Sync with HEAD

Revision 1.116 / (download) - annotate - [select for diffs], Sun Mar 14 01:08:49 2004 UTC (20 years, 1 month ago) by cl
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.115: +3 -4 lines
Diff to previous 1.115 (colored)

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.115 / (download) - annotate - [select for diffs], Sat Nov 8 12:17:25 2003 UTC (20 years, 5 months ago) by tsutsui
Branch: MAIN
Changes since 1.114: +2 -3 lines
Diff to previous 1.114 (colored)

Remove obsolete comments about curproc.

Revision 1.114 / (download) - annotate - [select for diffs], Fri Oct 31 16:44:35 2003 UTC (20 years, 5 months ago) by cl
Branch: MAIN
Changes since 1.113: +5 -14 lines
Diff to previous 1.113 (colored)

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.113 / (download) - annotate - [select for diffs], Wed Oct 8 00:28:42 2003 UTC (20 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored)

* 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.112 / (download) - annotate - [select for diffs], Mon Sep 22 14:27:13 2003 UTC (20 years, 7 months ago) by cl
Branch: MAIN
Changes since 1.111: +43 -31 lines
Diff to previous 1.111 (colored)

SA_SIGINFO support for m68k (port specific changes)

Revision 1.111 / (download) - annotate - [select for diffs], Wed Sep 17 23:17:46 2003 UTC (20 years, 7 months ago) by cl
Branch: MAIN
Changes since 1.110: +11 -3 lines
Diff to previous 1.110 (colored)

add MD part of SA/pthread pagefault handling on all m68k ports

Revision 1.110 / (download) - annotate - [select for diffs], Thu Aug 7 16:29:58 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.109: +38 -4 lines
Diff to previous 1.109 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.109 / (download) - annotate - [select for diffs], Tue Jul 15 03:36:19 2003 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.108: +4 -1 lines
Diff to previous 1.108 (colored)

__KERNEL_RCSID()

Revision 1.108 / (download) - annotate - [select for diffs], Mon Jun 23 11:01:47 2003 UTC (20 years, 10 months ago) by martin
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.107: +2 -1 lines
Diff to previous 1.107 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Jan 18 07:03:36 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.106: +42 -37 lines
Diff to previous 1.106 (colored)

Merge the nathanw_sa branch.

Revision 1.103.6.11 / (download) - annotate - [select for diffs], Tue Jan 7 22:12:42 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.103.6.10: +2 -2 lines
Diff to previous 1.103.6.10 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

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

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

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

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Wed Dec 18 01:05:40 2002 UTC (21 years, 4 months ago) by gmcgarry
Branch: gmcgarry_ucred
Changes since 1.106: +2 -3 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Merge pcred and ucred, and poolify.  TBD: check backward compatibility
and factor-out some higher-level functionality.

Revision 1.103.6.10 / (download) - annotate - [select for diffs], Mon Nov 11 22:05:34 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.103.6.9: +2 -1 lines
Diff to previous 1.103.6.9 (colored) to branchpoint 1.103 (colored)

Catch up to -current

Revision 1.106 / (download) - annotate - [select for diffs], Sun Oct 20 02:37:37 2002 UTC (21 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: gmcgarry_ucred
Changes since 1.105: +2 -1 lines
Diff to previous 1.105 (colored)

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.103.6.9 / (download) - annotate - [select for diffs], Thu Sep 26 20:04:53 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.103.6.8: +2 -2 lines
Diff to previous 1.103.6.8 (colored) to branchpoint 1.103 (colored)

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.103.6.8 / (download) - annotate - [select for diffs], Fri Jul 12 01:39:52 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.103.6.7: +1 -2 lines
Diff to previous 1.103.6.7 (colored) to branchpoint 1.103 (colored)

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

Revision 1.103.6.7 / (download) - annotate - [select for diffs], Mon Jun 24 22:08:39 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.103.6.6: +2 -2 lines
Diff to previous 1.103.6.6 (colored) to branchpoint 1.103 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.102.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:42:45 2002 UTC (21 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.102.2.2: +6 -2 lines
Diff to previous 1.102.2.2 (colored) next main 1.103 (colored)

catch up with -current on kqueue branch

Revision 1.103.6.6 / (download) - annotate - [select for diffs], Thu Jun 20 03:41:53 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.103.6.5: +6 -2 lines
Diff to previous 1.103.6.5 (colored) to branchpoint 1.103 (colored)

Catch up to -current.

Revision 1.105 / (download) - annotate - [select for diffs], Tue May 14 02:58:34 2002 UTC (21 years, 11 months ago) by matt
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, kqueue-base, gehenna-devsw-base, gehenna-devsw
Changes since 1.104: +6 -2 lines
Diff to previous 1.104 (colored)

Eliminate more commons or redundant declarations.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Sat Mar 16 16:00:08 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.102.2.1: +2 -2 lines
Diff to previous 1.102.2.1 (colored)

Catch up with -current.

Revision 1.103.6.5 / (download) - annotate - [select for diffs], Thu Feb 28 04:12:24 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.103.6.4: +2 -2 lines
Diff to previous 1.103.6.4 (colored) to branchpoint 1.103 (colored)

Catch up to -current.

Revision 1.104 / (download) - annotate - [select for diffs], Thu Feb 14 07:08:17 2002 UTC (22 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored)

allow writing to write-only mappings.  fixes PR 3493.

Revision 1.103.6.4 / (download) - annotate - [select for diffs], Mon Dec 17 21:34:45 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.103.6.3: +2 -2 lines
Diff to previous 1.103.6.3 (colored) to branchpoint 1.103 (colored)

cpu_upcall() -> sa_upcall_userret().

Revision 1.103.6.3 / (download) - annotate - [select for diffs], Sun Nov 25 10:36:04 2001 UTC (22 years, 4 months ago) by scw
Branch: nathanw_sa
Changes since 1.103.6.2: +3 -10 lines
Diff to previous 1.103.6.2 (colored) to branchpoint 1.103 (colored)

Deal with `want_resched' with trap()'s T_ASTFLT case where it belongs
instead of in userret().

Revision 1.103.6.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:39:03 2001 UTC (22 years, 5 months ago) by scw
Branch: nathanw_sa
Changes since 1.103.6.1: +683 -0 lines
Diff to previous 1.103.6.1 (colored) to branchpoint 1.103 (colored)

MD Scheduler Activation bits for sun3/3x.
Compile-tested only.

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Thu Sep 13 01:15:00 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.102: +7 -7 lines
Diff to previous 1.102 (colored)

Update the kqueue branch to HEAD.

Revision 1.103.6.1, Wed Sep 5 13:21:10 2001 UTC (22 years, 7 months ago) by scw
Branch: nathanw_sa
Changes since 1.103: +0 -670 lines
FILE REMOVED

file trap.c was added on branch nathanw_sa on 2001-11-18 19:39:03 +0000

Revision 1.103 / (download) - annotate - [select for diffs], Wed Sep 5 13:21:10 2001 UTC (22 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: nathanw_sa
Changes since 1.102: +7 -7 lines
Diff to previous 1.102 (colored)

- vm_offset_t -> vaddr_t, vsize_t, paddr_t
- vm_size_t -> vsize_t
- remove register prefixes
- misc cleanup

Revision 1.98.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 19:37:36 2001 UTC (22 years, 10 months ago) by nathanw
Changes since 1.98.2.1: +11 -5 lines
Diff to previous 1.98.2.1 (colored) next main 1.99 (colored)

Catch up to -current.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Jun 3 03:12:31 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Branch point for: kqueue
Changes since 1.101: +8 -3 lines
Diff to previous 1.101 (colored)

clear and restore pcb_onfault around calling uvm_fault(),
so that bugs in the fault-handling code will panic sooner.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jun 2 18:09:23 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

replace vm_map{,_entry}_t with struct vm_map{,_entry} *.

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

add missing   #include "opt_kgdb.h"

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:55:15 2001 UTC (23 years ago) by nathanw
Changes since 1.98: +6 -6 lines
Diff to previous 1.98 (colored)

Catch up with -current.

Revision 1.85.8.6 / (download) - annotate - [select for diffs], Tue Mar 27 15:31:40 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.85.8.5: +6 -6 lines
Diff to previous 1.85.8.5 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored)

Sync with HEAD.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Mar 15 06:10:51 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.98: +6 -6 lines
Diff to previous 1.98 (colored)

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.85.8.5 / (download) - annotate - [select for diffs], Mon Mar 12 13:29:42 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.85.8.4: +6 -1 lines
Diff to previous 1.85.8.4 (colored) to branchpoint 1.85 (colored)

Sync with HEAD.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Feb 22 07:11:12 2001 UTC (23 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.97: +6 -1 lines
Diff to previous 1.97 (colored)

switch sun3 to ELF.  highlight include:
add "%" prefix to register names in assembly code.
change assembly functions to return values in %a0 instead of %d0.
C symbols no longer prepend an underscore, adjust assembly code for this.
32-bit values are now 32-bit aligned instead of 16-bit aligned,
adjust structure packing and padding to override this where necessary.
make EXEC_ELF std, make EXEC_AOUT and COMPAT_AOUT_M68K optional.
use the MI loadfile() instead of several home-grown versions.

Revision 1.85.8.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:12:51 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.85.8.3: +1 -4 lines
Diff to previous 1.85.8.3 (colored) to branchpoint 1.85 (colored)

Sync with HEAD.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Feb 3 13:02:20 2001 UTC (23 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.96: +1 -4 lines
Diff to previous 1.96 (colored)

Remove reg_dump() declaration, which is in <m68k/m68k.h>

Revision 1.85.8.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:35:12 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.85.8.2: +20 -233 lines
Diff to previous 1.85.8.2 (colored) to branchpoint 1.85 (colored)

Sync with HEAD

Revision 1.96 / (download) - annotate - [select for diffs], Wed Dec 27 21:58:52 2000 UTC (23 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.95: +5 -5 lines
Diff to previous 1.95 (colored)

adapt to recent changes of signal structures

Revision 1.95 / (download) - annotate - [select for diffs], Tue Dec 19 21:09:58 2000 UTC (23 years, 4 months ago) by scw
Branch: MAIN
Changes since 1.94: +17 -230 lines
Diff to previous 1.94 (colored)

Unification of the m68k syscall() function.

Revision 1.85.8.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:02:06 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.85.8.1: +4 -16 lines
Diff to previous 1.85.8.1 (colored) to branchpoint 1.85 (colored)

Sync with HEAD.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Nov 21 00:37:52 2000 UTC (23 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.93: +4 -16 lines
Diff to previous 1.93 (colored)

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.85.8.1 / (download) - annotate - [select for diffs], Mon Nov 20 20:28:05 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.85: +16 -26 lines
Diff to previous 1.85 (colored)

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.93 / (download) - annotate - [select for diffs], Thu Jun 29 07:19:09 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.92: +1 -3 lines
Diff to previous 1.92 (colored)

remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jun 27 04:19:03 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.91: +1 -2 lines
Diff to previous 1.91 (colored)

remove redudant <vm/pmap.h> includes. <vm/pmap.h> -> <uvm/uvm_pmap.h>

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:04:49 2000 UTC (23 years, 10 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.91 / (download) - annotate - [select for diffs], Tue Jun 6 18:52:46 2000 UTC (23 years, 10 months ago) by soren
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.90: +2 -1 lines
Diff to previous 1.90 (colored)

defopt SYSCALL_DEBUG.

Revision 1.90 / (download) - annotate - [select for diffs], Sat May 27 00:40:42 2000 UTC (23 years, 10 months ago) by sommerfeld
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored)

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.89 / (download) - annotate - [select for diffs], Fri May 26 21:20:24 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

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

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

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

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

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

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

Revision 1.88 / (download) - annotate - [select for diffs], Wed May 24 16:48:43 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.87: +4 -13 lines
Diff to previous 1.87 (colored)

Use preempt(), not an open-coded equivalent (which won't be
equivalent for long).

Revision 1.85.12.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:34:07 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.85: +7 -6 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

Pull up to last week's -current.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Dec 5 11:56:36 1999 UTC (24 years, 4 months ago) by ragge
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

clrnd()/clbase() discarding.

Revision 1.85.10.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:39:43 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.85: +6 -5 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

Sync with -current

Revision 1.86 / (download) - annotate - [select for diffs], Tue Oct 26 00:20:40 1999 UTC (24 years, 6 months ago) by itohy
Branch: MAIN
CVS Tags: fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.85: +6 -5 lines
Diff to previous 1.85 (colored)

Fix the problem that single-step tracing of a trap instruction
drops the system into kernel debugger.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:15 1999 UTC (25 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.84: +1 -17 lines
Diff to previous 1.84 (colored)

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

Revision 1.84 / (download) - annotate - [select for diffs], Thu Mar 18 04:56:04 1999 UTC (25 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.83: +10 -2 lines
Diff to previous 1.83 (colored)

if uvm_fault() fails with KERN_RESOURCE_SHORTAGE, send a SIGKILL
and print a message about it.  this will be used to recover from
out-of-swap conditions.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Dec 15 19:37:12 1998 UTC (25 years, 4 months ago) by itohy
Branch: MAIN
Changes since 1.82: +50 -2 lines
Diff to previous 1.82 (colored)

Added COMPAT_LINUX support.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Nov 11 06:43:51 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.81: +4 -3 lines
Diff to previous 1.81 (colored)

Changes to support fork_kthread():
- cpu_set_kpc() now takes void *arg third argument, passed to the
  entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
  When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Oct 1 02:53:55 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.80: +13 -7 lines
Diff to previous 1.80 (colored)

Adapt to signal changes.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jul 18 23:02:33 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.79: +2 -1 lines
Diff to previous 1.79 (colored)

Make DDB work again.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jun 25 23:41:51 1998 UTC (25 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

defopt COMPAT_SUNOS

Revision 1.78 / (download) - annotate - [select for diffs], Thu Jun 25 21:19:20 1998 UTC (25 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.77: +2 -1 lines
Diff to previous 1.77 (colored)

defopt KTRACE

Revision 1.77 / (download) - annotate - [select for diffs], Tue Jun 9 19:58:50 1998 UTC (25 years, 10 months ago) by gwr
Branch: MAIN
Changes since 1.76: +15 -1 lines
Diff to previous 1.76 (colored)

Move sun3x _pmap_fault macro from pmap.h to trap.c

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jun 8 20:47:47 1998 UTC (25 years, 10 months ago) by gwr
Branch: MAIN
Changes since 1.75: +16 -2 lines
Diff to previous 1.75 (colored)

Add UVM support

Revision 1.75 / (download) - annotate - [select for diffs], Thu Feb 26 20:31:13 1998 UTC (26 years, 1 month ago) by gwr
Branch: MAIN
Changes since 1.74: +7 -5 lines
Diff to previous 1.74 (colored)

Make the messages printed by _nodb_trap() more helpful.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Feb 5 04:57:50 1998 UTC (26 years, 2 months ago) by gwr
Branch: MAIN
Changes since 1.73: +4 -2 lines
Diff to previous 1.73 (colored)

Merge arch/sun3x into arch/sun3

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Tue Jan 27 19:51:15 1998 UTC (26 years, 2 months ago) by gwr
Branch: gwr-3x3
Changes since 1.73: +4 -2 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Merged Sun3 and Sun3X kernel sources.

Revision 1.72.4.1 / (download) - annotate - [select for diffs], Mon Dec 15 00:56:12 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: 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
Changes since 1.72: +3 -15 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

Pull rev 1.73 up from trunk (gwr)

Revision 1.73 / (download) - annotate - [select for diffs], Tue Dec 2 23:41:30 1997 UTC (26 years, 4 months ago) by gwr
Branch: MAIN
CVS Tags: gwr-3x3-base
Branch point for: gwr-3x3
Changes since 1.72: +3 -15 lines
Diff to previous 1.72 (colored)

Remove the broken trap recursion check (#if DEBUG)

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Mon Sep 8 23:43:24 1997 UTC (26 years, 7 months ago) by thorpej
Branch: thorpej-signal
Changes since 1.72: +2 -4 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

Significantly restructure the way signal state for a process is stored.
Rather than using bitmasks to redundantly store the information kept
in the process's sigacts (because the sigacts was kept in the u-area),
hang sigacts directly off the process, and access it directly.

Simplify signal setup code tremendously by storing information in
the sigacts as an array of struct sigactions, rather than in a different
format, since userspace uses sigactions.

Make sigacts sharable by adding reference counting.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:12:21 1997 UTC (26 years, 8 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.71: +3 -2 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Aug 12 15:47:00 1997 UTC (26 years, 8 months ago) by gwr
Branch: MAIN
CVS Tags: thorpej-signal-base, netbsd-1-3-base, netbsd-1-3-BETA, marc-pcmcia-base
Branch point for: thorpej-signal, netbsd-1-3
Changes since 1.71: +3 -2 lines
Diff to previous 1.71 (colored)

Resolve conflict with <m68k/cpu.h>

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jul 29 06:43:59 1997 UTC (26 years, 8 months ago) by fair
Branch: MAIN
CVS Tags: marc-pcmcia-bp
Branch point for: marc-pcmcia
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored)

%x -> 0x%x, fixes for PR#3757

Revision 1.70 / (download) - annotate - [select for diffs], Wed Apr 9 20:50:03 1997 UTC (27 years ago) by thorpej
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.69: +3 -1 lines
Diff to previous 1.69 (colored)

Pull in m68k/cpu.h to get regdump() prototype

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Thu Mar 13 02:26:22 1997 UTC (27 years, 1 month ago) by gwr
Branch: is-newarp
Changes since 1.65.2.1: +10 -6 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Merge changes from the trunk

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Wed Mar 12 14:05:28 1997 UTC (27 years, 1 month ago) by is
Branch: is-newarp
Changes since 1.65: +144 -61 lines
Diff to previous 1.65 (colored)

Merge in changes from The Trunk

Revision 1.69 / (download) - annotate - [select for diffs], Tue Mar 11 21:30:51 1997 UTC (27 years, 1 month ago) by gwr
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.68: +10 -6 lines
Diff to previous 1.68 (colored)

Correct handling for Trap #2 in SunOS executables,
now that we know it is supposed to flush the cache.
(Was thought to be "some obscure FPU operation".)

Revision 1.68 / (download) - annotate - [select for diffs], Tue Feb 18 15:37:57 1997 UTC (27 years, 2 months ago) by gwr
Branch: MAIN
Changes since 1.67: +52 -6 lines
Diff to previous 1.67 (colored)

Add a debug helper for detecting recursive kernel-mode traps.
Move straytrap() here from machdep.c

Revision 1.67 / (download) - annotate - [select for diffs], Wed Feb 12 01:10:21 1997 UTC (27 years, 2 months ago) by gwr
Branch: MAIN
CVS Tags: mrg-vm-swap
Changes since 1.66: +10 -6 lines
Diff to previous 1.66 (colored)

The KGDB include is now <sys/kgdb.h>
Add the kgdb_recover trick.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Feb 11 00:01:15 1997 UTC (27 years, 2 months ago) by gwr
Branch: MAIN
Changes since 1.65: +88 -55 lines
Diff to previous 1.65 (colored)

Change most occurrences of "struct frame" (union of all frames formats)
to "struct trapframe" (the minimal frame) because in most cases, all we
care about is the minimal, invariant part.  Further, if the declaration
says we have an arg of type "frame" (big union), then KGDB will try to
print the whole bloody thing out whether you want to see it or not.

Also add the function trap_kdebug() which takes care of calling one of:
kgdb_trap (for KGDB), or kdb_trap, (for DDB) or the Sun PROM monitor.
This logic used to be in locore, but it is better as C code.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Jan 27 21:59:56 1997 UTC (27 years, 2 months ago) by gwr
Branch: MAIN
CVS Tags: is-newarp-base
Branch point for: is-newarp
Changes since 1.64: +1 -3 lines
Diff to previous 1.64 (colored)

Nuke sunmon.h, add machdep.h

Revision 1.64 / (download) - annotate - [select for diffs], Mon Jan 27 17:19:22 1997 UTC (27 years, 2 months ago) by gwr
Branch: MAIN
Changes since 1.63: +51 -73 lines
Diff to previous 1.63 (colored)

Sync. with the sun3x version (now the same, so sun3x can use this).
Update exframesize[] array from hp300, comments, misc. cleanup, etc.
Replace machine-dependent section that called pmap_fault_reload()
with a simple call to the new _pmap_fault() macro which does any
of that MD stuff that might be necessary.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Sat Jan 18 04:27:06 1997 UTC (27 years, 3 months ago) by thorpej
Branch: thorpej-setroot
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Update from trunk.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Jan 16 15:41:40 1997 UTC (27 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored)

Use db_regs_t instead of struct mc68020_saved_state

Revision 1.62 / (download) - annotate - [select for diffs], Tue Dec 17 21:35:31 1996 UTC (27 years, 4 months ago) by gwr
Branch: MAIN
Branch point for: thorpej-setroot
Changes since 1.61: +10 -4 lines
Diff to previous 1.61 (colored)

Make sure the MDP_STACKADJ flag is cleared in p->p_md.md_flags
Do this in both machdep.c:setregs() and trap.c:(end of syscall)
for now.  Need more analysis to see what is the best way...
Fixes PR#3034 (Thanks very much to Ian Dall for the fix!)

Revision 1.61 / (download) - annotate - [select for diffs], Tue Dec 17 21:11:42 1996 UTC (27 years, 4 months ago) by gwr
Branch: MAIN
Changes since 1.60: +27 -19 lines
Diff to previous 1.60 (colored)

Make this compile with -Werror -Wall -Wstrict-prototypes
(finally! yea!)  Also get rid of __BROKEN_INDIRECT_CONFIG

Revision 1.60 / (download) - annotate - [select for diffs], Sun Oct 13 03:47:57 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.59: +16 -16 lines
Diff to previous 1.59 (colored)

backout previous kprintf change

Revision 1.59 / (download) - annotate - [select for diffs], Fri Oct 11 00:47:29 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.58: +16 -16 lines
Diff to previous 1.58 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.58 / (download) - annotate - [select for diffs], Sat Sep 7 22:26:57 1996 UTC (27 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Use SIGBUS iff we get a legitimate bus fault.  Use SIGSEGV for page protection
violations (per Solaris, SVR4, AIX, Linux, Irix, and SunOS).

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Mon Jun 17 15:41:06 1996 UTC (27 years, 10 months ago) by gwr
Branch: netbsd-1-2
Changes since 1.57.2.1: +748 -0 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

KGDB support

Revision 1.57.2.1, Mon Jun 17 15:41:05 1996 UTC (27 years, 10 months ago) by gwr
Branch: netbsd-1-2
Changes since 1.57: +0 -748 lines
FILE REMOVED

file trap.c was added on branch netbsd-1-2 on 1996-06-17 15:41:06 +0000

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jun 17 15:41:05 1996 UTC (27 years, 10 months ago) by gwr
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.56: +44 -14 lines
Diff to previous 1.56 (colored)

KGDB support

Revision 1.56 / (download) - annotate - [select for diffs], Thu Mar 21 23:03:49 1996 UTC (28 years, 1 month ago) by gwr
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Correct type of the nofault pointer.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Oct 10 21:33:33 1995 UTC (28 years, 6 months ago) by gwr
Branch: MAIN
CVS Tags: netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

SUNOS_SYS_sunos_sigreturn -> SUNOS_SYS_sigreturn

Revision 1.54 / (download) - annotate - [select for diffs], Tue Sep 26 03:53:46 1995 UTC (28 years, 7 months ago) by gwr
Branch: MAIN
CVS Tags: netbsd-1-1-base
Changes since 1.53: +6 -2 lines
Diff to previous 1.53 (colored)

Correct child_return() so child is charged for its cpu time.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Aug 8 21:11:47 1995 UTC (28 years, 8 months ago) by gwr
Branch: MAIN
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored)

Do errno translation when emulation needs it.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jun 27 14:42:40 1995 UTC (28 years, 9 months ago) by gwr
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Fix uses of btoc() which requires an unsigned arg.

Revision 1.51 / (download) - annotate - [select for diffs], Fri May 26 17:17:47 1995 UTC (28 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.50: +4 -0 lines
Diff to previous 1.50 (colored)

Add a comment

Revision 1.50 / (download) - annotate - [select for diffs], Wed May 24 21:07:46 1995 UTC (28 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.49: +19 -1 lines
Diff to previous 1.49 (colored)

Add child_return()

Revision 1.49 / (download) - annotate - [select for diffs], Wed Apr 26 23:39:04 1995 UTC (29 years ago) by gwr
Branch: MAIN
Changes since 1.48: +10 -4 lines
Diff to previous 1.48 (colored)

SUNOS_SYS_sigreturn -> SUNOS_SYS_sunos_sigreturn
Also, add check for trap during panic.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Apr 22 20:50:47 1995 UTC (29 years ago) by christos
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

Fixed comparison in SYS__syscall to be against sysent instead of
p->p_emul->e_sysent [Thanks Charles for pointing this out].
I think that this code needs to be fixed anyway for emulations where
SYS_syscall is not the same number as the NetBSD one (0)... (Only the
alpha port so far?)

Revision 1.47 / (download) - annotate - [select for diffs], Sat Apr 22 20:29:04 1995 UTC (29 years ago) by christos
Branch: MAIN
Changes since 1.46: +10 -25 lines
Diff to previous 1.46 (colored)

- added sunos_machdep.c for sun3, atari, amiga and mac68k.
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Apr 7 03:12:51 1995 UTC (29 years ago) by gwr
Branch: MAIN
Changes since 1.45: +5 -1 lines
Diff to previous 1.45 (colored)

Look out for null curproc->p_addr which caused a "Watchdog Reset!"
when the recursive faults overflowed the stack.  (from David Jones)

Revision 1.45 / (download) - annotate - [select for diffs], Sun Mar 26 19:38:28 1995 UTC (29 years, 1 month ago) by gwr
Branch: MAIN
Changes since 1.44: +1 -5 lines
Diff to previous 1.44 (colored)

Nuke FPCOPROC

Revision 1.44 / (download) - annotate - [select for diffs], Sun Mar 26 08:04:24 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

invoke ktrsyscall with (vp, code, argsize, args) as args.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Mar 9 09:00:17 1995 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Fix last arg to scdebug_ret().

Revision 1.42 / (download) - annotate - [select for diffs], Thu Mar 9 08:03:51 1995 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.41: +51 -62 lines
Diff to previous 1.41 (colored)

Fix some types:
* code, args, and rval should use register_t.
* argsize should be a size_t.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Mar 1 05:10:36 1995 UTC (29 years, 1 month ago) by gwr
Branch: MAIN
Changes since 1.40: +13 -10 lines
Diff to previous 1.40 (colored)

Call fpu_emulate to handle T_FPEMULI or T_FPEMULD traps.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Feb 24 05:03:47 1995 UTC (29 years, 2 months ago) by gwr
Branch: MAIN
Changes since 1.39: +53 -33 lines
Diff to previous 1.39 (colored)

Call trap() for FP faults (T_FPEMULI*)

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jan 24 06:03:11 1995 UTC (29 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

Add hack to block interrupts while in ddb.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jan 18 17:16:54 1995 UTC (29 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored)

Just return if kdb_trap returns non-zero (now that kdb_trap is fixed).
Print correct message for kernel coprocessor exception.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jan 16 04:31:30 1995 UTC (29 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Fix syntax errors in some #ifdef code.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jan 11 20:39:21 1995 UTC (29 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.35: +8 -9 lines
Diff to previous 1.35 (colored)

Cleanup

Revision 1.35 / (download) - annotate - [select for diffs], Fri Dec 2 06:20:54 1994 UTC (29 years, 4 months ago) by gwr
Branch: MAIN
Changes since 1.34: +7 -6 lines
Diff to previous 1.34 (colored)

Make traps that will panic stop ONCE in the debugger.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Wed Nov 30 22:35:07 1994 UTC (29 years, 4 months ago) by gwr
Branch: sun3-1-0-base
Changes since 1.31: +28 -23 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Make a branch that works with the 1.0 code base.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Nov 28 19:17:12 1994 UTC (29 years, 4 months ago) by gwr
Branch: MAIN
Changes since 1.33: +58 -29 lines
Diff to previous 1.33 (colored)

Fix syscall arg copyin, etc.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Nov 23 08:18:17 1994 UTC (29 years, 5 months ago) by gwr
Branch: MAIN
Changes since 1.32: +5 -7 lines
Diff to previous 1.32 (colored)

Revert trap/dopanic case (avoid recursive traps).

Revision 1.32 / (download) - annotate - [select for diffs], Wed Nov 23 06:46:30 1994 UTC (29 years, 5 months ago) by gwr
Branch: MAIN
Changes since 1.31: +7 -7 lines
Diff to previous 1.31 (colored)

sun_* -> sunos_*

Revision 1.31 / (download) - annotate - [select for diffs], Mon Nov 21 21:39:14 1994 UTC (29 years, 5 months ago) by gwr
Branch: MAIN
Branch point for: sun3-1-0-base
Changes since 1.30: +71 -64 lines
Diff to previous 1.30 (colored)

Lots of changes.  Fairly stable now.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Oct 26 09:13:14 1994 UTC (29 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored)

new RCS ID format.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Oct 20 05:10:15 1994 UTC (29 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

update for new syscall args description mechanism

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Tue Sep 20 16:52:31 1994 UTC (29 years, 7 months ago) by gwr
Branch: netbsd-1-0
Changes since 1.28.2.1: +648 -0 lines
Diff to previous 1.28.2.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Cleanup, use obio_find_mapping() instead of xxx_va

Revision 1.28.2.1, Tue Sep 20 16:52:30 1994 UTC (29 years, 7 months ago) by gwr
Branch: netbsd-1-0
Changes since 1.28: +0 -648 lines
FILE REMOVED

file trap.c was added on branch netbsd-1-0 on 1994-09-20 16:52:31 +0000

Revision 1.28 / (download) - annotate - [select for diffs], Tue Sep 20 16:52:30 1994 UTC (29 years, 7 months ago) by gwr
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Branch point for: netbsd-1-0
Changes since 1.27: +3 -34 lines
Diff to previous 1.27 (colored)

Cleanup, use obio_find_mapping() instead of xxx_va

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Tue Jul 19 16:26:23 1994 UTC (29 years, 9 months ago) by cgd
Changes since 1.25.2.1: +5 -3 lines
Diff to previous 1.25.2.1 (colored) next main 1.26 (colored)

from trunk, per gwr.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jul 19 02:45:55 1994 UTC (29 years, 9 months ago) by gwr
Branch: MAIN
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored)

Conditionalize some more debugging code.
(Don't need to drop into DDB on each COW fault :-)

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Tue Jul 12 21:12:01 1994 UTC (29 years, 9 months ago) by cgd
Changes since 1.25: +5 -12 lines
Diff to previous 1.25 (colored)

updates from trunk, per gwr

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jul 11 03:41:35 1994 UTC (29 years, 9 months ago) by gwr
Branch: MAIN
Changes since 1.25: +5 -12 lines
Diff to previous 1.25 (colored)

miscellaneous cleanup

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 1 21:30:13 1994 UTC (29 years, 9 months ago) by gwr
Branch: MAIN
Changes since 1.24: +5 -6 lines
Diff to previous 1.24 (colored)

Oops, the call to trapsignal needs to be conditional.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 30 12:42:05 1994 UTC (29 years, 9 months ago) by gwr
Branch: MAIN
Changes since 1.23: +2 -3 lines
Diff to previous 1.23 (colored)

Yes, trap() can be called when curproc==NULL

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 29 05:35:59 1994 UTC (29 years, 9 months ago) by gwr
Branch: MAIN
Changes since 1.22: +210 -258 lines
Diff to previous 1.22 (colored)

Make setsoft* use the real software interrupt register.
Integrate several fixes from the amiga port (and drop COMPAT_HPUX for now).
Add lots of debugging checks to pmap.c - still needs work.

Revision 1.22 / (download) - annotate - [select for diffs], Fri May 27 14:58:41 1994 UTC (29 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.21: +104 -45 lines
Diff to previous 1.21 (colored)

Catch up with frame.h chages, merge stuff from new hp300 port.

Revision 1.21 / (download) - annotate - [select for diffs], Fri May 20 04:40:23 1994 UTC (29 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.20: +9 -8 lines
Diff to previous 1.20 (colored)

swtch() ==> cpu_switch(), add cpu_coredump()

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 16 16:49:41 1994 UTC (29 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored)

Lite: setrq -> setrunqueue

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 10 05:26:18 1994 UTC (29 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored)

Add CTL_HW stuff, cpu_sysctl, replace ss_onstack...

Revision 1.18 / (download) - annotate - [select for diffs], Mon May 9 00:47:22 1994 UTC (29 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.17: +11 -2 lines
Diff to previous 1.17 (colored)

Add the hooks to make ddb work.

Revision 1.17 / (download) - annotate - [select for diffs], Fri May 6 07:47:13 1994 UTC (29 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.16: +25 -38 lines
Diff to previous 1.16 (colored)

Tracking 4.4 integration

Revision 1.16 / (download) - annotate - [select for diffs], Thu May 5 04:48:52 1994 UTC (29 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

proc flag names

Revision 1.15 / (download) - annotate - [select for diffs], Thu May 5 01:11:34 1994 UTC (29 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

HPUXCOMPAT changed to COMPAT_HPUX

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 24 20:10:31 1994 UTC (30 years ago) by glass
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

fixed to use new queue stuff. random diffs to make ddb stuff mostly compile

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 17 06:31:32 1994 UTC (30 years ago) by glass
Branch: MAIN
Changes since 1.12: +6 -3 lines
Diff to previous 1.12 (colored)

compiles again. also cleanup of development printfs. and trap stuff

Revision 1.12 / (download) - annotate - [select for diffs], Fri Apr 8 16:49:18 1994 UTC (30 years ago) by glass
Branch: MAIN
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (colored)

sys to sun_sys

Revision 1.11 / (download) - annotate - [select for diffs], Sat Apr 2 21:10:26 1994 UTC (30 years ago) by glass
Branch: MAIN
Changes since 1.10: +14 -3 lines
Diff to previous 1.10 (colored)

part one of two..need to give someone a ring...

Revision 1.10 / (download) - annotate - [select for diffs], Tue Mar 1 08:23:18 1994 UTC (30 years, 1 month ago) by glass
Branch: MAIN
Changes since 1.9: +36 -26 lines
Diff to previous 1.9 (colored)

bugs fixed and cleanup

Revision 1.9 / (download) - annotate - [select for diffs], Wed Feb 23 08:29:51 1994 UTC (30 years, 2 months ago) by glass
Branch: MAIN
Changes since 1.8: +11 -2 lines
Diff to previous 1.8 (colored)

boots, presents shell prompt, and doesn't crash immediately

Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 4 08:21:08 1994 UTC (30 years, 2 months ago) by glass
Branch: MAIN
CVS Tags: sun3-current
Changes since 1.7: +23 -9 lines
Diff to previous 1.7 (colored)

sun3 port works under NetBSD-current now.  rcsids probably fucked

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 12 09:08:54 1993 UTC (30 years, 4 months ago) by glass
Branch: MAIN
CVS Tags: sun3-magnum, glass-home4
Changes since 1.6: +58 -5 lines
Diff to previous 1.6 (colored)

snapshot of my private sources

Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 23 05:29:19 1993 UTC (30 years, 5 months ago) by glass
Branch: MAIN
Changes since 1.5: +60 -89 lines
Diff to previous 1.5 (colored)

Now works with current tree, as opposed to the july 8th tree in which it was
written.
Requires magnum infrastructure now, particularly the clock stuff.
Fails to exec init because the /sbin/init binary
is a sunos binary.  Next step is to integrate sunos compatibility code
from /sys/compat/sunos, and the amiga port.
Does not yet implement MACHINE_NOCONTIG support.

[from glass Mon Nov 22 21:22:45 PST 1993  home tag: home2]

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 12 05:27:46 1993 UTC (30 years, 6 months ago) by glass
Branch: MAIN
Changes since 1.4: +17 -12 lines
Diff to previous 1.4 (colored)

sun3 port updated. netboot integrated.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Aug 28 15:38:30 1993 UTC (30 years, 7 months ago) by glass
Branch: MAIN
CVS Tags: to_lamp_cvs, magnum-base
Changes since 1.3: +6 -0 lines
Diff to previous 1.3 (colored)

last snapshot before uploading.  we still have serious clock problems

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 22 21:27:22 1993 UTC (30 years, 8 months ago) by glass
Branch: MAIN
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 (colored)

gets past enablertclock(), now time to deal with the mountroot mess

Revision 1.2 / (download) - annotate - [select for diffs], Sat Aug 21 02:18:06 1993 UTC (30 years, 8 months ago) by glass
Branch: MAIN
CVS Tags: first_uplaod
Changes since 1.1: +4 -0 lines
Diff to previous 1.1 (colored)

snapshot. for uploading.  gets lost in swtch after enablertclock()

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 3 22:38:28 1993 UTC (30 years, 8 months ago) by glass
Branch: MAIN

it links with out any unresolved symbols, last few are just stubs
because we aren't likely to get near execing init for a while

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>