The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.97: download - view: text, markup, annotated - select for diffs
Mon Nov 20 03:05:48 2023 UTC (12 months, 3 weeks ago) by simonb
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -3 lines
Note some large xstate stack objects what Somebody(tm) should look at
when they find some round tuits.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Oct 19 17:47:37 2020 UTC (4 years, 1 month ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, 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, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -2 lines
_KERNEL_OPT police

Revision 1.93.2.2: download - view: text, markup, annotated - select for diffs
Sun Oct 18 18:42:11 2020 UTC (4 years, 1 month ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.93.2.1: preferred, colored; branchpoint 1.93: preferred, colored; next MAIN 1.94: preferred, colored
Changes since revision 1.93.2.1: +110 -2 lines
Pull up following revision(s) (requested by kamil in ticket #1117):

	sys/arch/sh3/include/ptrace.h: revision 1.19
	sys/arch/amd64/amd64/process_machdep.c: revision 1.48
	sys/arch/sh3/sh3/process_machdep.c: revision 1.23
	sys/arch/sh3/sh3/process_machdep.c: revision 1.24
	sys/arch/i386/i386/process_machdep.c: revision 1.95
	sys/arch/x86/x86/fpu.c (apply patch)
	sys/kern/sys_ptrace_common.c: revision 1.84
	sys/arch/powerpc/powerpc/process_machdep.c: revision 1.40
	sys/sys/ptrace.h: revision 1.71
	sys/arch/powerpc/powerpc/process_machdep.c: revision 1.41
	(all via patch, adapted)

Fix s87_tw reconstruction to correctly indicate register states

Fix the code reconstructing s87_tw (full tag word) from fx_sw (abridged
tag word) to correctly represent all register states.  The previous code
only distinguished between empty/non-empty registers, and assigned
'regular value' to all non-empty registers.  The new code explicitly
distinguishes the two other tag word values: empty and special.

Fix the machine-dependent ptrace register-related requests (e.g.
PT_GETXMMREGS, PT_GETXSTATE on x86) to correctly respect the LWP number
passed as the data argument.  Before this change, these requests
did not operate on the requested LWP of a multithreaded program.
This change required moving ptrace_update_lwp() out of unit scope,
and changing ptrace_machdep_dorequest() function to take a pointer
to pointer as the second argument, consistently with ptrace_regs().

I am planning to extend the ATF ptrace() register tests in the future
to check for regressions in multithreaded programs, as time permits.

Reviewed by kamil.

Add missing 'error' declaration

Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu Oct 15 17:37:35 2020 UTC (4 years, 1 month ago) by mgorny
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +11 -7 lines
Fix the machine-dependent ptrace requests to respect LWP number

Fix the machine-dependent ptrace register-related requests (e.g.
PT_GETXMMREGS, PT_GETXSTATE on x86) to correctly respect the LWP number
passed as the data argument.  Before this change, these requests
did not operate on the requested LWP of a multithreaded program.

This change required moving ptrace_update_lwp() out of unit scope,
and changing ptrace_machdep_dorequest() function to take a pointer
to pointer as the second argument, consistently with ptrace_regs().

I am planning to extend the ATF ptrace() register tests in the future
to check for regressions in multithreaded programs, as time permits.

Reviewed by kamil.

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

Revision 1.93.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 6 16:20:19 2019 UTC (5 years, 4 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +7 -5 lines
Pull up following revision(s) (requested by kamil in ticket #21):

	sys/arch/i386/i386/process_machdep.c: revision 1.94

Do not dereference user pointer in ptrace_machdep_dorequest()/i386
Always use copyin(9) for reading user memory.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Tue Aug 6 02:04:43 2019 UTC (5 years, 4 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +7 -5 lines
Do not dereference user pointer in ptrace_machdep_dorequest()/i386

Always use copyin(9) for reading user memory.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Jun 26 12:30:12 2019 UTC (5 years, 5 months ago) by mgorny
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +108 -21 lines
Implement PT_GETXSTATE and PT_SETXSTATE

Introduce two new ptrace() requests: PT_GETXSTATE and PT_SETXSTATE,
that provide access to the extended (and extensible) set of FPU
registers on amd64 and i386.  At the moment, this covers AVX (YMM)
and AVX-512 (ZMM, opmask) registers.  It can be easily extended
to cover further register types without breaking backwards
compatibility.

PT_GETXSTATE issues the XSAVE instruction with all kernel-supported
extended components enabled.  The data is copied into 'struct xstate'
(which -- unlike the XSAVE area itself -- has stable format
and offsets).

PT_SETXSTATE issues the XRSTOR instruction to restore the register
values from user-provided 'struct xstate'.  The function replaces only
the specific XSAVE components that are listed in 'xs_rfbm' field,
making it possible to issue partial updates.

Both syscalls take a 'struct iovec' pointer rather than a direct
argument.  This requires the caller to explicitly specify the buffer
size.  As a result, existing code will continue to work correctly
when the structure is extended (performing partial reads/updates).

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

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

Revision 1.72.22.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:17 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.72.22.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.22.1: +69 -57 lines
update from HEAD

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sun Sep 17 09:41:35 2017 UTC (7 years, 2 months ago) by maxv
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat
Branch point for: phil-wifi
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -3 lines
Remove the second argument from USERMODE and KERNELMODE, it is unused
now that we don't have vm86 anymore.

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

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

Pass 2.

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

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

Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Feb 23 03:34:22 2017 UTC (7 years, 9 months ago) by kamil
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +49 -93 lines
Introduce PT_GETDBREGS and PT_SETDBREGS in ptrace(2) on i386 and amd64

This interface is modeled after FreeBSD API with the usage.

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

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

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

Further ideas:
 - restrict this interface with securelevel

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

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

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

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

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

 #ifdef HAVE_PT_GETDBREGS

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


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

GDB demo:
  (gdb) c
  Continuing.

  Watchpoint 2: traceme

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

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

Sponsored by <The NetBSD Foundation>

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

Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Jan 16 21:35:59 2017 UTC (7 years, 10 months ago) by kamil
Branches: MAIN
CVS tags: nick-nhusb-base-20170204
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +6 -2 lines
Refactor ptrace_watchpoint structure to allow extensions

Add new field pw_type in the ptrace_watchpoint structure.

amd64 and i386 offer the current set of watchpoints as
PTRACE_PW_TYPE_DBREGS.

On other archs than x86, there are readily available different types of
hardware assisted watchpoints like for code-only or data-only registers on
ARM. Also in future there is an option to implement MMU-based watchpoints
and future per-port or per-cpu extensions.

Next step is to alter this interface on x86 to generate SIGTRAP with
si_code TRAP_HWWTRAP with additional information on occurred event:
 - which watchpoint fired,
 - additional watchpoint-type specific information, like on amd64 with
   PTRACE_PW_TYPE_DBREGS.:
   * only watchpoint fired
   * watchpoint fired and single step occurred

Adjust ATF tests for the pw_type change.

Sponsored by <The NetBSD Foundation>

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

Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Dec 15 12:04:18 2016 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +91 -2 lines
Add support for hardware assisted watchpoints/breakpoints API in ptrace(2)

Add new ptrace(2) calls:
 - PT_COUNT_WATCHPOINTS - count the number of available hardware watchpoints
 - PT_READ_WATCHPOINT   - read struct ptrace_watchpoint from the kernel state
 - PT_WRITE_WATCHPOINT  - write new struct ptrace_watchpoint state, this
                          includes enabling and disabling watchpoints

The ptrace_watchpoint structure contains MI and MD parts:

typedef struct ptrace_watchpoint {
	int		pw_index;	/* HW Watchpoint ID (count from 0) */
	lwpid_t		pw_lwpid;	/* LWP described */
	struct mdpw	pw_md;		/* MD fields */
} ptrace_watchpoint_t;

For example amd64 defines MD as follows:
struct mdpw {
	void	*md_address;
	int	 md_condition;
	int	 md_length;
};

These calls are protected with the __HAVE_PTRACE_WATCHPOINTS guard.

Tested on amd64, initial support added for i386 and XEN.

Sponsored by <The NetBSD Foundation>

Revision 1.85.6.1: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:54:53 2016 UTC (8 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -4 lines
Sync with HEAD

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

Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Nov 2 00:11:59 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: MAIN
CVS tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -4 lines
* Split sys/kern/sys_process.c into three parts:
        1 - ptrace(2) syscall for native emulation
        2 - common ptrace(2) syscall code (shared with compat_netbsd32)
        3 - support routines that are shared with PROCFS and/or KTRACE

* Add module glue for #1 and #2.  Both modules will be built-in to the
  kernel if "options PTRACE" is included in the config file (this is
  the default, defined in sys/conf/std).

* Mark the ptrace(2) syscall as modular in syscalls.master (generated
  files will be committed shortly).

* Conditionalize all remaining portions of PTRACE code on a new kernel
  option PTRACE_HOOKS.

XXX Instead of PROCFS depending on 'options PTRACE', we should probably
    just add a procfs attribute to the sys/kern/sys_process.c file's
    entry in files.kern, and add PROCFS to the "#if defineds" for
    process_domem().  It's really confusing to have two different ways
    of requiring this file.

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

Revision 1.72.12.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:39:51 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +19 -238 lines
sync with head.

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

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

Revision 1.72.26.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:12 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +19 -238 lines
sync with head

Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Feb 19 21:23:01 2014 UTC (10 years, 9 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -2 lines
Add explicit #include <x86/fpu.h> instead of relying on pcb.h including it.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Feb 15 22:20:41 2014 UTC (10 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +14 -40 lines
Load and save the fpu registers (for copies to/from userspace) using
  helper functions in arch/x86/x86/fpu.c
They (hopefully) ensure that we write to the entire buffer and don't load
  values that might cause faults in kernel.
Also zero out the 'pad' field of the i386 mcontext fp area that I think
  once contained the registers of any Weitek fpu.
  Dunno why it wasn't pasrt of the union.
Some of these copies could be removed if the code directly copied the save
  area to/from userspace addresses.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Feb 15 10:11:15 2014 UTC (10 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +8 -73 lines
Remove all references to MDL_USEDFPU and deferred fpu initialisation.
The cost of zeroing the save area on exec is minimal.
This stops the FP registers of a random process being used the first
  time an lwp uses the fpu.
sendsig_siginfo() and get_mcontext() now unconditionally copy the FP
registers.
I'll remove the double-copy for signal handlers soon.
get_mcontext() might have been leaking kernel memory to userspace - and
  may still do so if i386_use_fxsave is false (short copies).

Revision 1.82: download - view: text, markup, annotated - select for diffs
Fri Feb 7 22:40:22 2014 UTC (10 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -119 lines
Convert the amd64 build to use x86/cpu_extended_state.h so that the fpu
  definitions match those of i386.
Mostly just structure and field renames, in addition:
1) process_xmm_to_s87() and process_s87_to_xmm() moved into
   x86/convert_xmm_s87.c so they can be used by amd64's netbsd32 code.
2) The linux signal code simplified to use a structure copy for ths fxsave
   data - it matches the hardware definition and won't change.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Tue Feb 4 22:48:26 2014 UTC (10 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -12 lines
Now that the sv_xmm and sv_87 fields in the pcb are the same size as the
  hardware ones, and those in the mcontext, ptrace and core files we
  can really safely cast and copy between the types.
Remove a couple of temporary buffers and add CTASSERT()s that the sizes
  do actually match.

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

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Jan 25 20:12:53 2014 UTC (10 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +8 -10 lines
Change the way the x87 fp register is defined so that the copies between
  fsave and fxsave layouts can be done by structure assignments.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Jan 25 19:51:31 2014 UTC (10 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +85 -80 lines
Rewrite the code that converts the x87 tag word between its full and
  abridged versions.
The code in xmm_to_s87_tag() looked at the wrong register when trying
  to generate 0b01 (zero) and 0b10 (NaN etc) because the registers are
  relative to the stack top, but the tag words are absolute.
Since even a real 387 generates the correct tag values when the tag word
  (or register value) is loaded there is no point generating other than
  0b00 (used) and 0b11 (unused).
The compiler also made a pig's breakfast of the register copy loop.
When convering from fsave to (the larger) fxsave format don't bother
  copying the fp register values if none are in use.
Converting the other way we do copy them all because the target buffer
  is often written to userspace (and has no padding).
i386 core dumps still seem ok - and do use this code.

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

Revision 1.76: download - view: text, markup, annotated - select for diffs
Sat Jan 4 00:10:02 2014 UTC (10 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -4 lines
Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
  of the fp save area to all the process_read_fpregs() and
  process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
  just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
  to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.

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

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sun Dec 1 01:05:16 2013 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +30 -9 lines
revert fpu/pcu changes until we figure out what's wrong; they cause random
freezes

Revision 1.73: download - view: text, markup, annotated - select for diffs
Wed Oct 23 20:18:50 2013 UTC (11 years, 1 month ago) by drochner
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +11 -32 lines
Use the MI "pcu" framework for bookkeeping of npx/fpu states on x86.
This reduces the amount of MD code enormously, and makes it easier
to implement support for newer CPU features which require more fpu
state, or for fpu usage by the kernel.
For access to FPU state across CPUs, an xcall kthread is used now
rather than a dedicated IPI.
No user visible changes intended.

Revision 1.68.4.3: download - view: text, markup, annotated - select for diffs
Sun Oct 24 22:48:01 2010 UTC (14 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.68.4.2: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.4.2: +12 -6 lines
Sync with HEAD

Revision 1.66.10.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:02:29 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.66.10.2: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.10.2: +12 -10 lines
sync with head

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Nov 21 03:11:00 2009 UTC (15 years ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, khorben-n900, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +12 -6 lines
Use lwp_getpcb() on x86 MD code, clean from struct user usage.

Revision 1.68.4.2: download - view: text, markup, annotated - select for diffs
Sun Nov 1 13:58:21 2009 UTC (15 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.68.4.1: preferred, colored; branchpoint 1.68: preferred, colored
Changes since revision 1.68.4.1: +2 -6 lines
Sync with HEAD.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Oct 21 21:12:00 2009 UTC (15 years, 1 month ago) by rmind
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -6 lines
Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

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

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

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

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

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat Mar 14 21:04:10 2009 UTC (15 years, 9 months ago) by dsl
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +5 -6 lines
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.

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

Revision 1.67.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:16:16 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -8 lines
Sync with HEAD.

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

Revision 1.67.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:13:14 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +3 -8 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Nov 19 18:35:59 2008 UTC (16 years ago) by ad
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -8 lines
Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

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

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

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

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

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:24 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: nick-hppapmap, haad-dm
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

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

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

Revision 1.52.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:37:04 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.52.2.4: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.2.4: +6 -6 lines
sync with head

Revision 1.65.8.1: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:14:20 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +6 -6 lines
Sync with HEAD

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Jan 15 14:50:08 2008 UTC (16 years, 11 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, 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, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -6 lines
Introduce optional cpu_offline_md to execute MD actions at the end of
cpu_offline. Use this on amd64/i386 to force a FPU save. As this was
triggered by npxsave_cpu/fpusave_cpu not working for a different CPU,
remove the cpu_info argument and adjust npxsave_*/fpusave_* to use bool
for the save.

OK ad@

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

Revision 1.65: download - view: text, markup, annotated - select for diffs
Wed Oct 17 19:54:46 2007 UTC (17 years, 1 month ago) by garbled
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-merge1, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs, bouyer-xeni386
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -2 lines
Merge the ppcoea-renovation branch to HEAD.

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

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

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

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

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

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

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Jul 9 20:52:16 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, jmcneill-pm, hpcarm-cleanup, bouyer-xenamd64
Branch point for: matt-armv6
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -4 lines
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.62.10.1: download - view: text, markup, annotated - select for diffs
Tue Jun 26 18:12:43 2007 UTC (17 years, 5 months ago) by garbled
Branches: ppcoea-renovation
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +8 -5 lines
Sync with HEAD.

Revision 1.62.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 9 23:55:13 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.62.2.1: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.2.1: +8 -5 lines
Sync with head.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Jun 3 09:38:16 2007 UTC (17 years, 6 months ago) by pavel
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +8 -5 lines
Attempt to fix PR kern/36431 by including process_read_fpregs() and
process_read_regs() when COREDUMP is defined. These function are used
in core_elf32.c .

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:57:42 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -4 lines
Compile fixes.

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

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

Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:51:45 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

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

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:31:37 2007 UTC (17 years, 9 months ago) by pavel
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.

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

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

Revision 1.57.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:10 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.57.4.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.4.1: +3 -6 lines
sync with head.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Nov 28 17:27:09 2006 UTC (18 years ago) by elad
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -5 lines
Move ktrace, ptrace, systrace, and procfs to use kauth(9).

First, remove process_checkioperm() calls from MD code. Similar checks
using kauth(9) routines (on the process scope, using appropriate action)
are done in the callers.

Add secmodel back-end to handle each subsystem.

Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:29:19 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +9 -8 lines
Sync with head.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:38 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
__unused removal on arguments; approved by core.

Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:04:44 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +9 -8 lines
sync with head

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:30:43 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +9 -8 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

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

Revision 1.55.2.2: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:05 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.55.2.1: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.1: +7 -2 lines
sync with head.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Aug 31 16:39:13 2006 UTC (18 years, 3 months ago) by matt
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +7 -2 lines
More PTRACE fallout.

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

Revision 1.54.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:37:33 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +13 -5 lines
Sync with head.

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

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

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Mar 16 18:59:17 2006 UTC (18 years, 9 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -2 lines
need to set uio_vmspace for XMM accesses

Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Mar 1 12:38:11 2006 UTC (18 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pdpolicy-base2, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, elad-kernelauth
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +12 -5 lines
merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 31 12:37:20 2005 UTC (18 years, 11 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +12 -5 lines
adapt some random parts of kernel to uio_vmspace.

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

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

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

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Jun 1 13:01:35 2005 UTC (19 years, 6 months ago) by scw
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -4 lines
Declare the second arg of process_write_{fp,}regs() to be const.
This permits sh5 to continue to re-use those functions in cpu_setmcontext()
with the recent change to Makefile.kern.inc (revision 1.62).

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

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

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

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Jan 28 10:48:55 2004 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +10 -10 lines
rename i386 mdlwp flags from MDP_ to MDL_
to avoid confusion with mdproc flags which also have MDP_ prefixes.

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

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

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

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:25:22 2003 UTC (21 years, 5 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +9 -9 lines
Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:28:26 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +7 -7 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:20:56 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +9 -9 lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

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

Revision 1.32.2.12: download - view: text, markup, annotated - select for diffs
Fri Oct 18 04:12:19 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.32.2.11: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.2.11: +6 -6 lines
npxsave_proc() -> npxsave_lwp().

Revision 1.32.2.11: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:37:49 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.32.2.10: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.10: +14 -18 lines
Catch up to -current.

Revision 1.32.2.10: download - view: text, markup, annotated - select for diffs
Tue Oct 15 18:01:59 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.32.2.9: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.9: +6 -6 lines
Make _validfoo() routines go back to taking a proc.

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

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

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

Revision 1.34.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:37:27 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.34.2.2: preferred, colored
Changes since revision 1.34.2.2: +12 -21 lines
catch up with -current on kqueue branch

Revision 1.32.2.8: download - view: text, markup, annotated - select for diffs
Fri Jun 21 20:29:24 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.32.2.7: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.7: +3 -3 lines
procfs->process missed in merge.

Revision 1.32.2.7: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:39:12 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.32.2.6: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.6: +11 -20 lines
Catch up to -current.

Revision 1.30.10.9: download - view: text, markup, annotated - select for diffs
Sat May 18 17:27:32 2002 UTC (22 years, 7 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
CVS tags: i386mp_plus16_stable
Diff to: previous 1.30.10.8: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.10.8: +10 -19 lines
Catch up with -current.  (commons elimination, changes to MI pci framework)

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri May 10 05:45:50 2002 UTC (22 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: sommerfeld_i386mpnext, sommerfeld_i386mpbase_1, 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, gehenna-devsw-base, gehenna-devsw
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -6 lines
Remove last vestiges of procfs references.  Problem pointed out
by Geoff Wing <mason@primenet.com.au>.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu May 9 16:28:11 2002 UTC (22 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +9 -16 lines
Mirror cleanup wrt. procfs-centric naming made to the MI ptrace code.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu May 9 15:44:46 2002 UTC (22 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3 lines
Move code shared by procfs and the kernel proper out of procfs and
into the kernel proper (renaming functions from procfs_* to process_*).

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

Revision 1.32.2.6: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:50:41 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.32.2.5: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.5: +32 -31 lines
Adapt xmm handling to LWPs.

Revision 1.32.2.5: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:25:28 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.32.2.4: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.4: +232 -13 lines
Catch up to -current.

Revision 1.30.10.8: download - view: text, markup, annotated - select for diffs
Sat Dec 29 21:09:07 2001 UTC (22 years, 11 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.30.10.7: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.10.7: +228 -12 lines
Yet another mergeup.

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

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Dec 6 00:01:36 2001 UTC (23 years ago) by thorpej
Branches: MAIN
CVS tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +52 -11 lines
More complete conversion of the XMM-format tag word to i387-format
tag word.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Dec 5 00:58:06 2001 UTC (23 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +174 -4 lines
* Allow machine-dependent code to specify hooks for ptrace(2)
  (__HAVE_PTRACE_MACHDEP) and procfs (__HAVE_PROCFS_MACHDEP).
  These changes will allow platforms like x86 (XMM) and PowerPC
  (AltiVec) to export extended register sets in a sane manner.

* Use __HAVE_PTRACE_MACHDEP to export x86 XMM registers (standard
  FP + SSE/SSE2) using PT_{GET,SET}XMMREGS (in the machdep
  ptrace request space).
* Use __HAVE_PROCFS_MACHDEP to export x86 XMM registers via
  /proc/N/xmmregs in procfs.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Dec 4 19:41:47 2001 UTC (23 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -3 lines
When doing process_s87_to_xmm(), don't restore the "saved SW from
last exception"; the userland-visible fpreg structure doesn't
include it.

Pointed out by enami tsugutomo <enami@sm.sony.co.jp>.

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

Revision 1.30.10.7: download - view: text, markup, annotated - select for diffs
Mon Sep 3 19:48:11 2001 UTC (23 years, 3 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.30.10.6: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.10.6: +108 -20 lines
Merge with -current once more.

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

Revision 1.32.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:08:33 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.32.2.2: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.2: +107 -17 lines
Catch up with -current.

Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:11:44 2001 UTC (23 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +108 -20 lines
update to -current

Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Aug 3 01:21:34 2001 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -5 lines
Don't clobber the MXCSR when we fake FNINIT.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Aug 2 22:04:28 2001 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -4 lines
- Rename cpu_use_fxsave to i386_use_fxsave.
- If we detect SSE/SSE2 support in the CPU, enable SSE exceptions
  and set i386_has_{sse,sse2} as appropriate.
- Expose i386_use_fxsave and i386_has_{sse,sse2} through sysctl
  as machdep.{osfsxr,sse,sse2}.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Aug 2 21:04:44 2001 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +104 -18 lines
Add support for saving/restoring SSE/SSE2 state using FXSAVE/FXRSTOR.

Reviewed by Frank.

Revision 1.32.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 19:25:37 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.32.2.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.1: +9 -35 lines
Catch up to -current.

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

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Jun 18 03:33:59 2001 UTC (23 years, 6 months ago) by sommerfeld
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +7 -20 lines
Delete dead code.
Mask segment registers from trap frame with 0xffff for cleanliness.

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

Revision 1.30.14.1: download - view: text, markup, annotated - select for diffs
Sun Jun 17 22:29:16 2001 UTC (23 years, 6 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +5 -31 lines
Pull up revision 1.33 (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.33: download - view: text, markup, annotated - select for diffs
Sun Jun 17 21:01:35 2001 UTC (23 years, 6 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -18 lines
Add %fs/%gs to trap frame and save/restore them on
trap/interrupt/syscall entry from userspace.

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

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

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

Discussed in advance with Frank van der Linden.

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

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

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

Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:49:27 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.1: +10 -3 lines
Sync with HEAD (for UBC fixes).

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Dec 11 17:36:03 2000 UTC (24 years ago) by mycroft
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +10 -3 lines
Handle the VM86-mode syscall problem by changing the syscall vector when
jumping in or out of VM86 mode.

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

Revision 1.30.10.3: download - view: text, markup, annotated - select for diffs
Fri Aug 18 13:39:14 2000 UTC (24 years, 3 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.30.10.2: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.10.2: +3 -3 lines
Use revised npxsave interface.

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

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

Revision 1.30.10.1: download - view: text, markup, annotated - select for diffs
Mon Jun 26 02:04:12 2000 UTC (24 years, 5 months ago) by sommerfeld
Branches: sommerfeld_i386mp_1
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -9 lines
Start making npx.c MP-safe; Interface to npx now specifies the process
and/or cpu to act on.  Implement an IPI for MP lazy FP save.
Tested and working when only one CPU is running; untested in the MP
case since we can't run user processes on multiple CPU's yet.

Along for the ride:
 - Change i386_send_ipi to take a "struct cpu_info *" rather than a cpu number.
 - Turn off the "give me the brain" test IPI's.

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

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed May 12 21:21:48 1999 UTC (25 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, sommerfeld_i386mpbase_20000422, sommerfeld_i386mp_houseclean, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: thorpej_scsipi, sommerfeld_i386mp_1, netbsd-1-5
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +12 -5 lines
Oops, forgot to commit this file.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Aug 15 05:10:24 1998 UTC (26 years, 4 months ago) by mycroft
Branches: MAIN
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, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc-base, chs-ubc
Branch point for: chs-ubc2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +21 -27 lines
Assign my copyrights to TNF.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Aug 5 02:45:09 1998 UTC (26 years, 4 months ago) by perry
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4 lines
bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.22.16.4: download - view: text, markup, annotated - select for diffs
Thu Jan 29 12:06:48 1998 UTC (26 years, 10 months ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001
Diff to: previous 1.22.16.3: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.16.3: +3 -3 lines
Pull up 1.27 (mycrometeor)

Revision 1.22.16.3: download - view: text, markup, annotated - select for diffs
Thu Jan 29 11:53:42 1998 UTC (26 years, 10 months ago) by mellon
Branches: netbsd-1-3
Diff to: previous 1.22.16.2: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.16.2: +10 -3 lines
Pull up 1.26 (mycroft)

Revision 1.22.16.2: download - view: text, markup, annotated - select for diffs
Thu Jan 29 11:40:25 1998 UTC (26 years, 10 months ago) by mellon
Branches: netbsd-1-3
Diff to: previous 1.22.16.1: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.16.1: +24 -12 lines
Pull up 1.25 (mycroft)

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jan 24 14:22:44 1998 UTC (26 years, 10 months ago) by mycroft
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
Minor change.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jan 24 13:19:55 1998 UTC (26 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -3 lines
Store the initial NPX control word appropriate for the emulation in the saved
FPU state, and use it when initializing the FPU on demand.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jan 24 12:11:15 1998 UTC (26 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +24 -13 lines
Fix process_{read,write}_fpregs().

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

Revision 1.22.16.1: download - view: text, markup, annotated - select for diffs
Thu Nov 13 08:07:24 1997 UTC (27 years, 1 month ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE, netbsd-1-3-BETA
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -9 lines
Pull rev 1.23 up from trunk (mycroft)

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Nov 13 03:16:50 1997 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -9 lines
Some general cleanup:
* Call gdt_init() earlier on.
* Don't bother to check for TSS and LDT descriptors in verr_gdt().
* Nuke the sti special case for trace and breakpoint traps.
* Move some variable declarations into more appropriate locations.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri May 3 19:42:25 1996 UTC (28 years, 7 months ago) by christos
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, netbsd-1-3-base, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Branch point for: netbsd-1-3
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -3 lines
Prototype and gcc -Wall cleanups

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Apr 11 07:47:48 1996 UTC (28 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +11 -15 lines
Export [gs]et_vflags(), and always use them when saving/restoring registers
in VM86 mode.
Allow changing of *all* PSL bits in VM86 mode; some applications don't work
right otherwise, and all the nasty bits are virtualized anyway.
Make sure PSL_VIF, PSL_VIP, and PSL_VM don't show up in the user's view of
the PSL.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Jan 13 06:14:44 1996 UTC (28 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +37 -27 lines
Make a small attempt to deal better with VM86 mode in GDB.

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

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

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Aug 13 09:05:56 1995 UTC (29 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -37 lines
Lock the process in core before operating on it.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Aug 6 19:01:18 1995 UTC (29 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -3 lines
Clear MDP_USEDFPU on exec.  Set it in process_write_fpregs() unconditionally,
for the benefit of the emulator.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Aug 6 18:02:22 1995 UTC (29 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -2 lines
Make process_write_fpregs() safe.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Aug 6 05:33:02 1995 UTC (29 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +58 -1 lines
Move the `used fpu' flag into mdproc, so it can be referenced when a process
is swapped out.  Implement process_{read,write}_fpregs.

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

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jan 15 00:42:01 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +29 -28 lines
Move the existing frame pointer calculation into a separate helper function.
Eventually this should cause the child to be swapped in if necessary.
Do the eflags security check in cheaper way.

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

Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 11 10:01:24 1994 UTC (30 years, 2 months ago) by mycroft
Branches: netbsd-1-0
CVS tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Diff to: previous 1.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.1: +32 -32 lines
Update from trunk.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Oct 9 12:57:18 1994 UTC (30 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +32 -32 lines
Make reg, frame, and sigcontext more similar.

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

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Aug 15 16:37:04 1994 UTC (30 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -14 lines
changes for the new sys_process.c, and some cleanup

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu May 19 06:34:54 1994 UTC (30 years, 7 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +43 -42 lines
Minor changes.

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

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

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Apr 3 22:50:14 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -2 lines
Clean up #includes.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 28 21:23:50 1994 UTC (30 years, 10 months ago) by cgd
Branches: magnum
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +198 -0 lines
put checks for SLOAD back in (XXX) for now

Revision 1.4.2.1
Fri Jan 28 21:23:49 1994 UTC (30 years, 10 months ago) by cgd
Branches: magnum
FILE REMOVED
Changes since revision 1.4: +0 -198 lines
file process_machdep.c was added on branch magnum on 1994-01-28 21:23:50 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Jan 28 21:23:49 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: magnum-base
Branch point for: magnum
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +13 -1 lines
put checks for SLOAD back in (XXX) for now

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jan 20 21:22:08 1994 UTC (30 years, 10 months ago) by ws
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -16 lines
Make signal handling code use copyin/copyout instead of
direct access to user data.
Make procfs really work for debugging.
Implement not & notepg files in procfs.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jan 9 15:02:24 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +33 -36 lines
Add the infamous IOPL sanity check, and speed up some bits.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jan 8 11:13:06 1994 UTC (30 years, 11 months ago) by cgd
Branches: MAIN
code reorg

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>