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


Default branch: MAIN


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

Arrange to update cached LWP credentials in userret() rather than during
syscall/trap entry, eliminating a test+branch on every syscall/trap.

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

Revision 1.308 / (download) - annotate - [select for diffs], Sat Aug 20 23:48:50 2022 UTC (19 months, 3 weeks ago) by riastradh
Branch: 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
Changes since 1.307: +3 -2 lines
Diff to previous 1.307 (colored)

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) - annotate - [select for diffs], Sat Sep 5 07:26:37 2020 UTC (3 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.306: +4 -4 lines
Diff to previous 1.306 (colored)

x86: rename PGEX_X -> PGEX_I

To match the x86 specification and the other OSes.

Revision 1.306 / (download) - annotate - [select for diffs], Tue Aug 11 04:30:16 2020 UTC (3 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.305: +28 -33 lines
Diff to previous 1.305 (colored)

- fix lcall test
- refactor all the TRAP_SIGDEBUG printfs and use hexdump like we did on
  amd64

Revision 1.305 / (download) - annotate - [select for diffs], Sat Aug 8 19:08:48 2020 UTC (3 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.304: +7 -11 lines
Diff to previous 1.304 (colored)

PR/55547: Dan Plassche: Fix BSD/OS binary emulation.
Centralize lcall sniffer and recognize the BSD/OS flavor.

Revision 1.304 / (download) - annotate - [select for diffs], Tue Jul 14 00:45:52 2020 UTC (3 years, 9 months ago) by yamaguchi
Branch: MAIN
Changes since 1.303: +8 -2 lines
Diff to previous 1.303 (colored)

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) - annotate - [select for diffs], Mon Apr 13 08:03:52 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.295.2.2: +6 -3 lines
Diff to previous 1.295.2.2 (colored) to branchpoint 1.295 (colored) next main 1.296 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.295.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:40 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.295.2.1: +2 -6 lines
Diff to previous 1.295.2.1 (colored) to branchpoint 1.295 (colored)

Merge changes from current as of 20200406

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

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

Revision 1.302 / (download) - annotate - [select for diffs], Sat Jul 13 17:04:21 2019 UTC (4 years, 9 months ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.301: +8 -5 lines
Diff to previous 1.301 (colored)

Use common code for SMEP/SMAP panic to print more information and
allow debugging.

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

Sync with HEAD

Revision 1.301 / (download) - annotate - [select for diffs], Wed May 29 14:28:37 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.300: +8 -6 lines
Diff to previous 1.300 (colored)

 Use PRIxREGISTER suggested by Kamil.

Revision 1.300 / (download) - annotate - [select for diffs], Sat Apr 6 03:06:25 2019 UTC (5 years ago) by thorpej
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.299: +4 -8 lines
Diff to previous 1.299 (colored)

Overhaul the API used to fetch and store individual memory cells in
userspace.  The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms.  The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

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

Welcome to NetBSD 8.99.37.

Revision 1.299 / (download) - annotate - [select for diffs], Fri Mar 8 08:12:39 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.298: +3 -3 lines
Diff to previous 1.298 (colored)

s/ the the / the /

Revision 1.298 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:32 2019 UTC (5 years, 2 months ago) by cherry
Branch: MAIN
Changes since 1.297: +6 -6 lines
Diff to previous 1.297 (colored)

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) - annotate - [select for diffs], Sun Feb 3 03:19:26 2019 UTC (5 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.296: +3 -2 lines
Diff to previous 1.296 (colored)

- 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) - annotate - [select for diffs], Tue Jul 31 15:57:11 2018 UTC (5 years, 8 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.287.6.1: +3 -3 lines
Diff to previous 1.287.6.1 (colored) to branchpoint 1.287 (colored) next main 1.288 (colored)

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) - annotate - [select for diffs], Sat Jul 28 04:37:34 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.293.2.1: +3 -2 lines
Diff to previous 1.293.2.1 (colored) to branchpoint 1.293 (colored) next main 1.294 (colored)

Sync with HEAD

Revision 1.296 / (download) - annotate - [select for diffs], Thu Jul 26 09:29:08 2018 UTC (5 years, 8 months ago) by maxv
Branch: 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
Changes since 1.295: +3 -2 lines
Diff to previous 1.295 (colored)

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) - annotate - [select for diffs], Mon May 21 04:36:00 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.293: +26 -2 lines
Diff to previous 1.293 (colored)

Sync with HEAD

Revision 1.295 / (download) - annotate - [select for diffs], Wed May 16 16:33:23 2018 UTC (5 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.294: +6 -2 lines
Diff to previous 1.294 (colored)

Fix compilation on Xen.

Revision 1.294 / (download) - annotate - [select for diffs], Wed May 16 08:16:36 2018 UTC (5 years, 11 months ago) by maxv
Branch: MAIN
Changes since 1.293: +22 -2 lines
Diff to previous 1.293 (colored)

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) - annotate - [select for diffs], Tue Feb 13 01:05:18 2018 UTC (6 years, 2 months ago) by christos
Branch: 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
Changes since 1.292: +3 -4 lines
Diff to previous 1.292 (colored)

Unconditionally print the trap like we do for amdt64 (Dimitris Karagkasidis)

Revision 1.292 / (download) - annotate - [select for diffs], Sat Jan 27 09:33:25 2018 UTC (6 years, 2 months ago) by maxv
Branch: MAIN
Changes since 1.291: +11 -2 lines
Diff to previous 1.291 (colored)

Add SMAP support for i386.

Revision 1.264.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:17 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.264.2.3: +136 -68 lines
Diff to previous 1.264.2.3 (colored) next main 1.265 (colored)

update from HEAD

Revision 1.291 / (download) - annotate - [select for diffs], Sun Sep 17 09:41:35 2017 UTC (6 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.290: +5 -5 lines
Diff to previous 1.290 (colored)

Remove the second argument from USERMODE and KERNELMODE, it is unused
now that we don't have vm86 anymore.

Revision 1.290 / (download) - annotate - [select for diffs], Tue Sep 12 14:10:49 2017 UTC (6 years, 7 months ago) by gson
Branch: MAIN
Changes since 1.289: +3 -3 lines
Diff to previous 1.289 (colored)

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) - annotate - [select for diffs], Mon Aug 28 17:51:40 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.273.2.4: +94 -27 lines
Diff to previous 1.273.2.4 (colored) to branchpoint 1.273 (colored) next main 1.274 (colored)

Sync with HEAD

Revision 1.289 / (download) - annotate - [select for diffs], Sat Aug 12 07:07:53 2017 UTC (6 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.288: +2 -9 lines
Diff to previous 1.288 (colored)

Remove vm86. Simplifies a number of critical places.

Pass 2.

Revision 1.262.8.2 / (download) - annotate - [select for diffs], Tue Aug 8 12:00:35 2017 UTC (6 years, 8 months ago) by martin
Branch: netbsd-6
Changes since 1.262.8.1: +23 -11 lines
Diff to previous 1.262.8.1 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)

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) - annotate - [select for diffs], Tue Aug 8 11:59:16 2017 UTC (6 years, 8 months ago) by martin
Branch: netbsd-6-1
Changes since 1.262.14.1: +23 -11 lines
Diff to previous 1.262.14.1 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)

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) - annotate - [select for diffs], Tue Aug 8 11:55:20 2017 UTC (6 years, 8 months ago) by martin
Branch: netbsd-6-0
Changes since 1.262.12.1: +23 -11 lines
Diff to previous 1.262.12.1 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)

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) - annotate - [select for diffs], Thu Jul 20 01:43:40 2017 UTC (6 years, 8 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.272.4.1: +24 -11 lines
Diff to previous 1.272.4.1 (colored) to branchpoint 1.272 (colored) next main 1.273 (colored)

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) - annotate - [select for diffs], Thu Jul 20 01:43:10 2017 UTC (6 years, 8 months ago) by snj
Branch: netbsd-7-1
CVS Tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Changes since 1.272.10.1: +24 -11 lines
Diff to previous 1.272.10.1 (colored) to branchpoint 1.272 (colored) next main 1.273 (colored)

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) - annotate - [select for diffs], Thu Jul 20 01:42:39 2017 UTC (6 years, 8 months ago) by snj
Branch: netbsd-7-0
Changes since 1.272.6.1: +24 -11 lines
Diff to previous 1.272.6.1 (colored) to branchpoint 1.272 (colored) next main 1.273 (colored)

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) - annotate - [select for diffs], Wed Jul 5 19:59:29 2017 UTC (6 years, 9 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.287: +24 -11 lines
Diff to previous 1.287 (colored)

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) - annotate - [select for diffs], Sat Jul 1 10:44:42 2017 UTC (6 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.287: +24 -11 lines
Diff to previous 1.287 (colored)

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) - annotate - [select for diffs], Fri Apr 21 16:53:28 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.281: +73 -7 lines
Diff to previous 1.281 (colored) next main 1.282 (colored)

Sync with HEAD

Revision 1.262.12.1 / (download) - annotate - [select for diffs], Sat Mar 25 17:20:07 2017 UTC (7 years ago) by snj
Branch: netbsd-6-0
Changes since 1.262: +3 -2 lines
Diff to previous 1.262 (colored)

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) - annotate - [select for diffs], Sat Mar 25 17:19:32 2017 UTC (7 years ago) by snj
Branch: netbsd-6-1
Changes since 1.262: +3 -2 lines
Diff to previous 1.262 (colored)

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) - annotate - [select for diffs], Sat Mar 25 17:18:25 2017 UTC (7 years ago) by snj
Branch: netbsd-6
Changes since 1.262: +3 -2 lines
Diff to previous 1.262 (colored)

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) - annotate - [select for diffs], Sat Mar 25 16:59:01 2017 UTC (7 years ago) by snj
Branch: netbsd-7-0
Changes since 1.272: +3 -2 lines
Diff to previous 1.272 (colored)

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) - annotate - [select for diffs], Sat Mar 25 16:58:25 2017 UTC (7 years ago) by snj
Branch: netbsd-7-1
Changes since 1.272: +3 -2 lines
Diff to previous 1.272 (colored)

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) - annotate - [select for diffs], Sat Mar 25 16:57:40 2017 UTC (7 years ago) by snj
Branch: netbsd-7
Changes since 1.272: +3 -2 lines
Diff to previous 1.272 (colored)

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) - annotate - [select for diffs], Mon Mar 20 06:57:14 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.276.2.2: +73 -7 lines
Diff to previous 1.276.2.2 (colored) to branchpoint 1.276 (colored) next main 1.277 (colored)

Sync with HEAD

Revision 1.287 / (download) - annotate - [select for diffs], Sat Mar 18 13:39:23 2017 UTC (7 years, 1 month ago) by maxv
Branch: 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
Changes since 1.286: +3 -2 lines
Diff to previous 1.286 (colored)

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) - annotate - [select for diffs], Tue Mar 14 07:02:53 2017 UTC (7 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.285: +13 -2 lines
Diff to previous 1.285 (colored)

Use frame_dump if TRAP_SIGDEBUG is enabled

This unbreaks the build of i386 ALL kernel.

Revision 1.285 / (download) - annotate - [select for diffs], Thu Mar 9 00:16:51 2017 UTC (7 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.284: +43 -6 lines
Diff to previous 1.284 (colored)

improve readability of TRAP_SIGDEBUG info.
also print the trapframe info like amd64 does.

Revision 1.284 / (download) - annotate - [select for diffs], Thu Feb 23 03:34:22 2017 UTC (7 years, 1 month ago) by kamil
Branch: MAIN
Changes since 1.283: +19 -6 lines
Diff to previous 1.283 (colored)

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) - annotate - [select for diffs], Fri Feb 17 01:14:31 2017 UTC (7 years, 2 months ago) by kamil
Branch: MAIN
Changes since 1.282: +3 -3 lines
Diff to previous 1.282 (colored)

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) - annotate - [select for diffs], Sun Feb 5 13:40:12 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.273.2.3: +9 -26 lines
Diff to previous 1.273.2.3 (colored) to branchpoint 1.273 (colored)

Sync with HEAD

Revision 1.282 / (download) - annotate - [select for diffs], Wed Jan 18 05:11:59 2017 UTC (7 years, 2 months ago) by kamil
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.281: +8 -4 lines
Diff to previous 1.281 (colored)

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) - annotate - [select for diffs], Sat Jan 7 08:56:18 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.276.2.1: +3 -24 lines
Diff to previous 1.276.2.1 (colored) to branchpoint 1.276 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.281 / (download) - annotate - [select for diffs], Tue Dec 13 10:54:27 2016 UTC (7 years, 4 months ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.280: +3 -24 lines
Diff to previous 1.280 (colored)

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) - annotate - [select for diffs], Fri Nov 4 14:49:01 2016 UTC (7 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.276: +2 -2 lines
Diff to previous 1.276 (colored)

Sync with HEAD

Revision 1.273.2.3 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:28 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.273.2.2: +7 -11 lines
Diff to previous 1.273.2.2 (colored) to branchpoint 1.273 (colored)

Sync with HEAD

Revision 1.280 / (download) - annotate - [select for diffs], Sun Sep 25 12:53:24 2016 UTC (7 years, 6 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004
Changes since 1.279: +2 -6 lines
Diff to previous 1.279 (colored)

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) - annotate - [select for diffs], Fri Sep 16 11:48:10 2016 UTC (7 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.278: +6 -2 lines
Diff to previous 1.278 (colored)

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) - annotate - [select for diffs], Thu Aug 11 15:03:23 2016 UTC (7 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.277: +1 -1 lines
Diff to previous 1.277 (colored)

This should be VM_MIN_KERNEL_ADDRESS, not KERNBASE.

Revision 1.277 / (download) - annotate - [select for diffs], Thu Aug 11 14:58:29 2016 UTC (7 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.276: +5 -9 lines
Diff to previous 1.276 (colored)

Reduce the diff, and typo.

Revision 1.273.2.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:36 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.273.2.1: +10 -2 lines
Diff to previous 1.273.2.1 (colored) to branchpoint 1.273 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.276 / (download) - annotate - [select for diffs], Wed Dec 16 18:54:03 2015 UTC (8 years, 4 months ago) by maxv
Branch: 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
Changes since 1.275: +10 -2 lines
Diff to previous 1.275 (colored)

Extend SMEP support to i386 (does not require PAE).

Revision 1.273.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:17:57 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.273: +30 -17 lines
Diff to previous 1.273 (colored)

Sync with HEAD

Revision 1.275 / (download) - annotate - [select for diffs], Fri Feb 27 17:45:52 2015 UTC (9 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.274: +4 -5 lines
Diff to previous 1.274 (colored)

fix TRAP_SIGDEBUG compilation

Revision 1.274 / (download) - annotate - [select for diffs], Fri Feb 27 16:41:12 2015 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.273: +31 -17 lines
Diff to previous 1.273 (colored)

sync with amd64: SIGBUS for mmap out of range.

Revision 1.273 / (download) - annotate - [select for diffs], Sat Oct 18 08:33:25 2014 UTC (9 years, 6 months ago) by snj
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.272: +3 -3 lines
Diff to previous 1.272 (colored)

src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.264.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:06 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.264.2.2: +3 -65 lines
Diff to previous 1.264.2.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.262.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:39:51 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.262.2.3: +3 -65 lines
Diff to previous 1.262.2.3 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.266.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:12 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.266: +3 -65 lines
Diff to previous 1.266 (colored) next main 1.267 (colored)

sync with head

Revision 1.272 / (download) - annotate - [select for diffs], Wed Mar 12 18:59:07 2014 UTC (10 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-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
Changes since 1.271: +3 -3 lines
Diff to previous 1.271 (colored)

Mark a variable diagnostic-only, from John D. Baker.

Revision 1.271 / (download) - annotate - [select for diffs], Wed Feb 12 23:24:09 2014 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.270: +2 -58 lines
Diff to previous 1.270 (colored)

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) - annotate - [select for diffs], Fri Feb 7 19:32:50 2014 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.269: +2 -4 lines
Diff to previous 1.269 (colored)

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) - annotate - [select for diffs], Sun Jan 26 19:16:17 2014 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.268: +2 -6 lines
Diff to previous 1.268 (colored)

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) - annotate - [select for diffs], Sun Jan 19 14:30:37 2014 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.267: +3 -3 lines
Diff to previous 1.267 (colored)

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) - annotate - [select for diffs], Sun Dec 8 20:45:30 2013 UTC (10 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.266: +3 -3 lines
Diff to previous 1.266 (colored)

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) - annotate - [select for diffs], Mon Feb 25 00:28:44 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.264.2.1: +8 -2 lines
Diff to previous 1.264.2.1 (colored)

resync with head

Revision 1.262.2.3 / (download) - annotate - [select for diffs], Wed Jan 16 05:32:59 2013 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.262.2.2: +8 -2 lines
Diff to previous 1.262.2.2 (colored) to branchpoint 1.262 (colored)

sync with (a bit old) head

Revision 1.266 / (download) - annotate - [select for diffs], Sat Dec 8 12:36:30 2012 UTC (11 years, 4 months ago) by kiyohara
Branch: 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
Changes since 1.265: +8 -2 lines
Diff to previous 1.265 (colored)

#ifdef - #endif-ed. NMCA, NISA, NNPX, NIOAPIC, LAPIC, MPBIOS and MULTIPROCESSOR.

Revision 1.264.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:01:27 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.264: +3 -20 lines
Diff to previous 1.264 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.262.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:19:50 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.262.2.1: +22 -35 lines
Diff to previous 1.262.2.1 (colored) to branchpoint 1.262 (colored)

sync with head

Revision 1.265 / (download) - annotate - [select for diffs], Wed Oct 3 18:58:32 2012 UTC (11 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.264: +3 -20 lines
Diff to previous 1.264 (colored)

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) - annotate - [select for diffs], Sat Jun 30 23:33:10 2012 UTC (11 years, 9 months ago) by rmind
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.263: +21 -17 lines
Diff to previous 1.263 (colored)

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) - annotate - [select for diffs], Tue Apr 17 00:06:29 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.262: +2 -20 lines
Diff to previous 1.262 (colored)

sync with head

Revision 1.262.6.1 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:30 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.262: +2 -20 lines
Diff to previous 1.262 (colored) next main 1.263 (colored)

sync to -current.

Revision 1.263 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:11 2012 UTC (12 years, 1 month ago) by rmind
Branch: 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
Changes since 1.262: +2 -20 lines
Diff to previous 1.262 (colored)

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

Revision 1.241.4.4 / (download) - annotate - [select for diffs], Sat Feb 4 16:57:58 2012 UTC (12 years, 2 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.241.4.3: +3 -3 lines
Diff to previous 1.241.4.3 (colored) to branchpoint 1.241 (colored) next main 1.242 (colored)

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

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

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

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

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

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

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

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

process_stoptrace: defer signal processing to userret, ok christos@

Revision 1.262 / (download) - annotate - [select for diffs], Wed Sep 7 09:24:55 2011 UTC (12 years, 7 months ago) by reinoud
Branch: 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
Changes since 1.261: +3 -3 lines
Diff to previous 1.261 (colored)

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) - annotate - [select for diffs], Mon Jun 6 09:05:50 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.260: +10 -47 lines
Diff to previous 1.260 (colored) next main 1.261 (colored)

Sync with HEAD.

Revision 1.241.4.1.4.1 / (download) - annotate - [select for diffs], Fri May 20 08:11:21 2011 UTC (12 years, 11 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.241.4.1: +71 -42 lines
Diff to previous 1.241.4.1 (colored) next main 1.241.4.2 (colored)

bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).

Revision 1.241.8.5 / (download) - annotate - [select for diffs], Mon May 2 22:49:56 2011 UTC (12 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.241.8.4: +10 -47 lines
Diff to previous 1.241.8.4 (colored) to branchpoint 1.241 (colored) next main 1.242 (colored)

Sync with head.

Revision 1.255.2.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:07 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.255.2.2: +8 -45 lines
Diff to previous 1.255.2.2 (colored) to branchpoint 1.255 (colored) next main 1.256 (colored)

sync with head

Revision 1.261 / (download) - annotate - [select for diffs], Sun Apr 3 22:29:26 2011 UTC (13 years ago) by dyoung
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.260: +10 -47 lines
Diff to previous 1.260 (colored)

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) - annotate - [select for diffs], Sat Mar 5 20:50:40 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.255.2.1: +10 -7 lines
Diff to previous 1.255.2.1 (colored) to branchpoint 1.255 (colored)

sync with head

Revision 1.241.8.4 / (download) - annotate - [select for diffs], Mon Jan 10 00:37:30 2011 UTC (13 years, 3 months ago) by jym
Branch: jym-xensuspend
Changes since 1.241.8.3: +3 -3 lines
Diff to previous 1.241.8.3 (colored) to branchpoint 1.241 (colored)

Sync with HEAD

Revision 1.260 / (download) - annotate - [select for diffs], Mon Dec 20 00:25:35 2010 UTC (13 years, 4 months ago) by matt
Branch: 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
Changes since 1.259: +3 -3 lines
Diff to previous 1.259 (colored)

Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits.  Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.

Revision 1.241.8.3 / (download) - annotate - [select for diffs], Sun Oct 24 22:48:02 2010 UTC (13 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.241.8.2: +108 -55 lines
Diff to previous 1.241.8.2 (colored) to branchpoint 1.241 (colored)

Sync with HEAD

Revision 1.253.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:44:37 2010 UTC (13 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.253.2.1: +9 -4 lines
Diff to previous 1.253.2.1 (colored) to branchpoint 1.253 (colored) next main 1.254 (colored)

Sync with HEAD.

Revision 1.235.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:52:12 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.235.4.4: +14 -8 lines
Diff to previous 1.235.4.4 (colored) to branchpoint 1.235 (colored) next main 1.236 (colored)

sync with head.

Revision 1.259 / (download) - annotate - [select for diffs], Sun Aug 8 18:13:54 2010 UTC (13 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.258: +4 -3 lines
Diff to previous 1.258 (colored)

Fix several panics that can be caused by applications using
bad segment register values with setcontext() or sigreturn().

Revision 1.258 / (download) - annotate - [select for diffs], Sun Jul 25 19:19:06 2010 UTC (13 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.257: +7 -5 lines
Diff to previous 1.257 (colored)

PR/43655: Taylor R Campbell: Incorrect siginfo code's for integer zero
divide and overflow.

Revision 1.241.4.1.2.2 / (download) - annotate - [select for diffs], Fri Jul 16 18:43:58 2010 UTC (13 years, 9 months ago) by riz
Branch: netbsd-5-0
Changes since 1.241.4.1.2.1: +6 -4 lines
Diff to previous 1.241.4.1.2.1 (colored) to branchpoint 1.241.4.1 (colored) next main 1.241.4.2 (colored)

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) - annotate - [select for diffs], Fri Jul 16 18:40:39 2010 UTC (13 years, 9 months ago) by riz
Branch: 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
Changes since 1.241.4.2: +6 -4 lines
Diff to previous 1.241.4.2 (colored) to branchpoint 1.241 (colored)

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) - annotate - [select for diffs], Sun May 30 05:16:54 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.255: +7 -4 lines
Diff to previous 1.255 (colored)

sync with head

Revision 1.241.4.1.2.1 / (download) - annotate - [select for diffs], Thu May 20 05:56:29 2010 UTC (13 years, 11 months ago) by snj
Branch: netbsd-5-0
Changes since 1.241.4.1: +70 -43 lines
Diff to previous 1.241.4.1 (colored)

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) - annotate - [select for diffs], Thu May 20 05:51:59 2010 UTC (13 years, 11 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RC3, netbsd-5-1-RC2
Changes since 1.241.4.1: +70 -43 lines
Diff to previous 1.241.4.1 (colored) to branchpoint 1.241 (colored)

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) - annotate - [select for diffs], Tue May 4 23:27:13 2010 UTC (13 years, 11 months ago) by jym
Branch: MAIN
Changes since 1.256: +4 -2 lines
Diff to previous 1.256 (colored)

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) - annotate - [select for diffs], Fri Apr 30 14:39:29 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.253: +41 -4 lines
Diff to previous 1.253 (colored)

Sync with HEAD.

Revision 1.256 / (download) - annotate - [select for diffs], Fri Apr 23 19:18:09 2010 UTC (13 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.255: +5 -4 lines
Diff to previous 1.255 (colored)

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) - annotate - [select for diffs], Thu Mar 11 15:02:29 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.235.4.3: +130 -71 lines
Diff to previous 1.235.4.3 (colored) to branchpoint 1.235 (colored)

sync with head

Revision 1.255 / (download) - annotate - [select for diffs], Mon Feb 22 06:42:14 2010 UTC (14 years, 1 month ago) by darran
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.254: +3 -2 lines
Diff to previous 1.254 (colored)

DTrace: missed the opt_dtrace.h include for these.

Revision 1.254 / (download) - annotate - [select for diffs], Sun Feb 21 02:11:40 2010 UTC (14 years, 1 month ago) by darran
Branch: MAIN
Changes since 1.253: +37 -2 lines
Diff to previous 1.253 (colored)

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) - annotate - [select for diffs], Sun Jan 17 22:21:18 2010 UTC (14 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.252: +42 -63 lines
Diff to previous 1.252 (colored)

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) - annotate - [select for diffs], Sun Jan 10 15:37:36 2010 UTC (14 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.251: +10 -3 lines
Diff to previous 1.251 (colored)

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) - annotate - [select for diffs], Sun Jan 10 15:21:36 2010 UTC (14 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.250: +33 -10 lines
Diff to previous 1.250 (colored)

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) - annotate - [select for diffs], Sat Nov 21 03:11:00 2009 UTC (14 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.249: +7 -6 lines
Diff to previous 1.249 (colored)

Use lwp_getpcb() on x86 MD code, clean from struct user usage.

Revision 1.249 / (download) - annotate - [select for diffs], Fri Nov 6 18:18:57 2009 UTC (14 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.248: +5 -4 lines
Diff to previous 1.248 (colored)

return_address(9) can be called from interrupt context; handle its
page faults appropriately.

Revision 1.241.8.2 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:22 2009 UTC (14 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.241.8.1: +101 -96 lines
Diff to previous 1.241.8.1 (colored) to branchpoint 1.241 (colored)

Sync with HEAD.

Revision 1.248 / (download) - annotate - [select for diffs], Mon Oct 5 19:04:14 2009 UTC (14 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.247: +36 -24 lines
Diff to previous 1.247 (colored)

Improve readability of trap() by extracting two subroutines,
trap_print() and check_dr0().

Revision 1.235.4.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:46:19 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.235.4.2: +67 -74 lines
Diff to previous 1.235.4.2 (colored) to branchpoint 1.235 (colored)

sync with head.

Revision 1.247 / (download) - annotate - [select for diffs], Wed Jul 29 18:47:15 2009 UTC (14 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.246: +64 -61 lines
Diff to previous 1.246 (colored)

Reduce the difference between i386 and amd64 trap handler.
No functional changes intended.

Revision 1.246 / (download) - annotate - [select for diffs], Wed Jul 29 17:16:56 2009 UTC (14 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.245: +3 -3 lines
Diff to previous 1.245 (colored)

Fix KASSERT(1);

Revision 1.245 / (download) - annotate - [select for diffs], Wed Jul 29 12:02:06 2009 UTC (14 years, 8 months ago) by cegger
Branch: MAIN
Changes since 1.244: +4 -14 lines
Diff to previous 1.244 (colored)

remove Xen2 support.
ok bouyer@

Revision 1.241.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:17:50 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.241: +32 -60 lines
Diff to previous 1.241 (colored)

Sync with HEAD.

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

Revision 1.235.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:11:16 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.235.4.1: +62 -78 lines
Diff to previous 1.235.4.1 (colored) to branchpoint 1.235 (colored)

sync with head.

Revision 1.241.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:08 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.241.2.1: +29 -46 lines
Diff to previous 1.241.2.1 (colored) to branchpoint 1.241 (colored) next main 1.242 (colored)

Sync with HEAD.

Revision 1.241.4.1 / (download) - annotate - [select for diffs], Fri Mar 27 17:25:15 2009 UTC (15 years ago) by msaitoh
Branch: 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
Changes since 1.241: +27 -42 lines
Diff to previous 1.241 (colored)

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) - annotate - [select for diffs], Thu Mar 19 02:59:00 2009 UTC (15 years, 1 month ago) by mrg
Branch: 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
Changes since 1.243: +27 -42 lines
Diff to previous 1.243 (colored)

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) - annotate - [select for diffs], Sat Mar 14 15:36:07 2009 UTC (15 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.242: +4 -6 lines
Diff to previous 1.242 (colored)

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) - annotate - [select for diffs], Tue Mar 3 18:28:59 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.241: +5 -16 lines
Diff to previous 1.241 (colored)

Sync with HEAD.

Revision 1.242 / (download) - annotate - [select for diffs], Tue Feb 24 06:03:54 2009 UTC (15 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.241: +5 -16 lines
Diff to previous 1.241 (colored)

- 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) - annotate - [select for diffs], Sat Jan 17 13:28:04 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.234.6.1: +18 -0 lines
Diff to previous 1.234.6.1 (colored) to branchpoint 1.234 (colored) next main 1.235 (colored)

Sync with HEAD.

Revision 1.240.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:15:49 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.240: +20 -2 lines
Diff to previous 1.240 (colored) next main 1.241 (colored)

Sync with HEAD.

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

Merge wrstuden-revivesa into HEAD.

Revision 1.237.2.4 / (download) - annotate - [select for diffs], Tue Jun 24 04:15:50 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.237.2.3: +4 -4 lines
Diff to previous 1.237.2.3 (colored) to branchpoint 1.237 (colored) next main 1.238 (colored)

Hand-merge files that didn't merge right in recent sync w/ current.

Revision 1.237.2.3 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:26 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.237.2.2: +12 -18 lines
Diff to previous 1.237.2.2 (colored) to branchpoint 1.237 (colored)

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

Revision 1.237.2.2 / (download) - annotate - [select for diffs], Sun Jun 22 18:12:02 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.237.2.1: +18 -2 lines
Diff to previous 1.237.2.1 (colored) to branchpoint 1.237 (colored)

Re-add cpu_upcall() and page fault code. i386 kernels now compile.
They don't boot, but that seems to be a consequence of current from the
day this branch was started.

Revision 1.235.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:04:47 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.235.2.1: +14 -20 lines
Diff to previous 1.235.2.1 (colored) to branchpoint 1.235 (colored) next main 1.236 (colored)

sync with head

Revision 1.234.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:17 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.234: +56 -33 lines
Diff to previous 1.234 (colored)

Sync with HEAD.

Revision 1.240 / (download) - annotate - [select for diffs], Sun Jun 1 21:25:16 2008 UTC (15 years, 10 months ago) by ad
Branch: 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
Changes since 1.239: +2 -4 lines
Diff to previous 1.239 (colored)

Make trap counters per-cpu, like syscalls.

Revision 1.239 / (download) - annotate - [select for diffs], Fri May 30 10:38:21 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.238: +10 -11 lines
Diff to previous 1.238 (colored)

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) - annotate - [select for diffs], Fri May 30 10:36:20 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.237: +6 -9 lines
Diff to previous 1.237 (colored)

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) - annotate - [select for diffs], Sun May 18 12:32:10 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.235: +38 -15 lines
Diff to previous 1.235 (colored)

sync with head.

Revision 1.235.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:22:34 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.235: +38 -15 lines
Diff to previous 1.235 (colored)

sync with head.

Revision 1.237.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:48:44 2008 UTC (15 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.237: +4 -2 lines
Diff to previous 1.237 (colored)

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

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

Revision 1.237 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:24 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.236: +2 -9 lines
Diff to previous 1.236 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.236 / (download) - annotate - [select for diffs], Mon Apr 28 18:17:40 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.235: +38 -8 lines
Diff to previous 1.235 (colored)

Make pagefaults in kernel mode preemption safe.

Revision 1.235 / (download) - annotate - [select for diffs], Mon Apr 14 09:42:50 2008 UTC (16 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.234: +8 -2 lines
Diff to previous 1.234 (colored)

trap: ignore T_ASTFLT if KVM86MODE.
revealed by the recent per-cpu runqueue change.

Revision 1.219.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:07 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.219.2.2: +9 -18 lines
Diff to previous 1.219.2.2 (colored) to branchpoint 1.219 (colored) next main 1.220 (colored)

sync with HEAD

Revision 1.223.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:38 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.223.2.2: +27 -44 lines
Diff to previous 1.223.2.2 (colored) to branchpoint 1.223 (colored) next main 1.224 (colored)

Sync with HEAD.

Revision 1.228.6.3 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:17 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.228.6.2: +6 -2 lines
Diff to previous 1.228.6.2 (colored) to branchpoint 1.228 (colored) next main 1.229 (colored)

Sync with HEAD.

Revision 1.204.4.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:37:05 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.204.4.6: +27 -44 lines
Diff to previous 1.204.4.6 (colored) to branchpoint 1.204 (colored) next main 1.205 (colored)

sync with head

Revision 1.234 / (download) - annotate - [select for diffs], Mon Jan 21 07:38:22 2008 UTC (16 years, 2 months ago) by dyoung
Branch: 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
Changes since 1.233: +6 -4 lines
Diff to previous 1.233 (colored)

Move the nmi_dispatch() call with respect to the #ifdef garbage so
that Xen kernels will compile again.

Revision 1.233 / (download) - annotate - [select for diffs], Mon Jan 21 02:56:13 2008 UTC (16 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.232: +4 -2 lines
Diff to previous 1.232 (colored)

Add primitive routines to establish NMI handlers on i386.

TBD: synchronize (dis)establishment of handlers.

Revision 1.228.6.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:14:21 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.228.6.1: +1 -14 lines
Diff to previous 1.228.6.1 (colored) to branchpoint 1.228 (colored)

Sync with HEAD

Revision 1.232 / (download) - annotate - [select for diffs], Wed Jan 16 09:37:08 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xeni386-base
Changes since 1.231: +3 -16 lines
Diff to previous 1.231 (colored)

Remove options MATH_EMULATE.

Revision 1.219.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:46:40 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.219.2.1: +73 -80 lines
Diff to previous 1.219.2.1 (colored) to branchpoint 1.219 (colored)

sync with HEAD

Revision 1.228.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:48:20 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.228: +21 -29 lines
Diff to previous 1.228 (colored)

Sync with HEAD

Revision 1.231 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:25 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.230: +3 -25 lines
Diff to previous 1.230 (colored)

Merge vmlocking2 to head.

Revision 1.230 / (download) - annotate - [select for diffs], Tue Jan 1 21:28:40 2008 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.229: +18 -3 lines
Diff to previous 1.229 (colored)

a simple performance monitor based profiler, inspired from linux oprofile.

Revision 1.229 / (download) - annotate - [select for diffs], Tue Jan 1 13:40:20 2008 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.228: +4 -5 lines
Diff to previous 1.228 (colored)

always consider T_NMI as !T_USER regardless of trapframe.

Revision 1.228.2.3 / (download) - annotate - [select for diffs], Wed Dec 26 17:55:05 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.228.2.2: +14 -27 lines
Diff to previous 1.228.2.2 (colored) to branchpoint 1.228 (colored) next main 1.229 (colored)

Back out the dumppcb changes for the time being.

Revision 1.228.2.2 / (download) - annotate - [select for diffs], Wed Dec 12 22:05:41 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.228.2.1: +27 -14 lines
Diff to previous 1.228.2.1 (colored) to branchpoint 1.228 (colored)

- 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) - annotate - [select for diffs], Sun Dec 9 19:35:23 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.218.8.5: +2 -4 lines
Diff to previous 1.218.8.5 (colored) to branchpoint 1.218 (colored) next main 1.219 (colored)

Sync with HEAD.

Revision 1.223.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:17:11 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.223.2.1: +56 -18 lines
Diff to previous 1.223.2.1 (colored) to branchpoint 1.223 (colored)

Sync with HEAD.

Revision 1.204.4.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:25:02 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.204.4.5: +56 -55 lines
Diff to previous 1.204.4.5 (colored) to branchpoint 1.204 (colored)

sync with head

Revision 1.228.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:02:50 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.228: +3 -25 lines
Diff to previous 1.228 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.228 / (download) - annotate - [select for diffs], Mon Dec 3 20:21:33 2007 UTC (16 years, 4 months ago) by ad
Branch: 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
Changes since 1.227: +2 -4 lines
Diff to previous 1.227 (colored)

Merge from vmlocking.

Revision 1.217.2.8 / (download) - annotate - [select for diffs], Mon Dec 3 19:03:31 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.217.2.7: +18 -6 lines
Diff to previous 1.217.2.7 (colored) to branchpoint 1.217 (colored) next main 1.218 (colored)

Sync with HEAD.

Revision 1.217.2.7 / (download) - annotate - [select for diffs], Mon Dec 3 18:36:47 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.217.2.6: +39 -47 lines
Diff to previous 1.217.2.6 (colored) to branchpoint 1.217 (colored)

Sync with HEAD.

Revision 1.218.8.5 / (download) - annotate - [select for diffs], Mon Dec 3 16:14:03 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.218.8.4: +56 -16 lines
Diff to previous 1.218.8.4 (colored) to branchpoint 1.218 (colored)

Sync with HEAD.

Revision 1.227 / (download) - annotate - [select for diffs], Sun Dec 2 16:37:58 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking-nbase
Changes since 1.226: +3 -5 lines
Diff to previous 1.226 (colored)

Don't clear ci_want_resched in MD code; it's done in mi_switch().

Revision 1.226 / (download) - annotate - [select for diffs], Thu Nov 29 09:53:33 2007 UTC (16 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.225: +38 -7 lines
Diff to previous 1.225 (colored)

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) - annotate - [select for diffs], Wed Nov 28 14:02:30 2007 UTC (16 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.224: +17 -6 lines
Diff to previous 1.224 (colored)

- merge {i386,xen}/i386/trap.c.
- add a comment about a hack for xen2.

Revision 1.218.8.4 / (download) - annotate - [select for diffs], Wed Nov 21 21:53:17 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.218.8.3: +2 -39 lines
Diff to previous 1.218.8.3 (colored) to branchpoint 1.218 (colored)

Sync with HEAD.

Revision 1.223.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:46:29 2007 UTC (16 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.223: +2 -39 lines
Diff to previous 1.223 (colored)

Sync with HEAD.

Revision 1.221.2.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:34:30 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.221.2.1: +0 -37 lines
Diff to previous 1.221.2.1 (colored) to branchpoint 1.221 (colored) next main 1.222 (colored)

Sync with HEAD

Revision 1.224 / (download) - annotate - [select for diffs], Thu Nov 15 19:18:33 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.223: +2 -39 lines
Diff to previous 1.223 (colored)

Remove support for 80386 level CPUs. PR port-i386/36163.

Revision 1.221.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 15:58:34 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.221: +3 -3 lines
Diff to previous 1.221 (colored)

Sync with HEAD

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

sync with HEAD

Revision 1.217.2.6 / (download) - annotate - [select for diffs], Thu Nov 1 21:23:38 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.217.2.5: +3 -7 lines
Diff to previous 1.217.2.5 (colored) to branchpoint 1.217 (colored)

trap

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

Revision 1.218.8.3 / (download) - annotate - [select for diffs], Sun Oct 28 20:10:38 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.218.8.2: +3 -3 lines
Diff to previous 1.218.8.2 (colored) to branchpoint 1.218 (colored)

Sync with HEAD.

Revision 1.204.4.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:26:41 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.204.4.4: +6 -6 lines
Diff to previous 1.204.4.4 (colored) to branchpoint 1.204 (colored)

sync with head.

Revision 1.223 / (download) - annotate - [select for diffs], Wed Oct 24 14:50:39 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.222: +3 -3 lines
Diff to previous 1.222 (colored)

Make ras_lookup() lockless.

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

Merge the ppcoea-renovation branch to HEAD.

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

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

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

Revision 1.217.2.5 / (download) - annotate - [select for diffs], Tue Oct 9 13:37:57 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.217.2.4: +5 -5 lines
Diff to previous 1.217.2.4 (colored) to branchpoint 1.217 (colored)

Sync with head.

Revision 1.219.4.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:34:54 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.219: +5 -5 lines
Diff to previous 1.219 (colored) next main 1.220 (colored)

sync with head.

Revision 1.217.10.2 / (download) - annotate - [select for diffs], Wed Oct 3 19:23:49 2007 UTC (16 years, 6 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.217.10.1: +6 -6 lines
Diff to previous 1.217.10.1 (colored) to branchpoint 1.217 (colored) next main 1.218 (colored)

Sync with HEAD

Revision 1.218.8.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:27:23 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.218.8.1: +5 -5 lines
Diff to previous 1.218.8.1 (colored) to branchpoint 1.218 (colored)

Sync with HEAD.

Revision 1.221 / (download) - annotate - [select for diffs], Thu Sep 27 22:43:15 2007 UTC (16 years, 6 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, ppcoea-renovation-base
Branch point for: bouyer-xenamd64
Changes since 1.220: +3 -3 lines
Diff to previous 1.220 (colored)

Fix DEBUG builds and use %lx to print vaddr_t.

Revision 1.220 / (download) - annotate - [select for diffs], Wed Sep 26 19:48:37 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.219: +4 -4 lines
Diff to previous 1.219 (colored)

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) - annotate - [select for diffs], Mon Sep 3 14:26:45 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.204.4.3: +21 -14 lines
Diff to previous 1.204.4.3 (colored) to branchpoint 1.204 (colored)

sync with head.

Revision 1.217.2.4 / (download) - annotate - [select for diffs], Thu Aug 23 19:28:14 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.217.2.3: +2 -13 lines
Diff to previous 1.217.2.3 (colored) to branchpoint 1.217 (colored)

- 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) - annotate - [select for diffs], Mon Aug 20 18:38:16 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.217.2.2: +3 -3 lines
Diff to previous 1.217.2.2 (colored) to branchpoint 1.217 (colored)

Sync with HEAD.

Revision 1.218.8.1 / (download) - annotate - [select for diffs], Thu Aug 16 11:02:20 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.218: +3 -3 lines
Diff to previous 1.218 (colored)

Sync with HEAD.

Revision 1.218.4.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:47:25 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.218: +3 -3 lines
Diff to previous 1.218 (colored) next main 1.219 (colored)

Sync with HEAD.

Revision 1.219 / (download) - annotate - [select for diffs], Fri Aug 10 22:38:03 2007 UTC (16 years, 8 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap, matt-armv6
Changes since 1.218: +3 -3 lines
Diff to previous 1.218 (colored)

Use __arraycount().

Revision 1.217.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:00:04 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.217: +16 -9 lines
Diff to previous 1.217 (colored) next main 1.218 (colored)

Sync with head.

Revision 1.217.2.2 / (download) - annotate - [select for diffs], Sun May 27 12:27:33 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.217.2.1: +16 -9 lines
Diff to previous 1.217.2.1 (colored) to branchpoint 1.217 (colored)

Sync with head.

Revision 1.217.10.1 / (download) - annotate - [select for diffs], Tue May 22 17:27:00 2007 UTC (16 years, 10 months ago) by matt
Branch: ppcoea-renovation
Changes since 1.217: +16 -9 lines
Diff to previous 1.217 (colored)

Update to HEAD.

Revision 1.218 / (download) - annotate - [select for diffs], Thu May 17 14:51:21 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.217: +16 -9 lines
Diff to previous 1.217 (colored)

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) - annotate - [select for diffs], Tue Mar 13 17:50:24 2007 UTC (17 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.217: +2 -12 lines
Diff to previous 1.217 (colored)

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

Revision 1.216.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:48:24 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.216.2.1: +6 -6 lines
Diff to previous 1.216.2.1 (colored) to branchpoint 1.216 (colored) next main 1.217 (colored)

Sync with HEAD.

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

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

Revision 1.204.4.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:06:59 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.204.4.2: +28 -51 lines
Diff to previous 1.204.4.2 (colored) to branchpoint 1.204 (colored)

sync with head.

Revision 1.216.2.1 / (download) - annotate - [select for diffs], Sat Feb 17 10:30:48 2007 UTC (17 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.216: +16 -9 lines
Diff to previous 1.216 (colored)

- separate context switching and thread scheduling.
- introduce idle lwp.
- change some related MD/MI interfaces and implement i386 version.

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

Merge newlock2 to head.

Revision 1.213.4.7 / (download) - annotate - [select for diffs], Tue Jan 30 13:49:35 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.213.4.6: +3 -21 lines
Diff to previous 1.213.4.6 (colored) to branchpoint 1.213 (colored) next main 1.214 (colored)

Remove support for SA. Ok core@.

Revision 1.213.4.6 / (download) - annotate - [select for diffs], Fri Jan 12 01:00:50 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.213.4.5: +6 -5 lines
Diff to previous 1.213.4.5 (colored) to branchpoint 1.213 (colored)

Sync with head.

Revision 1.213.4.5 / (download) - annotate - [select for diffs], Thu Jan 11 22:22:57 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.213.4.4: +19 -16 lines
Diff to previous 1.213.4.4 (colored) to branchpoint 1.213 (colored)

Checkpoint work in progress.

Revision 1.215 / (download) - annotate - [select for diffs], Sun Jan 7 20:16:14 2007 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.214: +6 -5 lines
Diff to previous 1.214 (colored)

support kvm68 is MP systems. From Pierre Pronchery

Revision 1.204.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:46:11 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.204.4.1: +8 -5 lines
Diff to previous 1.204.4.1 (colored) to branchpoint 1.204 (colored)

sync with head.

Revision 1.213.4.4 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:41 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.213.4.3: +4 -4 lines
Diff to previous 1.213.4.3 (colored) to branchpoint 1.213 (colored)

Checkpoint work in progress.

Revision 1.213.4.3 / (download) - annotate - [select for diffs], Sat Nov 18 21:29:19 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.213.4.2: +4 -2 lines
Diff to previous 1.213.4.2 (colored) to branchpoint 1.213 (colored)

Sync with head.

Revision 1.213.4.2 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:33 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.213.4.1: +17 -22 lines
Diff to previous 1.213.4.1 (colored) to branchpoint 1.213 (colored)

Checkpoint work in progress.

Revision 1.213.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:04:44 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.213: +4 -2 lines
Diff to previous 1.213 (colored) next main 1.214 (colored)

sync with head

Revision 1.213.4.1 / (download) - annotate - [select for diffs], Sat Oct 21 13:43:51 2006 UTC (17 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.213: +6 -10 lines
Diff to previous 1.213 (colored)

- Remove sched_lock assertion.
- Update for need_proftick() change.

Revision 1.214 / (download) - annotate - [select for diffs], Fri Sep 29 14:48:15 2006 UTC (17 years, 6 months ago) by christos
Branch: 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
Changes since 1.213: +4 -2 lines
Diff to previous 1.213 (colored)

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) - annotate - [select for diffs], Sat Sep 9 02:40:07 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.207: +12 -8 lines
Diff to previous 1.207 (colored) next main 1.208 (colored)

sync with head

Revision 1.207.8.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:41:54 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.207.8.2: +6 -5 lines
Diff to previous 1.207.8.2 (colored) to branchpoint 1.207 (colored) next main 1.208 (colored)

sync with head

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

Use the LWP cached credentials where sane.

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

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

Revision 1.204.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:52:19 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.204: +54 -7 lines
Diff to previous 1.204 (colored)

sync with head.

Revision 1.207.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:34:52 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.207.6.1: +5 -4 lines
Diff to previous 1.207.6.1 (colored) to branchpoint 1.207 (colored) next main 1.208 (colored)

Sync with head.

Revision 1.208.2.1 / (download) - annotate - [select for diffs], Wed May 24 15:47:58 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.208: +7 -4 lines
Diff to previous 1.208 (colored) next main 1.209 (colored)

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

Revision 1.207.8.2 / (download) - annotate - [select for diffs], Wed May 24 10:56:52 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.207.8.1: +7 -4 lines
Diff to previous 1.207.8.1 (colored) to branchpoint 1.207 (colored)

sync with head.

Revision 1.211 / (download) - annotate - [select for diffs], Sun May 14 21:55:38 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.210: +5 -4 lines
Diff to previous 1.210 (colored)

integrate kauth.

Revision 1.207.10.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:25 2006 UTC (17 years, 11 months ago) by christos
Branch: elad-kernelauth
Changes since 1.207.10.2: +3 -2 lines
Diff to previous 1.207.10.2 (colored) to branchpoint 1.207 (colored) next main 1.208 (colored)

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

Approved by core.

Revision 1.207.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:37:33 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.207: +7 -5 lines
Diff to previous 1.207 (colored)

Sync with head.

Revision 1.207.10.2 / (download) - annotate - [select for diffs], Wed Apr 19 02:32:45 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.207.10.1: +7 -5 lines
Diff to previous 1.207.10.1 (colored) to branchpoint 1.207 (colored)

sync with head - hopefully this will work

Revision 1.210 / (download) - annotate - [select for diffs], Fri Apr 14 22:55:32 2006 UTC (18 years ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.209: +3 -2 lines
Diff to previous 1.209 (colored)

Coverity CID 1096: l cannot be NULL for USER traps. Add KASSERT for it.

Revision 1.209 / (download) - annotate - [select for diffs], Fri Apr 14 22:53:53 2006 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.208: +3 -2 lines
Diff to previous 1.208 (colored)

Coverity CID 1095: p cannot be NULL for user traps. Add KASSERT.

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

sync with head.

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

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

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

Adapt to kernel authorization KPI.

I expect *some* lossage here...

Revision 1.207 / (download) - annotate - [select for diffs], Sat Dec 24 20:07:10 2005 UTC (18 years, 3 months ago) by perry
Branch: 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
Changes since 1.206: +4 -4 lines
Diff to previous 1.206 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.206 / (download) - annotate - [select for diffs], Sun Dec 11 12:17:41 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.205: +2 -2 lines
Diff to previous 1.205 (colored)

merge ktrace-lwp.

Revision 1.182.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 13:56:47 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.182.2.6: +46 -2 lines
Diff to previous 1.182.2.6 (colored) next main 1.183 (colored)

Sync with HEAD. Here we go again...

Revision 1.204.2.1 / (download) - annotate - [select for diffs], Tue Oct 11 21:04:19 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, 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
Changes since 1.204: +46 -2 lines
Diff to previous 1.204 (colored) next main 1.205 (colored)

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) - annotate - [select for diffs], Tue Oct 11 17:14:45 2005 UTC (18 years, 6 months ago) by riz
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1
Changes since 1.200: +46 -2 lines
Diff to previous 1.200 (colored) next main 1.201 (colored)

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) - annotate - [select for diffs], Tue Oct 11 17:14:37 2005 UTC (18 years, 6 months ago) by riz
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-3-RELEASE
Changes since 1.200: +46 -2 lines
Diff to previous 1.200 (colored) next main 1.201 (colored)

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) - annotate - [select for diffs], Mon Oct 10 21:08:01 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.204: +46 -2 lines
Diff to previous 1.204 (colored)

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) - annotate - [select for diffs], Fri Apr 29 11:28:13 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.202: +8 -17 lines
Diff to previous 1.202 (colored) next main 1.203 (colored)

sync with -current

Revision 1.202.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:02 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.202: +8 -17 lines
Diff to previous 1.202 (colored) next main 1.203 (colored)

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

Revision 1.182.2.6 / (download) - annotate - [select for diffs], Fri Mar 4 16:38:40 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.182.2.5: +8 -17 lines
Diff to previous 1.182.2.5 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.204 / (download) - annotate - [select for diffs], Fri Mar 4 06:01:52 2005 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: yamt-lazymbuf, netbsd-3
Changes since 1.203: +3 -3 lines
Diff to previous 1.203 (colored)

Copyright maintenance.

Revision 1.203 / (download) - annotate - [select for diffs], Fri Mar 4 06:01:21 2005 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.202: +7 -16 lines
Diff to previous 1.202 (colored)

Minor cleanup in ksiginfo setup code.

Revision 1.182.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:16:47 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.182.2.4: +2 -2 lines
Diff to previous 1.182.2.4 (colored)

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.182.2.3 / (download) - annotate - [select for diffs], Fri Sep 3 12:44:47 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.182.2.2: +6 -33 lines
Diff to previous 1.182.2.2 (colored)

Sync with HEAD

Revision 1.202 / (download) - annotate - [select for diffs], Sat Aug 28 17:53:01 2004 UTC (19 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.201: +6 -33 lines
Diff to previous 1.201 (colored)

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

Revision 1.182.2.2 / (download) - annotate - [select for diffs], Wed Aug 25 06:57:19 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.182.2.1: +6 -6 lines
Diff to previous 1.182.2.1 (colored)

Sync with HEAD.

Revision 1.201 / (download) - annotate - [select for diffs], Fri Aug 20 21:38:35 2004 UTC (19 years, 8 months ago) by nathanw
Branch: MAIN
Changes since 1.200: +6 -6 lines
Diff to previous 1.200 (colored)

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) - annotate - [select for diffs], Tue Aug 3 10:35:52 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.182: +187 -91 lines
Diff to previous 1.182 (colored)

Sync with HEAD

Revision 1.200 / (download) - annotate - [select for diffs], Sun Mar 14 01:08:48 2004 UTC (20 years, 1 month ago) by cl
Branch: 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
Changes since 1.199: +3 -4 lines
Diff to previous 1.199 (colored)

add kernel part of concurrency support for SA on MP systems
- move per VP data into struct sadata_vp referenced from l->l_savp
  * VP id
  * lock on VP data
  * LWP on VP
  * recently blocked LWP on VP
  * queue of LWPs woken which ran on this VP before sleep
  * faultaddr
  * LWP cache for upcalls
  * upcall queue
- add current concurrency and requested concurrency variables
- make process exit run LWP on all VPs
- make signal delivery consider all VPs
- make timer events consider all VPs
- add sa_newsavp to allocate new sadata_vp structure
- add sa_increaseconcurrency to prepare new VP
- make sys_sa_setconcurrency request new VP or wakeup idle VP
- make sa_yield lower current concurrency
- set sa_cpu = VP id in upcalls
- maintain cached LWPs per VP

Revision 1.199 / (download) - annotate - [select for diffs], Thu Mar 11 11:42:04 2004 UTC (20 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.198: +13 -2 lines
Diff to previous 1.198 (colored)

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) - annotate - [select for diffs], Thu Mar 11 11:39:25 2004 UTC (20 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.197: +13 -20 lines
Diff to previous 1.197 (colored)

update trap(), resume_iret and friends to match with
the recent version of INTRFASTEXIT.
might be related to PR/24711.

Revision 1.197 / (download) - annotate - [select for diffs], Fri Feb 27 21:37:48 2004 UTC (20 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.196: +2 -3 lines
Diff to previous 1.196 (colored)

Backout (part of) rev. 1.187, since the control no longer fall through.

Revision 1.196 / (download) - annotate - [select for diffs], Fri Feb 20 17:35:01 2004 UTC (20 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.195: +15 -3 lines
Diff to previous 1.195 (colored)

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) - annotate - [select for diffs], Thu Feb 19 17:02:44 2004 UTC (20 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.194: +8 -2 lines
Diff to previous 1.194 (colored)

signal SIGSEGV/SEGV_ACCERR if non-executable stack is jumped to

Revision 1.194 / (download) - annotate - [select for diffs], Tue Nov 4 10:33:15 2003 UTC (20 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.193: +3 -3 lines
Diff to previous 1.193 (colored)

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) - annotate - [select for diffs], Mon Oct 27 14:11:47 2003 UTC (20 years, 5 months ago) by junyoung
Branch: MAIN
Changes since 1.192: +3 -3 lines
Diff to previous 1.192 (colored)

Nuke __P().

Revision 1.192 / (download) - annotate - [select for diffs], Sat Oct 25 19:38:18 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.191: +4 -4 lines
Diff to previous 1.191 (colored)

Remove bogus initializers.

Revision 1.191 / (download) - annotate - [select for diffs], Sat Oct 25 19:37:47 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.190: +4 -2 lines
Diff to previous 1.190 (colored)

Add a missing default.

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

Fix uninitialized variable warnings

Revision 1.189 / (download) - annotate - [select for diffs], Wed Oct 8 00:28:41 2003 UTC (20 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.188: +9 -9 lines
Diff to previous 1.188 (colored)

* Shuffle some data structures so, and add a flags word to ksiginfo_t.
  Right now the only flag is used to indicate if a ksiginfo_t is a
  result of a trap.  Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap.  Expands to 0 if the ksiginfo_t was
  not the result of a trap.  This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
  Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
  the case of non-trap-generated signals that have a > 0 si_code.

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

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

Revision 1.188 / (download) - annotate - [select for diffs], Tue Sep 16 13:57:47 2003 UTC (20 years, 7 months ago) by cl
Branch: MAIN
Changes since 1.187: +11 -3 lines
Diff to previous 1.187 (colored)

add MD part of SA/pthread pagefault handling on i386

Revision 1.187 / (download) - annotate - [select for diffs], Fri Sep 12 23:20:26 2003 UTC (20 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.186: +4 -3 lines
Diff to previous 1.186 (colored)

Set si_code for T_PROTFLT|T_USER. Pointed out by enamicode.

Revision 1.186 / (download) - annotate - [select for diffs], Sat Sep 6 22:08:15 2003 UTC (20 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.185: +95 -32 lines
Diff to previous 1.185 (colored)

SA_SIGINFO changes.

Revision 1.185 / (download) - annotate - [select for diffs], Sun Aug 24 17:52:32 2003 UTC (20 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.184: +8 -2 lines
Diff to previous 1.184 (colored)

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) - annotate - [select for diffs], Wed Aug 20 21:48:43 2003 UTC (20 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.183: +40 -40 lines
Diff to previous 1.183 (colored)

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) - annotate - [select for diffs], Thu Aug 7 16:27:56 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.182: +3 -7 lines
Diff to previous 1.182 (colored)

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

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

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

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

Revision 1.181 / (download) - annotate - [select for diffs], Wed May 21 23:47:55 2003 UTC (20 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.180: +3 -3 lines
Diff to previous 1.180 (colored)

tweak previous; use '%#x' instead of '0x%x' (and the lx equivalents)

Revision 1.180 / (download) - annotate - [select for diffs], Wed May 21 16:48:34 2003 UTC (20 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.179: +3 -3 lines
Diff to previous 1.179 (colored)

Prefix a hex error number with "0x".

Revision 1.179 / (download) - annotate - [select for diffs], Sun May 11 15:19:20 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.178: +2 -10 lines
Diff to previous 1.178 (colored)

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) - annotate - [select for diffs], Wed Feb 26 21:28:24 2003 UTC (21 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.177: +4 -4 lines
Diff to previous 1.177 (colored)

Adapt for move of files to arch/x86.

Revision 1.177 / (download) - annotate - [select for diffs], Fri Jan 17 23:10:32 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.176: +82 -40 lines
Diff to previous 1.176 (colored)

Merge the nathanw_sa branch.

Revision 1.154.2.21 / (download) - annotate - [select for diffs], Tue Jan 7 22:12:23 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.154.2.20: +3 -3 lines
Diff to previous 1.154.2.20 (colored) next main 1.155 (colored)

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

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

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

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

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

Revision 1.154.2.20 / (download) - annotate - [select for diffs], Wed Dec 11 13:50:18 2002 UTC (21 years, 4 months ago) by martin
Branch: nathanw_sa
Changes since 1.154.2.19: +4 -4 lines
Diff to previous 1.154.2.19 (colored)

KERNEL_PROC_LOCK takes a lwp, not a proc.

Revision 1.154.2.19 / (download) - annotate - [select for diffs], Wed Dec 11 06:00:58 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.154.2.18: +9 -7 lines
Diff to previous 1.154.2.18 (colored)

Sync with HEAD.

Revision 1.154.2.18 / (download) - annotate - [select for diffs], Tue Dec 3 23:21:20 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.17: +4 -2 lines
Diff to previous 1.154.2.17 (colored)

Unlock the kernel lock in startlwp() before returning to userland.

Revision 1.154.2.17 / (download) - annotate - [select for diffs], Mon Nov 25 21:41:13 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.16: +3 -2 lines
Diff to previous 1.154.2.16 (colored)

Unlock the kernel lock in upcallret().

Revision 1.176 / (download) - annotate - [select for diffs], Fri Nov 22 15:23:44 2002 UTC (21 years, 4 months ago) by fvdl
Branch: 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
Changes since 1.175: +7 -7 lines
Diff to previous 1.175 (colored)

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) - annotate - [select for diffs], Thu Nov 14 04:31:51 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.15: +6 -6 lines
Diff to previous 1.154.2.15 (colored)

LWPify multiprocessor code

Revision 1.175 / (download) - annotate - [select for diffs], Tue Nov 12 11:51:54 2002 UTC (21 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.174: +4 -2 lines
Diff to previous 1.174 (colored)

The kernel lock must be held around ADDUPROF.

Revision 1.154.2.15 / (download) - annotate - [select for diffs], Mon Nov 11 21:59:11 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.14: +10 -8 lines
Diff to previous 1.154.2.14 (colored)

Catch up to -current

Revision 1.174 / (download) - annotate - [select for diffs], Mon Nov 11 13:54:28 2002 UTC (21 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.173: +8 -8 lines
Diff to previous 1.173 (colored)

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) - annotate - [select for diffs], Thu Oct 31 22:32:40 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.172: +3 -3 lines
Diff to previous 1.172 (colored)

constify trap_type[]

Revision 1.172 / (download) - annotate - [select for diffs], Thu Oct 31 22:24:42 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.171: +5 -3 lines
Diff to previous 1.171 (colored)

update trap_type[] according to include/trap.h contents

Revision 1.154.2.14 / (download) - annotate - [select for diffs], Fri Oct 18 02:37:51 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.13: +93 -11 lines
Diff to previous 1.154.2.13 (colored)

Catch up to -current.

Revision 1.161.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:33:26 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.161.2.3: +66 -12 lines
Diff to previous 1.161.2.3 (colored) to branchpoint 1.161 (colored) next main 1.162 (colored)

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

Revision 1.171 / (download) - annotate - [select for diffs], Sat Oct 5 21:21:05 2002 UTC (21 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge
Changes since 1.170: +31 -3 lines
Diff to previous 1.170 (colored)

Add wrapper for trap() to be used for traps that come in via a TSS.

Revision 1.170 / (download) - annotate - [select for diffs], Tue Oct 1 12:57:01 2002 UTC (21 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.169: +67 -13 lines
Diff to previous 1.169 (colored)

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) - annotate - [select for diffs], Fri Sep 27 15:36:10 2002 UTC (21 years, 6 months ago) by provos
Branch: MAIN
Changes since 1.168: +3 -3 lines
Diff to previous 1.168 (colored)

remove trailing \n in panic().  approved perry.

Revision 1.154.2.13 / (download) - annotate - [select for diffs], Tue Sep 17 21:15:09 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.12: +8 -1 lines
Diff to previous 1.154.2.12 (colored)

Catch up to -current.

Revision 1.161.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:36:23 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.161.2.2: +41 -4 lines
Diff to previous 1.161.2.2 (colored) to branchpoint 1.161 (colored)

sync kqueue branch with HEAD

Revision 1.134.2.24 / (download) - annotate - [select for diffs], Sat Aug 31 20:31:35 2002 UTC (21 years, 7 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.23: +10 -3 lines
Diff to previous 1.134.2.23 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored)

SMP branch resync.  Mostly RAS support.

Revision 1.165.8.2 / (download) - annotate - [select for diffs], Sat Aug 31 13:44:55 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.165.8.1: +10 -3 lines
Diff to previous 1.165.8.1 (colored) to branchpoint 1.165 (colored) next main 1.166 (colored)

catch up with -current.

Revision 1.168 / (download) - annotate - [select for diffs], Wed Aug 28 09:47:17 2002 UTC (21 years, 7 months ago) by gmcgarry
Branch: MAIN
CVS Tags: sommerfeld_i386mpnext, sommerfeld_i386mpbase_1, gehenna-devsw-base
Changes since 1.167: +10 -3 lines
Diff to previous 1.167 (colored)

RAS support for i386.

Revision 1.134.2.23 / (download) - annotate - [select for diffs], Mon Aug 19 01:32:44 2002 UTC (21 years, 8 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.22: +3 -0 lines
Diff to previous 1.134.2.22 (colored) to branchpoint 1.134 (colored)

Booby-trap KVM86 so it's clear what needs work.

Revision 1.134.2.22 / (download) - annotate - [select for diffs], Mon Aug 19 01:22:34 2002 UTC (21 years, 8 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.21: +34 -3 lines
Diff to previous 1.134.2.21 (colored) to branchpoint 1.134 (colored)

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) - annotate - [select for diffs], Thu Aug 1 02:42:08 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.11: +33 -3 lines
Diff to previous 1.154.2.11 (colored)

Catch up to -current.

Revision 1.165.8.1 / (download) - annotate - [select for diffs], Tue Jul 16 08:29:42 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.165: +33 -3 lines
Diff to previous 1.165 (colored)

catch up with -current.

Revision 1.154.2.11 / (download) - annotate - [select for diffs], Fri Jul 12 01:39:33 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.10: +2 -3 lines
Diff to previous 1.154.2.10 (colored)

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

Revision 1.167 / (download) - annotate - [select for diffs], Sun Jul 7 13:24:36 2002 UTC (21 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.166: +17 -3 lines
Diff to previous 1.166 (colored)

call kvm86's GPF handler

Revision 1.166 / (download) - annotate - [select for diffs], Wed Jul 3 02:46:15 2002 UTC (21 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.165: +18 -2 lines
Diff to previous 1.165 (colored)

add KSTACK_CHECK_DR0.

Revision 1.154.2.10 / (download) - annotate - [select for diffs], Tue Jul 2 21:02:16 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.9: +2 -9 lines
Diff to previous 1.154.2.9 (colored)

Remove some debugging printf's of mine.

Revision 1.154.2.9 / (download) - annotate - [select for diffs], Mon Jun 24 22:05:07 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.8: +9 -9 lines
Diff to previous 1.154.2.8 (colored)

Curproc->curlwp renaming.

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

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

Revision 1.134.2.21 / (download) - annotate - [select for diffs], Tue May 21 05:40:21 2002 UTC (21 years, 11 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
CVS Tags: i386mp_plus16_stable
Changes since 1.134.2.20: +6 -3 lines
Diff to previous 1.134.2.20 (colored) to branchpoint 1.134 (colored)

fetch cr2 (faulting address) before attempting to lock, in case that
lock becomes a sleep lock some day..

Revision 1.161.2.2 / (download) - annotate - [select for diffs], Sat Mar 16 15:58:16 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.161.2.1: +12 -11 lines
Diff to previous 1.161.2.1 (colored) to branchpoint 1.161 (colored)

Catch up with -current.

Revision 1.154.2.8 / (download) - annotate - [select for diffs], Thu Feb 28 04:10:18 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.7: +12 -11 lines
Diff to previous 1.154.2.7 (colored)

Catch up to -current.

Revision 1.134.2.20 / (download) - annotate - [select for diffs], Sun Feb 24 00:17:45 2002 UTC (22 years, 1 month ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.19: +12 -12 lines
Diff to previous 1.134.2.19 (colored) to branchpoint 1.134 (colored)

Resynch with mainline.

Revision 1.165 / (download) - annotate - [select for diffs], Mon Feb 18 15:58:02 2002 UTC (22 years, 2 months ago) by simonb
Branch: 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
Changes since 1.164: +4 -3 lines
Diff to previous 1.164 (colored)

Fix a null pointer dereference if curproc == NULL.
Fixes PR port-i386/15638.

Revision 1.164 / (download) - annotate - [select for diffs], Sat Feb 16 16:22:04 2002 UTC (22 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.163: +9 -9 lines
Diff to previous 1.163 (colored)

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) - annotate - [select for diffs], Thu Feb 14 07:08:07 2002 UTC (22 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.162: +4 -4 lines
Diff to previous 1.162 (colored)

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

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:44:48 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.161: +4 -1 lines
Diff to previous 1.161 (colored)

Sync kqueue branch with -current.

Revision 1.154.2.7 / (download) - annotate - [select for diffs], Tue Jan 8 00:25:30 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.6: +4 -1 lines
Diff to previous 1.154.2.6 (colored)

Catch up to -current.

Revision 1.134.2.19 / (download) - annotate - [select for diffs], Sat Dec 29 23:31:04 2001 UTC (22 years, 3 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.18: +16 -13 lines
Diff to previous 1.134.2.18 (colored) to branchpoint 1.134 (colored)

Set up per-cpu GDT.
Use %fs for per-cpu data access.

Revision 1.134.2.18 / (download) - annotate - [select for diffs], Sat Dec 29 21:09:08 2001 UTC (22 years, 3 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.17: +4 -1 lines
Diff to previous 1.134.2.17 (colored) to branchpoint 1.134 (colored)

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) - annotate - [select for diffs], Sat Nov 17 00:46:06 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.5: +2 -4 lines
Diff to previous 1.154.2.5 (colored)

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) - annotate - [select for diffs], Thu Nov 15 07:03:31 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.161: +4 -1 lines
Diff to previous 1.161 (colored)

add RCSID

Revision 1.154.2.5 / (download) - annotate - [select for diffs], Thu Aug 30 23:22:26 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.4: +1 -5 lines
Diff to previous 1.154.2.4 (colored)

Remove an unused variable in startlwp().

Revision 1.154.2.4 / (download) - annotate - [select for diffs], Fri Aug 24 04:20:00 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.3: +8 -1 lines
Diff to previous 1.154.2.3 (colored)

A few files and lwp/proc conversions I missed in the last big update.
GENERIC runs again.

Revision 1.154.2.3 / (download) - annotate - [select for diffs], Thu Jun 21 19:25:40 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.2: +49 -15 lines
Diff to previous 1.154.2.2 (colored)

Catch up to -current.

Revision 1.134.2.17 / (download) - annotate - [select for diffs], Mon Jun 18 04:49:05 2001 UTC (22 years, 10 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.16: +10 -10 lines
Diff to previous 1.134.2.16 (colored) to branchpoint 1.134 (colored)

Complete merge with -current

Revision 1.134.2.16 / (download) - annotate - [select for diffs], Mon Jun 18 03:33:31 2001 UTC (22 years, 10 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.15: +40 -6 lines
Diff to previous 1.134.2.15 (colored) to branchpoint 1.134 (colored)

checkpoint merge-in-progress from mainline.

Revision 1.161 / (download) - annotate - [select for diffs], Mon Jun 18 02:00:49 2001 UTC (22 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Changes since 1.160: +10 -10 lines
Diff to previous 1.160 (colored)

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) - annotate - [select for diffs], Sun Jun 17 22:29:37 2001 UTC (22 years, 10 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.139.2.1: +18 -2 lines
Diff to previous 1.139.2.1 (colored) to branchpoint 1.139 (colored) next main 1.140 (colored)

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) - annotate - [select for diffs], Sun Jun 17 21:01:36 2001 UTC (22 years, 10 months ago) by sommerfeld
Branch: MAIN
Changes since 1.159: +16 -1 lines
Diff to previous 1.159 (colored)

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) - annotate - [select for diffs], Mon Jun 11 20:40:19 2001 UTC (22 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.139: +22 -4 lines
Diff to previous 1.139 (colored)

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) - annotate - [select for diffs], Mon Jun 11 20:04:03 2001 UTC (22 years, 10 months ago) by sommerfeld
Branch: MAIN
Changes since 1.158: +22 -4 lines
Diff to previous 1.158 (colored)

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) - annotate - [select for diffs], Sat Jun 2 18:09:14 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored)

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

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

add missing   #include "opt_kgdb.h"

Revision 1.134.2.15 / (download) - annotate - [select for diffs], Mon Apr 30 16:23:12 2001 UTC (22 years, 11 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.14: +10 -4 lines
Diff to previous 1.134.2.14 (colored) to branchpoint 1.134 (colored)

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) - annotate - [select for diffs], Mon Apr 9 01:53:34 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.154.2.1: +15 -10 lines
Diff to previous 1.154.2.1 (colored)

Catch up with -current.

Revision 1.133.2.6 / (download) - annotate - [select for diffs], Tue Mar 27 15:31:04 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.133.2.5: +15 -10 lines
Diff to previous 1.133.2.5 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored)

Sync with HEAD.

Revision 1.156 / (download) - annotate - [select for diffs], Sun Mar 18 02:53:09 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.155: +10 -4 lines
Diff to previous 1.155 (colored)

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) - annotate - [select for diffs], Fri Mar 16 05:00:49 2001 UTC (23 years, 1 month ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.13: +11 -9 lines
Diff to previous 1.134.2.13 (colored) to branchpoint 1.134 (colored)

Merge branch with -current; top of branch + current builds a working
GENERIC.MP again.

Revision 1.155 / (download) - annotate - [select for diffs], Thu Mar 15 06:10:40 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.154: +7 -8 lines
Diff to previous 1.154 (colored)

eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

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

Revision 1.154.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:15 2001 UTC (23 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.154: +68 -22 lines
Diff to previous 1.154 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.133.2.5 / (download) - annotate - [select for diffs], Sun Feb 11 19:10:55 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.133.2.4: +5 -1 lines
Diff to previous 1.133.2.4 (colored) to branchpoint 1.133 (colored)

Sync with HEAD.

Revision 1.154 / (download) - annotate - [select for diffs], Mon Feb 5 11:12:05 2001 UTC (23 years, 2 months ago) by chs
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.153: +5 -1 lines
Diff to previous 1.153 (colored)

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) - annotate - [select for diffs], Tue Jan 9 02:37:34 2001 UTC (23 years, 3 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.12: +3 -1 lines
Diff to previous 1.134.2.12 (colored) to branchpoint 1.134 (colored)

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) - annotate - [select for diffs], Sun Jan 7 22:59:25 2001 UTC (23 years, 3 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.11: +1 -1 lines
Diff to previous 1.134.2.11 (colored) to branchpoint 1.134 (colored)

Correct merge botches.
Post-merge kernel now boots multiuser.

Revision 1.134.2.11 / (download) - annotate - [select for diffs], Sun Jan 7 22:12:45 2001 UTC (23 years, 3 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.10: +22 -334 lines
Diff to previous 1.134.2.10 (colored) to branchpoint 1.134 (colored)

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) - annotate - [select for diffs], Wed Dec 13 15:49:30 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.133.2.3: +20 -205 lines
Diff to previous 1.133.2.3 (colored) to branchpoint 1.133 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.153 / (download) - annotate - [select for diffs], Mon Dec 11 05:29:00 2000 UTC (23 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.152: +1 -135 lines
Diff to previous 1.152 (colored)

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) - annotate - [select for diffs], Sun Dec 10 19:29:30 2000 UTC (23 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.151: +4 -12 lines
Diff to previous 1.151 (colored)

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) - annotate - [select for diffs], Sun Dec 10 12:09:59 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.150: +1 -3 lines
Diff to previous 1.150 (colored)

syscall(): no emulation using this needs errno mapping, G/C the code

Revision 1.150 / (download) - annotate - [select for diffs], Sat Dec 9 12:57:17 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.149: +1 -6 lines
Diff to previous 1.149 (colored)

the call to emulation-specific syscall function will be handled differently,
don't do it explicitly

Revision 1.149 / (download) - annotate - [select for diffs], Sat Dec 9 11:21:52 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.148: +2 -30 lines
Diff to previous 1.148 (colored)

put userret() into header file machine/userret.h and pull it where needed

Revision 1.148 / (download) - annotate - [select for diffs], Sat Dec 9 06:33:15 2000 UTC (23 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.147: +6 -10 lines
Diff to previous 1.147 (colored)

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) - annotate - [select for diffs], Sat Dec 9 02:46:17 2000 UTC (23 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.146: +5 -6 lines
Diff to previous 1.146 (colored)

Couple more tweaks to eliminate unnecessary cycles.

Revision 1.146 / (download) - annotate - [select for diffs], Sat Dec 9 02:18:16 2000 UTC (23 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.145: +8 -15 lines
Diff to previous 1.145 (colored)

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) - annotate - [select for diffs], Fri Dec 8 23:14:05 2000 UTC (23 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.144: +15 -8 lines
Diff to previous 1.144 (colored)

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) - annotate - [select for diffs], Fri Dec 8 22:32:09 2000 UTC (23 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.143: +3 -6 lines
Diff to previous 1.143 (colored)

GC unneeded code.

Revision 1.133.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:26:38 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.133.2.2: +12 -95 lines
Diff to previous 1.133.2.2 (colored) to branchpoint 1.133 (colored)

Sync with HEAD.

Revision 1.143 / (download) - annotate - [select for diffs], Sat Dec 2 16:03:24 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.142: +12 -95 lines
Diff to previous 1.142 (colored)

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) - annotate - [select for diffs], Mon Nov 27 01:03:46 2000 UTC (23 years, 4 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.9: +2 -2 lines
Diff to previous 1.134.2.9 (colored) to branchpoint 1.134 (colored)

Constify.

Revision 1.133.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:00:23 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.133.2.1: +9 -40 lines
Diff to previous 1.133.2.1 (colored) to branchpoint 1.133 (colored)

Sync with HEAD.

Revision 1.142 / (download) - annotate - [select for diffs], Tue Nov 21 21:27:04 2000 UTC (23 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.141: +2 -2 lines
Diff to previous 1.141 (colored)

make trap_type[] const

Revision 1.141 / (download) - annotate - [select for diffs], Tue Nov 21 00:37:50 2000 UTC (23 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.140: +9 -40 lines
Diff to previous 1.140 (colored)

restructure struct emul and execsw, in preparation to make emulations LKMable:
* move all exec-type specific information from struct emul to execsw[] and
  provide single struct emul per emulation
* elf:
  - kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry
    per emulation and contains pointer to respective probe function
  - interp is allocated via MALLOC() rather than on stack
  - elf_args structure is allocated via MALLOC() rather than malloc()
* ecoff: the per-emulation hooks moved from alpha and mips specific code
  to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per
  emulation supporting ecoff with appropriate probe function
* the makecmds/probe functions don't set emulation, pointer to emulation is
  part of appropriate execsw[] entry
* constify couple of structures

Revision 1.133.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 20:09:24 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.133: +31 -26 lines
Diff to previous 1.133 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.134.2.9 / (download) - annotate - [select for diffs], Sat Aug 26 14:09:00 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.8: +5 -2 lines
Diff to previous 1.134.2.8 (colored) to branchpoint 1.134 (colored)

Lock kernel on child_return() ktrace-point

Revision 1.134.2.8 / (download) - annotate - [select for diffs], Fri Aug 25 02:51:45 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.7: +6 -1 lines
Diff to previous 1.134.2.7 (colored) to branchpoint 1.134 (colored)

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) - annotate - [select for diffs], Fri Aug 25 02:03:31 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.6: +2 -2 lines
Diff to previous 1.134.2.6 (colored) to branchpoint 1.134 (colored)

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) - annotate - [select for diffs], Thu Aug 24 11:26:12 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.5: +5 -2 lines
Diff to previous 1.134.2.5 (colored) to branchpoint 1.134 (colored)

ktrace: Relock kernel when emitting syscall return ktrace record.

Revision 1.134.2.5 / (download) - annotate - [select for diffs], Wed Aug 23 18:27:59 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.4: +4 -2 lines
Diff to previous 1.134.2.4 (colored) to branchpoint 1.134 (colored)

Add missing KERNEL_UNLOCK() on the path taken on copy{in/out} failure.

Revision 1.134.2.4 / (download) - annotate - [select for diffs], Fri Aug 18 13:55:44 2000 UTC (23 years, 8 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.3: +48 -4 lines
Diff to previous 1.134.2.3 (colored) to branchpoint 1.134 (colored)

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) - annotate - [select for diffs], Mon Aug 7 01:08:50 2000 UTC (23 years, 8 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.2: +0 -2 lines
Diff to previous 1.134.2.2 (colored) to branchpoint 1.134 (colored)

Merge sommerfeld_i386mp_1 branch forward to 20000806 sources

Revision 1.140 / (download) - annotate - [select for diffs], Thu Jun 29 08:44:54 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.139: +1 -3 lines
Diff to previous 1.139 (colored)

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

Revision 1.134.2.2 / (download) - annotate - [select for diffs], Sun Jun 25 19:37:07 2000 UTC (23 years, 9 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134.2.1: +29 -22 lines
Diff to previous 1.134.2.1 (colored) to branchpoint 1.134 (colored)

Merge up to just-post-1.5 -current

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

Sync w/ netbsd-1-5-base.

Revision 1.139 / (download) - annotate - [select for diffs], Tue Jun 6 18:52:36 2000 UTC (23 years, 10 months ago) by soren
Branch: 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
Changes since 1.138: +2 -1 lines
Diff to previous 1.138 (colored)

defopt SYSCALL_DEBUG.

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

Reduce use of curproc in several places:

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

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

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

Also, miscellaneous cleanups in ktrace:

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

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()

Revision 1.137 / (download) - annotate - [select for diffs], Fri May 26 21:19:47 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.136: +2 -2 lines
Diff to previous 1.136 (colored)

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

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

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

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

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

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

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

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

Revision 1.135 / (download) - annotate - [select for diffs], Thu May 11 16:38:12 2000 UTC (23 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.134: +21 -6 lines
Diff to previous 1.134 (colored)

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) - annotate - [select for diffs], Sun Feb 20 18:03:11 2000 UTC (24 years, 2 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)

Adapt to intr.h/IPL_* changes.

Revision 1.133.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:32:22 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored) next main 1.134 (colored)

Pull up to last week's -current.

Revision 1.134 / (download) - annotate - [select for diffs], Sat Dec 4 21:20:32 1999 UTC (24 years, 4 months ago) by ragge
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, sommerfeld_i386mpbase_20000422, chs-ubc2-newbase
Branch point for: sommerfeld_i386mp_1
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored)

CL* discarding.

Revision 1.133 / (download) - annotate - [select for diffs], Mon Oct 4 17:36:37 1999 UTC (24 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.132: +12 -5 lines
Diff to previous 1.132 (colored)

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) - annotate - [select for diffs], Mon Jun 21 00:50:00 1999 UTC (24 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.131: +1 -30 lines
Diff to previous 1.131 (colored) next main 1.132 (colored)

Sync w/ -current.

Revision 1.132 / (download) - annotate - [select for diffs], Thu Jun 17 00:12:12 1999 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.131: +1 -30 lines
Diff to previous 1.131 (colored)

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) - annotate - [select for diffs], Wed Mar 24 05:51:02 1999 UTC (25 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.130: +2 -39 lines
Diff to previous 1.130 (colored)

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

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

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

Revision 1.129 / (download) - annotate - [select for diffs], Sat Feb 13 16:10:44 1999 UTC (25 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.128: +29 -23 lines
Diff to previous 1.128 (colored)

Support __syscall for COMPAT_AOUT properly.

Revision 1.128 / (download) - annotate - [select for diffs], Wed Feb 10 16:52:02 1999 UTC (25 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored)

Fix reversed test in my changes to compat_freebsd (thanks charles!)

Revision 1.127 / (download) - annotate - [select for diffs], Wed Feb 10 07:10:59 1999 UTC (25 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.126: +25 -5 lines
Diff to previous 1.126 (colored)

PR/6962: Paul Shupak: FreeBSD ELF emulation bits.

Revision 1.126 / (download) - annotate - [select for diffs], Wed Nov 11 06:41:26 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.125: +8 -7 lines
Diff to previous 1.125 (colored)

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

Revision 1.104.2.4 / (download) - annotate - [select for diffs], Tue Nov 3 17:37:53 1998 UTC (25 years, 5 months ago) by cgd
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.104.2.3: +58 -44 lines
Diff to previous 1.104.2.3 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored)

pull up rev 1.125 and other unspecified bits (via patch).  (mycroft)

Revision 1.125 / (download) - annotate - [select for diffs], Tue Oct 27 18:04:27 1998 UTC (25 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.124: +34 -35 lines
Diff to previous 1.124 (colored)

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) - annotate - [select for diffs], Thu Oct 1 15:53:33 1998 UTC (25 years, 6 months ago) by erh
Branch: MAIN
Changes since 1.123: +37 -7 lines
Diff to previous 1.123 (colored)

Linux emul_* structures chahged names.

Revision 1.123 / (download) - annotate - [select for diffs], Fri Sep 11 12:23:44 1998 UTC (25 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.122: +33 -33 lines
Diff to previous 1.122 (colored)

Speed up syscall() slightly in a few cases.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Aug 16 00:42:51 1998 UTC (25 years, 8 months ago) by rvb
Branch: MAIN
Changes since 1.121: +3 -1 lines
Diff to previous 1.121 (colored)

Avoid double fault on errors during probes

Revision 1.121 / (download) - annotate - [select for diffs], Sat Aug 15 05:10:24 1998 UTC (25 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.120: +37 -2 lines
Diff to previous 1.120 (colored)

Assign my copyrights to TNF.

Revision 1.120 / (download) - annotate - [select for diffs], Thu Aug 13 21:36:04 1998 UTC (25 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.119: +5 -5 lines
Diff to previous 1.119 (colored)

vm_offset_t -> {vaddr_t,paddr_t}, vm_size_t -> vsize_t

Revision 1.119 / (download) - annotate - [select for diffs], Sat Jul 4 22:18:25 1998 UTC (25 years, 9 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.118: +2 -1 lines
Diff to previous 1.118 (colored)

defopt DDB.

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

defopt COMPAT_IBCS2

Revision 1.117 / (download) - annotate - [select for diffs], Thu Jun 25 23:19:36 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.116: +2 -1 lines
Diff to previous 1.116 (colored)

defopt COMPAT_LINUX

Revision 1.116 / (download) - annotate - [select for diffs], Thu Jun 25 22:51:01 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.115: +2 -1 lines
Diff to previous 1.115 (colored)

defopt COMPAT_FREEBSD

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

defopt KTRACE

Revision 1.114 / (download) - annotate - [select for diffs], Wed May 27 15:53:30 1998 UTC (25 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.113: +15 -64 lines
Diff to previous 1.113 (colored)

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) - annotate - [select for diffs], Wed May 20 16:30:54 1998 UTC (25 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.112: +69 -15 lines
Diff to previous 1.112 (colored)

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) - annotate - [select for diffs], Tue May 5 09:51:42 1998 UTC (25 years, 11 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH002
Changes since 1.104.2.2: +5 -3 lines
Diff to previous 1.104.2.2 (colored) to branchpoint 1.104 (colored)

Pull up 1.110 and 1.112, per request of scottb.

Revision 1.112 / (download) - annotate - [select for diffs], Thu Mar 5 04:20:45 1998 UTC (26 years, 1 month ago) by scottb
Branch: MAIN
Changes since 1.111: +4 -3 lines
Diff to previous 1.111 (colored)

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) - annotate - [select for diffs], Tue Feb 10 14:11:14 1998 UTC (26 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.110: +3 -1 lines
Diff to previous 1.110 (colored)

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

Revision 1.110 / (download) - annotate - [select for diffs], Mon Feb 9 02:30:42 1998 UTC (26 years, 2 months ago) by scottb
Branch: MAIN
Changes since 1.109: +4 -3 lines
Diff to previous 1.109 (colored)

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) - annotate - [select for diffs], Fri Feb 6 07:22:00 1998 UTC (26 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.108: +56 -3 lines
Diff to previous 1.108 (colored)

add the i386 MD portions for UVM.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Jan 21 23:29:09 1998 UTC (26 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.107: +2 -1 lines
Diff to previous 1.107 (colored)

Generate dependencies on the MATH_EMULATE option.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Jan 15 22:26:01 1998 UTC (26 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.106: +3 -1 lines
Diff to previous 1.106 (colored)

Generate dependencies on the VM86 option.

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Tue Dec 9 19:59:54 1997 UTC (26 years, 4 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001
Changes since 1.104.2.1: +14 -1 lines
Diff to previous 1.104.2.1 (colored) to branchpoint 1.104 (colored)

Pull up 1.106 (fvdl)

Revision 1.106 / (download) - annotate - [select for diffs], Sun Dec 7 21:28:56 1997 UTC (26 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.105: +14 -1 lines
Diff to previous 1.105 (colored)

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) - annotate - [select for diffs], Thu Nov 13 19:00:15 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-BETA
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored)

Pull rev 1.105. up from trunk (mycroft)

Revision 1.105 / (download) - annotate - [select for diffs], Thu Nov 13 10:13:46 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored)

Map NMI in user-level code to SIGBUS.

Revision 1.104 / (download) - annotate - [select for diffs], Thu Oct 16 03:05:19 1997 UTC (26 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.103: +2 -4 lines
Diff to previous 1.103 (colored)

Pull in vm.h, not a bunch of individual files.

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:09:01 1997 UTC (26 years, 8 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored) next main 1.103 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Aug 12 17:26:57 1997 UTC (26 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-base
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored)

Enable single stepping with KGDB.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jul 5 20:48:14 1997 UTC (26 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: marc-pcmcia-bp
Branch point for: marc-pcmcia
Changes since 1.101: +26 -2 lines
Diff to previous 1.101 (colored)

Add glue for remote KGDB.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Apr 9 23:35:07 1997 UTC (27 years ago) by mycroft
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.100: +5 -13 lines
Diff to previous 1.100 (colored)

Eliminate redundant calls to vm_map_pageable() and vm_fault(), as suggested by
Chuck Cranor.

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Wed Mar 19 04:03:24 1997 UTC (27 years, 1 month ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.95: +2 -1 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

Pull up trap handling changes.

Revision 1.100 / (download) - annotate - [select for diffs], Wed Mar 19 03:19:01 1997 UTC (27 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.99: +2 -1 lines
Diff to previous 1.99 (colored)

Handle user TSS faults.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Oct 13 03:19:54 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.98: +11 -11 lines
Diff to previous 1.98 (colored)

backout previous kprintf changes

Revision 1.98 / (download) - annotate - [select for diffs], Thu Oct 10 23:51:19 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.97: +13 -11 lines
Diff to previous 1.97 (colored)

- fix uninitialized sticks
- printf -> kprintf, sprintf -> ksprintf

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

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

Revision 1.96 / (download) - annotate - [select for diffs], Sat Sep 7 20:26:09 1996 UTC (27 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.95: +1 -3 lines
Diff to previous 1.95 (colored)

Turn off DEBUG by default now.

Revision 1.95 / (download) - annotate - [select for diffs], Sun May 5 06:50:02 1996 UTC (27 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.94: +2 -1 lines
Diff to previous 1.94 (colored)

Fix obvious bug introduced in last change.

Revision 1.94 / (download) - annotate - [select for diffs], Fri May 3 19:42:31 1996 UTC (27 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.93: +16 -7 lines
Diff to previous 1.93 (colored)

Prototype and gcc -Wall cleanups

Revision 1.93 / (download) - annotate - [select for diffs], Mon Apr 15 00:20:32 1996 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.92: +6 -4 lines
Diff to previous 1.92 (colored)

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) - annotate - [select for diffs], Mon Jan 8 13:51:38 1996 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.91: +19 -2 lines
Diff to previous 1.91 (colored)

VM86 support, by John Kohl, touched up a bit by me.

Revision 1.91 / (download) - annotate - [select for diffs], Sat Dec 9 05:00:27 1995 UTC (28 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.90: +2 -11 lines
Diff to previous 1.90 (colored)

Return 0 in the child, not the parent pid.

Revision 1.89.2.2 / (download) - annotate - [select for diffs], Sun Oct 15 06:54:03 1995 UTC (28 years, 6 months ago) by mycroft
Branch: netbsd-1-1
CVS Tags: netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Changes since 1.89.2.1: +670 -0 lines
Diff to previous 1.89.2.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)

Update from main branch.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Oct 15 05:58:44 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

Fix typos.

Revision 1.89.2.1, Sun Oct 15 04:18:27 1995 UTC (28 years, 6 months ago) by mycroft
Branch: netbsd-1-1
Changes since 1.89: +0 -670 lines
FILE REMOVED

file trap.c was added on branch netbsd-1-1 on 1995-10-15 06:54:03 +0000

Revision 1.89 / (download) - annotate - [select for diffs], Sun Oct 15 04:18:27 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base
Branch point for: netbsd-1-1
Changes since 1.88: +13 -19 lines
Diff to previous 1.88 (colored)

Style police.

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Sat Oct 14 14:43:59 1995 UTC (28 years, 6 months ago) by fvdl
Changes since 1.87: +11 -1 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

child_return broke Linux fork()

Revision 1.88 / (download) - annotate - [select for diffs], Sat Oct 14 14:06:16 1995 UTC (28 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.87: +11 -1 lines
Diff to previous 1.87 (colored)

child_return broke Linux fork()

Revision 1.87 / (download) - annotate - [select for diffs], Wed Oct 11 04:19:50 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.86: +18 -1 lines
Diff to previous 1.86 (colored)

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) - annotate - [select for diffs], Tue Oct 10 04:45:44 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.85: +4 -4 lines
Diff to previous 1.85 (colored)

Add USERMODE() and KERNELMODE() macros, and use them.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Oct 10 01:26:46 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.84: +9 -1 lines
Diff to previous 1.84 (colored)

Add hooks for COMPAT_FREEBSD, from Noriyuki Soda.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Jun 11 20:24:42 1995 UTC (28 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.83: +5 -4 lines
Diff to previous 1.83 (colored)

Do extra comparison against linux_elf emul struct pointer to see what
we are emulating (unfortunately).

Revision 1.83 / (download) - annotate - [select for diffs], Mon May 1 08:06:51 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.82: +5 -5 lines
Diff to previous 1.82 (colored)

Update to match include files.  Eliminate _ucodesel, _udatasel, and IdlePTD.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Apr 26 00:00:23 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

Fix typo in previous changes.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Apr 22 20:49:54 1995 UTC (29 years ago) by christos
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

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

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

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

Revision 1.79 / (download) - annotate - [select for diffs], Fri Apr 14 23:30:54 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.78: +1 -2 lines
Diff to previous 1.78 (colored)

Remove extra EMUL_IBCS2 case.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Apr 13 20:48:14 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.77: +6 -7 lines
Diff to previous 1.77 (colored)

EMUL_IBCS2_ELF -> EMUL_SVR4; EMUL_IBCS2_{COFF,XOUT} -> EMUL_IBCS2

Revision 1.77 / (download) - annotate - [select for diffs], Fri Apr 7 22:29:48 1995 UTC (29 years ago) by fvdl
Branch: MAIN
Changes since 1.76: +9 -28 lines
Diff to previous 1.76 (colored)

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) - annotate - [select for diffs], Fri Mar 31 02:49:55 1995 UTC (29 years ago) by christos
Branch: MAIN
Changes since 1.75: +16 -7 lines
Diff to previous 1.75 (colored)

Changes to make svr4 emulation signal() to work, and minor cleanup in trap.c

Revision 1.75 / (download) - annotate - [select for diffs], Sun Mar 26 08:03:50 1995 UTC (29 years ago) by cgd
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

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

Revision 1.74 / (download) - annotate - [select for diffs], Wed Mar 22 23:25:13 1995 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.73: +3 -1 lines
Diff to previous 1.73 (colored)

In T_PAGEFLT, check for null proc pointer before dereferencing it.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Mar 14 14:43:59 1995 UTC (29 years, 1 month ago) by scottb
Branch: MAIN
Changes since 1.72: +7 -1 lines
Diff to previous 1.72 (colored)

added code to remap BSD errno to iBCS2 errno

Revision 1.72 / (download) - annotate - [select for diffs], Fri Mar 10 12:20:37 1995 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.71: +2 -1 lines
Diff to previous 1.71 (colored)

Fix another oversight.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Mar 10 10:56:16 1995 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

Fix oversight in previous change.

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

Fix last arg to scdebug_ret().

Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 8 07:12:28 1995 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.68: +49 -56 lines
Diff to previous 1.68 (colored)

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) - annotate - [select for diffs], Tue Feb 28 23:18:03 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.67: +69 -1 lines
Diff to previous 1.67 (colored)

linux syscall arg gathering, handling, and return.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jan 15 03:29:05 1995 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.66: +5 -4 lines
Diff to previous 1.66 (colored)

Fix slight oversight in previous.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jan 15 01:15:04 1995 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.65: +16 -2 lines
Diff to previous 1.65 (colored)

Add some commentary on the previous.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Jan 15 00:55:25 1995 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.64: +40 -17 lines
Diff to previous 1.64 (colored)

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) - annotate - [select for diffs], Sat Dec 10 00:28:38 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.63: +7 -12 lines
Diff to previous 1.63 (colored)

Speed up FPU task switching some more.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Nov 16 20:14:42 1994 UTC (29 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.62: +5 -6 lines
Diff to previous 1.62 (colored)

Fixed error svr4 error code mapping; my old attempt was a noop.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Nov 14 05:53:51 1994 UTC (29 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.61: +7 -1 lines
Diff to previous 1.61 (colored)

changed open prototype in conf.c; added bsd->svr4 errno mapping in trap.c

Revision 1.61 / (download) - annotate - [select for diffs], Mon Nov 7 05:26:17 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.60: +5 -4 lines
Diff to previous 1.60 (colored)

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) - annotate - [select for diffs], Sun Nov 6 20:30:09 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.59: +1 -5 lines
Diff to previous 1.59 (colored)

Actually, don't bother checking p == 0 at all.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Nov 6 20:28:57 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.58: +11 -13 lines
Diff to previous 1.58 (colored)

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) - annotate - [select for diffs], Thu Oct 27 04:15:49 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: before_newconf_base
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored)

new RCS ID format.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Oct 26 18:45:40 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.56: +1 -2 lines
Diff to previous 1.56 (colored)

We don't need to clear the nested trap bit.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Oct 26 17:52:22 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.55: +5 -1 lines
Diff to previous 1.55 (colored)

Add a comment.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Oct 26 17:38:44 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.54: +18 -24 lines
Diff to previous 1.54 (colored)

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) - annotate - [select for diffs], Wed Oct 26 01:32:51 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored)

Add a missing item to trap_types[].

Revision 1.53 / (download) - annotate - [select for diffs], Thu Oct 20 04:43:26 1994 UTC (29 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.52: +7 -6 lines
Diff to previous 1.52 (colored)

update for new syscall args description mechanism

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Thu Oct 6 03:43:00 1994 UTC (29 years, 6 months ago) by mycroft
Branch: 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
Changes since 1.48.2.2: +6 -1 lines
Diff to previous 1.48.2.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Update from trunk.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Sep 5 01:08:43 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

New iBCS2 code from Scott.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Aug 30 06:19:44 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.50: +5 -1 lines
Diff to previous 1.50 (colored)

Check for bad p_emul.

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Mon Aug 15 22:25:07 1994 UTC (29 years, 8 months ago) by mycroft
Branch: netbsd-1-0
Changes since 1.48.2.1: +18 -2 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored)

update from trunk

Revision 1.50 / (download) - annotate - [select for diffs], Mon Aug 15 22:24:22 1994 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.49: +18 -2 lines
Diff to previous 1.49 (colored)

Add iBCS2 glue.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Mon Aug 15 14:47:26 1994 UTC (29 years, 8 months ago) by mycroft
Branch: netbsd-1-0
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

update from trunk

Revision 1.49 / (download) - annotate - [select for diffs], Mon Aug 15 14:46:51 1994 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

Eliminate struct pte and struct pde.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jul 4 23:19:17 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

Fix some profiling stuff.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jun 14 20:43:42 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.46: +1 -13 lines
Diff to previous 1.46 (colored)

Remove some old debugging code.

Revision 1.46 / (download) - annotate - [select for diffs], Fri May 27 13:01:47 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.45: +14 -6 lines
Diff to previous 1.45 (colored)

Print trap info on every entry if trapdebug set.

Revision 1.45 / (download) - annotate - [select for diffs], Mon May 23 02:28:21 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

don't spontaneously print, when debugging

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 22 10:17:31 1994 UTC (29 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.43: +30 -6 lines
Diff to previous 1.43 (colored)

prelim svr4 stuff from <christos@deshaw.com>

Revision 1.43 / (download) - annotate - [select for diffs], Sat May 21 04:00:37 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.42: +1 -2 lines
Diff to previous 1.42 (colored)

no need to include <sys/vmmeter.h>

Revision 1.42 / (download) - annotate - [select for diffs], Wed May 18 05:12:14 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored)

mostly-machine-indepedent switch, and changes to match.  also, hack init_main

Revision 1.41 / (download) - annotate - [select for diffs], Mon May 16 09:46:10 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.40: +11 -27 lines
Diff to previous 1.40 (colored)

sticks as quads may break my bones, but profiling will never hurt me...

Revision 1.40 / (download) - annotate - [select for diffs], Fri May 13 00:50:44 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

setrq -> setrunqueue, sched -> scheduler

Revision 1.39 / (download) - annotate - [select for diffs], Sat May 7 00:52:44 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

function name changes

Revision 1.38 / (download) - annotate - [select for diffs], Thu May 5 05:35:54 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.37: +11 -5 lines
Diff to previous 1.37 (colored)

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) - annotate - [select for diffs], Wed May 4 03:41:14 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Rename a lot of process flags.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Apr 2 22:15:03 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

Oops.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Apr 2 21:32:54 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.34: +22 -22 lines
Diff to previous 1.34 (colored)

Some stylistic cleanup.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Apr 2 08:42:59 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.33: +1 -3 lines
Diff to previous 1.33 (colored)

kill bogon

Revision 1.33 / (download) - annotate - [select for diffs], Sat Apr 2 08:04:26 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.32: +14 -4 lines
Diff to previous 1.32 (colored)

change __syscall() handling so others can cut/paste it...

Revision 1.32 / (download) - annotate - [select for diffs], Sat Apr 2 03:52:15 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

Need syscall.h.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Apr 2 03:51:37 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.30: +7 -4 lines
Diff to previous 1.30 (colored)

Implement __syscall().

Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 24 21:50:35 1994 UTC (30 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.29: +24 -21 lines
Diff to previous 1.29 (colored)

Small code clean up, and make the normal cases a few cycles faster.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Feb 15 07:18:46 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

kill warning

Revision 1.28 / (download) - annotate - [select for diffs], Tue Feb 15 06:59:33 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

add proc ptr

Revision 1.27 / (download) - annotate - [select for diffs], Tue Feb 15 06:49:03 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.26: +10 -1 lines
Diff to previous 1.26 (colored)

SYSCALL_DEBUG stuff

Revision 1.14.2.20 / (download) - annotate - [select for diffs], Tue Feb 1 19:08:20 1994 UTC (30 years, 2 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.19: +24 -11 lines
Diff to previous 1.14.2.19 (colored) next main 1.15 (colored)

Revert profiling code.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jan 11 19:12:07 1994 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: magnum-base
Changes since 1.25: +2 -4 lines
Diff to previous 1.25 (colored)

Deal with fusubail.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jan 11 15:37:18 1994 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.24: +27 -28 lines
Diff to previous 1.24 (colored)

Synchronize with magnum branch.

Revision 1.14.2.19 / (download) - annotate - [select for diffs], Tue Jan 11 15:36:35 1994 UTC (30 years, 3 months ago) by mycroft
Branch: magnum
CVS Tags: magnum-reference
Changes since 1.14.2.18: +57 -60 lines
Diff to previous 1.14.2.18 (colored)

Synchronize with main branch.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 9 22:53:16 1994 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.23: +5 -6 lines
Diff to previous 1.23 (colored)

Use db_recover.  Print trap name when entering DDB.  Use trap_type and
trap_types like m68k.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jan 4 00:15:28 1994 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Fix two off-by-one errors.

Revision 1.14.2.18 / (download) - annotate - [select for diffs], Tue Jan 4 00:07:29 1994 UTC (30 years, 3 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.17: +2 -2 lines
Diff to previous 1.14.2.17 (colored)

Fix two off-by-one errors.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jan 3 16:21:54 1994 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Inline all the [lr]cr[023]() `functions' in cpufunc.h.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 20 17:16:47 1993 UTC (30 years, 4 months ago) by ws
Branch: MAIN
Changes since 1.20: +3 -7 lines
Diff to previous 1.20 (colored)

Correct support for single stepping of syscalls and fpu emulation

Revision 1.20 / (download) - annotate - [select for diffs], Sun Dec 19 06:58:15 1993 UTC (30 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +235 -234 lines
Diff to previous 1.19 (colored)

Clean up trap handling and macroize interrupt entry and exit code.  From
magnum branch.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Dec 14 05:31:27 1993 UTC (30 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Fold in most of the magnum vm changes.

Revision 1.14.2.17 / (download) - annotate - [select for diffs], Sun Nov 14 05:19:22 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.16: +2 -2 lines
Diff to previous 1.14.2.16 (colored)

Remove some more gratuitous casting.

Revision 1.14.2.16 / (download) - annotate - [select for diffs], Sun Nov 14 05:17:32 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.15: +2 -2 lines
Diff to previous 1.14.2.15 (colored)

Remove a bunch of gratuitous casting.

Revision 1.14.2.15 / (download) - annotate - [select for diffs], Sat Nov 13 22:36:51 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.14: +31 -39 lines
Diff to previous 1.14.2.14 (colored)

Simplify some bits, and deal with curproc == NULL.

Revision 1.14.2.14 / (download) - annotate - [select for diffs], Sat Nov 13 20:08:24 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.13: +5 -8 lines
Diff to previous 1.14.2.13 (colored)

Remove a redundant printf().

Revision 1.14.2.13 / (download) - annotate - [select for diffs], Sat Nov 13 06:22:41 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.12: +32 -16 lines
Diff to previous 1.14.2.12 (colored)

Garbage collect some unusable constants.  Print trap name on fatal fault.

Revision 1.14.2.12 / (download) - annotate - [select for diffs], Mon Nov 8 20:21:14 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.11: +2 -1 lines
Diff to previous 1.14.2.11 (colored)

Translate alignment faults to SIGBUS.

Revision 1.14.2.11 / (download) - annotate - [select for diffs], Sat Nov 6 00:12:04 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.10: +2 -3 lines
Diff to previous 1.14.2.10 (colored)

Nuke bogus test I copied by accident into trapwrite().

Revision 1.14.2.10 / (download) - annotate - [select for diffs], Fri Nov 5 23:57:50 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.9: +99 -77 lines
Diff to previous 1.14.2.9 (colored)

De-uglify a bit, and check for stack enlargement in trapwrite().

Revision 1.18 / (download) - annotate - [select for diffs], Fri Nov 5 23:18:51 1993 UTC (30 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.17: +7 -6 lines
Diff to previous 1.17 (colored)

don't use splclock()/splnone(), use splclock()/splx().
pointed out by david greenman.

Revision 1.14.2.9 / (download) - annotate - [select for diffs], Wed Nov 3 21:35:38 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.8: +2 -2 lines
Diff to previous 1.14.2.8 (colored)

Update a comment to reflect reality.

Revision 1.14.2.8 / (download) - annotate - [select for diffs], Tue Oct 26 11:59:12 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.7: +13 -28 lines
Diff to previous 1.14.2.7 (colored)

Remove bogus boundary test for kernel page faults.  Add some debugging code.

Revision 1.14.2.7 / (download) - annotate - [select for diffs], Mon Oct 18 08:28:11 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.6: +9 -2 lines
Diff to previous 1.14.2.6 (colored)

Deal with SOWEUPC.

Revision 1.14.2.6 / (download) - annotate - [select for diffs], Fri Oct 15 03:22:06 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.5: +8 -6 lines
Diff to previous 1.14.2.5 (colored)

Don't pass `code' (which is always 0) to isa_nmi().

Revision 1.14.2.5 / (download) - annotate - [select for diffs], Wed Oct 13 02:22:01 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.4: +5 -1 lines
Diff to previous 1.14.2.4 (colored)

Increment event counters in trap() and syscall().

Revision 1.14.2.4 / (download) - annotate - [select for diffs], Tue Oct 12 23:21:46 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.3: +1 -6 lines
Diff to previous 1.14.2.3 (colored)

Remove old profiling hook.

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Sun Oct 10 08:47:13 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.2: +7 -2 lines
Diff to previous 1.14.2.2 (colored)

#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) - annotate - [select for diffs], Fri Sep 24 08:46:08 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.14.2.1: +77 -110 lines
Diff to previous 1.14.2.1 (colored)

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) - annotate - [select for diffs], Tue Sep 21 13:43:15 1993 UTC (30 years, 7 months ago) by brezak
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Be sure to get sys/signal.h

Revision 1.16 / (download) - annotate - [select for diffs], Sun Sep 19 19:00:51 1993 UTC (30 years, 7 months ago) by brezak
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Changes for per-process/user settable LDT and full sigcontexts

Revision 1.15 / (download) - annotate - [select for diffs], Thu Sep 16 03:24:24 1993 UTC (30 years, 7 months ago) by brezak
Branch: MAIN
Changes since 1.14: +24 -27 lines
Diff to previous 1.14 (colored)

Changes to use a trap frame for syscalls.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Tue Sep 14 17:28:46 1993 UTC (30 years, 7 months ago) by mycroft
Branch: magnum
Changes since 1.14: +25 -35 lines
Diff to previous 1.14 (colored)

New i386 code.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Sep 4 01:29:24 1993 UTC (30 years, 7 months ago) by cgd
Branch: MAIN
Branch point for: magnum
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

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) - annotate - [select for diffs], Mon Aug 2 23:19:18 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Put in a gratuitous cast to shut up GCC 2.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jul 28 02:20:59 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.11: +14 -4 lines
Diff to previous 1.11 (colored)

incorporate changes from 0-9-base to 0-9-ALPHA

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Thu Jul 22 10:12:27 1993 UTC (30 years, 9 months ago) by mycroft
Branch: 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
Changes since 1.11: +14 -4 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Do the Right Thing if we page fault in the page table.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 12 13:53:36 1993 UTC (30 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-base
Branch point for: netbsd-0-9
Changes since 1.10: +9 -8 lines
Diff to previous 1.10 (colored)

Fix handling of bad syscall numbers.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 8 04:01:13 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.9: +2 -7 lines
Diff to previous 1.9 (colored)

get rid if wfj's stack limit check-disabling bogosities.  (his old
exec needed them.  stoopid...)

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 27 05:54:40 1993 UTC (30 years, 9 months ago) by andrew
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Fixed typo.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 18 02:03:45 1993 UTC (30 years, 10 months ago) by brezak
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

Use NNPX instead of NPX from npx.h for activating npx.

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 27 16:44:25 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.6: +1 -13 lines
Diff to previous 1.6 (colored)

kill the last copy{in,out} (and related functions) changes, because they
were broken...

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 22 08:00:04 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

add rcsids to everything and clean up headers

Revision 1.5 / (download) - annotate - [select for diffs], Thu May 20 14:33:47 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.4: +6 -2 lines
Diff to previous 1.4 (colored)

do the correct thing for the "cpu" config definition, and require
options "MATH_EMULATE" for math emulation

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 13 21:39:38 1993 UTC (30 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +13 -1 lines
Diff to previous 1.3 (colored)

copyin/copyout should now work.
ref: bugfiler 386BSD-0.1.2.3/sys.386bsd/5

Revision 1.3 / (download) - annotate - [select for diffs], Fri May 7 07:10:59 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.2: +27 -2 lines
Diff to previous 1.2 (colored)

add counter for vmstat, and fix for bde's changes.  from pk patch 137

Revision 1.2 / (download) - annotate - [select for diffs], Sat Apr 10 12:04:42 1993 UTC (31 years ago) by glass
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +5 -6 lines
Diff to previous 1.1 (colored)

fixed to be compliant, subservient, and to take advantage of the newly
hacked config(8)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: WFJ-920714
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: MAIN

Initial revision

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




CVSweb <webmaster@jp.NetBSD.org>