The NetBSD Project

CVS log for src/sys/arch/usermode/dev/cpu.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.84 / (download) - annotate - [select for diffs], Wed Oct 4 20:28:06 2023 UTC (6 months, 2 weeks ago) by ad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.83: +5 -7 lines
Diff to previous 1.83 (colored)

Eliminate l->l_ncsw and l->l_nivcsw.  From memory think they were added
before we had per-LWP struct rusage; the same is now tracked there.

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:56 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.80: +13 -8 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

Merge changes from current as of 20200406

Revision 1.83 / (download) - annotate - [select for diffs], Tue Dec 3 15:20:59 2019 UTC (4 years, 4 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, 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, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.82: +4 -2 lines
Diff to previous 1.82 (colored)

Use __insn_barrier to enforce ordering in l_ncsw loops.

(Only need ordering observable by interruption, not by other CPUs.)

Revision 1.82 / (download) - annotate - [select for diffs], Sun Dec 1 14:52:14 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.81: +10 -6 lines
Diff to previous 1.81 (colored)

Make cpu_intr_p() safe to use anywhere, i.e. outside assertions:

Don't call kpreempt_disable() / kpreempt_enable() to make sure we're not
preempted while using the value of curcpu().  Instead, observe the value of
l_ncsw before and after the check to see if we have been preempted.  If
we have been preempted, then we need to retry the read.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Nov 23 19:40:37 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.80: +3 -4 lines
Diff to previous 1.80 (colored)

cpu_need_resched():

- Remove all code that should be MI, leaving the bare minimum under arch/.
- Make the required actions very explicit.
- Pass in LWP pointer for convenience.
- When a trap is required on another CPU, have the IPI set it locally.
- Expunge cpu_did_resched().

Revision 1.74.8.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:46 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.74.8.1: +82 -16 lines
Diff to previous 1.74.8.1 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

Sync with HEAD

Revision 1.80 / (download) - annotate - [select for diffs], Fri Jun 1 07:26:15 2018 UTC (5 years, 10 months ago) by reinoud
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, 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, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 (colored)

Pass the address of the array, this fixes issues with i386 compilation

Revision 1.79 / (download) - annotate - [select for diffs], Tue May 29 09:25:01 2018 UTC (5 years, 10 months ago) by reinoud
Branch: MAIN
Changes since 1.78: +5 -5 lines
Diff to previous 1.78 (colored)

Only report the things we've passed in the mcontext and leave out flags that
are not reported in the mcontext anyway!

Revision 1.78 / (download) - annotate - [select for diffs], Tue May 29 07:35:40 2018 UTC (5 years, 10 months ago) by reinoud
Branch: MAIN
Changes since 1.77: +17 -11 lines
Diff to previous 1.77 (colored)

Implement cpu_lwp_setprivate(). This removes the need for the cpu_switch()
hack.

Programs with TLS work fine now, including gdb!

Revision 1.77 / (download) - annotate - [select for diffs], Tue May 29 07:09:21 2018 UTC (5 years, 10 months ago) by reinoud
Branch: MAIN
Changes since 1.76: +30 -9 lines
Diff to previous 1.76 (colored)

Only set requested parts of the mcontext in cpu_setmcontext()
Make the atomic switcher `atomic' by using splhigh()

Revision 1.76 / (download) - annotate - [select for diffs], Thu May 24 19:39:04 2018 UTC (5 years, 10 months ago) by reinoud
Branch: MAIN
Changes since 1.75: +51 -12 lines
Diff to previous 1.75 (colored)

First try at TLS support and getcontext/setcontext/swapcontext support.

Revision 1.74.8.1 / (download) - annotate - [select for diffs], Mon May 21 04:36:02 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.74: +12 -5 lines
Diff to previous 1.74 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Thu May 17 19:00:39 2018 UTC (5 years, 11 months ago) by reinoud
Branch: MAIN
CVS Tags: pgoyette-compat-0521
Changes since 1.74: +12 -5 lines
Diff to previous 1.74 (colored)

Refactor for easier debugging and while here add some more signals

Revision 1.72.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:47 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.72.2.1: +0 -2 lines
Diff to previous 1.72.2.1 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

update from HEAD

Revision 1.73.6.1 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:54 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.73: +2 -4 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Sync with HEAD

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:08 2017 UTC (6 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: pgoyette-compat
Changes since 1.73: +2 -4 lines
Diff to previous 1.73 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

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

Rebase to HEAD as of a few days ago.

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:11 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.46.2.2: +4 -4 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

sync with head.

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

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

Revision 1.72.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:28 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

sync with head

Revision 1.73 / (download) - annotate - [select for diffs], Mon Mar 24 20:06:33 2014 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, 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, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: nick-nhusb
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored)

use cpu_{g,s}etmodel

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:28 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.46.2.1: +14 -3 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored)

sync with head

Revision 1.69.2.3 / (download) - annotate - [select for diffs], Wed Aug 8 15:51:08 2012 UTC (11 years, 8 months ago) by martin
Branch: netbsd-6
CVS Tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.69.2.2: +4 -3 lines
Diff to previous 1.69.2.2 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #466):
	sys/arch/amiga/amiga/autoconf.c: revision 1.113
	sys/arch/rs6000/rs6000/autoconf.c: revision 1.4
	sys/arch/emips/emips/autoconf.c: revision 1.6
	sys/arch/sandpoint/sandpoint/autoconf.c: revision 1.27
	sys/arch/evbmips/alchemy/autoconf.c: revision 1.18
	sys/arch/sgimips/sgimips/autoconf.c: revision 1.43
	sys/arch/atari/atari/autoconf.c: revision 1.63
	sys/arch/powerpc/oea/ofw_autoconf.c: revision 1.17
	sys/arch/mmeye/mmeye/autoconf.c: revision 1.9
	distrib/sets/lists/comp/mi: revision 1.1771
	sys/arch/mipsco/mipsco/autoconf.c: revision 1.25
	sys/arch/iyonix/iyonix/autoconf.c: revision 1.14
	sys/arch/hp300/hp300/autoconf.c: revision 1.100
	sys/kern/init_main.c: revision 1.445
	sys/arch/pmax/pmax/autoconf.c: revision 1.79
	sys/arch/netwinder/netwinder/autoconf.c: revision 1.11
	sys/arch/dreamcast/dreamcast/autoconf.c: revision 1.10
	sys/arch/ibmnws/ibmnws/autoconf.c: revision 1.12
	sys/arch/evbppc/ev64260/autoconf.c: revision 1.17
	sys/arch/evbmips/gdium/autoconf.c: revision 1.5
	sys/arch/algor/algor/autoconf.c: revision 1.21
	share/man/man9/Makefile: revision 1.367
	sys/arch/ews4800mips/ews4800mips/autoconf.c: revision 1.9
	sys/arch/amigappc/amigappc/autoconf.c: revision 1.5
	sys/arch/x86/x86/x86_autoconf.c: revision 1.65
	sys/arch/acorn26/acorn26/autoconf.c: revision 1.9
	sys/arch/mvmeppc/mvmeppc/autoconf.c: revision 1.13
	sys/arch/vax/vax/autoconf.c: revision 1.94
	sys/arch/usermode/dev/cpu.c: revision 1.72
	sys/arch/evbppc/virtex/autoconf.c: revision 1.5
	sys/arch/next68k/next68k/autoconf.c: revision 1.26
	sys/arch/mac68k/mac68k/autoconf.c: revision 1.73
	sys/arch/ia64/ia64/autoconf.c: revision 1.6
	sys/arch/evbppc/obs405/obs405_autoconf.c: revision 1.6
	share/man/man9/cpu_rootconf.9: revision 1.7
	sys/arch/landisk/landisk/autoconf.c: revision 1.6
	sys/arch/evbmips/malta/autoconf.c: revision 1.16
	sys/arch/sun3/sun3/autoconf.c: revision 1.76
	sys/arch/evbppc/explora/autoconf.c: revision 1.13
	sys/arch/sun3/sun3/autoconf.c: revision 1.77
	sys/arch/evbmips/loongson/autoconf.c: revision 1.3
	sys/arch/evbmips/atheros/autoconf.c: revision 1.11
	sys/arch/sparc64/sparc64/autoconf.c: revision 1.188
	sys/arch/acorn32/acorn32/autoconf.c: revision 1.18
	sys/arch/evbarm/evbarm/autoconf.c: revision 1.13
	sys/arch/cobalt/cobalt/autoconf.c: revision 1.30
	sys/arch/mvme68k/mvme68k/autoconf.c: revision 1.46
	sys/arch/hp700/hp700/autoconf.c: revision 1.48
	sys/arch/evbmips/adm5120/autoconf.c: revision 1.5
	sys/arch/hpcmips/hpcmips/autoconf.c: revision 1.25
	sys/arch/alpha/alpha/autoconf.c: revision 1.52
	sys/arch/sparc/sparc/autoconf.c: revision 1.244
	sys/arch/evbppc/pmppc/autoconf.c: revision 1.7
	sys/arch/bebox/bebox/autoconf.c: revision 1.25
	sys/arch/luna68k/luna68k/autoconf.c: revision 1.13
	sys/arch/hpcarm/hpcarm/autoconf.c: revision 1.20
	sys/arch/evbppc/walnut/autoconf.c: revision 1.21
	sys/arch/cesfic/cesfic/autoconf.c: revision 1.26
	sys/arch/cats/cats/autoconf.c: revision 1.17
	sys/arch/x68k/x68k/autoconf.c: revision 1.67
	sys/arch/news68k/news68k/autoconf.c: revision 1.21
	sys/arch/arc/arc/autoconf.c: revision 1.34
	sys/arch/evbsh3/evbsh3/autoconf.c: revision 1.11
	sys/sys/conf.h: revision 1.143
	sys/arch/evbmips/rasoc/autoconf.c: revision 1.3
	sys/arch/hpcsh/hpcsh/autoconf.c: revision 1.26
	sys/arch/sun68k/sun68k/autoconf.c: revision 1.29
	sys/arch/evbmips/rmixl/autoconf.c: revision 1.6
	sys/arch/zaurus/zaurus/autoconf.c: revision 1.12
	sys/arch/xen/x86/autoconf.c: revision 1.15
	sys/arch/evbppc/mpc85xx/autoconf.c: revision 1.6
	sys/arch/shark/shark/autoconf.c: revision 1.18
	sys/arch/prep/prep/autoconf.c: revision 1.25
	sys/arch/newsmips/newsmips/autoconf.c: revision 1.36
	sys/arch/sbmips/sbmips/autoconf.c: revision 1.8
Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.
No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().
Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().
Make cpu_rootconf(9) describe the calling order.
add rootconf(9) as a link to cpu_rootconf(9)
make this compile again

Revision 1.72 / (download) - annotate - [select for diffs], Sun Jul 29 18:05:47 2012 UTC (11 years, 8 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.71: +4 -3 lines
Diff to previous 1.71 (colored)

Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.

No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().

Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().

Make cpu_rootconf(9) describe the calling order.

Revision 1.69.2.2 / (download) - annotate - [select for diffs], Mon Jul 2 21:33:00 2012 UTC (11 years, 9 months ago) by jdc
Branch: netbsd-6
Changes since 1.69.2.1: +12 -2 lines
Diff to previous 1.69.2.1 (colored) to branchpoint 1.69 (colored)

Pull up revision 1.71 (requested by reinoud in ticket #377).

Implement dummy `cpu_mcontext_validate' to make it compile again. This
function needs to be implemented in the target secton one day for extra
security.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jun 25 14:43:54 2012 UTC (11 years, 9 months ago) by reinoud
Branch: MAIN
Changes since 1.70: +12 -2 lines
Diff to previous 1.70 (colored)

Implement dummy `cpu_mcontext_validate' to make it compile again. This
function needs to be implemented in the target secton one day for extra
security.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:59 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.46: +133 -78 lines
Diff to previous 1.46 (colored)

sync with head

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Wed Mar 7 23:44:24 2012 UTC (12 years, 1 month ago) by riz
Branch: netbsd-6
Changes since 1.69: +5 -5 lines
Diff to previous 1.69 (colored)

Pull up following revision(s) (requested by reinoud in ticket #89):
	sys/arch/usermode/usermode/thunk.c: revision 1.81
	sys/arch/usermode/target/i386/cpu_i386.c: revision 1.4
	sys/arch/usermode/include/thunk.h: revision 1.61
	sys/arch/usermode/include/intr.h: revision 1.9
	sys/arch/usermode/dev/cpu.c: revision 1.70
	sys/arch/usermode/dev/ttycons.c: revision 1.19
	sys/arch/usermode/usermode/trap.c: revision 1.64
Implement signal forwarding to userland for usermode kernels. Especially
SIGFPE is important since the urkel shouldn't stop when a userland program
devides by zero!

Revision 1.47.2.4 / (download) - annotate - [select for diffs], Tue Mar 6 18:26:39 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.47.2.3: +5 -5 lines
Diff to previous 1.47.2.3 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

sync to -current

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Tue Mar 6 09:56:10 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.47.2.2: +5 -5 lines
Diff to previous 1.47.2.2 (colored) to branchpoint 1.47 (colored)

sync to -current

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Sun Mar 4 00:46:13 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.47.2.1: +5 -5 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored)

sync to latest -current.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Mar 3 21:15:15 2012 UTC (12 years, 1 month ago) by reinoud
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4, jmcneill-usbmp-base10
Changes since 1.69: +5 -5 lines
Diff to previous 1.69 (colored)

Implement signal forwarding to userland for usermode kernels. Especially
SIGFPE is important since the urkel shouldn't stop when a userland program
devides by zero!

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:33:23 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.47: +129 -101 lines
Diff to previous 1.47 (colored)

merge to -current.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Jan 21 22:09:56 2012 UTC (12 years, 2 months ago) by reinoud
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base5, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.68: +12 -7 lines
Diff to previous 1.68 (colored)

Complete rewrite of the signal and spl framework for NetBSD/usermode

Signals are now moved from the sigaltstack ASAP and stacked on a replacement
stack for each processes.

Preemption now works though could be enhanced a bit more

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jan 18 19:17:02 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.67: +46 -15 lines
Diff to previous 1.67 (colored)

Create an atomic switchto() that has SIGALRM and SIGIO signals blocked that
might otherwise disrupt the setting of curlwp to match the lwp context.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jan 15 10:45:03 2012 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.66: +15 -3 lines
Diff to previous 1.66 (colored)

sync disks and unmount at shutdown, and run shutdownhooks + pmf shutdown
handlers

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jan 15 10:18:58 2012 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.65: +10 -5 lines
Diff to previous 1.65 (colored)

allow specifing the root device with 'root=ldN' parameter

Revision 1.65 / (download) - annotate - [select for diffs], Sat Jan 14 21:45:28 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.64: +4 -2 lines
Diff to previous 1.64 (colored)

Reimplement userret() to also include AST for preemption.

Note it would be nice if we could do the check "are we going to userland?" in
a less intrusive way.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Jan 14 17:42:51 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.63: +23 -70 lines
Diff to previous 1.63 (colored)

Revamp the NetBSD/usermode pagefault and illegal instruction handing. It now
can handle recursive entry and is a lot more memory tight compared to the old
implementation. Performance wise:

* slightly less number of syscalls/sec possible though could be optimized
* a lot faster context creation / destruction making overall operation faster.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Jan 12 13:28:54 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored)

Remove old comment about space not being freed; it is now done correctly so
remove it to avoid confusion later.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Jan 6 12:54:59 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.61: +23 -25 lines
Diff to previous 1.61 (colored)

Cleanup stack allocation and freeing. This means the memory leak on lwp
destruction ought to be solved.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jan 4 15:18:57 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

No reason why to have a larger pagefault stackframe for lwp0

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jan 4 15:14:57 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.59: +6 -6 lines
Diff to previous 1.59 (colored)

Zero the memory we claim for the stacks

Revision 1.59 / (download) - annotate - [select for diffs], Tue Jan 3 12:10:04 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.58: +7 -7 lines
Diff to previous 1.58 (colored)

Use M_WAITOK instead of M_NOWAIT for the stack allocations

Revision 1.58 / (download) - annotate - [select for diffs], Tue Jan 3 12:05:01 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.57: +17 -13 lines
Diff to previous 1.57 (colored)

Rename the debug printf's to use a thunk_ prefix to avoid confusion.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Dec 27 14:55:31 2011 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.56: +11 -2 lines
Diff to previous 1.56 (colored)

Implement physio() for NetBSD/usermode the right way!

Revision 1.56 / (download) - annotate - [select for diffs], Sat Dec 24 12:23:24 2011 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.55: +11 -4 lines
Diff to previous 1.55 (colored)

Implement cpu_getmcontext() and cpu_setmcontext()

Revision 1.55 / (download) - annotate - [select for diffs], Thu Dec 15 03:42:32 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.54: +4 -7 lines
Diff to previous 1.54 (colored)

Improve usermode timecounter. It's unreasonable to assume that we'll get
100 "SIGALRM" per second with an ITIMER_REAL at 100Hz on a HZ=100 host as
the timer may expire before a pending signal has been delivered.

Instead of setitimer, use timer_create + timer_settime and from our
intr handler use timer_getoverrun to determine how many ticks we have
missed.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Dec 15 02:09:15 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.53: +8 -7 lines
Diff to previous 1.53 (colored)

allocate msgbuf with kmem_zalloc instead of thunk_malloc, now dmesg works

Revision 1.53 / (download) - annotate - [select for diffs], Thu Dec 15 00:40:03 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.52: +3 -5 lines
Diff to previous 1.52 (colored)

implement cpu idle via sigsuspend

Revision 1.52 / (download) - annotate - [select for diffs], Wed Dec 14 12:29:59 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.51: +2 -3 lines
Diff to previous 1.51 (colored)

only need to setup altstack after fork, not in lwp tramp

Revision 1.51 / (download) - annotate - [select for diffs], Wed Dec 14 04:12:22 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 (colored)

need to sigaltstack for each lwp

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 13 12:25:42 2011 UTC (12 years, 4 months ago) by reinoud
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Just in case ease up the stack space a bit more

Revision 1.49 / (download) - annotate - [select for diffs], Mon Dec 12 12:20:30 2011 UTC (12 years, 4 months ago) by reinoud
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

No need for such big stack spaces on lwp_fork() with the new setup.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Dec 11 20:45:14 2011 UTC (12 years, 4 months ago) by reinoud
Branch: MAIN
Changes since 1.47: +9 -2 lines
Diff to previous 1.47 (colored)

Free the systemcall and pagefault stacks on lwp destroy.

XXX what about the main ucps stackspace that is used for the trampoline?

Revision 1.47 / (download) - annotate - [select for diffs], Sun Nov 27 21:38:17 2011 UTC (12 years, 4 months ago) by reinoud
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.46: +50 -23 lines
Diff to previous 1.46 (colored)

Big patch that changes the signal stack usage of urkel significantly.

Formerly, all signals came on the signal stack and the two important ones were
then forwared to either the system call or the pagefault handler. This worked
fine but the signal stack remains that, a stack. When we go multi-process this
stack gets corrupted and out-of-order with all kind of nastyness since a
userland process switch can occure when a system call is called or when a
process gets a page fault.

The new scheme only uses the signal stack as a jumpboard. It swaps states and
then returns from the signal, clearing the stack but instead of returning to
the code it now jumpt to the handler and that handler then returns to the code
when its finished.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Sep 14 18:30:13 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored)

Make stacksize of newly spawn lwp's bigger than one page. Actually use the
variable stack_size now

Revision 1.45 / (download) - annotate - [select for diffs], Sat Sep 10 10:37:06 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.44: +24 -18 lines
Diff to previous 1.44 (colored)

Make cpu_lwp_trampo only jump once and make successive jumps go to the func
only

Revision 1.44 / (download) - annotate - [select for diffs], Fri Sep 9 20:14:33 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.43: +10 -4 lines
Diff to previous 1.43 (colored)

Make the trampoline only jump once!
All next calls are directed directly to the func specified.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Sep 9 20:06:04 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.42: +6 -6 lines
Diff to previous 1.42 (colored)

Use the new thunk_makecontext() scheme with function and upto 3 aguments

Revision 1.42 / (download) - annotate - [select for diffs], Fri Sep 9 18:41:16 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

Streamline makecontext() calls to really only specify the number of arguments
to prevent side-effects

Revision 1.41 / (download) - annotate - [select for diffs], Fri Sep 9 16:24:44 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.40: +3 -14 lines
Diff to previous 1.40 (colored)

Clean up cpu_trampoline and link the context so we dont have to manually do
that.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Sep 8 15:13:27 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

Use the machdep.h and now use the md_check_syscall_opcode()

Revision 1.39 / (download) - annotate - [select for diffs], Thu Sep 8 14:47:17 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.38: +6 -6 lines
Diff to previous 1.38 (colored)

Link syscall to userland so on exit is automatically goes to userland.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Sep 8 12:37:28 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.37: +5 -7 lines
Diff to previous 1.37 (colored)

Cleanup syscall context creation

Revision 1.37 / (download) - annotate - [select for diffs], Thu Sep 8 12:10:13 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.36: +9 -2 lines
Diff to previous 1.36 (colored)

get rid of clock softintr and move setitimer call to cpu_initclocks

Revision 1.36 / (download) - annotate - [select for diffs], Thu Sep 8 12:08:13 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.35: +2 -4 lines
Diff to previous 1.35 (colored)

White space

Revision 1.35 / (download) - annotate - [select for diffs], Thu Sep 8 12:01:22 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.34: +15 -4 lines
Diff to previous 1.34 (colored)

Create a ucontext for the system call to work in; its cloned from the new
pcb's call `userland' ucontext.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Sep 6 09:55:04 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.33: +2 -5 lines
Diff to previous 1.33 (colored)

cpu_lwp_inkernel approach won't work, back to the drawing board

Revision 1.33 / (download) - annotate - [select for diffs], Mon Sep 5 20:54:47 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.32: +5 -2 lines
Diff to previous 1.32 (colored)

Have the urkel maintain a 'cpu_lwp_inkernel' variable and read it from the
urkelvisor to determine the origin of a syscall.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Sep 5 19:28:32 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.31: +4 -8 lines
Diff to previous 1.31 (colored)

Restore errno just before switching to the new context and NOT after it got
back again

Revision 1.31 / (download) - annotate - [select for diffs], Mon Sep 5 12:40:38 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.30: +5 -4 lines
Diff to previous 1.30 (colored)

Move kpreempt_enable/disable to splsched()

Revision 1.30 / (download) - annotate - [select for diffs], Mon Sep 5 12:22:19 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.29: +6 -2 lines
Diff to previous 1.29 (colored)

Disable kernel preemption in the critical section of cpu_switchto()

Revision 1.29 / (download) - annotate - [select for diffs], Sun Sep 4 21:01:39 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

pcb->errno to pcb->pcb_errno

Revision 1.28 / (download) - annotate - [select for diffs], Sun Sep 4 20:54:52 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (colored)

Try to preserve errno over traps and on context switches

Revision 1.27 / (download) - annotate - [select for diffs], Sat Sep 3 19:06:49 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.26: +9 -3 lines
Diff to previous 1.26 (colored)

unbreak build on netbsd

Revision 1.26 / (download) - annotate - [select for diffs], Sat Sep 3 15:00:28 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.25: +6 -7 lines
Diff to previous 1.25 (colored)

Get this compiling (but not quite linking yet) on Linux

Revision 1.25 / (download) - annotate - [select for diffs], Sat Sep 3 12:25:31 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.24: +4 -7 lines
Diff to previous 1.24 (colored)

Oops forgot to commit this one

Revision 1.24 / (download) - annotate - [select for diffs], Fri Sep 2 14:56:48 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.23: +9 -6 lines
Diff to previous 1.23 (colored)

Update trapframe and add system call switchframe

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 29 12:46:58 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.22: +25 -17 lines
Diff to previous 1.22 (colored)

Dirty commit of machdep.c and cpu.c

Revision 1.22 / (download) - annotate - [select for diffs], Sun Aug 28 21:31:41 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.21: +5 -6 lines
Diff to previous 1.21 (colored)

cpu_reboot: only call thunk_abort if RB_DUMP is set

Revision 1.21 / (download) - annotate - [select for diffs], Sun Aug 28 19:41:34 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.20: +13 -2 lines
Diff to previous 1.20 (colored)

Jump to `userland' or the other function specified in the pcb's ucontext

Revision 1.20 / (download) - annotate - [select for diffs], Sun Aug 28 00:40:10 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.19: +4 -2 lines
Diff to previous 1.19 (colored)

cpu_lwp_trampoline isn't supposed to return, so drop the atexit handler
and drop a panic() at the end of the function

Revision 1.19 / (download) - annotate - [select for diffs], Sat Aug 27 21:43:06 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

defflag CPU_DEBUG

Revision 1.18 / (download) - annotate - [select for diffs], Sat Aug 27 21:15:07 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.17: +6 -3 lines
Diff to previous 1.17 (colored)

Print when the cpu_trampoline is called()

Revision 1.17 / (download) - annotate - [select for diffs], Sat Aug 27 20:49:36 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.16: +8 -7 lines
Diff to previous 1.16 (colored)

CPU_DEBUG: remove printf in cpu_signotify, and print pid/lid in cpu_switchto

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 24 19:55:35 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.15: +10 -2 lines
Diff to previous 1.15 (colored)

make room for a small msgbuf

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 13 14:06:54 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.14: +8 -7 lines
Diff to previous 1.14 (colored)

lwp0pcb should be struct pcb not ucontext_t, and initialize it in cpu_startup
instead of cpu_attach

Revision 1.14 / (download) - annotate - [select for diffs], Sat Aug 13 12:18:54 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.13: +2 -11 lines
Diff to previous 1.13 (colored)

no need to print copyright/version/memory info, just call banner()

Revision 1.13 / (download) - annotate - [select for diffs], Sat Aug 13 10:31:24 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.12: +22 -8 lines
Diff to previous 1.12 (colored)

- initialize cpu_info_primary early, before cpu0 attaches
- track idepth in cpu_info struct and use it in cpu_intr_p
- for debug and diagnostic kernels, abort when rebooting
- fill in __cpu_simple_lock_* stubs
- splraise(IPL_HIGH) before calling kernmain
- pmap_extract: only return phys addr if pap is not NULL

Revision 1.12 / (download) - annotate - [select for diffs], Fri Aug 12 12:59:13 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.11: +7 -3 lines
Diff to previous 1.11 (colored)

add a simple disk driver, pass the path to the disk image on the kernel command line:

soundwave$ ./netbsd /tmp/test.fs
NetBSD/usermode startup
[...]
ld0 at mainbus0: /tmp/test.fs (33554432)
ld0: 32768 KB, 8322 cyl, 64 head, 63 sec, 1 bytes/sect x 33554432 sectors
boot device: ld0
root on ld0a dumps on ld0b

Revision 1.11 / (download) - annotate - [select for diffs], Fri Aug 12 11:37:04 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.10: +5 -6 lines
Diff to previous 1.10 (colored)

implement reboot using execv

Revision 1.10 / (download) - annotate - [select for diffs], Fri Aug 12 00:57:24 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.9: +11 -14 lines
Diff to previous 1.9 (colored)

Clean up extern mess by adding an API for kernel components to call libc
functions. thunk.c is built with special cflags that makes it compile
against standard system headers instead of kernel ones.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 11 23:04:44 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.8: +9 -5 lines
Diff to previous 1.8 (colored)

initialize lwp0 l_addr so we can switch back to it

Revision 1.8 / (download) - annotate - [select for diffs], Wed Aug 10 01:32:44 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

fix build

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:39:55 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.6: +2 -8 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with HEAD.

Revision 1.2.12.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:04 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.2.12.1: +6 -19 lines
Diff to previous 1.2.12.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 8 19:02:32 2010 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: 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, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.6: +2 -8 lines
Diff to previous 1.6 (colored)

Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 27 03:23:14 2009 UTC (14 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)

- Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 21 05:54:04 2009 UTC (14 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored)

Catch-up Xen and usermode with lwp_getpcb() and unbreak Xen build.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 21 16:06:59 2009 UTC (14 years, 6 months ago) by snj
Branch: MAIN
Changes since 1.3: +2 -8 lines
Diff to previous 1.3 (colored)

Drop 3rd and 4th clauses.  OK jmcneill (copyright holder).

Revision 1.2.12.1 / (download) - annotate - [select for diffs], Wed Aug 19 18:46:48 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored)

sync with head.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 11 17:04:20 2009 UTC (14 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored)

Remove all declarations of physmem from sys/arch.  Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:25 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.1.4.2: +4 -8 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with HEAD

Revision 1.1.6.3 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:26 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.6.2: +4 -8 lines
Diff to previous 1.1.6.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:12 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.2.2.1: +349 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.2.2.1, Tue Feb 12 17:30:58 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.2: +0 -349 lines
FILE REMOVED

file cpu.c was added on branch mjf-devfs on 2008-02-18 21:05:12 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 12 17:30:58 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, 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, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, 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, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, 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, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, mjf-devfs
Changes since 1.1: +4 -8 lines
Diff to previous 1.1 (colored)

Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Mon Jan 21 09:39:45 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.6.1: +353 -0 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored)

sync with head

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:49:20 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.1.4.1: +353 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored)

sync with HEAD

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Wed Jan 2 21:50:43 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.1.2.1: +353 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.1.6.1, Sat Dec 29 14:38:31 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1: +0 -353 lines
FILE REMOVED

file cpu.c was added on branch yamt-lazymbuf on 2008-01-21 09:39:44 +0000

Revision 1.1.4.1, Sat Dec 29 14:38:31 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.1: +0 -353 lines
FILE REMOVED

file cpu.c was added on branch matt-armv6 on 2008-01-09 01:49:20 +0000

Revision 1.1.2.1, Sat Dec 29 14:38:31 2007 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.1: +0 -353 lines
FILE REMOVED

file cpu.c was added on branch bouyer-xeni386 on 2008-01-02 21:50:43 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 29 14:38:31 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: yamt-lazymbuf, matt-armv6, bouyer-xeni386

Import work-in-progress NetBSD/usermode port.

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




CVSweb <webmaster@jp.NetBSD.org>