The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


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

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

Revision 1.308: download - view: text, markup, annotated - select for diffs
Sat Aug 20 23:48:50 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.307: preferred, colored
Changes since revision 1.307: +3 -2 lines
x86: Split most of pmap.h into pmap_private.h or vmparam.h.

This way pmap.h only contains the MD definition of the MI pmap(9)
API, which loads of things in the kernel rely on, so changing x86
pmap internals no longer requires recompiling the entire kernel every
time.

Callers needing these internals must now use machine/pmap_private.h.
Note: This is not x86/pmap_private.h because it contains three parts:

1. CPU-specific (different for i386/amd64) definitions used by...

2. common definitions, including Xenisms like xpmap_ptetomach,
   further used by...

3. more CPU-specific inlines for pmap_pte_* operations

So {amd64,i386}/pmap_private.h defines 1, includes x86/pmap_private.h
for 2, and then defines 3.  Maybe we should split that out into a new
pmap_pte.h to reduce this trouble.

No functional change intended, other than that some .c files must
include machine/pmap_private.h when previously uvm/uvm_pmap.h
polluted the namespace with pmap internals.

Note: This migrates part of i386/pmap.h into i386/vmparam.h --
specifically the parts that are needed for several constants defined
in vmparam.h:

VM_MAXUSER_ADDRESS
VM_MAX_ADDRESS
VM_MAX_KERNEL_ADDRESS
VM_MIN_KERNEL_ADDRESS

Since i386 needs PDP_SIZE in vmparam.h, I added it there on amd64
too, just to keep things parallel.

Revision 1.307: download - view: text, markup, annotated - select for diffs
Sat Sep 5 07:26:37 2020 UTC (4 years, 3 months ago) by maxv
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.306: preferred, colored
Changes since revision 1.306: +4 -4 lines
x86: rename PGEX_X -> PGEX_I

To match the x86 specification and the other OSes.

Revision 1.306: download - view: text, markup, annotated - select for diffs
Tue Aug 11 04:30:16 2020 UTC (4 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.305: preferred, colored
Changes since revision 1.305: +28 -33 lines
- fix lcall test
- refactor all the TRAP_SIGDEBUG printfs and use hexdump like we did on
  amd64

Revision 1.305: download - view: text, markup, annotated - select for diffs
Sat Aug 8 19:08:48 2020 UTC (4 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.304: preferred, colored
Changes since revision 1.304: +7 -11 lines
PR/55547: Dan Plassche: Fix BSD/OS binary emulation.
Centralize lcall sniffer and recognize the BSD/OS flavor.

Revision 1.304: download - view: text, markup, annotated - select for diffs
Tue Jul 14 00:45:52 2020 UTC (4 years, 5 months ago) by yamaguchi
Branches: MAIN
Diff to: previous 1.303: preferred, colored
Changes since revision 1.303: +8 -2 lines
Introduce per-cpu IDTs

This is realized by following modifications:
- Add IDT pages and its allocation maps for each cpu in "struct cpu_info"
- Load per-cpu IDTs at cpu_init_idt(struct cpu_info*)
- Copy the IDT entries for cpu0 to other CPUs at attach
   - These are, for example, exceptions, db, system calls, etc.

And, added a kernel option named PCPU_IDT to enable the feature.

Revision 1.295.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:52 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.295.2.2: preferred, colored; branchpoint 1.295: preferred, colored; next MAIN 1.296: preferred, colored
Changes since revision 1.295.2.2: +6 -3 lines
Mostly merge changes from HEAD upto 20200411

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

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

Revision 1.302: download - view: text, markup, annotated - select for diffs
Sat Jul 13 17:04:21 2019 UTC (5 years, 5 months ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Diff to: previous 1.301: preferred, colored
Changes since revision 1.301: +8 -5 lines
Use common code for SMEP/SMAP panic to print more information and
allow debugging.

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

Revision 1.301: download - view: text, markup, annotated - select for diffs
Wed May 29 14:28:37 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.300: preferred, colored
Changes since revision 1.300: +8 -6 lines
 Use PRIxREGISTER suggested by Kamil.

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

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

Welcome to NetBSD 8.99.37.

Revision 1.299: download - view: text, markup, annotated - select for diffs
Fri Mar 8 08:12:39 2019 UTC (5 years, 9 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.298: preferred, colored
Changes since revision 1.298: +3 -3 lines
s/ the the / the /

Revision 1.298: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:32 2019 UTC (5 years, 10 months ago) by cherry
Branches: MAIN
Diff to: previous 1.297: preferred, colored
Changes since revision 1.297: +6 -6 lines
We reorganise definitions for XEN source support as follows:

XEN - common sources required for baseline XEN support.
XENPV - sources required for support of XEN in PV mode.
XENPVHVM - sources required for support for XEN in HVM mode.
XENPVH - sources required for support for XEN in PVH mode.

Revision 1.297: download - view: text, markup, annotated - select for diffs
Sun Feb 3 03:19:26 2019 UTC (5 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.296: preferred, colored
Changes since revision 1.296: +3 -2 lines
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily

Revision 1.287.6.2: download - view: text, markup, annotated - select for diffs
Tue Jul 31 15:57:11 2018 UTC (6 years, 4 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.287.6.1: preferred, colored; branchpoint 1.287: preferred, colored; next MAIN 1.288: preferred, colored
Changes since revision 1.287.6.1: +3 -3 lines
Pull up following revision(s) (requested by taca in ticket #945):

	sys/arch/i386/i386/trap.c: revision 1.290

Don't use a const variable as an array size, because it is not a
constant expression and will cause the array to needlessly become a
variable-size one.  Fixes "error: stack protector not protecting local
variables: variable length buffer [-Werror=stack-protector]" when
building i386 with MKDEBUG=YES -V COPTS="-g".

Revision 1.293.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:34 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.293.2.1: preferred, colored; branchpoint 1.293: preferred, colored; next MAIN 1.294: preferred, colored
Changes since revision 1.293.2.1: +3 -2 lines
Sync with HEAD

Revision 1.296: download - view: text, markup, annotated - select for diffs
Thu Jul 26 09:29:08 2018 UTC (6 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +3 -2 lines
Rework dbregs, to switch the registers during context switches, and not on
each user->kernel transition via userret. Reloads of DR6/DR7 are expensive
on both native and xen.

Revision 1.293.2.1: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:00 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.293: preferred, colored
Changes since revision 1.293: +26 -2 lines
Sync with HEAD

Revision 1.295: download - view: text, markup, annotated - select for diffs
Wed May 16 16:33:23 2018 UTC (6 years, 6 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Diff to: previous 1.294: preferred, colored
Changes since revision 1.294: +6 -2 lines
Fix compilation on Xen.

Revision 1.294: download - view: text, markup, annotated - select for diffs
Wed May 16 08:16:36 2018 UTC (6 years, 6 months ago) by maxv
Branches: MAIN
Diff to: previous 1.293: preferred, colored
Changes since revision 1.293: +22 -2 lines
Mitigation for CVE-2018-8897 on i386. Contrary to amd64 there is no clear
way to determine if we are in kernel mode but with the user context; so we
go the hard way, and scan the IDT.

On i386 the bug is less of a problem, since we don't have GSBASE. All an
attacker can do is panicking the system.

Revision 1.293: download - view: text, markup, annotated - select for diffs
Tue Feb 13 01:05:18 2018 UTC (6 years, 10 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.292: preferred, colored
Changes since revision 1.292: +3 -4 lines
Unconditionally print the trap like we do for amdt64 (Dimitris Karagkasidis)

Revision 1.292: download - view: text, markup, annotated - select for diffs
Sat Jan 27 09:33:25 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.291: preferred, colored
Changes since revision 1.291: +11 -2 lines
Add SMAP support for i386.

Revision 1.264.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:17 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.264.2.3: preferred, colored; next MAIN 1.265: preferred, colored
Changes since revision 1.264.2.3: +136 -68 lines
update from HEAD

Revision 1.291: download - view: text, markup, annotated - select for diffs
Sun Sep 17 09:41:35 2017 UTC (7 years, 2 months ago) by maxv
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.290: preferred, colored
Changes since revision 1.290: +5 -5 lines
Remove the second argument from USERMODE and KERNELMODE, it is unused
now that we don't have vm86 anymore.

Revision 1.290: download - view: text, markup, annotated - select for diffs
Tue Sep 12 14:10:49 2017 UTC (7 years, 3 months ago) by gson
Branches: MAIN
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +3 -3 lines
Don't use a const variable as an array size, because it is not a
constant expression and will cause the array to needlessly become a
variable-size one.  Fixes "error: stack protector not protecting local
variables: variable length buffer [-Werror=stack-protector]" when
building i386 with MKDEBUG=YES -V COPTS="-g".

Revision 1.273.2.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:40 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.273.2.4: preferred, colored; branchpoint 1.273: preferred, colored; next MAIN 1.274: preferred, colored
Changes since revision 1.273.2.4: +94 -27 lines
Sync with HEAD

Revision 1.289: download - view: text, markup, annotated - select for diffs
Sat Aug 12 07:07:53 2017 UTC (7 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: nick-nhusb-base-20170825
Diff to: previous 1.288: preferred, colored
Changes since revision 1.288: +2 -9 lines
Remove vm86. Simplifies a number of critical places.

Pass 2.

Revision 1.262.8.2: download - view: text, markup, annotated - select for diffs
Tue Aug 8 12:00:35 2017 UTC (7 years, 4 months ago) by martin
Branches: netbsd-6
Diff to: previous 1.262.8.1: preferred, colored; branchpoint 1.262: preferred, colored; next MAIN 1.263: preferred, colored
Changes since revision 1.262.8.1: +23 -11 lines
Pull up following revision(s) (requested by maxv in ticket #1464):

	sys/arch/i386/i386/trap.c:     revision 1.288		(patch)
	sys/arch/i386/i386/machdep.c:  revision 1.783		(patch)
	sys/arch/i386/i386/locore.S:   revision 1.146		(patch)
	sys/arch/amd64/amd64/locore.S: revision 1.122,1.124	(patch)
	sys/arch/amd64/amd64/machdep.c revision 1.254		(patch)
	sys/arch/amd64/amd64/trap.c:   revision 1.95-1.96	(patch)

Remove the osyscall call gate and emulate it. There is a
one-instruction race in it that could panic the kernel.

Restore the ability to run netbsd 1.0 32-bit executables by checking
for the relevant lcall instruction in the trap handler and treating it
as a syscall.

Revision 1.262.14.2: download - view: text, markup, annotated - select for diffs
Tue Aug 8 11:59:16 2017 UTC (7 years, 4 months ago) by martin
Branches: netbsd-6-1
Diff to: previous 1.262.14.1: preferred, colored; branchpoint 1.262: preferred, colored; next MAIN 1.263: preferred, colored
Changes since revision 1.262.14.1: +23 -11 lines
Pull up following revision(s) (requested by maxv in ticket #1464):

	sys/arch/i386/i386/trap.c:     revision 1.288		(patch)
	sys/arch/i386/i386/machdep.c:  revision 1.783		(patch)
	sys/arch/i386/i386/locore.S:   revision 1.146		(patch)
	sys/arch/amd64/amd64/locore.S: revision 1.122,1.124	(patch)
	sys/arch/amd64/amd64/machdep.c revision 1.254		(patch)
	sys/arch/amd64/amd64/trap.c:   revision 1.95-1.96	(patch)

Remove the osyscall call gate and emulate it. There is a
one-instruction race in it that could panic the kernel.

Restore the ability to run netbsd 1.0 32-bit executables by checking
for the relevant lcall instruction in the trap handler and treating it
as a syscall.

Revision 1.262.12.2: download - view: text, markup, annotated - select for diffs
Tue Aug 8 11:55:20 2017 UTC (7 years, 4 months ago) by martin
Branches: netbsd-6-0
Diff to: previous 1.262.12.1: preferred, colored; branchpoint 1.262: preferred, colored; next MAIN 1.263: preferred, colored
Changes since revision 1.262.12.1: +23 -11 lines
Pull up following revision(s) (requested by maxv in ticket #1464):

	sys/arch/i386/i386/trap.c:     revision 1.288		(patch)
	sys/arch/i386/i386/machdep.c:  revision 1.783		(patch)
	sys/arch/i386/i386/locore.S:   revision 1.146		(patch)
	sys/arch/amd64/amd64/locore.S: revision 1.122,1.124	(patch)
	sys/arch/amd64/amd64/machdep.c revision 1.254		(patch)
	sys/arch/amd64/amd64/trap.c:   revision 1.95-1.96	(patch)

Remove the osyscall call gate and emulate it. There is a
one-instruction race in it that could panic the kernel.

Restore the ability to run netbsd 1.0 32-bit executables by checking
for the relevant lcall instruction in the trap handler and treating it
as a syscall.

Revision 1.272.4.2: download - view: text, markup, annotated - select for diffs
Thu Jul 20 01:43:40 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.272.4.1: preferred, colored; branchpoint 1.272: preferred, colored; next MAIN 1.273: preferred, colored
Changes since revision 1.272.4.1: +24 -11 lines
Pull up following revision(s) (requested by maxv in ticket #1441):
	sys/arch/i386/i386/trap.c: revision 1.288 via patch
	sys/arch/i386/i386/machdep.c: revision 1.783 via patch
	sys/arch/i386/i386/locore.S: revision 1.146 via patch
	sys/arch/amd64/amd64/locore.S: revision 1.124 via patch
Remove the osyscall call gate on i386, and emulate it. There is a one-
instruction race in it that could panic the kernel.

Revision 1.272.10.2: download - view: text, markup, annotated - select for diffs
Thu Jul 20 01:43:10 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-7-1
CVS tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Diff to: previous 1.272.10.1: preferred, colored; branchpoint 1.272: preferred, colored; next MAIN 1.273: preferred, colored
Changes since revision 1.272.10.1: +24 -11 lines
Pull up following revision(s) (requested by maxv in ticket #1441):
	sys/arch/i386/i386/trap.c: revision 1.288 via patch
	sys/arch/i386/i386/machdep.c: revision 1.783 via patch
	sys/arch/i386/i386/locore.S: revision 1.146 via patch
	sys/arch/amd64/amd64/locore.S: revision 1.124 via patch
Remove the osyscall call gate on i386, and emulate it. There is a one-
instruction race in it that could panic the kernel.

Revision 1.272.6.2: download - view: text, markup, annotated - select for diffs
Thu Jul 20 01:42:39 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-7-0
Diff to: previous 1.272.6.1: preferred, colored; branchpoint 1.272: preferred, colored; next MAIN 1.273: preferred, colored
Changes since revision 1.272.6.1: +24 -11 lines
Pull up following revision(s) (requested by maxv in ticket #1441):
	sys/arch/i386/i386/trap.c: revision 1.288 via patch
	sys/arch/i386/i386/machdep.c: revision 1.783 via patch
	sys/arch/i386/i386/locore.S: revision 1.146 via patch
	sys/arch/amd64/amd64/locore.S: revision 1.124 via patch
Remove the osyscall call gate on i386, and emulate it. There is a one-
instruction race in it that could panic the kernel.

Revision 1.287.6.1: download - view: text, markup, annotated - select for diffs
Wed Jul 5 19:59:29 2017 UTC (7 years, 5 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +24 -11 lines
Pull up following revision(s) (requested by maxv in ticket #88):
	sys/arch/amd64/amd64/locore.S: revision 1.124
	sys/arch/i386/i386/locore.S: revision 1.146
	sys/arch/i386/i386/machdep.c: revision 1.783
	sys/arch/i386/i386/trap.c: revision 1.288
Remove the osyscall call gate on i386, and emulate it. There is a one-
instruction race in it that could panic the kernel.

Revision 1.288: download - view: text, markup, annotated - select for diffs
Sat Jul 1 10:44:42 2017 UTC (7 years, 5 months ago) by maxv
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +24 -11 lines
Remove the osyscall call gate on i386, and emulate it. There is a one-
instruction race in it that could panic the kernel.

Revision 1.281.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:28 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.281: preferred, colored; next MAIN 1.282: preferred, colored
Changes since revision 1.281: +73 -7 lines
Sync with HEAD

Revision 1.262.12.1: download - view: text, markup, annotated - select for diffs
Sat Mar 25 17:20:07 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-6-0
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +3 -2 lines
Pull up following revision(s) (requested by maxv in ticket #1446):
	sys/arch/amd64/amd64/trap.c: revision 1.94
	sys/arch/i386/i386/trap.c: revision 1.287
Mmh, allow iret to be handled when an #SS fault (T_STKFLT) happens. Even
if the sdm is far from being clear, it appears that iret can trigger an #SS
fault if %ss points to a writable but non-present segment; in which case
the kernel would panic, thinking the fault was internal to it.
In particular, userland can create a broken segment in the ldt with
USER_LDT, update its %ss with setcontext and trigger the panic. I don't
think amd64 is affected since USER_LDT does not exist there, and the
changes on tf_ss seem correct - but I'm still adding T_STKFLT for safety.

Revision 1.262.14.1: download - view: text, markup, annotated - select for diffs
Sat Mar 25 17:19:32 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-6-1
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +3 -2 lines
Pull up following revision(s) (requested by maxv in ticket #1446):
	sys/arch/amd64/amd64/trap.c: revision 1.94
	sys/arch/i386/i386/trap.c: revision 1.287
Mmh, allow iret to be handled when an #SS fault (T_STKFLT) happens. Even
if the sdm is far from being clear, it appears that iret can trigger an #SS
fault if %ss points to a writable but non-present segment; in which case
the kernel would panic, thinking the fault was internal to it.
In particular, userland can create a broken segment in the ldt with
USER_LDT, update its %ss with setcontext and trigger the panic. I don't
think amd64 is affected since USER_LDT does not exist there, and the
changes on tf_ss seem correct - but I'm still adding T_STKFLT for safety.

Revision 1.262.8.1: download - view: text, markup, annotated - select for diffs
Sat Mar 25 17:18:25 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +3 -2 lines
Pull up following revision(s) (requested by maxv in ticket #1446):
	sys/arch/amd64/amd64/trap.c: revision 1.94
	sys/arch/i386/i386/trap.c: revision 1.287
Mmh, allow iret to be handled when an #SS fault (T_STKFLT) happens. Even
if the sdm is far from being clear, it appears that iret can trigger an #SS
fault if %ss points to a writable but non-present segment; in which case
the kernel would panic, thinking the fault was internal to it.
In particular, userland can create a broken segment in the ldt with
USER_LDT, update its %ss with setcontext and trigger the panic. I don't
think amd64 is affected since USER_LDT does not exist there, and the
changes on tf_ss seem correct - but I'm still adding T_STKFLT for safety.

Revision 1.272.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 25 16:59:01 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-7-0
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +3 -2 lines
Pull up following revision(s) (requested by maxv in ticket #1391):
	sys/arch/amd64/amd64/trap.c: revision 1.94
	sys/arch/i386/i386/trap.c: revision 1.287
Mmh, allow iret to be handled when an #SS fault (T_STKFLT) happens. Even
if the sdm is far from being clear, it appears that iret can trigger an #SS
fault if %ss points to a writable but non-present segment; in which case
the kernel would panic, thinking the fault was internal to it.
In particular, userland can create a broken segment in the ldt with
USER_LDT, update its %ss with setcontext and trigger the panic. I don't
think amd64 is affected since USER_LDT does not exist there, and the
changes on tf_ss seem correct - but I'm still adding T_STKFLT for safety.

Revision 1.272.10.1: download - view: text, markup, annotated - select for diffs
Sat Mar 25 16:58:25 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-7-1
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +3 -2 lines
Pull up following revision(s) (requested by maxv in ticket #1391):
	sys/arch/amd64/amd64/trap.c: revision 1.94
	sys/arch/i386/i386/trap.c: revision 1.287
Mmh, allow iret to be handled when an #SS fault (T_STKFLT) happens. Even
if the sdm is far from being clear, it appears that iret can trigger an #SS
fault if %ss points to a writable but non-present segment; in which case
the kernel would panic, thinking the fault was internal to it.
In particular, userland can create a broken segment in the ldt with
USER_LDT, update its %ss with setcontext and trigger the panic. I don't
think amd64 is affected since USER_LDT does not exist there, and the
changes on tf_ss seem correct - but I'm still adding T_STKFLT for safety.

Revision 1.272.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 25 16:57:40 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +3 -2 lines
Pull up following revision(s) (requested by maxv in ticket #1391):
	sys/arch/amd64/amd64/trap.c: revision 1.94
	sys/arch/i386/i386/trap.c: revision 1.287
Mmh, allow iret to be handled when an #SS fault (T_STKFLT) happens. Even
if the sdm is far from being clear, it appears that iret can trigger an #SS
fault if %ss points to a writable but non-present segment; in which case
the kernel would panic, thinking the fault was internal to it.
In particular, userland can create a broken segment in the ldt with
USER_LDT, update its %ss with setcontext and trigger the panic. I don't
think amd64 is affected since USER_LDT does not exist there, and the
changes on tf_ss seem correct - but I'm still adding T_STKFLT for safety.

Revision 1.276.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:14 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.276.2.2: preferred, colored; branchpoint 1.276: preferred, colored; next MAIN 1.277: preferred, colored
Changes since revision 1.276.2.2: +73 -7 lines
Sync with HEAD

Revision 1.287: download - view: text, markup, annotated - select for diffs
Sat Mar 18 13:39:23 2017 UTC (7 years, 8 months ago) by maxv
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +3 -2 lines
Mmh, allow iret to be handled when an #SS fault (T_STKFLT) happens. Even
if the sdm is far from being clear, it appears that iret can trigger an #SS
fault if %ss points to a writable but non-present segment; in which case
the kernel would panic, thinking the fault was internal to it.

In particular, userland can create a broken segment in the ldt with
USER_LDT, update its %ss with setcontext and trigger the panic. I don't
think amd64 is affected since USER_LDT does not exist there, and the
changes on tf_ss seem correct - but I'm still adding T_STKFLT for safety.

Revision 1.286: download - view: text, markup, annotated - select for diffs
Tue Mar 14 07:02:53 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +13 -2 lines
Use frame_dump if TRAP_SIGDEBUG is enabled

This unbreaks the build of i386 ALL kernel.

Revision 1.285: download - view: text, markup, annotated - select for diffs
Thu Mar 9 00:16:51 2017 UTC (7 years, 9 months ago) by chs
Branches: MAIN
Diff to: previous 1.284: preferred, colored
Changes since revision 1.284: +43 -6 lines
improve readability of TRAP_SIGDEBUG info.
also print the trapframe info like amd64 does.

Revision 1.284: download - view: text, markup, annotated - select for diffs
Thu Feb 23 03:34:22 2017 UTC (7 years, 9 months ago) by kamil
Branches: MAIN
Diff to: previous 1.283: preferred, colored
Changes since revision 1.283: +19 -6 lines
Introduce PT_GETDBREGS and PT_SETDBREGS in ptrace(2) on i386 and amd64

This interface is modeled after FreeBSD API with the usage.

This replaced previous watchpoint API. The previous one was introduced
recently in NetBSD-current and remove its spurs without any
backward-compatibility.

Design choices for Debug Register accessors:
 - exec() (TRAP_EXEC event) must remove debug registers from LWP
 - debug registers are only per-LWP, not per-process globally
 - debug registers must not be inherited after (v)forking a process
 - debug registers must not be inherited after forking a thread
 - a debugger is responsible to set global watchpoints/breakpoints with the
   debug registers, to achieve this PTRACE_LWP_CREATE/PTRACE_LWP_EXIT event
   monitoring function is designed to be used
 - debug register traps must generate SIGTRAP with si_code TRAP_DBREG
 - debugger is responsible to retrieve debug register state to distinguish
   the exact debug register trap (DR6 is Status Register on x86)
 - kernel must not remove debug register traps after triggering a trap event
   a debugger is responsible to detach this trap with appropriate PT_SETDBREGS
   call (DR7 is Control Register on x86)
 - debug registers must not be exposed in mcontext
 - userland must not be allowed to set a trap on the kernel

Implementation notes on i386 and amd64:
 - the initial state of debug register is retrieved on boot and this value is
   stored in a local copy (initdbregs), this value is used to initialize dbreg
   context after PT_GETDBREGS
 - struct dbregs is stored in pcb as a pointer and by default not initialized
 - reserved registers (DR4-DR5, DR9-DR15) are ignored

Further ideas:
 - restrict this interface with securelevel

Tested on real hardware i386 (Intel Pentium IV) and amd64 (Intel i7).

This commit enables 390 debug register ATF tests in kernel/arch/x86.
All tests are passing.

This commit does not cover netbsd32 compat code. Currently other interface
PT_GET_SIGINFO/PT_SET_SIGINFO is required in netbsd32 compat code in order to
validate reliably PT_GETDBREGS/PT_SETDBREGS.

This implementation does not cover FreeBSD specific defines in their
<x86/reg.h>: DBREG_DR7_LOCAL_ENABLE, DBREG_DR7_GLOBAL_ENABLE, DBREG_DR7_LEN_1
etc. These values tend to be reinvented by each tracer on its own. GNU
Debugger (GDB) works with NetBSD debug registers after adding this patch:

--- gdb/amd64bsd-nat.c.orig	2016-02-10 03:19:39.000000000 +0000
+++ gdb/amd64bsd-nat.c
@@ -167,6 +167,10 @@ amd64bsd_target (void)

 #ifdef HAVE_PT_GETDBREGS

+#ifndef DBREG_DRX
+#define	DBREG_DRX(d,x)	((d)->dr[(x)])
+#endif
+
 static unsigned long
 amd64bsd_dr_get (ptid_t ptid, int regnum)
 {


Another reason to stop introducing unpopular defines covering machine
specific register macros is that these value varies across generations of
the same CPU family.

GDB demo:
  (gdb) c
  Continuing.

  Watchpoint 2: traceme

  Old value = 0
  New value = 16
  main (argc=1, argv=0x7f7fff79fe30) at test.c:8
  8               printf("traceme=%d\n", traceme);

(Currently the GDB interface is not reliable due to NetBSD support bugs)

Sponsored by <The NetBSD Foundation>

Revision 1.283: download - view: text, markup, annotated - select for diffs
Fri Feb 17 01:14:31 2017 UTC (7 years, 9 months ago) by kamil
Branches: MAIN
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +3 -3 lines
Add new si_code TRAP_DBREG

It replaces previous TRAP_HWWPT and is designed to be used for debug
register traps (both watchpoints and breakpoints).

TRAP_HWWPT wasn't documented in siginfo(2) neither noted in doc/CHANGES -
- document it and add new entry in CHANGES. This move is a step towards
switch the watchpoint ptrace(2) api to PT_*DBREGS.

This code was introduced recently and has no impact on stable releases.

Sponsored by <The NetBSD Foundation>

Revision 1.273.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:12 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.273.2.3: preferred, colored; branchpoint 1.273: preferred, colored
Changes since revision 1.273.2.3: +9 -26 lines
Sync with HEAD

Revision 1.282: download - view: text, markup, annotated - select for diffs
Wed Jan 18 05:11:59 2017 UTC (7 years, 10 months ago) by kamil
Branches: MAIN
CVS tags: nick-nhusb-base-20170204
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +8 -4 lines
Embed hardware trap and its type that fired (x86), information for tracers

Now x86 throws SIGTRAP on hardware exception with:
 - si_code TRAP_HWWPT - dedicated for hw assisted watchpoint interface
 - si_trap - unchanged (T_TRCTRAP)
 - si_trap2 - watchpoint number that fired
 - si_trap3 - watchpoint specific event description

x86 returns in si_trap3 one of the field from <x86/dbregs.h>
 - X86_HW_WATCHPOINT_EVENT_FIRED - watchpoint fired
 - X86_HW_WATCHPOINT_EVENT_FIRED_AND_SSTEP - watchpoint fired under PT_STEP

Othe changes:
 - restrict more code from <x86/dbregs.h> to _KERNEL

Sponsored bt <The NetBSD Foundation>

Revision 1.276.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:18 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.276.2.1: preferred, colored; branchpoint 1.276: preferred, colored
Changes since revision 1.276.2.1: +3 -24 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.281: download - view: text, markup, annotated - select for diffs
Tue Dec 13 10:54:27 2016 UTC (8 years ago) by kamil
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +3 -24 lines
Torn down KSTACK_CHECK_DR0, i386-only feature to detect stack overflow

This feature was intended to detect stack overflow with CPU Debug Registers
(x86). It was never ported to other ports, neither amd64 and should be
adapted for SMP...

Currently there might be better ways to detect stack overflows like page
mapping protection. Since the number of Debug Registers is restricted
(4 on x86), torn it down completely.

This interface introduced helper functions for Debug Registers, they will
be replaced with the new <x86/dbregs.h> interface.

KSTACK_CHECK_DR0 was disabled by default and won't affect ordinary users.

Sponsored by <The NetBSD Foundation>

Revision 1.276.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:01 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +2 -2 lines
Sync with HEAD

Revision 1.273.2.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:28 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.273.2.2: preferred, colored; branchpoint 1.273: preferred, colored
Changes since revision 1.273.2.2: +7 -11 lines
Sync with HEAD

Revision 1.280: download - view: text, markup, annotated - select for diffs
Sun Sep 25 12:53:24 2016 UTC (8 years, 2 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +2 -6 lines
Revert my previous change. It is too severe: a fault might be happening in
the kernel page if the map is pageable - implying it is not pmap_kernel. I
thought it wouldn't be the case.

Revision 1.279: download - view: text, markup, annotated - select for diffs
Fri Sep 16 11:48:10 2016 UTC (8 years, 2 months ago) by maxv
Branches: MAIN
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +6 -2 lines
Put two KASSERTs, to make sure the fault is happening in the correct
half of the vm space when using special copy functions. It can detect
bugs where the kernel would fault when copying a kernel buffer which
it wrongly believes comes from userland.

Revision 1.278: download - view: text, markup, annotated - select for diffs
Thu Aug 11 15:03:23 2016 UTC (8 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: localcount-20160914
Diff to: previous 1.277: preferred, colored
Changes since revision 1.277: +1 -1 lines
This should be VM_MIN_KERNEL_ADDRESS, not KERNBASE.

Revision 1.277: download - view: text, markup, annotated - select for diffs
Thu Aug 11 14:58:29 2016 UTC (8 years, 4 months ago) by maxv
Branches: MAIN
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +5 -9 lines
Reduce the diff, and typo.

Revision 1.273.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:36 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.273.2.1: preferred, colored; branchpoint 1.273: preferred, colored
Changes since revision 1.273.2.1: +10 -2 lines
Sync with HEAD (as of 26th Dec)

Revision 1.276: download - view: text, markup, annotated - select for diffs
Wed Dec 16 18:54:03 2015 UTC (8 years, 11 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Branch point for: pgoyette-localcount
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +10 -2 lines
Extend SMEP support to i386 (does not require PAE).

Revision 1.273.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:17:57 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +30 -17 lines
Sync with HEAD

Revision 1.275: download - view: text, markup, annotated - select for diffs
Fri Feb 27 17:45:52 2015 UTC (9 years, 9 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +4 -5 lines
fix TRAP_SIGDEBUG compilation

Revision 1.274: download - view: text, markup, annotated - select for diffs
Fri Feb 27 16:41:12 2015 UTC (9 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +31 -17 lines
sync with amd64: SIGBUS for mmap out of range.

Revision 1.273: download - view: text, markup, annotated - select for diffs
Sat Oct 18 08:33:25 2014 UTC (10 years, 1 month ago) by snj
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +3 -3 lines
src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.264.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:06 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.264.2.2: preferred, colored
Changes since revision 1.264.2.2: +3 -65 lines
Rebase to HEAD as of a few days ago.

Revision 1.262.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:39:51 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.262.2.3: preferred, colored; branchpoint 1.262: preferred, colored; next MAIN 1.263: preferred, colored
Changes since revision 1.262.2.3: +3 -65 lines
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.266.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:12 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.266: preferred, colored; next MAIN 1.267: preferred, colored
Changes since revision 1.266: +3 -65 lines
sync with head

Revision 1.272: download - view: text, markup, annotated - select for diffs
Wed Mar 12 18:59:07 2014 UTC (10 years, 9 months ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: netbsd-7-1, netbsd-7-0, netbsd-7
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +3 -3 lines
Mark a variable diagnostic-only, from John D. Baker.

Revision 1.271: download - view: text, markup, annotated - select for diffs
Wed Feb 12 23:24:09 2014 UTC (10 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +2 -58 lines
Change i386 to use x86/fpu.c instead of i386/isa/npx.c
This changes the trap10 and trap13 code to call directly into fpu.c,
  removing all the code for T_ARITHTRAP, T_XMM and T_FPUNDA from i386/trap.c
Not all of the code thate appeared to handle fpu traps was ever called!
Most of the changes just replace the include of machine/npx.h with x86/fpu.h
  (or remove it entirely).

Revision 1.270: download - view: text, markup, annotated - select for diffs
Fri Feb 7 19:32:50 2014 UTC (10 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.269: preferred, colored
Changes since revision 1.269: +2 -4 lines
Remove the splurious check for EN_SW_DATACHAIN when looking at mxcsr traps.
The relevant bit is always masked out higher up.
The only place I can find a reference to a 'datachain' error is for the
  weitek 1167 fpu. Even the 8087 has the corresponding bit of the x87
  status reserved.
Quite why it has appeared here is anybodies guess.

Revision 1.269: download - view: text, markup, annotated - select for diffs
Sun Jan 26 19:16:17 2014 UTC (10 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.268: preferred, colored
Changes since revision 1.268: +2 -6 lines
Remove support for 'external' floating point units and the MS-DOS
  compatible method of handling floating point exceptions.
Make kernel support for teh fpu non-optional (486SX should still work).
Only 386 cpus support external fpu, and i386 support was removed years ago.
This means that the npx code no longer uses port 0xf0 or interupt 13.
All the "npx at isa" lines go from the configs, arch/i386/isa/npx.c
  is now mandatory for all i386 kernels.
I've renamed npxinit() to fpuinit() and npxinit_cpu() to fpuinit_cpu()
  to match the very similar amd64 functions.
The fpu of the boot cpu is now initialised by a direct call from
  cpu_configure(), this enables FP emulation for a 486SX.
  (for amd64 the cr0 values are set in locore.S and similar).
This fixes a long-standing bug in linux_setregs() - which did not
  save the fpu regsiters if they were active.
I've test booted a single cpu i386 kernel (using anita).
amd64 builds - none of teh changes should affect it.
The i386 XEN kernels build, but I'm not sure where they set cr0, and
  it might have got lost!

Revision 1.268: download - view: text, markup, annotated - select for diffs
Sun Jan 19 14:30:37 2014 UTC (10 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +3 -3 lines
Flatten the floating point register structures bu moving the
  'environment' registers into the main strcuture.
There are x87 instructions that only affect the environment, but that
  is no real excuse for all the sub-structures.
Rename fields so that there are far fewer collisions between the two
  sets of field names.

Revision 1.267: download - view: text, markup, annotated - select for diffs
Sun Dec 8 20:45:30 2013 UTC (11 years ago) by dsl
Branches: MAIN
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +3 -3 lines
Rename the fields of 'struct envxmm' (itself badly named) so that they
  are different from those used for the x87 fpu.
Use a union to describe the 64bit 'address' field so that it correctly
  spilt for 32bit binaries.
The freebsd emulation defined its own 'struct freebsd_env87' that the
  code just assumed matched the netbsd one.
  Since this is a hardware structure, just use the netbsd one.
This shouldn't change the binaries except that 'en_fos' used to be
  incorrectly a 32bit field.

Revision 1.264.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:28:44 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.264.2.1: preferred, colored
Changes since revision 1.264.2.1: +8 -2 lines
resync with head

Revision 1.262.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:32:59 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.262.2.2: preferred, colored; branchpoint 1.262: preferred, colored
Changes since revision 1.262.2.2: +8 -2 lines
sync with (a bit old) head

Revision 1.266: download - view: text, markup, annotated - select for diffs
Sat Dec 8 12:36:30 2012 UTC (12 years ago) by kiyohara
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +8 -2 lines
#ifdef - #endif-ed. NMCA, NISA, NNPX, NIOAPIC, LAPIC, MPBIOS and MULTIPROCESSOR.

Revision 1.264.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:01:27 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +3 -20 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.262.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:19:50 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.262.2.1: preferred, colored; branchpoint 1.262: preferred, colored
Changes since revision 1.262.2.1: +22 -35 lines
sync with head

Revision 1.265: download - view: text, markup, annotated - select for diffs
Wed Oct 3 18:58:32 2012 UTC (12 years, 2 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pagecache-base6
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +3 -20 lines
Remove all references to KVM86.
It was only ever used by APMBIOS - and then only if an option was selected.
Probably didn't work well at all!

Revision 1.264: download - view: text, markup, annotated - select for diffs
Sat Jun 30 23:33:10 2012 UTC (12 years, 5 months ago) by rmind
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +21 -17 lines
trap: move out info printing to trap_print() on amd64, reduce the differences
between amd64 and i386, add lowest kernel stack address.

Revision 1.262.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:29 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +2 -20 lines
sync with head

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

Revision 1.263: download - view: text, markup, annotated - select for diffs
Sun Feb 19 21:06:11 2012 UTC (12 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base10
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +2 -20 lines
Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.241.4.4: download - view: text, markup, annotated - select for diffs
Sat Feb 4 16:57:58 2012 UTC (12 years, 10 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Diff to: previous 1.241.4.3: preferred, colored; branchpoint 1.241: preferred, colored; next MAIN 1.242: preferred, colored
Changes since revision 1.241.4.3: +3 -3 lines
Apply patch, requested by jmcneill in ticket #1668:
	sys/arch/amd64/amd64/syscall.c			patch
	sys/arch/i386/i386/syscall.c			patch
	sys/arch/i386/i386/trap.c			patch
	sys/kern/kern_sig.c				patch
	sys/kern/kern_sleepq.c				patch
	sys/kern/kern_subr.c				patch
	sys/kern/sys_process.c				patch
	sys/secmodel/bsd44/secmodel_bsd44_suser.c	patch
	sys/sys/proc.h					patch
	sys/sys/ptrace.h				patch

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

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

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

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

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

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

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

process_stoptrace: defer signal processing to userret, ok christos@

Revision 1.262: download - view: text, markup, annotated - select for diffs
Wed Sep 7 09:24:55 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-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-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6-1, netbsd-6-0, netbsd-6, jmcneill-usbmp
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +3 -3 lines
Fix the illegal instruction return address. It was using the value of the
cpu's %cr2 register but thats not valid:

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

And this is thus NOT the illegal instruction address!

Revision 1.260.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:05:50 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.260: preferred, colored; next MAIN 1.261: preferred, colored
Changes since revision 1.260: +10 -47 lines
Sync with HEAD.

Revision 1.241.4.1.4.1: download - view: text, markup, annotated - select for diffs
Fri May 20 08:11:21 2011 UTC (13 years, 6 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.241.4.1: preferred, colored; next MAIN 1.241.4.2: preferred, colored
Changes since revision 1.241.4.1: +71 -42 lines
bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).

Revision 1.241.8.5: download - view: text, markup, annotated - select for diffs
Mon May 2 22:49:56 2011 UTC (13 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.241.8.4: preferred, colored; branchpoint 1.241: preferred, colored; next MAIN 1.242: preferred, colored
Changes since revision 1.241.8.4: +10 -47 lines
Sync with head.

Revision 1.255.2.3: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:07 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.255.2.2: preferred, colored; branchpoint 1.255: preferred, colored; next MAIN 1.256: preferred, colored
Changes since revision 1.255.2.2: +8 -45 lines
sync with head

Revision 1.261: download - view: text, markup, annotated - select for diffs
Sun Apr 3 22:29:26 2011 UTC (13 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.260: preferred, colored
Changes since revision 1.260: +10 -47 lines
Clean up excessive #ifdef'age of NMI trap handling for amd64/i386/xen.
Handle NMI in all Xen kernels.

Revision 1.255.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:50:40 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.255.2.1: preferred, colored; branchpoint 1.255: preferred, colored
Changes since revision 1.255.2.1: +10 -7 lines
sync with head

Revision 1.241.8.4: download - view: text, markup, annotated - select for diffs
Mon Jan 10 00:37:30 2011 UTC (13 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.241.8.3: preferred, colored; branchpoint 1.241: preferred, colored
Changes since revision 1.241.8.3: +3 -3 lines
Sync with HEAD

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

Revision 1.241.8.3: download - view: text, markup, annotated - select for diffs
Sun Oct 24 22:48:02 2010 UTC (14 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.241.8.2: preferred, colored; branchpoint 1.241: preferred, colored
Changes since revision 1.241.8.2: +108 -55 lines
Sync with HEAD

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

Revision 1.235.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:52:12 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.235.4.4: preferred, colored; branchpoint 1.235: preferred, colored; next MAIN 1.236: preferred, colored
Changes since revision 1.235.4.4: +14 -8 lines
sync with head.

Revision 1.259: download - view: text, markup, annotated - select for diffs
Sun Aug 8 18:13:54 2010 UTC (14 years, 4 months ago) by chs
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Diff to: previous 1.258: preferred, colored
Changes since revision 1.258: +4 -3 lines
Fix several panics that can be caused by applications using
bad segment register values with setcontext() or sigreturn().

Revision 1.258: download - view: text, markup, annotated - select for diffs
Sun Jul 25 19:19:06 2010 UTC (14 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +7 -5 lines
PR/43655: Taylor R Campbell: Incorrect siginfo code's for integer zero
divide and overflow.

Revision 1.241.4.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 16 18:43:58 2010 UTC (14 years, 5 months ago) by riz
Branches: netbsd-5-0
Diff to: previous 1.241.4.1.2.1: preferred, colored; branchpoint 1.241.4.1: preferred, colored; next MAIN 1.241.4.2: preferred, colored
Changes since revision 1.241.4.1.2.1: +6 -4 lines
Apply patches (requested by chs in ticket #1424):
	sys/arch/amd64/amd64/netbsd32_machdep.c:         patch
	sys/arch/i386/i386/trap.c:                       patch
Fix several panics that can be caused by applications using
bad segment register values with setcontext() or sigreturn().

Revision 1.241.4.3: download - view: text, markup, annotated - select for diffs
Fri Jul 16 18:40:39 2010 UTC (14 years, 5 months ago) by riz
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, 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, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.241.4.2: preferred, colored; branchpoint 1.241: preferred, colored
Changes since revision 1.241.4.2: +6 -4 lines
Apply patches (requested by chs in ticket #1424):
	sys/arch/amd64/amd64/netbsd32_machdep.c:         patch
	sys/arch/i386/i386/trap.c:                       patch
Fix several panics that can be caused by applications using
bad segment register values with setcontext() or sigreturn().

Revision 1.255.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:16:54 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +7 -4 lines
sync with head

Revision 1.241.4.1.2.1: download - view: text, markup, annotated - select for diffs
Thu May 20 05:56:29 2010 UTC (14 years, 6 months ago) by snj
Branches: netbsd-5-0
Diff to: previous 1.241.4.1: preferred, colored
Changes since revision 1.241.4.1: +70 -43 lines
Pull up following revision(s) (requested by riz in ticket #1401):
	sys/arch/i386/i386/trap.c: revisions 1.251-1.253 via patch
	sys/arch/i386/i386/vector.S: revisions 1.50-1.51 via patch
If we fault on the 'iret' during return to userpace (eg if %eip is outside
the bounds of %cs) then hack the stack to contain a normal fault frame
for the signal setup code (etc).
Previously the code assumed that the original user trap frame was still
present - at it is for faults when loading the segment registers.
--
If we fault on the iret during return to userspace, see if we need to
do a lazy update of %cs to make the stack executable.
If a change is made, just retry the failing sequence.
Signal handlers as gcc nested local functions now work!
--
Fix 'fault on load of %gs during retirn to userspace' to look for the
 correct instruction bytes.
Take the 'fault on load segment register' through the same path as 'fault
 on iret' so we don't have to fixup the broken stackframe that contains a
 mix of user and kernel registers,
Update comments about how the faults during return to userspace are processed.
Setting an invalid %gs in the saved context of a signal handler causes
 a SIGSEGV handler to be entered with what look like valid registers.

Revision 1.241.4.2: download - view: text, markup, annotated - select for diffs
Thu May 20 05:51:59 2010 UTC (14 years, 6 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-1-RC3, netbsd-5-1-RC2
Diff to: previous 1.241.4.1: preferred, colored; branchpoint 1.241: preferred, colored
Changes since revision 1.241.4.1: +70 -43 lines
Pull up following revision(s) (requested by riz in ticket #1401):
	sys/arch/i386/i386/trap.c: revisions 1.251-1.253 via patch
	sys/arch/i386/i386/vector.S: revisions 1.50-1.51 via patch
If we fault on the 'iret' during return to userpace (eg if %eip is outside
the bounds of %cs) then hack the stack to contain a normal fault frame
for the signal setup code (etc).
Previously the code assumed that the original user trap frame was still
present - at it is for faults when loading the segment registers.
--
If we fault on the iret during return to userspace, see if we need to
do a lazy update of %cs to make the stack executable.
If a change is made, just retry the failing sequence.
Signal handlers as gcc nested local functions now work!
--
Fix 'fault on load of %gs during retirn to userspace' to look for the
 correct instruction bytes.
Take the 'fault on load segment register' through the same path as 'fault
 on iret' so we don't have to fixup the broken stackframe that contains a
 mix of user and kernel registers,
Update comments about how the faults during return to userspace are processed.
Setting an invalid %gs in the saved context of a signal handler causes
 a SIGSEGV handler to be entered with what look like valid registers.

Revision 1.257: download - view: text, markup, annotated - select for diffs
Tue May 4 23:27:13 2010 UTC (14 years, 7 months ago) by jym
Branches: MAIN
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +4 -2 lines
Enable the NX bit feature for Xen i386pae and amd64 kernels.

Tested with Xen 3.1 and Xen 3.3, dom0 and domU, by bouyer@ and jym@.

Ok bouyer@.

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

Revision 1.256: download - view: text, markup, annotated - select for diffs
Fri Apr 23 19:18:09 2010 UTC (14 years, 7 months ago) by rmind
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +5 -4 lines
Remove lwp_uc_pool, replace it with kmem(9), plus add some consistency.
As discussed, a while ago, with ad@.

Revision 1.235.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:02:29 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.235.4.3: preferred, colored; branchpoint 1.235: preferred, colored
Changes since revision 1.235.4.3: +130 -71 lines
sync with head

Revision 1.255: download - view: text, markup, annotated - select for diffs
Mon Feb 22 06:42:14 2010 UTC (14 years, 9 months ago) by darran
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +3 -2 lines
DTrace: missed the opt_dtrace.h include for these.

Revision 1.254: download - view: text, markup, annotated - select for diffs
Sun Feb 21 02:11:40 2010 UTC (14 years, 9 months ago) by darran
Branches: MAIN
Diff to: previous 1.253: preferred, colored
Changes since revision 1.253: +37 -2 lines
Add the DTrace hooks to the kernel (KDTRACE_HOOKS config option).
DTrace adds a pointer to the lwp and proc structures which it uses to
manage its state.  These are opaque from the kernel perspective to keep
the kernel free of CDDL code. The state arenas are kmem_alloced and freed
as proccesses and threads are created and destoyed.

Also add a check for trap06 (privileged/illegal instruction) so that
DTrace can check for D scripts that may have triggered the trap so it
can clean up after them and resume normal operation.

Ok with core@.

Revision 1.253: download - view: text, markup, annotated - select for diffs
Sun Jan 17 22:21:18 2010 UTC (14 years, 10 months ago) by dsl
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +42 -63 lines
Fix 'fault on load of %gs during retirn to userspace' to look for the
  correct instruction bytes.
Take the 'fault on load segment register' through the same path as 'fault
  on iret' so we don't have to fixup the broken stackframe that contains a
  mix of user and kernel registers,
Update comments about how the faults during return to userspace are processed.
Setting an invalid %gs in the saved context of a signal handler causes
  a SIGSEGV handler to be entered with what look like valid registers.

Revision 1.252: download - view: text, markup, annotated - select for diffs
Sun Jan 10 15:37:36 2010 UTC (14 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +10 -3 lines
If we fault on the iret during return to userspace, see if we need to
do a lazy update of %cs to make the stack executable.
If a change is made, just retry the failing sequence.
Signal handlers as gcc nested local functions now work!

Revision 1.251: download - view: text, markup, annotated - select for diffs
Sun Jan 10 15:21:36 2010 UTC (14 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +33 -10 lines
If we fault on the 'iret' during return to userpace (eg if %eip is outside
the bounds of %cs) then hack the stack to contain a normal fault frame
for the signal setup code (etc).
Previously the code assumed that the original user trap frame was still
present - at it is for faults when loading the segment registers.

Revision 1.250: download - view: text, markup, annotated - select for diffs
Sat Nov 21 03:11:00 2009 UTC (15 years ago) by rmind
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +7 -6 lines
Use lwp_getpcb() on x86 MD code, clean from struct user usage.

Revision 1.249: download - view: text, markup, annotated - select for diffs
Fri Nov 6 18:18:57 2009 UTC (15 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +5 -4 lines
return_address(9) can be called from interrupt context; handle its
page faults appropriately.

Revision 1.241.8.2: download - view: text, markup, annotated - select for diffs
Sun Nov 1 13:58:22 2009 UTC (15 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.241.8.1: preferred, colored; branchpoint 1.241: preferred, colored
Changes since revision 1.241.8.1: +101 -96 lines
Sync with HEAD.

Revision 1.248: download - view: text, markup, annotated - select for diffs
Mon Oct 5 19:04:14 2009 UTC (15 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +36 -24 lines
Improve readability of trap() by extracting two subroutines,
trap_print() and check_dr0().

Revision 1.235.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:46:19 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.235.4.2: preferred, colored; branchpoint 1.235: preferred, colored
Changes since revision 1.235.4.2: +67 -74 lines
sync with head.

Revision 1.247: download - view: text, markup, annotated - select for diffs
Wed Jul 29 18:47:15 2009 UTC (15 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +64 -61 lines
Reduce the difference between i386 and amd64 trap handler.
No functional changes intended.

Revision 1.246: download - view: text, markup, annotated - select for diffs
Wed Jul 29 17:16:56 2009 UTC (15 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +3 -3 lines
Fix KASSERT(1);

Revision 1.245: download - view: text, markup, annotated - select for diffs
Wed Jul 29 12:02:06 2009 UTC (15 years, 4 months ago) by cegger
Branches: MAIN
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +4 -14 lines
remove Xen2 support.
ok bouyer@

Revision 1.241.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:17:50 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +32 -60 lines
Sync with HEAD.

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

Revision 1.235.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:11:16 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.235.4.1: preferred, colored; branchpoint 1.235: preferred, colored
Changes since revision 1.235.4.1: +62 -78 lines
sync with head.

Revision 1.241.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:34:08 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.241.2.1: preferred, colored; branchpoint 1.241: preferred, colored; next MAIN 1.242: preferred, colored
Changes since revision 1.241.2.1: +29 -46 lines
Sync with HEAD.

Revision 1.241.4.1: download - view: text, markup, annotated - select for diffs
Fri Mar 27 17:25:15 2009 UTC (15 years, 8 months ago) by msaitoh
Branches: netbsd-5
CVS tags: netbsd-5-1-RC1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-0, matt-nb5-mips64
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +27 -42 lines
Pull up following revision(s) (requested by mrg in ticket #609):
	sys/arch/i386/i386/vector.S: revision 1.44
	sys/arch/i386/i386/trap.c: revision 1.244
remove a bunch of special casing to handle improperly set segment
registers.  if we faulted trying to set them, just fall into
"we_re_toast", and arrange for a SEGV to be delivered to the
userland process.  fixes kernel mode faults.
from andrew doran.

Revision 1.244: download - view: text, markup, annotated - select for diffs
Thu Mar 19 02:59:00 2009 UTC (15 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +27 -42 lines
remove a bunch of special casing to handle improperly set segment
registers.  if we faulted trying to set them, just fall into
"we_re_toast", and arrange for a SEGV to be delivered to the
userland process.  fixes kernel mode faults.

from andrew doran.

Revision 1.243: download - view: text, markup, annotated - select for diffs
Sat Mar 14 15:36:07 2009 UTC (15 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +4 -6 lines
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

Revision 1.241.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:28:59 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +5 -16 lines
Sync with HEAD.

Revision 1.242: download - view: text, markup, annotated - select for diffs
Tue Feb 24 06:03:54 2009 UTC (15 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +5 -16 lines
- rewrite x86 nmi dispatcher so that establish and disesablish are safe
  on a running system.
- adapt existing users of the api.  (elan)
- adapt tprof_pmi driver to use the api.

Revision 1.234.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:04 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.234.6.1: preferred, colored; branchpoint 1.234: preferred, colored; next MAIN 1.235: preferred, colored
Changes since revision 1.234.6.1: +18 -0 lines
Sync with HEAD.

Revision 1.240.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:15:49 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.240: preferred, colored; next MAIN 1.241: preferred, colored
Changes since revision 1.240: +20 -2 lines
Sync with HEAD.

Revision 1.241: download - view: text, markup, annotated - select for diffs
Wed Oct 15 06:51:17 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, 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, jym-xensuspend
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +20 -2 lines
Merge wrstuden-revivesa into HEAD.

Revision 1.237.2.4: download - view: text, markup, annotated - select for diffs
Tue Jun 24 04:15:50 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.237.2.3: preferred, colored; branchpoint 1.237: preferred, colored; next MAIN 1.238: preferred, colored
Changes since revision 1.237.2.3: +4 -4 lines
Hand-merge files that didn't merge right in recent sync w/ current.

Revision 1.237.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:30:26 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.237.2.2: preferred, colored; branchpoint 1.237: preferred, colored
Changes since revision 1.237.2.2: +12 -18 lines
Sync w/ -current. 34 merge conflicts to follow.

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

Revision 1.235.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:04:47 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.235.2.1: preferred, colored; branchpoint 1.235: preferred, colored; next MAIN 1.236: preferred, colored
Changes since revision 1.235.2.1: +14 -20 lines
sync with head

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

Revision 1.240: download - view: text, markup, annotated - select for diffs
Sun Jun 1 21:25:16 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, 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
Branch point for: haad-dm
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +2 -4 lines
Make trap counters per-cpu, like syscalls.

Revision 1.239: download - view: text, markup, annotated - select for diffs
Fri May 30 10:38:21 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +10 -11 lines
Since breakpoints don't work, dump basic info about the trap before
entering the debugger. Sometimes ddb only makes the situation worse.

Revision 1.238: download - view: text, markup, annotated - select for diffs
Fri May 30 10:36:20 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +6 -9 lines
Don't try to resolve pagefaults from interrupt mode; it can result in a
LOCKDEBUG panic, or the machine getting really confused. Instead, panic
at the earliest oppertunity.

Revision 1.235.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:32:10 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +38 -15 lines
sync with head.

Revision 1.235.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:22:34 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +38 -15 lines
sync with head.

Revision 1.237.2.1: download - view: text, markup, annotated - select for diffs
Sat May 10 23:48:44 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +4 -2 lines
Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

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

Revision 1.237: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:24 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.236: download - view: text, markup, annotated - select for diffs
Mon Apr 28 18:17:40 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +38 -8 lines
Make pagefaults in kernel mode preemption safe.

Revision 1.235: download - view: text, markup, annotated - select for diffs
Mon Apr 14 09:42:50 2008 UTC (16 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +8 -2 lines
trap: ignore T_ASTFLT if KVM86MODE.
revealed by the recent per-cpu runqueue change.

Revision 1.219.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:07 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.219.2.2: preferred, colored; branchpoint 1.219: preferred, colored; next MAIN 1.220: preferred, colored
Changes since revision 1.219.2.2: +9 -18 lines
sync with HEAD

Revision 1.223.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:04:38 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.223.2.2: preferred, colored; branchpoint 1.223: preferred, colored; next MAIN 1.224: preferred, colored
Changes since revision 1.223.2.2: +27 -44 lines
Sync with HEAD.

Revision 1.228.6.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 19:27:17 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.228.6.2: preferred, colored; branchpoint 1.228: preferred, colored; next MAIN 1.229: preferred, colored
Changes since revision 1.228.6.2: +6 -2 lines
Sync with HEAD.

Revision 1.204.4.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:37:05 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.204.4.6: preferred, colored; branchpoint 1.204: preferred, colored; next MAIN 1.205: preferred, colored
Changes since revision 1.204.4.6: +27 -44 lines
sync with head

Revision 1.234: download - view: text, markup, annotated - select for diffs
Mon Jan 21 07:38:22 2008 UTC (16 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +6 -4 lines
Move the nmi_dispatch() call with respect to the #ifdef garbage so
that Xen kernels will compile again.

Revision 1.233: download - view: text, markup, annotated - select for diffs
Mon Jan 21 02:56:13 2008 UTC (16 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +4 -2 lines
Add primitive routines to establish NMI handlers on i386.

TBD: synchronize (dis)establishment of handlers.

Revision 1.228.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:14:21 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.228.6.1: preferred, colored; branchpoint 1.228: preferred, colored
Changes since revision 1.228.6.1: +1 -14 lines
Sync with HEAD

Revision 1.232: download - view: text, markup, annotated - select for diffs
Wed Jan 16 09:37:08 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: bouyer-xeni386-base
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +3 -16 lines
Remove options MATH_EMULATE.

Revision 1.219.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:46:40 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.219.2.1: preferred, colored; branchpoint 1.219: preferred, colored
Changes since revision 1.219.2.1: +73 -80 lines
sync with HEAD

Revision 1.228.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:48:20 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +21 -29 lines
Sync with HEAD

Revision 1.231: download - view: text, markup, annotated - select for diffs
Wed Jan 2 11:48:25 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +3 -25 lines
Merge vmlocking2 to head.

Revision 1.230: download - view: text, markup, annotated - select for diffs
Tue Jan 1 21:28:40 2008 UTC (16 years, 11 months ago) by yamt
Branches: MAIN
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +18 -3 lines
a simple performance monitor based profiler, inspired from linux oprofile.

Revision 1.229: download - view: text, markup, annotated - select for diffs
Tue Jan 1 13:40:20 2008 UTC (16 years, 11 months ago) by yamt
Branches: MAIN
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +4 -5 lines
always consider T_NMI as !T_USER regardless of trapframe.

Revision 1.228.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 26 17:55:05 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.228.2.2: preferred, colored; branchpoint 1.228: preferred, colored; next MAIN 1.229: preferred, colored
Changes since revision 1.228.2.2: +14 -27 lines
Back out the dumppcb changes for the time being.

Revision 1.228.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 12 22:05:41 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.228.2.1: preferred, colored; branchpoint 1.228: preferred, colored
Changes since revision 1.228.2.1: +27 -14 lines
- Dump basic trap and register info before entering the debugger, in
  case ddb screws the machine up further.
- Fill dumppcb asap so that gdb has less chance to get confused.

Revision 1.218.8.6: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:35:23 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.218.8.5: preferred, colored; branchpoint 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218.8.5: +2 -4 lines
Sync with HEAD.

Revision 1.223.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:17:11 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.223.2.1: preferred, colored; branchpoint 1.223: preferred, colored
Changes since revision 1.223.2.1: +56 -18 lines
Sync with HEAD.

Revision 1.204.4.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:25:02 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.204.4.5: preferred, colored; branchpoint 1.204: preferred, colored
Changes since revision 1.204.4.5: +56 -55 lines
sync with head

Revision 1.228.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 4 13:02:50 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +3 -25 lines
Pull the vmlocking changes into a new branch.

Revision 1.228: download - view: text, markup, annotated - select for diffs
Mon Dec 3 20:21:33 2007 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +2 -4 lines
Merge from vmlocking.

Revision 1.217.2.8: download - view: text, markup, annotated - select for diffs
Mon Dec 3 19:03:31 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.217.2.7: preferred, colored; branchpoint 1.217: preferred, colored; next MAIN 1.218: preferred, colored
Changes since revision 1.217.2.7: +18 -6 lines
Sync with HEAD.

Revision 1.217.2.7: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:36:47 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.217.2.6: preferred, colored; branchpoint 1.217: preferred, colored
Changes since revision 1.217.2.6: +39 -47 lines
Sync with HEAD.

Revision 1.218.8.5: download - view: text, markup, annotated - select for diffs
Mon Dec 3 16:14:03 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.218.8.4: preferred, colored; branchpoint 1.218: preferred, colored
Changes since revision 1.218.8.4: +56 -16 lines
Sync with HEAD.

Revision 1.227: download - view: text, markup, annotated - select for diffs
Sun Dec 2 16:37:58 2007 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: vmlocking-nbase
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +3 -5 lines
Don't clear ci_want_resched in MD code; it's done in mi_switch().

Revision 1.226: download - view: text, markup, annotated - select for diffs
Thu Nov 29 09:53:33 2007 UTC (17 years ago) by yamt
Branches: MAIN
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +38 -7 lines
instead of setting pcb_onfault on every calls of copyin and friends,
make the fault handler investigate program counter of faulting code.
inspired from linux.

Revision 1.225: download - view: text, markup, annotated - select for diffs
Wed Nov 28 14:02:30 2007 UTC (17 years ago) by yamt
Branches: MAIN
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +17 -6 lines
- merge {i386,xen}/i386/trap.c.
- add a comment about a hack for xen2.

Revision 1.218.8.4: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:53:17 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.218.8.3: preferred, colored; branchpoint 1.218: preferred, colored
Changes since revision 1.218.8.3: +2 -39 lines
Sync with HEAD.

Revision 1.223.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:46:29 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +2 -39 lines
Sync with HEAD.

Revision 1.221.2.2: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:34:30 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.221.2.1: preferred, colored; branchpoint 1.221: preferred, colored; next MAIN 1.222: preferred, colored
Changes since revision 1.221.2.1: +0 -37 lines
Sync with HEAD

Revision 1.224: download - view: text, markup, annotated - select for diffs
Thu Nov 15 19:18:33 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +2 -39 lines
Remove support for 80386 level CPUs. PR port-i386/36163.

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

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

Revision 1.217.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 1 21:23:38 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.217.2.5: preferred, colored; branchpoint 1.217: preferred, colored
Changes since revision 1.217.2.5: +3 -7 lines
trap

- Don't clear ci_want_resched here.
- Don't acquire kernel_lock for delayed profiling updates.

Revision 1.218.8.3: download - view: text, markup, annotated - select for diffs
Sun Oct 28 20:10:38 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.218.8.2: preferred, colored; branchpoint 1.218: preferred, colored
Changes since revision 1.218.8.2: +3 -3 lines
Sync with HEAD.

Revision 1.204.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:26:41 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.204.4.4: preferred, colored; branchpoint 1.204: preferred, colored
Changes since revision 1.204.4.4: +6 -6 lines
sync with head.

Revision 1.223: download - view: text, markup, annotated - select for diffs
Wed Oct 24 14:50:39 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +3 -3 lines
Make ras_lookup() lockless.

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

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

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

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

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

Revision 1.219.4.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:34:54 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.219: preferred, colored; next MAIN 1.220: preferred, colored
Changes since revision 1.219: +5 -5 lines
sync with head.

Revision 1.217.10.2: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:23:49 2007 UTC (17 years, 2 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.217.10.1: preferred, colored; branchpoint 1.217: preferred, colored; next MAIN 1.218: preferred, colored
Changes since revision 1.217.10.1: +6 -6 lines
Sync with HEAD

Revision 1.218.8.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:27:23 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.218.8.1: preferred, colored; branchpoint 1.218: preferred, colored
Changes since revision 1.218.8.1: +5 -5 lines
Sync with HEAD.

Revision 1.221: download - view: text, markup, annotated - select for diffs
Thu Sep 27 22:43:15 2007 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, ppcoea-renovation-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +3 -3 lines
Fix DEBUG builds and use %lx to print vaddr_t.

Revision 1.220: download - view: text, markup, annotated - select for diffs
Wed Sep 26 19:48:37 2007 UTC (17 years, 2 months ago) by ad
Branches: MAIN
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +4 -4 lines
x86 changes for pcc and LKMs.

- Replace most inline assembly with proper functions. As a side effect
  this reduces the size of amd64 GENERIC by about 120kB, and i386 by a
  smaller amount. Nearly all of the inlines did something slow, or something
  that does not need to be fast.
- Make curcpu() and curlwp functions proper, unless __GNUC__ && _KERNEL.
  In that case make them inlines. Makes curlwp LKM and preemption safe.
- Make bus_space and bus_dma more LKM friendly.
- Share a few more files between the ports.
- Other minor changes.

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

Revision 1.217.2.4: download - view: text, markup, annotated - select for diffs
Thu Aug 23 19:28:14 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.217.2.3: preferred, colored; branchpoint 1.217: preferred, colored
Changes since revision 1.217.2.3: +2 -13 lines
- Remove most calls to get kernel_lock during fault handling.
- By default start new LWPs without kernel_lock. Those returning to
  userspace don't need it.

Revision 1.217.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:38:16 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.217.2.2: preferred, colored; branchpoint 1.217: preferred, colored
Changes since revision 1.217.2.2: +3 -3 lines
Sync with HEAD.

Revision 1.218.8.1: download - view: text, markup, annotated - select for diffs
Thu Aug 16 11:02:20 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +3 -3 lines
Sync with HEAD.

Revision 1.218.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:47:25 2007 UTC (17 years, 4 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218: +3 -3 lines
Sync with HEAD.

Revision 1.219: download - view: text, markup, annotated - select for diffs
Fri Aug 10 22:38:03 2007 UTC (17 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap, matt-armv6
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +3 -3 lines
Use __arraycount().

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

Revision 1.217.2.2: download - view: text, markup, annotated - select for diffs
Sun May 27 12:27:33 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.217.2.1: preferred, colored; branchpoint 1.217: preferred, colored
Changes since revision 1.217.2.1: +16 -9 lines
Sync with head.

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

Revision 1.218: download - view: text, markup, annotated - select for diffs
Thu May 17 14:51:21 2007 UTC (17 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +16 -9 lines
merge yamt-idlelwp branch.  asked by core@.  some ports still needs work.

from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.

Revision 1.217.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 17:50:24 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +2 -12 lines
Pull in the initial set of changes for the vmlocking branch.

Revision 1.216.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:48:24 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.216.2.1: preferred, colored; branchpoint 1.216: preferred, colored; next MAIN 1.217: preferred, colored
Changes since revision 1.216.2.1: +6 -6 lines
Sync with HEAD.

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

Revision 1.204.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:06:59 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.204.4.2: preferred, colored; branchpoint 1.204: preferred, colored
Changes since revision 1.204.4.2: +28 -51 lines
sync with head.

Revision 1.216.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 17 10:30:48 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +16 -9 lines
- separate context switching and thread scheduling.
- introduce idle lwp.
- change some related MD/MI interfaces and implement i386 version.

Revision 1.216: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:05 2007 UTC (17 years, 10 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +28 -52 lines
Merge newlock2 to head.

Revision 1.213.4.7: download - view: text, markup, annotated - select for diffs
Tue Jan 30 13:49:35 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.213.4.6: preferred, colored; branchpoint 1.213: preferred, colored; next MAIN 1.214: preferred, colored
Changes since revision 1.213.4.6: +3 -21 lines
Remove support for SA. Ok core@.

Revision 1.213.4.6: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:00:50 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.213.4.5: preferred, colored; branchpoint 1.213: preferred, colored
Changes since revision 1.213.4.5: +6 -5 lines
Sync with head.

Revision 1.213.4.5: download - view: text, markup, annotated - select for diffs
Thu Jan 11 22:22:57 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.213.4.4: preferred, colored; branchpoint 1.213: preferred, colored
Changes since revision 1.213.4.4: +19 -16 lines
Checkpoint work in progress.

Revision 1.215: download - view: text, markup, annotated - select for diffs
Sun Jan 7 20:16:14 2007 UTC (17 years, 11 months ago) by christos
Branches: MAIN
CVS tags: newlock2-nbase, newlock2-base
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +6 -5 lines
support kvm68 is MP systems. From Pierre Pronchery

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

Revision 1.213.4.4: download - view: text, markup, annotated - select for diffs
Fri Dec 29 20:27:41 2006 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.213.4.3: preferred, colored; branchpoint 1.213: preferred, colored
Changes since revision 1.213.4.3: +4 -4 lines
Checkpoint work in progress.

Revision 1.213.4.3: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:29:19 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.213.4.2: preferred, colored; branchpoint 1.213: preferred, colored
Changes since revision 1.213.4.2: +4 -2 lines
Sync with head.

Revision 1.213.4.2: download - view: text, markup, annotated - select for diffs
Fri Nov 17 16:34:33 2006 UTC (18 years, 1 month ago) by ad
Branches: newlock2
Diff to: previous 1.213.4.1: preferred, colored; branchpoint 1.213: preferred, colored
Changes since revision 1.213.4.1: +17 -22 lines
Checkpoint work in progress.

Revision 1.213.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:04:44 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.213: preferred, colored; next MAIN 1.214: preferred, colored
Changes since revision 1.213: +4 -2 lines
sync with head

Revision 1.213.4.1: download - view: text, markup, annotated - select for diffs
Sat Oct 21 13:43:51 2006 UTC (18 years, 1 month ago) by ad
Branches: newlock2
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +6 -10 lines
- Remove sched_lock assertion.
- Update for need_proftick() change.

Revision 1.214: download - view: text, markup, annotated - select for diffs
Fri Sep 29 14:48:15 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +4 -2 lines
Coverity CID 3664/2964: Add KASSERTS before dereferencing l, p; these really
can't be NULL at this point, but adding the checks does not hurt
(from Arnaud Lacombe)

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

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

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

Revision 1.212: download - view: text, markup, annotated - select for diffs
Wed Jul 19 21:11:42 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +4 -3 lines
- Hold a reference to the process credentials in each struct lwp.
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.

Revision 1.204.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:52:19 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +54 -7 lines
sync with head.

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

Revision 1.208.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:47:58 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.208: preferred, colored; next MAIN 1.209: preferred, colored
Changes since revision 1.208: +7 -4 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.207.8.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:56:52 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.207.8.1: preferred, colored; branchpoint 1.207: preferred, colored
Changes since revision 1.207.8.1: +7 -4 lines
sync with head.

Revision 1.211: download - view: text, markup, annotated - select for diffs
Sun May 14 21:55:38 2006 UTC (18 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +5 -4 lines
integrate kauth.

Revision 1.207.10.3: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:25 2006 UTC (18 years, 7 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.207.10.2: preferred, colored; branchpoint 1.207: preferred, colored; next MAIN 1.208: preferred, colored
Changes since revision 1.207.10.2: +3 -2 lines
- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

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

Revision 1.207.10.2: download - view: text, markup, annotated - select for diffs
Wed Apr 19 02:32:45 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.207.10.1: preferred, colored; branchpoint 1.207: preferred, colored
Changes since revision 1.207.10.1: +7 -5 lines
sync with head - hopefully this will work

Revision 1.210: download - view: text, markup, annotated - select for diffs
Fri Apr 14 22:55:32 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
CVS tags: elad-kernelauth-base
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +3 -2 lines
Coverity CID 1096: l cannot be NULL for USER traps. Add KASSERT for it.

Revision 1.209: download - view: text, markup, annotated - select for diffs
Fri Apr 14 22:53:53 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +3 -2 lines
Coverity CID 1095: p cannot be NULL for user traps. Add KASSERT.

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

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

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

I expect *some* lossage here...

Revision 1.207: download - view: text, markup, annotated - select for diffs
Sat Dec 24 20:07:10 2005 UTC (18 years, 11 months ago) by perry
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, elad-kernelauth
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +4 -4 lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.206: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:17:41 2005 UTC (19 years ago) by christos
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +2 -2 lines
merge ktrace-lwp.

Revision 1.182.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 13:56:47 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.182.2.6: preferred, colored; next MAIN 1.183: preferred, colored
Changes since revision 1.182.2.6: +46 -2 lines
Sync with HEAD. Here we go again...

Revision 1.204.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 11 21:04:19 2005 UTC (19 years, 2 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, 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
Diff to: previous 1.204: preferred, colored; next MAIN 1.205: preferred, colored
Changes since revision 1.204: +46 -2 lines
Pull up following revision(s) (requested by christos in ticket #880):
	sys/arch/i386/i386/vector.S: revision 1.20
	sys/arch/i386/i386/trap.c: revision 1.205
handle MMX faults as floating exceptions. Tested by Hauke Fath; matlab
passes all its regression suite without panicking the kernel.

Revision 1.200.4.1: download - view: text, markup, annotated - select for diffs
Tue Oct 11 17:14:45 2005 UTC (19 years, 2 months ago) by riz
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1
Diff to: previous 1.200: preferred, colored; next MAIN 1.201: preferred, colored
Changes since revision 1.200: +46 -2 lines
Pull up following revision(s) (requested by christos in ticket #5923):
	sys/arch/i386/i386/vector.S: revision 1.20
	sys/arch/i386/i386/trap.c: revision 1.205
handle MMX faults as floating exceptions. Tested by Hauke Fath; matlab
passes all its regression suite without panicking the kernel.

Revision 1.200.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 11 17:14:37 2005 UTC (19 years, 2 months ago) by riz
Branches: netbsd-2-0
CVS tags: netbsd-2-0-3-RELEASE
Diff to: previous 1.200: preferred, colored; next MAIN 1.201: preferred, colored
Changes since revision 1.200: +46 -2 lines
Pull up following revision(s) (requested by christos in ticket #5923):
	sys/arch/i386/i386/vector.S: revision 1.20
	sys/arch/i386/i386/trap.c: revision 1.205
handle MMX faults as floating exceptions. Tested by Hauke Fath; matlab
passes all its regression suite without panicking the kernel.

Revision 1.205: download - view: text, markup, annotated - select for diffs
Mon Oct 10 21:08:01 2005 UTC (19 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +46 -2 lines
handle MMX faults as floating exceptions. Tested by Hauke Fath; matlab
passes all its regression suite without panicking the kernel.

Revision 1.202.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:13 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.202: preferred, colored; next MAIN 1.203: preferred, colored
Changes since revision 1.202: +8 -17 lines
sync with -current

Revision 1.202.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:02 2005 UTC (19 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.202: preferred, colored; next MAIN 1.203: preferred, colored
Changes since revision 1.202: +8 -17 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.182.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:38:40 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.182.2.5: preferred, colored
Changes since revision 1.182.2.5: +8 -17 lines
Sync with HEAD.

Hi Perry!

Revision 1.204: download - view: text, markup, annotated - select for diffs
Fri Mar 4 06:01:52 2005 UTC (19 years, 9 months ago) by mycroft
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: yamt-lazymbuf, netbsd-3
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +3 -3 lines
Copyright maintenance.

Revision 1.203: download - view: text, markup, annotated - select for diffs
Fri Mar 4 06:01:21 2005 UTC (19 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +7 -16 lines
Minor cleanup in ksiginfo setup code.

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

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

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

Revision 1.202: download - view: text, markup, annotated - select for diffs
Sat Aug 28 17:53:01 2004 UTC (20 years, 3 months ago) by jdolecek
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +6 -33 lines
use uvm_grow() to update stack segment size on stack page fault instead
of MD code

Revision 1.182.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 25 06:57:19 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.182.2.1: preferred, colored
Changes since revision 1.182.2.1: +6 -6 lines
Sync with HEAD.

Revision 1.201: download - view: text, markup, annotated - select for diffs
Fri Aug 20 21:38:35 2004 UTC (20 years, 3 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +6 -6 lines
Check DDB before KGDB; if both are enabled, it's more useful to go to
DDB, because you can get to KGDB from there, but not the other way
around.

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

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

Revision 1.199: download - view: text, markup, annotated - select for diffs
Thu Mar 11 11:42:04 2004 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +13 -2 lines
before resuming from failure during return to user mode,
- clear PSL_NT.  it can be set by userland because setting it
  isn't a privileged operation.
  (cf. DSA-336-1, CVE-2002-0429)
- set PSL_I.  otherwise, if SIGSEGV is ignored, we'll
  end up to infinite loop, generating the same traps, with
  interrupts disabled.

Revision 1.198: download - view: text, markup, annotated - select for diffs
Thu Mar 11 11:39:25 2004 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +13 -20 lines
update trap(), resume_iret and friends to match with
the recent version of INTRFASTEXIT.
might be related to PR/24711.

Revision 1.197: download - view: text, markup, annotated - select for diffs
Fri Feb 27 21:37:48 2004 UTC (20 years, 9 months ago) by enami
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +2 -3 lines
Backout (part of) rev. 1.187, since the control no longer fall through.

Revision 1.196: download - view: text, markup, annotated - select for diffs
Fri Feb 20 17:35:01 2004 UTC (20 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +15 -3 lines
defer pmap switching until it's really needed
to avoid frequent loading of cr3 register, which involves tlb flush.

with some fixes/improvements from Stephan Uphoff and Bang Jun-Young.

Revision 1.195: download - view: text, markup, annotated - select for diffs
Thu Feb 19 17:02:44 2004 UTC (20 years, 9 months ago) by drochner
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +8 -2 lines
signal SIGSEGV/SEGV_ACCERR if non-executable stack is jumped to

Revision 1.194: download - view: text, markup, annotated - select for diffs
Tue Nov 4 10:33:15 2003 UTC (21 years, 1 month ago) by dsl
Branches: MAIN
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +3 -3 lines
Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead.
Remove p_raslock and rename p_lwplock p_lock (one lock is enough).
Simplify window test when adding a ras and correct test on VM_MAXUSER_ADDRESS.
Avoid unpredictable branch in i386 locore.S
(pad fields left in struct proc to avoid kernel bump)

Revision 1.193: download - view: text, markup, annotated - select for diffs
Mon Oct 27 14:11:47 2003 UTC (21 years, 1 month ago) by junyoung
Branches: MAIN
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +3 -3 lines
Nuke __P().

Revision 1.192: download - view: text, markup, annotated - select for diffs
Sat Oct 25 19:38:18 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +4 -4 lines
Remove bogus initializers.

Revision 1.191: download - view: text, markup, annotated - select for diffs
Sat Oct 25 19:37:47 2003 UTC (21 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +4 -2 lines
Add a missing default.

Revision 1.190: download - view: text, markup, annotated - select for diffs
Sat Oct 25 18:40:37 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +4 -4 lines
Fix uninitialized variable warnings

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

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

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

Revision 1.188: download - view: text, markup, annotated - select for diffs
Tue Sep 16 13:57:47 2003 UTC (21 years, 3 months ago) by cl
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +11 -3 lines
add MD part of SA/pthread pagefault handling on i386

Revision 1.187: download - view: text, markup, annotated - select for diffs
Fri Sep 12 23:20:26 2003 UTC (21 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +4 -3 lines
Set si_code for T_PROTFLT|T_USER. Pointed out by enamicode.

Revision 1.186: download - view: text, markup, annotated - select for diffs
Sat Sep 6 22:08:15 2003 UTC (21 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +95 -32 lines
SA_SIGINFO changes.

Revision 1.185: download - view: text, markup, annotated - select for diffs
Sun Aug 24 17:52:32 2003 UTC (21 years, 3 months ago) by chs
Branches: MAIN
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +8 -2 lines
add support for non-executable mappings (where the hardware allows this)
and make the stack and heap non-executable by default.  the changes
fall into two basic catagories:

 - pmap and trap-handler changes.  these are all MD:
   = alpha: we already track per-page execute permission with the (software)
	PG_EXEC bit, so just have the trap handler pay attention to it.
   = i386: use a new GDT segment for %cs for processes that have no
	executable mappings above a certain threshold (currently the
	bottom of the stack).  track per-page execute permission with
	the last unused PTE bit.
   = powerpc/ibm4xx: just use the hardware exec bit.
   = powerpc/oea: we already track per-page exec bits, but the hardware only
	implements non-exec mappings at the segment level.  so track the
	number of executable mappings in each segment and turn on the no-exec
	segment bit iff the count is 0.  adjust the trap handler to deal.
   = sparc (sun4m): fix our use of the hardware protection bits.
	fix the trap handler to recognize text faults.
   = sparc64: split the existing unified TSB into data and instruction TSBs,
	and only load TTEs into the appropriate TSB(s) for the permissions.
	fix the trap handler to check for execute permission.
   = not yet implemented: amd64, hppa, sh5

 - changes in all the emulations that put a signal trampoline on the stack.
   instead, we now put the trampoline into a uvm_aobj and map that into
   the process separately.

originally from openbsd, adapted for netbsd by me.

Revision 1.184: download - view: text, markup, annotated - select for diffs
Wed Aug 20 21:48:43 2003 UTC (21 years, 3 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +40 -40 lines
Pass pointers to frames from assembly, do not use the 'frame on stack
as argument passed by value' trick, as gcc 3.3.x makes (valid) assumptions
about the stack that will not be true. Costs 2 instructions per trap/syscall
on i386, 4 per interrupt for MP. One instruction per trap/syscall on amd64,
2 per interrupt for MP. I expect gcc 3.3.1 to make up for this by better
optimization (it'd better..)

While here, make amd64 compile again by using subr_mbr_disk.c

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

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

Revision 1.182: download - view: text, markup, annotated - select for diffs
Mon Jun 23 11:01:21 2003 UTC (21 years, 5 months ago) by martin
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +4 -2 lines
Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.181: download - view: text, markup, annotated - select for diffs
Wed May 21 23:47:55 2003 UTC (21 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +3 -3 lines
tweak previous; use '%#x' instead of '0x%x' (and the lx equivalents)

Revision 1.180: download - view: text, markup, annotated - select for diffs
Wed May 21 16:48:34 2003 UTC (21 years, 6 months ago) by simonb
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +3 -3 lines
Prefix a hex error number with "0x".

Revision 1.179: download - view: text, markup, annotated - select for diffs
Sun May 11 15:19:20 2003 UTC (21 years, 7 months ago) by yamt
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +2 -10 lines
remove L_BIGLOCK check for kernel-mode pagefaults in trap().
syscall() and its variants actually does copyin() without biglock.

ok'ed by Frank van der Linden.

Revision 1.178: download - view: text, markup, annotated - select for diffs
Wed Feb 26 21:28:24 2003 UTC (21 years, 9 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +4 -4 lines
Adapt for move of files to arch/x86.

Revision 1.177: download - view: text, markup, annotated - select for diffs
Fri Jan 17 23:10:32 2003 UTC (21 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +82 -40 lines
Merge the nathanw_sa branch.

Revision 1.154.2.21: download - view: text, markup, annotated - select for diffs
Tue Jan 7 22:12:23 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.154.2.20: preferred, colored; next MAIN 1.155: preferred, colored
Changes since revision 1.154.2.20: +3 -3 lines
In the SA universe, the switch-to-this-LWP decision is made at a
different level than where preempt() calls are made, which renders
the "newlwp" argument useless.  Replace it with a "more work to do"
boolean argument.  Returning to userspace preempt() calls pass 0.
"Voluntary" preemptions in e.g. uiomove() pass 1.  This will be used
to indicate to the SA subsystem that the LWP is not yet finished in
the kernel.

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

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

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

Revision 1.154.2.20: download - view: text, markup, annotated - select for diffs
Wed Dec 11 13:50:18 2002 UTC (22 years ago) by martin
Branches: nathanw_sa
Diff to: previous 1.154.2.19: preferred, colored
Changes since revision 1.154.2.19: +4 -4 lines
KERNEL_PROC_LOCK takes a lwp, not a proc.

Revision 1.154.2.19: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:00:58 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.154.2.18: preferred, colored
Changes since revision 1.154.2.18: +9 -7 lines
Sync with HEAD.

Revision 1.154.2.18: download - view: text, markup, annotated - select for diffs
Tue Dec 3 23:21:20 2002 UTC (22 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.17: preferred, colored
Changes since revision 1.154.2.17: +4 -2 lines
Unlock the kernel lock in startlwp() before returning to userland.

Revision 1.154.2.17: download - view: text, markup, annotated - select for diffs
Mon Nov 25 21:41:13 2002 UTC (22 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.16: preferred, colored
Changes since revision 1.154.2.16: +3 -2 lines
Unlock the kernel lock in upcallret().

Revision 1.176: download - view: text, markup, annotated - select for diffs
Fri Nov 22 15:23:44 2002 UTC (22 years ago) by fvdl
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: gmcgarry_ucred
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +7 -7 lines
New interrupt code. The basic idea behind it is to hide the differences
in interrupt controllers in struct pic, and try to keep as much
common code as possible. At the lowest (asm) level, this is done
with CPP macros.

The main structure is now struct intrsource, describing an established
interrupt line, of any kind (soft/hard local apic/legacy apic/IO apic).
For quick masking, there may be a maximum of 32 sources per CPU.
Sources can be assigned to any CPU in the MP case, though currently they
all go to the boot CPU.

Revision 1.154.2.16: download - view: text, markup, annotated - select for diffs
Thu Nov 14 04:31:51 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.15: preferred, colored
Changes since revision 1.154.2.15: +6 -6 lines
LWPify multiprocessor code

Revision 1.175: download - view: text, markup, annotated - select for diffs
Tue Nov 12 11:51:54 2002 UTC (22 years, 1 month ago) by fvdl
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +4 -2 lines
The kernel lock must be held around ADDUPROF.

Revision 1.154.2.15: download - view: text, markup, annotated - select for diffs
Mon Nov 11 21:59:11 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.14: preferred, colored
Changes since revision 1.154.2.14: +10 -8 lines
Catch up to -current

Revision 1.174: download - view: text, markup, annotated - select for diffs
Mon Nov 11 13:54:28 2002 UTC (22 years, 1 month ago) by fvdl
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +8 -8 lines
Check for an error in {f,s}uwintr before checking (if MULTIPROCESSOR)
if the kernel lock is held, otherwise a fatal trap will be erronerously
signaled for cases like profile calls from statclock().

Revision 1.173: download - view: text, markup, annotated - select for diffs
Thu Oct 31 22:32:40 2002 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +3 -3 lines
constify trap_type[]

Revision 1.172: download - view: text, markup, annotated - select for diffs
Thu Oct 31 22:24:42 2002 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +5 -3 lines
update trap_type[] according to include/trap.h contents

Revision 1.154.2.14: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:37:51 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.13: preferred, colored
Changes since revision 1.154.2.13: +93 -11 lines
Catch up to -current.

Revision 1.161.2.4: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:33:26 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.161.2.3: preferred, colored; branchpoint 1.161: preferred, colored; next MAIN 1.162: preferred, colored
Changes since revision 1.161.2.3: +66 -12 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.171: download - view: text, markup, annotated - select for diffs
Sat Oct 5 21:21:05 2002 UTC (22 years, 2 months ago) by fvdl
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-aftermerge
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +31 -3 lines
Add wrapper for trap() to be used for traps that come in via a TSS.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Tue Oct 1 12:57:01 2002 UTC (22 years, 2 months ago) by fvdl
Branches: MAIN
CVS tags: kqueue-base
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +67 -13 lines
Merge Bill Sommerfeld's i386 MP branch. This code has some known
caveats, but works quite well in a lot of MP cases, and all
UP cases that I have tested. Parts of this will hopefully be
reworked in the not-too-distant future.

Revision 1.169: download - view: text, markup, annotated - select for diffs
Fri Sep 27 15:36:10 2002 UTC (22 years, 2 months ago) by provos
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +3 -3 lines
remove trailing \n in panic().  approved perry.

Revision 1.154.2.13: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:15:09 2002 UTC (22 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.12: preferred, colored
Changes since revision 1.154.2.12: +8 -1 lines
Catch up to -current.

Revision 1.161.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:36:23 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.161.2.2: preferred, colored; branchpoint 1.161: preferred, colored
Changes since revision 1.161.2.2: +41 -4 lines
sync kqueue branch with HEAD

Revision 1.134.2.24: download - view: text, markup, annotated - select for diffs
Sat Aug 31 20:31:35 2002 UTC (22 years, 3 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.23: preferred, colored; branchpoint 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134.2.23: +10 -3 lines
SMP branch resync.  Mostly RAS support.

Revision 1.165.8.2: download - view: text, markup, annotated - select for diffs
Sat Aug 31 13:44:55 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.165.8.1: preferred, colored; branchpoint 1.165: preferred, colored; next MAIN 1.166: preferred, colored
Changes since revision 1.165.8.1: +10 -3 lines
catch up with -current.

Revision 1.168: download - view: text, markup, annotated - select for diffs
Wed Aug 28 09:47:17 2002 UTC (22 years, 3 months ago) by gmcgarry
Branches: MAIN
CVS tags: sommerfeld_i386mpnext, sommerfeld_i386mpbase_1, gehenna-devsw-base
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +10 -3 lines
RAS support for i386.

Revision 1.134.2.23: download - view: text, markup, annotated - select for diffs
Mon Aug 19 01:32:44 2002 UTC (22 years, 4 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.22: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.22: +3 -0 lines
Booby-trap KVM86 so it's clear what needs work.

Revision 1.134.2.22: download - view: text, markup, annotated - select for diffs
Mon Aug 19 01:22:34 2002 UTC (22 years, 4 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.21: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.21: +34 -3 lines
merged with -current as of today.
rearranged gdt init to deal with KVM86 changes; however, KVM86 has no
chance of working yet; good thing it's not part of GENERIC

Revision 1.154.2.12: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:42:08 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.11: preferred, colored
Changes since revision 1.154.2.11: +33 -3 lines
Catch up to -current.

Revision 1.165.8.1: download - view: text, markup, annotated - select for diffs
Tue Jul 16 08:29:42 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +33 -3 lines
catch up with -current.

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

Revision 1.167: download - view: text, markup, annotated - select for diffs
Sun Jul 7 13:24:36 2002 UTC (22 years, 5 months ago) by drochner
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +17 -3 lines
call kvm86's GPF handler

Revision 1.166: download - view: text, markup, annotated - select for diffs
Wed Jul 3 02:46:15 2002 UTC (22 years, 5 months ago) by yamt
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +18 -2 lines
add KSTACK_CHECK_DR0.

Revision 1.154.2.10: download - view: text, markup, annotated - select for diffs
Tue Jul 2 21:02:16 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.9: preferred, colored
Changes since revision 1.154.2.9: +2 -9 lines
Remove some debugging printf's of mine.

Revision 1.154.2.9: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:05:07 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.8: preferred, colored
Changes since revision 1.154.2.8: +9 -9 lines
Curproc->curlwp renaming.

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

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

Revision 1.134.2.21: download - view: text, markup, annotated - select for diffs
Tue May 21 05:40:21 2002 UTC (22 years, 6 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
CVS tags: i386mp_plus16_stable
Diff to: previous 1.134.2.20: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.20: +6 -3 lines
fetch cr2 (faulting address) before attempting to lock, in case that
lock becomes a sleep lock some day..

Revision 1.161.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 16 15:58:16 2002 UTC (22 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.161.2.1: preferred, colored; branchpoint 1.161: preferred, colored
Changes since revision 1.161.2.1: +12 -11 lines
Catch up with -current.

Revision 1.154.2.8: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:10:18 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.7: preferred, colored
Changes since revision 1.154.2.7: +12 -11 lines
Catch up to -current.

Revision 1.134.2.20: download - view: text, markup, annotated - select for diffs
Sun Feb 24 00:17:45 2002 UTC (22 years, 9 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.19: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.19: +12 -12 lines
Resynch with mainline.

Revision 1.165: download - view: text, markup, annotated - select for diffs
Mon Feb 18 15:58:02 2002 UTC (22 years, 9 months ago) by simonb
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +4 -3 lines
Fix a null pointer dereference if curproc == NULL.
Fixes PR port-i386/15638.

Revision 1.164: download - view: text, markup, annotated - select for diffs
Sat Feb 16 16:22:04 2002 UTC (22 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +9 -9 lines
save cr2 for the benefit of linux emulation, and normalize use of pcb
in trap(), i.e. always initialize *pcb and use it instead of doing it
sometimes.

Revision 1.163: download - view: text, markup, annotated - select for diffs
Thu Feb 14 07:08:07 2002 UTC (22 years, 10 months ago) by chs
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +4 -4 lines
allow writing to write-only mappings.  fixes PR 3493.

Revision 1.161.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:44:48 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +4 -1 lines
Sync kqueue branch with -current.

Revision 1.154.2.7: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:25:30 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.6: preferred, colored
Changes since revision 1.154.2.6: +4 -1 lines
Catch up to -current.

Revision 1.134.2.19: download - view: text, markup, annotated - select for diffs
Sat Dec 29 23:31:04 2001 UTC (22 years, 11 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.18: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.18: +16 -13 lines
Set up per-cpu GDT.
Use %fs for per-cpu data access.

Revision 1.134.2.18: download - view: text, markup, annotated - select for diffs
Sat Dec 29 21:09:08 2001 UTC (22 years, 11 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.17: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.17: +4 -1 lines
Yet another mergeup.

New work:
 - Frank van der Linden's tlb shootdown fix.
Mainline functionality merged:
 - IrDA
 - Kernel RCSID's
 - Transmeta CPU support
 - ACPI
 - XMM register access through procfs

Revision 1.154.2.6: download - view: text, markup, annotated - select for diffs
Sat Nov 17 00:46:06 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.5: preferred, colored
Changes since revision 1.154.2.5: +2 -4 lines
The upcallret() function is given the lwp of curproc as its argument; update
declaration, and actually use the argument, instead of using curproc(!).

Revision 1.162: download - view: text, markup, annotated - select for diffs
Thu Nov 15 07:03:31 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +4 -1 lines
add RCSID

Revision 1.154.2.5: download - view: text, markup, annotated - select for diffs
Thu Aug 30 23:22:26 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.4: preferred, colored
Changes since revision 1.154.2.4: +1 -5 lines
Remove an unused variable in startlwp().

Revision 1.154.2.4: download - view: text, markup, annotated - select for diffs
Fri Aug 24 04:20:00 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.3: preferred, colored
Changes since revision 1.154.2.3: +8 -1 lines
A few files and lwp/proc conversions I missed in the last big update.
GENERIC runs again.

Revision 1.154.2.3: download - view: text, markup, annotated - select for diffs
Thu Jun 21 19:25:40 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.2: preferred, colored
Changes since revision 1.154.2.2: +49 -15 lines
Catch up to -current.

Revision 1.134.2.17: download - view: text, markup, annotated - select for diffs
Mon Jun 18 04:49:05 2001 UTC (23 years, 6 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.16: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.16: +10 -10 lines
Complete merge with -current

Revision 1.134.2.16: download - view: text, markup, annotated - select for diffs
Mon Jun 18 03:33:31 2001 UTC (23 years, 6 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.15: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.15: +40 -6 lines
checkpoint merge-in-progress from mainline.

Revision 1.161: download - view: text, markup, annotated - select for diffs
Mon Jun 18 02:00:49 2001 UTC (23 years, 6 months ago) by christos
Branches: 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: kqueue
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +10 -10 lines
Add an e_trapsignal member to struct emul, so that emulated processes can
send the appropriate signal depending on the trap type.

Revision 1.139.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 17 22:29:37 2001 UTC (23 years, 6 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.139.2.1: preferred, colored; branchpoint 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139.2.1: +18 -2 lines
Pull up revision 1.160 (via patch, requested by sommerfeld):
  Add %fs/%gs to trap frame and save/restore them on trap/interupt/
  syscall entry from userspace.

  Remove special-case ``by hand'' validation of %fs/%gs register
  values s well as special handling of them in various signal
  handling paths.  Now, like %ds and %es, they are validated by
  the hardware on return to userland.

  This paves the way for the use of %fs for per-cpu data on multi-
  processor systems, and fixes an otherwise difficult-to-fix
  interaction between threads/clone(2) and USER_LDT.

Revision 1.160: download - view: text, markup, annotated - select for diffs
Sun Jun 17 21:01:36 2001 UTC (23 years, 6 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +16 -1 lines
Add %fs/%gs to trap frame and save/restore them on
trap/interrupt/syscall entry from userspace.

Remove special-case "by hand" validation of fs/gs register values as
well as special handling of them in various signal handling paths.

Now, like %ds and %es, they are validated by the hardware on return to
userland.

This paves the way for the use of %fs for per-cpu data on
multiprocessor systems, and fixes an otherwise difficult-to-fix
interaction between threads/clone(2) and USER_LDT.

Discussed in advance with Frank van der Linden.

Revision 1.139.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 11 20:40:19 2001 UTC (23 years, 6 months ago) by he
Branches: netbsd-1-5
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +22 -4 lines
Pull up revision 1.159 (requested by sommerfeld):
  Replace magic numbers in trap code with offsetof().
  Deal better with traps during register restore.
  Explain a bit more about what is going on here.

Revision 1.159: download - view: text, markup, annotated - select for diffs
Mon Jun 11 20:04:03 2001 UTC (23 years, 6 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +22 -4 lines
Replace magic numbers in trap code with offsetof()
Deal better with traps during register restore.
Explain a bit more about what's going on here.

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

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

Revision 1.134.2.15: download - view: text, markup, annotated - select for diffs
Mon Apr 30 16:23:12 2001 UTC (23 years, 7 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.14: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.14: +10 -4 lines
Merge sommerfeld_i386mp_1 branch with -current as of today.
GENERIC.MP kernel boots and runs multiuser on my ABIT BP6

Revision 1.154.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:53:34 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154.2.1: preferred, colored
Changes since revision 1.154.2.1: +15 -10 lines
Catch up with -current.

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

Revision 1.156: download - view: text, markup, annotated - select for diffs
Sun Mar 18 02:53:09 2001 UTC (23 years, 9 months ago) by chs
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +10 -4 lines
in trap(), when invoking the pcb_onfault mechanism, pass the return value
of uvm_fault() to the onfault routine via %eax.  users of pcb_onfault now
return this value to their callers rather than always returning EFAULT.
this allows i/o errors in VOP_GETPAGES() to be returned back to read(), etc.

Revision 1.134.2.14: download - view: text, markup, annotated - select for diffs
Fri Mar 16 05:00:49 2001 UTC (23 years, 9 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.13: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.13: +11 -9 lines
Merge branch with -current; top of branch + current builds a working
GENERIC.MP again.

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

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

Revision 1.154.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 5 22:49:15 2001 UTC (23 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +68 -22 lines
Initial commit of scheduler activations and lightweight process support.

Revision 1.133.2.5: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:10:55 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.133.2.4: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.4: +5 -1 lines
Sync with HEAD.

Revision 1.154: download - view: text, markup, annotated - select for diffs
Mon Feb 5 11:12:05 2001 UTC (23 years, 10 months ago) by chs
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +5 -1 lines
clear pcb_onfault before calling uvm_fault() and restore it afterward.
if the fault handler generates a pagefault, we'd like to panic rather
than invoking the onfault handler.

Revision 1.134.2.13: download - view: text, markup, annotated - select for diffs
Tue Jan 9 02:37:34 2001 UTC (23 years, 11 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.12: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.12: +3 -1 lines
Make kernel page faults work again if !MULTIPROCESSOR

P_BIGLOCK only gets set in p_flags on a MULTIPROCESSOR kernel, so
only include that test under MULTIPROCESSOR

Revision 1.134.2.12: download - view: text, markup, annotated - select for diffs
Sun Jan 7 22:59:25 2001 UTC (23 years, 11 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.11: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.11: +1 -1 lines
Correct merge botches.
Post-merge kernel now boots multiuser.

Revision 1.134.2.11: download - view: text, markup, annotated - select for diffs
Sun Jan 7 22:12:45 2001 UTC (23 years, 11 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.10: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.10: +22 -334 lines
Snapshot of merge-in-progress with -current.

[Not expected to build].  Catch up with the last N months worth of
changes to -current.

Revision 1.133.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:49:30 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.133.2.3: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.3: +20 -205 lines
Sync with HEAD (for UBC fixes).

Revision 1.153: download - view: text, markup, annotated - select for diffs
Mon Dec 11 05:29:00 2000 UTC (24 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +1 -135 lines
Introduce 2 new flags in types.h:
* __HAVE_SYSCALL_INTERN.  If this is defined, e_syscall is replaced by
  e_syscall_intern, which is called at key places in the kernel.  This can be
  used to set a MD syscall handler pointer.  This obsoletes and replaces the
  *_HAS_SEPARATED_SYSCALL flags.
* __HAVE_MINIMAL_EMUL.  If this is defined, certain (deprecated) elements in
  struct emul are omitted.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Sun Dec 10 19:29:30 2000 UTC (24 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +4 -12 lines
Introduce PROC_PC(), which is used to get a process's user PC.  If this is
defined, call addupc_intr() directly from statclock() in the system time case,
using the same P_OWEUPC path if the copyin/copyout fails.
Use this in i386 to remove profiling code from the normal userret() path.

Revision 1.151: download - view: text, markup, annotated - select for diffs
Sun Dec 10 12:09:59 2000 UTC (24 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +1 -3 lines
syscall(): no emulation using this needs errno mapping, G/C the code

Revision 1.150: download - view: text, markup, annotated - select for diffs
Sat Dec 9 12:57:17 2000 UTC (24 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +1 -6 lines
the call to emulation-specific syscall function will be handled differently,
don't do it explicitly

Revision 1.149: download - view: text, markup, annotated - select for diffs
Sat Dec 9 11:21:52 2000 UTC (24 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +2 -30 lines
put userret() into header file machine/userret.h and pull it where needed

Revision 1.148: download - view: text, markup, annotated - select for diffs
Sat Dec 9 06:33:15 2000 UTC (24 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +6 -10 lines
Set md_regs before call the alternate syscall handler.
Remove the EMUL_HAS_SYS___syscall test, because the handler is no longer shared
with SVR4.
Rather than comparing with e_nsysent, just mask the value.  This is only done
to protect us from malicious programs anyway.

Revision 1.147: download - view: text, markup, annotated - select for diffs
Sat Dec 9 02:46:17 2000 UTC (24 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +5 -6 lines
Couple more tweaks to eliminate unnecessary cycles.

Revision 1.146: download - view: text, markup, annotated - select for diffs
Sat Dec 9 02:18:16 2000 UTC (24 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +8 -15 lines
Do the resched check *only* on an AST.
Also, there is no reason to save the original PC; there are no restartable
syscalls that change the PC -- and even if there were, they wouldn't do it
in the restart case.

Revision 1.145: download - view: text, markup, annotated - select for diffs
Fri Dec 8 23:14:05 2000 UTC (24 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +15 -8 lines
Rework the way the nested task and trace flags are handled when entering the
old (lcall) syscall gate.  This speeds up that path a little.

Revision 1.144: download - view: text, markup, annotated - select for diffs
Fri Dec 8 22:32:09 2000 UTC (24 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +3 -6 lines
GC unneeded code.

Revision 1.133.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:26:38 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.133.2.2: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.2: +12 -95 lines
Sync with HEAD.

Revision 1.143: download - view: text, markup, annotated - select for diffs
Sat Dec 2 16:03:24 2000 UTC (24 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +12 -95 lines
as discussed on tech-kern, put linux and ibcs2 syscall code to separate
files and change syscall() to call p->p_emul->e_syscall() if it's not NULL

Revision 1.134.2.10: download - view: text, markup, annotated - select for diffs
Mon Nov 27 01:03:46 2000 UTC (24 years ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.9: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.9: +2 -2 lines
Constify.

Revision 1.133.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:00:23 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.133.2.1: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.1: +9 -40 lines
Sync with HEAD.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Tue Nov 21 21:27:04 2000 UTC (24 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +2 -2 lines
make trap_type[] const

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

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

Revision 1.134.2.9: download - view: text, markup, annotated - select for diffs
Sat Aug 26 14:09:00 2000 UTC (24 years, 3 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.8: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.8: +5 -2 lines
Lock kernel on child_return() ktrace-point

Revision 1.134.2.8: download - view: text, markup, annotated - select for diffs
Fri Aug 25 02:51:45 2000 UTC (24 years, 3 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.7: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.7: +6 -1 lines
LOCKDEBUG: If scheduler lock is held when we pagefault, something is
very wrong.  Go directly to fatal fault path, do not attempt to do
anything sophisticated.

Revision 1.134.2.7: download - view: text, markup, annotated - select for diffs
Fri Aug 25 02:03:31 2000 UTC (24 years, 3 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.6: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.6: +2 -2 lines
The need_resched() function now takes a (cpu_info *) parameter.
Get asts out of <machine/intr.h>
Untangle astpending and want_resched variables somewhat.

Revision 1.134.2.6: download - view: text, markup, annotated - select for diffs
Thu Aug 24 11:26:12 2000 UTC (24 years, 3 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.5: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.5: +5 -2 lines
ktrace: Relock kernel when emitting syscall return ktrace record.

Revision 1.134.2.5: download - view: text, markup, annotated - select for diffs
Wed Aug 23 18:27:59 2000 UTC (24 years, 3 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.4: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.4: +4 -2 lines
Add missing KERNEL_UNLOCK() on the path taken on copy{in/out} failure.

Revision 1.134.2.4: download - view: text, markup, annotated - select for diffs
Fri Aug 18 13:55:44 2000 UTC (24 years, 4 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.3: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.3: +48 -4 lines
Add KERNEL_{PROC,}_{LOCK,UNLOCK} calls to lock the kernel before
calling into the main kernel, either recursively (trap from kernel
space) or on behalf of a process (trap/syscall from userland)

Revision 1.134.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 7 01:08:50 2000 UTC (24 years, 4 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.2: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.2: +0 -2 lines
Merge sommerfeld_i386mp_1 branch forward to 20000806 sources

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

Revision 1.134.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 25 19:37:07 2000 UTC (24 years, 5 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134.2.1: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.1: +29 -22 lines
Merge up to just-post-1.5 -current

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

Revision 1.139: download - view: text, markup, annotated - select for diffs
Tue Jun 6 18:52:36 2000 UTC (24 years, 6 months ago) by soren
Branches: MAIN
CVS tags: sommerfeld_i386mp_houseclean, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +2 -1 lines
defopt SYSCALL_DEBUG.

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

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

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

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

Also, miscellaneous cleanups in ktrace:

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

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()

Revision 1.137: download - view: text, markup, annotated - select for diffs
Fri May 26 21:19:47 2000 UTC (24 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +2 -2 lines
First sweep at scheduler state cleanup.  Collect MI scheduler
state into global and per-CPU scheduler state:

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

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

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

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

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

Revision 1.136: download - view: text, markup, annotated - select for diffs
Wed May 24 16:48:36 2000 UTC (24 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +4 -13 lines
Use preempt(), not an open-coded equivalent (which won't be
equivalent for long).

Revision 1.135: download - view: text, markup, annotated - select for diffs
Thu May 11 16:38:12 2000 UTC (24 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +21 -6 lines
Add i386-specific part of MicroChannel Architecture bus support, as
found in some older IBM PS/2 machines.

This code is based upon work by Scott D. Telford, with some minor bits
in arch/i386/mca/mca_machdep.c taken from FreeBSD.

XXX this is still very experimental and development version; use at your
XXX own risk

Revision 1.134.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 20 18:03:11 2000 UTC (24 years, 9 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3 lines
Adapt to intr.h/IPL_* changes.

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

Revision 1.134: download - view: text, markup, annotated - select for diffs
Sat Dec 4 21:20:32 1999 UTC (25 years ago) by ragge
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, sommerfeld_i386mpbase_20000422, chs-ubc2-newbase
Branch point for: sommerfeld_i386mp_1
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +3 -3 lines
CL* discarding.

Revision 1.133: download - view: text, markup, annotated - select for diffs
Mon Oct 4 17:36:37 1999 UTC (25 years, 2 months ago) by fvdl
Branches: MAIN
CVS tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +12 -5 lines
It's legal to mmap pages in the lower part of the stack (< limit), and
use them, so allow this by relaxing the check for it.

Revision 1.131.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 00:50:00 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131: +1 -30 lines
Sync w/ -current.

Revision 1.132: download - view: text, markup, annotated - select for diffs
Thu Jun 17 00:12:12 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +1 -30 lines
PMAP_NEW is no longer optional on the i386; the old pmap's page table
allocation strategy no longer works at all.  Move pmap.new.* to pmap.*.

To read the revision history of PMAP_NEW up until this merge, use cvs
rlog of the old pmap.new.* files.

Revision 1.131: download - view: text, markup, annotated - select for diffs
Wed Mar 24 05:51:02 1999 UTC (25 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +2 -39 lines
completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Thu Mar 18 04:56:02 1999 UTC (25 years, 9 months ago) by chs
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +5 -3 lines
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.129: download - view: text, markup, annotated - select for diffs
Sat Feb 13 16:10:44 1999 UTC (25 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +29 -23 lines
Support __syscall for COMPAT_AOUT properly.

Revision 1.128: download - view: text, markup, annotated - select for diffs
Wed Feb 10 16:52:02 1999 UTC (25 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +2 -2 lines
Fix reversed test in my changes to compat_freebsd (thanks charles!)

Revision 1.127: download - view: text, markup, annotated - select for diffs
Wed Feb 10 07:10:59 1999 UTC (25 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +25 -5 lines
PR/6962: Paul Shupak: FreeBSD ELF emulation bits.

Revision 1.126: download - view: text, markup, annotated - select for diffs
Wed Nov 11 06:41:26 1998 UTC (26 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +8 -7 lines
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.104.2.4: download - view: text, markup, annotated - select for diffs
Tue Nov 3 17:37:53 1998 UTC (26 years, 1 month ago) by cgd
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Diff to: previous 1.104.2.3: preferred, colored; branchpoint 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.2.3: +58 -44 lines
pull up rev 1.125 and other unspecified bits (via patch).  (mycroft)

Revision 1.125: download - view: text, markup, annotated - select for diffs
Tue Oct 27 18:04:27 1998 UTC (26 years, 1 month ago) by christos
Branches: MAIN
CVS tags: chs-ubc-base, chs-ubc
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +34 -35 lines
PR/6356: Hubert Feyer: Linux emulation has problem w/ pipes

On linux we don't have syscalls that use retval[1] (edx). So don't
corrupt edx, because the compiler assumes that it has the same
value as before the syscall. Also, compute if we are running under
linux emulation in one place.  XXX: Someday we should have a syscall
function per emulation and avoid the mess.

Revision 1.124: download - view: text, markup, annotated - select for diffs
Thu Oct 1 15:53:33 1998 UTC (26 years, 2 months ago) by erh
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +37 -7 lines
Linux emul_* structures chahged names.

Revision 1.123: download - view: text, markup, annotated - select for diffs
Fri Sep 11 12:23:44 1998 UTC (26 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +33 -33 lines
Speed up syscall() slightly in a few cases.

Revision 1.122: download - view: text, markup, annotated - select for diffs
Sun Aug 16 00:42:51 1998 UTC (26 years, 4 months ago) by rvb
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +3 -1 lines
Avoid double fault on errors during probes

Revision 1.121: download - view: text, markup, annotated - select for diffs
Sat Aug 15 05:10:24 1998 UTC (26 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +37 -2 lines
Assign my copyrights to TNF.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Thu Aug 13 21:36:04 1998 UTC (26 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +5 -5 lines
vm_offset_t -> {vaddr_t,paddr_t}, vm_size_t -> vsize_t

Revision 1.119: download - view: text, markup, annotated - select for diffs
Sat Jul 4 22:18:25 1998 UTC (26 years, 5 months ago) by jonathan
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +2 -1 lines
defopt DDB.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Thu Jun 25 23:23:12 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +2 -1 lines
defopt COMPAT_IBCS2

Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu Jun 25 23:19:36 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +2 -1 lines
defopt COMPAT_LINUX

Revision 1.116: download - view: text, markup, annotated - select for diffs
Thu Jun 25 22:51:01 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +2 -1 lines
defopt COMPAT_FREEBSD

Revision 1.115: download - view: text, markup, annotated - select for diffs
Thu Jun 25 21:19:14 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +2 -1 lines
defopt KTRACE

Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed May 27 15:53:30 1998 UTC (26 years, 6 months ago) by drochner
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +15 -64 lines
Handle the i386/PMAP_NEW copyout() differently:
Don't try to avoid faults when the PTEs are checked. Set pcb_onfault
instead so that trapwrite() is called as if the PTE were RO.
This is faster than explicitely ckecking the PDEs - at least in the
majority of calls where the PT is already present.
Thanks to Stefan Grefen for input and testing.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Wed May 20 16:30:54 1998 UTC (26 years, 7 months ago) by drochner
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +69 -15 lines
Make copyout() and Co. work with PMAP_NEW on real i386 processors.
PMAP_NEW doesn't fault in page table pages automatically on access to
PTmap[], so we have to check the PTD explicitely.
If a PTP is needed, call uvm_fault(). pmap_enter() will DTRT.
Move calculation of the index into PTmap[] inside the loop in copyoutstr()
(non-PMAP_NEW case). Page boundary crosses are rare, so this should save
some cycles in average.

Revision 1.104.2.3: download - view: text, markup, annotated - select for diffs
Tue May 5 09:51:42 1998 UTC (26 years, 7 months ago) by mycroft
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH002
Diff to: previous 1.104.2.2: preferred, colored; branchpoint 1.104: preferred, colored
Changes since revision 1.104.2.2: +5 -3 lines
Pull up 1.110 and 1.112, per request of scottb.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Thu Mar 5 04:20:45 1998 UTC (26 years, 9 months ago) by scottb
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -3 lines
Add ibcs2_sendsig function.
Add ibcs2_sigcode function to locore because we need to call our own
	version of sigreturn.
Add support for emul_ibcs2_xout (XENIX) structure because we need to emulate
	some syscalls differently.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Tue Feb 10 14:11:14 1998 UTC (26 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -1 lines
- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Mon Feb 9 02:30:42 1998 UTC (26 years, 10 months ago) by scottb
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +4 -3 lines
iBCS2 code cleanup
added support for ELF binaries
added support for ELF shared libs via mmap code borrowed from svr4_misc.c
incorporated a few XENIX patches from Andreas Wrede <andreas@planix.com>

Revision 1.109: download - view: text, markup, annotated - select for diffs
Fri Feb 6 07:22:00 1998 UTC (26 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +56 -3 lines
add the i386 MD portions for UVM.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Wed Jan 21 23:29:09 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +2 -1 lines
Generate dependencies on the MATH_EMULATE option.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Thu Jan 15 22:26:01 1998 UTC (26 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +3 -1 lines
Generate dependencies on the VM86 option.

Revision 1.104.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 9 19:59:54 1997 UTC (27 years ago) by thorpej
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001
Diff to: previous 1.104.2.1: preferred, colored; branchpoint 1.104: preferred, colored
Changes since revision 1.104.2.1: +14 -1 lines
Pull up 1.106 (fvdl)

Revision 1.106: download - view: text, markup, annotated - select for diffs
Sun Dec 7 21:28:56 1997 UTC (27 years ago) by fvdl
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +14 -1 lines
When getting a pagefault for a PT page, wire it. Normally we fault them in
ourselves, but this can still happen on a 386 in copyout & friends.

Fixes pmap_changebit panics seen on 386s. Thanks to Juergen Hannken-Illjes
for providing detailed info on bug occurances.

Revision 1.104.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 13 19:00:15 1997 UTC (27 years, 1 month ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-BETA
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -3 lines
Pull rev 1.105. up from trunk (mycroft)

Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Nov 13 10:13:46 1997 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -3 lines
Map NMI in user-level code to SIGBUS.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Thu Oct 16 03:05:19 1997 UTC (27 years, 2 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +2 -4 lines
Pull in vm.h, not a bunch of individual files.

Revision 1.102.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 23 07:09:01 1997 UTC (27 years, 3 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102: +2 -2 lines
Update marc-pcmcia branch from trunk.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Tue Aug 12 17:26:57 1997 UTC (27 years, 4 months ago) by drochner
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-base
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +2 -2 lines
Enable single stepping with KGDB.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Sat Jul 5 20:48:14 1997 UTC (27 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: marc-pcmcia-bp
Branch point for: marc-pcmcia
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +26 -2 lines
Add glue for remote KGDB.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Apr 9 23:35:07 1997 UTC (27 years, 8 months ago) by mycroft
Branches: MAIN
CVS tags: bouyer-scsipi
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +5 -13 lines
Eliminate redundant calls to vm_map_pageable() and vm_fault(), as suggested by
Chuck Cranor.

Revision 1.95.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 19 04:03:24 1997 UTC (27 years, 9 months ago) by mycroft
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +2 -1 lines
Pull up trap handling changes.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Wed Mar 19 03:19:01 1997 UTC (27 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +2 -1 lines
Handle user TSS faults.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Sun Oct 13 03:19:54 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
CVS tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +11 -11 lines
backout previous kprintf changes

Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Oct 10 23:51:19 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +13 -11 lines
- fix uninitialized sticks
- printf -> kprintf, sprintf -> ksprintf

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sat Sep 7 22:26:41 1996 UTC (28 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +2 -6 lines
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.96: download - view: text, markup, annotated - select for diffs
Sat Sep 7 20:26:09 1996 UTC (28 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +1 -3 lines
Turn off DEBUG by default now.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sun May 5 06:50:02 1996 UTC (28 years, 7 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +2 -1 lines
Fix obvious bug introduced in last change.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Fri May 3 19:42:31 1996 UTC (28 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +16 -7 lines
Prototype and gcc -Wall cleanups

Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Apr 15 00:20:32 1996 UTC (28 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +6 -4 lines
Don't turn off the trace flag here; let sendsig() do it.
If in Linux emulation, send SIGSEGV for protection faults, rather than SIGBUS.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Mon Jan 8 13:51:38 1996 UTC (28 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +19 -2 lines
VM86 support, by John Kohl, touched up a bit by me.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Dec 9 05:00:27 1995 UTC (29 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +2 -11 lines
Return 0 in the child, not the parent pid.

Revision 1.89.2.2: download - view: text, markup, annotated - select for diffs
Sun Oct 15 06:54:03 1995 UTC (29 years, 2 months ago) by mycroft
Branches: netbsd-1-1
CVS tags: netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Diff to: previous 1.89.2.1: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.2.1: +670 -0 lines
Update from main branch.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Oct 15 05:58:44 1995 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +3 -3 lines
Fix typos.

Revision 1.89.2.1
Sun Oct 15 04:18:27 1995 UTC (29 years, 2 months ago) by mycroft
Branches: netbsd-1-1
FILE REMOVED
Changes since revision 1.89: +0 -670 lines
file trap.c was added on branch netbsd-1-1 on 1995-10-15 06:54:03 +0000

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Oct 15 04:18:27 1995 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-1-base
Branch point for: netbsd-1-1
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +13 -19 lines
Style police.

Revision 1.87.2.1: download - view: text, markup, annotated - select for diffs
Sat Oct 14 14:43:59 1995 UTC (29 years, 2 months ago) by fvdl
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +11 -1 lines
child_return broke Linux fork()

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sat Oct 14 14:06:16 1995 UTC (29 years, 2 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +11 -1 lines
child_return broke Linux fork()

Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Oct 11 04:19:50 1995 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +18 -1 lines
Various changes from John Kohl and me:
Map kernel stacks only at unique addresses.
Use one TSS per process.
Add sysarch calls for modifying IOPL and the I/O permission bitmap.
Add a compacting GDT entry allocator, for TSS and LDT selectors.
Enable modifying %fs and %gs with PT_SETREGS.
Sanitize various bits of code.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue Oct 10 04:45:44 1995 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -4 lines
Add USERMODE() and KERNELMODE() macros, and use them.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Tue Oct 10 01:26:46 1995 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +9 -1 lines
Add hooks for COMPAT_FREEBSD, from Noriyuki Soda.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sun Jun 11 20:24:42 1995 UTC (29 years, 6 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +5 -4 lines
Do extra comparison against linux_elf emul struct pointer to see what
we are emulating (unfortunately).

Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon May 1 08:06:51 1995 UTC (29 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +5 -5 lines
Update to match include files.  Eliminate _ucodesel, _udatasel, and IdlePTD.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Apr 26 00:00:23 1995 UTC (29 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -2 lines
Fix typo in previous changes.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Apr 22 20:49:54 1995 UTC (29 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
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.80: download - view: text, markup, annotated - select for diffs
Sat Apr 22 20:26:50 1995 UTC (29 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +14 -63 lines
- 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.79: download - view: text, markup, annotated - select for diffs
Fri Apr 14 23:30:54 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +1 -2 lines
Remove extra EMUL_IBCS2 case.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Apr 13 20:48:14 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +6 -7 lines
EMUL_IBCS2_ELF -> EMUL_SVR4; EMUL_IBCS2_{COFF,XOUT} -> EMUL_IBCS2

Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Apr 7 22:29:48 1995 UTC (29 years, 8 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +9 -28 lines
Changes because of proper Linux signal stackframe building, and
seperate signal trampoline code. Ugly hack in trap.c no longer
needed.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Mar 31 02:49:55 1995 UTC (29 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +16 -7 lines
Changes to make svr4 emulation signal() to work, and minor cleanup in trap.c

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Mar 26 08:03:50 1995 UTC (29 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -2 lines
invoke ktrsyscall with (vp, code, argsize, args) as args.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Mar 22 23:25:13 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -1 lines
In T_PAGEFLT, check for null proc pointer before dereferencing it.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue Mar 14 14:43:59 1995 UTC (29 years, 9 months ago) by scottb
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +7 -1 lines
added code to remap BSD errno to iBCS2 errno

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Mar 10 12:20:37 1995 UTC (29 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -1 lines
Fix another oversight.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Mar 10 10:56:16 1995 UTC (29 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -1 lines
Fix oversight in previous change.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Thu Mar 9 09:00:01 1995 UTC (29 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -2 lines
Fix last arg to scdebug_ret().

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Mar 8 07:12:28 1995 UTC (29 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +49 -56 lines
Fix some types:
* code, args, and rval should use register_t.
* argsize should be a size_t.
Small optimization to the Linux compat code, and don't blindly fail on if
the argument list size is invalid.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Feb 28 23:18:03 1995 UTC (29 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +69 -1 lines
linux syscall arg gathering, handling, and return.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Jan 15 03:29:05 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +5 -4 lines
Fix slight oversight in previous.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Jan 15 01:15:04 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +16 -2 lines
Add some commentary on the previous.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Jan 15 00:55:25 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +40 -17 lines
sigreturn() and ptrace() security violations will now trap.  Deal with those
traps by looking at the instruction stream and the stack to see if it looks
like we're returning to user mode, and if so pop to the hooks in locore.s.
This will fail in the case where a pop %ds or pop %es faults when returning
from a fast interrupt, but this should not be possible.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Dec 10 00:28:38 1994 UTC (30 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +7 -12 lines
Speed up FPU task switching some more.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Nov 16 20:14:42 1994 UTC (30 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +5 -6 lines
Fixed error svr4 error code mapping; my old attempt was a noop.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Nov 14 05:53:51 1994 UTC (30 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +7 -1 lines
changed open prototype in conf.c; added bsd->svr4 errno mapping in trap.c

Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Nov 7 05:26:17 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -4 lines
When restarting syscalls, make sure we adjust the PC by the correct amount
depending on what instruction we used to enter the kernel.  Push the
instruction length into tf_err on entry.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Nov 6 20:30:09 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1 -5 lines
Actually, don't bother checking p == 0 at all.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Nov 6 20:28:57 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +11 -13 lines
The case of curproc == 0 `can't happen' unless we're in the idle loop, so
allow it to panic by way of a reference to 0 in other cases.  Explicitly test
for p == 0 in the specific cases where it's needed, and only calculate pcb if
needed.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Oct 27 04:15:49 1994 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
CVS tags: before_newconf_base
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -2 lines
new RCS ID format.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Oct 26 18:45:40 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +1 -2 lines
We don't need to clear the nested trap bit.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Oct 26 17:52:22 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -1 lines
Add a comment.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Oct 26 17:38:44 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +18 -24 lines
Use pcb_onfault only in the specific cases of protection, alignment, and
page faults.  For all other kernel-mode faults and traps, ignore it.  For
user-mode faults and traps, always ignore it.
Some other minor cleanup.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Oct 26 01:32:51 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -1 lines
Add a missing item to trap_types[].

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Oct 20 04:43:26 1994 UTC (30 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +7 -6 lines
update for new syscall args description mechanism

Revision 1.48.2.3: download - view: text, markup, annotated - select for diffs
Thu Oct 6 03:43:00 1994 UTC (30 years, 2 months ago) by mycroft
Branches: netbsd-1-0
CVS tags: 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
Diff to: previous 1.48.2.2: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.2: +6 -1 lines
Update from trunk.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Sep 5 01:08:43 1994 UTC (30 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -1 lines
New iBCS2 code from Scott.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Aug 30 06:19:44 1994 UTC (30 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +5 -1 lines
Check for bad p_emul.

Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 15 22:25:07 1994 UTC (30 years, 4 months ago) by mycroft
Branches: netbsd-1-0
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored
Changes since revision 1.48.2.1: +18 -2 lines
update from trunk

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Aug 15 22:24:22 1994 UTC (30 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +18 -2 lines
Add iBCS2 glue.

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 15 14:47:26 1994 UTC (30 years, 4 months ago) by mycroft
Branches: netbsd-1-0
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -2 lines
update from trunk

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Aug 15 14:46:51 1994 UTC (30 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -2 lines
Eliminate struct pte and struct pde.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Jul 4 23:19:17 1994 UTC (30 years, 5 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3 lines
Fix some profiling stuff.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Jun 14 20:43:42 1994 UTC (30 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +1 -13 lines
Remove some old debugging code.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri May 27 13:01:47 1994 UTC (30 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +14 -6 lines
Print trap info on every entry if trapdebug set.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon May 23 02:28:21 1994 UTC (30 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2 lines
don't spontaneously print, when debugging

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun May 22 10:17:31 1994 UTC (30 years, 6 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +30 -6 lines
prelim svr4 stuff from <christos@deshaw.com>

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat May 21 04:00:37 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +1 -2 lines
no need to include <sys/vmmeter.h>

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed May 18 05:12:14 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +6 -6 lines
mostly-machine-indepedent switch, and changes to match.  also, hack init_main

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon May 16 09:46:10 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +11 -27 lines
sticks as quads may break my bones, but profiling will never hurt me...

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri May 13 00:50:44 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
setrq -> setrunqueue, sched -> scheduler

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat May 7 00:52:44 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
function name changes

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu May 5 05:35:54 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +11 -5 lines
lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed May 4 03:41:14 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
Rename a lot of process flags.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Apr 2 22:15:03 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -1 lines
Oops.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Apr 2 21:32:54 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +22 -22 lines
Some stylistic cleanup.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Apr 2 08:42:59 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -3 lines
kill bogon

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Apr 2 08:04:26 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +14 -4 lines
change __syscall() handling so others can cut/paste it...

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Apr 2 03:52:15 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -1 lines
Need syscall.h.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Apr 2 03:51:37 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -4 lines
Implement __syscall().

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Mar 24 21:50:35 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +24 -21 lines
Small code clean up, and make the normal cases a few cycles faster.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Feb 15 07:18:46 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
kill warning

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Feb 15 06:59:33 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4 lines
add proc ptr

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Feb 15 06:49:03 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +10 -1 lines
SYSCALL_DEBUG stuff

Revision 1.14.2.20: download - view: text, markup, annotated - select for diffs
Tue Feb 1 19:08:20 1994 UTC (30 years, 10 months ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.19: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.19: +24 -11 lines
Revert profiling code.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Jan 11 19:12:07 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
CVS tags: magnum-base
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -4 lines
Deal with fusubail.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Jan 11 15:37:18 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +27 -28 lines
Synchronize with magnum branch.

Revision 1.14.2.19: download - view: text, markup, annotated - select for diffs
Tue Jan 11 15:36:35 1994 UTC (30 years, 11 months ago) by mycroft
Branches: magnum
CVS tags: magnum-reference
Diff to: previous 1.14.2.18: preferred, colored
Changes since revision 1.14.2.18: +57 -60 lines
Synchronize with main branch.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jan 9 22:53:16 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -6 lines
Use db_recover.  Print trap name when entering DDB.  Use trap_type and
trap_types like m68k.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Jan 4 00:15:28 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Fix two off-by-one errors.

Revision 1.14.2.18: download - view: text, markup, annotated - select for diffs
Tue Jan 4 00:07:29 1994 UTC (30 years, 11 months ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.17: preferred, colored
Changes since revision 1.14.2.17: +2 -2 lines
Fix two off-by-one errors.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Jan 3 16:21:54 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -1 lines
Inline all the [lr]cr[023]() `functions' in cpufunc.h.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Dec 20 17:16:47 1993 UTC (31 years ago) by ws
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -7 lines
Correct support for single stepping of syscalls and fpu emulation

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Dec 19 06:58:15 1993 UTC (31 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +235 -234 lines
Clean up trap handling and macroize interrupt entry and exit code.  From
magnum branch.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Dec 14 05:31:27 1993 UTC (31 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
Fold in most of the magnum vm changes.

Revision 1.14.2.17: download - view: text, markup, annotated - select for diffs
Sun Nov 14 05:19:22 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.16: preferred, colored
Changes since revision 1.14.2.16: +2 -2 lines
Remove some more gratuitous casting.

Revision 1.14.2.16: download - view: text, markup, annotated - select for diffs
Sun Nov 14 05:17:32 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.15: preferred, colored
Changes since revision 1.14.2.15: +2 -2 lines
Remove a bunch of gratuitous casting.

Revision 1.14.2.15: download - view: text, markup, annotated - select for diffs
Sat Nov 13 22:36:51 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.14: preferred, colored
Changes since revision 1.14.2.14: +31 -39 lines
Simplify some bits, and deal with curproc == NULL.

Revision 1.14.2.14: download - view: text, markup, annotated - select for diffs
Sat Nov 13 20:08:24 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.13: preferred, colored
Changes since revision 1.14.2.13: +5 -8 lines
Remove a redundant printf().

Revision 1.14.2.13: download - view: text, markup, annotated - select for diffs
Sat Nov 13 06:22:41 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.12: preferred, colored
Changes since revision 1.14.2.12: +32 -16 lines
Garbage collect some unusable constants.  Print trap name on fatal fault.

Revision 1.14.2.12: download - view: text, markup, annotated - select for diffs
Mon Nov 8 20:21:14 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.11: preferred, colored
Changes since revision 1.14.2.11: +2 -1 lines
Translate alignment faults to SIGBUS.

Revision 1.14.2.11: download - view: text, markup, annotated - select for diffs
Sat Nov 6 00:12:04 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.10: preferred, colored
Changes since revision 1.14.2.10: +2 -3 lines
Nuke bogus test I copied by accident into trapwrite().

Revision 1.14.2.10: download - view: text, markup, annotated - select for diffs
Fri Nov 5 23:57:50 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.9: preferred, colored
Changes since revision 1.14.2.9: +99 -77 lines
De-uglify a bit, and check for stack enlargement in trapwrite().

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Nov 5 23:18:51 1993 UTC (31 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -6 lines
don't use splclock()/splnone(), use splclock()/splx().
pointed out by david greenman.

Revision 1.14.2.9: download - view: text, markup, annotated - select for diffs
Wed Nov 3 21:35:38 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.8: preferred, colored
Changes since revision 1.14.2.8: +2 -2 lines
Update a comment to reflect reality.

Revision 1.14.2.8: download - view: text, markup, annotated - select for diffs
Tue Oct 26 11:59:12 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.7: preferred, colored
Changes since revision 1.14.2.7: +13 -28 lines
Remove bogus boundary test for kernel page faults.  Add some debugging code.

Revision 1.14.2.7: download - view: text, markup, annotated - select for diffs
Mon Oct 18 08:28:11 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.6: preferred, colored
Changes since revision 1.14.2.6: +9 -2 lines
Deal with SOWEUPC.

Revision 1.14.2.6: download - view: text, markup, annotated - select for diffs
Fri Oct 15 03:22:06 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.5: preferred, colored
Changes since revision 1.14.2.5: +8 -6 lines
Don't pass `code' (which is always 0) to isa_nmi().

Revision 1.14.2.5: download - view: text, markup, annotated - select for diffs
Wed Oct 13 02:22:01 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.4: preferred, colored
Changes since revision 1.14.2.4: +5 -1 lines
Increment event counters in trap() and syscall().

Revision 1.14.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 12 23:21:46 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.3: preferred, colored
Changes since revision 1.14.2.3: +1 -6 lines
Remove old profiling hook.

Revision 1.14.2.3: download - view: text, markup, annotated - select for diffs
Sun Oct 10 08:47:13 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.2: preferred, colored
Changes since revision 1.14.2.2: +7 -2 lines
#include cpufunc.h, and don't try to vm_fault() a page if pcb_onfault is set
to fusubail.  (The latter is a hack for [fs]uswintr.)

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Fri Sep 24 08:46:08 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.14.2.1: preferred, colored
Changes since revision 1.14.2.1: +77 -110 lines
Changes from trunk.
conf.c: Make strategy functions return void.  Also, we really only need
to declare swstrategy() once, not thrice.
disksubr.c: Strategy functions return void.
machdep.c: Add #ifdef DIAGNOSTIC around unexpected internal failure.
Enable PSL checks in sigreturn().
pmap.c: Add a XXXX.
trap.c: Move common return code from trap() and syscall() into new userret().

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:43:15 1993 UTC (31 years, 2 months ago) by brezak
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
Be sure to get sys/signal.h

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Sep 19 19:00:51 1993 UTC (31 years, 3 months ago) by brezak
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -1 lines
Changes for per-process/user settable LDT and full sigcontexts

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Sep 16 03:24:24 1993 UTC (31 years, 3 months ago) by brezak
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +24 -27 lines
Changes to use a trap frame for syscalls.

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 14 17:28:46 1993 UTC (31 years, 3 months ago) by mycroft
Branches: magnum
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +25 -35 lines
New i386 code.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Sep 4 01:29:24 1993 UTC (31 years, 3 months ago) by cgd
Branches: MAIN
Branch point for: magnum
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -3 lines
get rid of bogosities of the form "vm_maxsaddr + MAXSSIZ", and replace
them with USRSTACK.  the former was a hack by wfj to accomodate his screwy
execve() implementation.  the latter is a (minor) reversion to net/2.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Aug 2 23:19:18 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Put in a gratuitous cast to shut up GCC 2.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jul 28 02:20:59 1993 UTC (31 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +14 -4 lines
incorporate changes from 0-9-base to 0-9-ALPHA

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 22 10:12:27 1993 UTC (31 years, 4 months ago) by mycroft
Branches: netbsd-0-9
CVS tags: netbsd-0-9-patch-001, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +14 -4 lines
Do the Right Thing if we page fault in the page table.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Jul 12 13:53:36 1993 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-0-9-base
Branch point for: netbsd-0-9
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +9 -8 lines
Fix handling of bad syscall numbers.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Jul 8 04:01:13 1993 UTC (31 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -7 lines
get rid if wfj's stack limit check-disabling bogosities.  (his old
exec needed them.  stoopid...)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jun 27 05:54:40 1993 UTC (31 years, 5 months ago) by andrew
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Fixed typo.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jun 18 02:03:45 1993 UTC (31 years, 6 months ago) by brezak
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -2 lines
Use NNPX instead of NPX from npx.h for activating npx.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu May 27 16:44:25 1993 UTC (31 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -13 lines
kill the last copy{in,out} (and related functions) changes, because they
were broken...

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat May 22 08:00:04 1993 UTC (31 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
add rcsids to everything and clean up headers

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu May 20 14:33:47 1993 UTC (31 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -2 lines
do the correct thing for the "cpu" config definition, and require
options "MATH_EMULATE" for math emulation

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu May 13 21:39:38 1993 UTC (31 years, 7 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +13 -1 lines
copyin/copyout should now work.
ref: bugfiler 386BSD-0.1.2.3/sys.386bsd/5

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri May 7 07:10:59 1993 UTC (31 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +27 -2 lines
add counter for vmstat, and fix for bde's changes.  from pk patch 137

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Apr 10 12:04:42 1993 UTC (31 years, 8 months ago) by glass
Branches: MAIN
CVS tags: netbsd-alpha-1, netbsd-0-8
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -6 lines
fixed to be compliant, subservient, and to take advantage of the newly
hacked config(8)

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 9 months ago) by cgd
Branches: WFJ-920714
CVS tags: patchkit-0-2-2, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 9 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>