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


Keyword substitution: kv
Default branch: MAIN


Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Oct 4 20:28:06 2023 UTC (14 months ago) by ad
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +5 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:56 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +13 -8 lines
Merge changes from current as of 20200406

Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Dec 3 15:20:59 2019 UTC (5 years ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, 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
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -2 lines
Use __insn_barrier to enforce ordering in l_ncsw loops.

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

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Dec 1 14:52:14 2019 UTC (5 years ago) by ad
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +10 -6 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 23 19:40:37 2019 UTC (5 years ago) by ad
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:46 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.74.8.1: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.8.1: +82 -16 lines
Sync with HEAD

Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Jun 1 07:26:15 2018 UTC (6 years, 6 months ago) by reinoud
Branches: 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-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -4 lines
Pass the address of the array, this fixes issues with i386 compilation

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue May 29 09:25:01 2018 UTC (6 years, 6 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue May 29 07:35:40 2018 UTC (6 years, 6 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +17 -11 lines
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 - view: text, markup, annotated - select for diffs
Tue May 29 07:09:21 2018 UTC (6 years, 6 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +30 -9 lines
Only set requested parts of the mcontext in cpu_setmcontext()
Make the atomic switcher `atomic' by using splhigh()

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu May 24 19:39:04 2018 UTC (6 years, 6 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +51 -12 lines
First try at TLS support and getcontext/setcontext/swapcontext support.

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

Revision 1.75: download - view: text, markup, annotated - select for diffs
Thu May 17 19:00:39 2018 UTC (6 years, 6 months ago) by reinoud
Branches: MAIN
CVS tags: pgoyette-compat-0521
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +12 -5 lines
Refactor for easier debugging and while here add some more signals

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

Revision 1.73.6.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:54 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +2 -4 lines
Sync with HEAD

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:08 2017 UTC (7 years, 6 months ago) by chs
Branches: 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-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
Branch point for: pgoyette-compat
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:26 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -4 lines
Rebase to HEAD as of a few days ago.

Revision 1.46.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:11 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.46.2.2: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.2.2: +4 -4 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.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:28 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: +4 -4 lines
sync with head

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Mar 24 20:06:33 2014 UTC (10 years, 8 months ago) by christos
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, 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
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -4 lines
use cpu_{g,s}etmodel

Revision 1.46.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:28 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.46.2.1: preferred, colored; branchpoint 1.46: preferred, colored
Changes since revision 1.46.2.1: +14 -3 lines
sync with head

Revision 1.69.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 8 15:51:08 2012 UTC (12 years, 4 months ago) by martin
Branches: 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
Diff to: previous 1.69.2.2: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.2.2: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 29 18:05:47 2012 UTC (12 years, 4 months ago) by mlelstv
Branches: 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
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Jul 2 21:33:00 2012 UTC (12 years, 5 months ago) by jdc
Branches: netbsd-6
Diff to: previous 1.69.2.1: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.1: +12 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 25 14:43:54 2012 UTC (12 years, 5 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +12 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:59 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +133 -78 lines
sync with head

Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 7 23:44:24 2012 UTC (12 years, 9 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue Mar 6 18:26:39 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.47.2.3: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.3: +5 -5 lines
sync to -current

Revision 1.47.2.3: download - view: text, markup, annotated - select for diffs
Tue Mar 6 09:56:10 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.47.2.2: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.2: +5 -5 lines
sync to -current

Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 4 00:46:13 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.1: +5 -5 lines
sync to latest -current.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat Mar 3 21:15:15 2012 UTC (12 years, 9 months ago) by reinoud
Branches: 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
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Sat Feb 18 07:33:23 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +129 -101 lines
merge to -current.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat Jan 21 22:09:56 2012 UTC (12 years, 10 months ago) by reinoud
Branches: MAIN
CVS tags: netbsd-6-base, jmcneill-usbmp-base5, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +12 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 18 19:17:02 2012 UTC (12 years, 10 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +46 -15 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 15 10:45:03 2012 UTC (12 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +15 -3 lines
sync disks and unmount at shutdown, and run shutdownhooks + pmf shutdown
handlers

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Jan 15 10:18:58 2012 UTC (12 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +10 -5 lines
allow specifing the root device with 'root=ldN' parameter

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Jan 14 21:45:28 2012 UTC (12 years, 10 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 14 17:42:51 2012 UTC (12 years, 10 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +23 -70 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 12 13:28:54 2012 UTC (12 years, 10 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -3 lines
Remove old comment about space not being freed; it is now done correctly so
remove it to avoid confusion later.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Jan 6 12:54:59 2012 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +23 -25 lines
Cleanup stack allocation and freeing. This means the memory leak on lwp
destruction ought to be solved.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Jan 4 15:18:57 2012 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
No reason why to have a larger pagefault stackframe for lwp0

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Jan 4 15:14:57 2012 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -6 lines
Zero the memory we claim for the stacks

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Jan 3 12:10:04 2012 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +7 -7 lines
Use M_WAITOK instead of M_NOWAIT for the stack allocations

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Jan 3 12:05:01 2012 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +17 -13 lines
Rename the debug printf's to use a thunk_ prefix to avoid confusion.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Dec 27 14:55:31 2011 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +11 -2 lines
Implement physio() for NetBSD/usermode the right way!

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Dec 24 12:23:24 2011 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +11 -4 lines
Implement cpu_getmcontext() and cpu_setmcontext()

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Dec 15 03:42:32 2011 UTC (12 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -7 lines
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 - view: text, markup, annotated - select for diffs
Thu Dec 15 02:09:15 2011 UTC (12 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +8 -7 lines
allocate msgbuf with kmem_zalloc instead of thunk_malloc, now dmesg works

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Dec 15 00:40:03 2011 UTC (12 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -5 lines
implement cpu idle via sigsuspend

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Dec 14 12:29:59 2011 UTC (12 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -3 lines
only need to setup altstack after fork, not in lwp tramp

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Dec 14 04:12:22 2011 UTC (12 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -2 lines
need to sigaltstack for each lwp

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Dec 13 12:25:42 2011 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
Just in case ease up the stack space a bit more

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Dec 12 12:20:30 2011 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
No need for such big stack spaces on lwp_fork() with the new setup.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Dec 11 20:45:14 2011 UTC (12 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +9 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 27 21:38:17 2011 UTC (13 years ago) by reinoud
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +50 -23 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 14 18:30:13 2011 UTC (13 years, 2 months ago) by reinoud
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -5 lines
Make stacksize of newly spawn lwp's bigger than one page. Actually use the
variable stack_size now

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Sep 10 10:37:06 2011 UTC (13 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +24 -18 lines
Make cpu_lwp_trampo only jump once and make successive jumps go to the func
only

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Sep 9 20:14:33 2011 UTC (13 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +10 -4 lines
Make the trampoline only jump once!
All next calls are directed directly to the func specified.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Sep 9 20:06:04 2011 UTC (13 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +6 -6 lines
Use the new thunk_makecontext() scheme with function and upto 3 aguments

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Sep 9 18:41:16 2011 UTC (13 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4 lines
Streamline makecontext() calls to really only specify the number of arguments
to prevent side-effects

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Sep 9 16:24:44 2011 UTC (13 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -14 lines
Clean up cpu_trampoline and link the context so we dont have to manually do
that.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Sep 8 15:13:27 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
Use the machdep.h and now use the md_check_syscall_opcode()

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Sep 8 14:47:17 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -6 lines
Link syscall to userland so on exit is automatically goes to userland.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Sep 8 12:37:28 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +5 -7 lines
Cleanup syscall context creation

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Sep 8 12:10:13 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +9 -2 lines
get rid of clock softintr and move setitimer call to cpu_initclocks

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Sep 8 12:08:13 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -4 lines
White space

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Sep 8 12:01:22 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +15 -4 lines
Create a ucontext for the system call to work in; its cloned from the new
pcb's call `userland' ucontext.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Sep 6 09:55:04 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -5 lines
cpu_lwp_inkernel approach won't work, back to the drawing board

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Sep 5 20:54:47 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 5 19:28:32 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -8 lines
Restore errno just before switching to the new context and NOT after it got
back again

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Sep 5 12:40:38 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +5 -4 lines
Move kpreempt_enable/disable to splsched()

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Sep 5 12:22:19 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +6 -2 lines
Disable kernel preemption in the critical section of cpu_switchto()

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Sep 4 21:01:39 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4 lines
pcb->errno to pcb->pcb_errno

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Sep 4 20:54:52 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -2 lines
Try to preserve errno over traps and on context switches

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Sep 3 19:06:49 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +9 -3 lines
unbreak build on netbsd

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Sep 3 15:00:28 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -7 lines
Get this compiling (but not quite linking yet) on Linux

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Sep 3 12:25:31 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -7 lines
Oops forgot to commit this one

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Sep 2 14:56:48 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +9 -6 lines
Update trapframe and add system call switchframe

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Aug 29 12:46:58 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +25 -17 lines
Dirty commit of machdep.c and cpu.c

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Aug 28 21:31:41 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -6 lines
cpu_reboot: only call thunk_abort if RB_DUMP is set

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Aug 28 19:41:34 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +13 -2 lines
Jump to `userland' or the other function specified in the pcb's ucontext

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Aug 28 00:40:10 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Aug 27 21:43:06 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -4 lines
defflag CPU_DEBUG

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Aug 27 21:15:07 2011 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -3 lines
Print when the cpu_trampoline is called()

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Aug 27 20:49:36 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -7 lines
CPU_DEBUG: remove printf in cpu_signotify, and print pid/lid in cpu_switchto

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Aug 24 19:55:35 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +10 -2 lines
make room for a small msgbuf

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Aug 13 14:06:54 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -7 lines
lwp0pcb should be struct pcb not ucontext_t, and initialize it in cpu_startup
instead of cpu_attach

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Aug 13 12:18:54 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -11 lines
no need to print copyright/version/memory info, just call banner()

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Aug 13 10:31:24 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +22 -8 lines
- 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 - view: text, markup, annotated - select for diffs
Fri Aug 12 12:59:13 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 12 11:37:04 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -6 lines
implement reboot using execv

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Aug 12 00:57:24 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +11 -14 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 11 23:04:44 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +9 -5 lines
initialize lwp0 l_addr so we can switch back to it

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Aug 10 01:32:44 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -2 lines
fix build

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:39:55 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +2 -8 lines
Sync with HEAD.

Revision 1.2.12.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:04 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.2.12.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.12.1: +6 -19 lines
sync with head

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Feb 8 19:02:32 2010 UTC (14 years, 9 months ago) by joerg
Branches: 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
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -8 lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 27 03:23:14 2009 UTC (15 years ago) by rmind
Branches: MAIN
CVS tags: uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -3 lines
- 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 - view: text, markup, annotated - select for diffs
Sat Nov 21 05:54:04 2009 UTC (15 years ago) by rmind
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -6 lines
Catch-up Xen and usermode with lwp_getpcb() and unbreak Xen build.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Oct 21 16:06:59 2009 UTC (15 years, 1 month ago) by snj
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -8 lines
Drop 3rd and 4th clauses.  OK jmcneill (copyright holder).

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

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Aug 11 17:04:20 2009 UTC (15 years, 3 months ago) by matt
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:25 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.1.4.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.2: +4 -8 lines
sync with HEAD

Revision 1.1.6.3: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:26 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.1.6.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.6.2: +4 -8 lines
sync with head.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:12 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +349 -0 lines
Sync with HEAD.

Revision 1.2.2.1
Tue Feb 12 17:30:58 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
FILE REMOVED
Changes since revision 1.2: +0 -349 lines
file cpu.c was added on branch mjf-devfs on 2008-02-18 21:05:12 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Feb 12 17:30:58 2008 UTC (16 years, 9 months ago) by joerg
Branches: 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
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -8 lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 21 09:39:45 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.1.6.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.6.1: +353 -0 lines
sync with head

Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:49:20 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.1: +353 -0 lines
sync with HEAD

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:50:43 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +353 -0 lines
Sync with HEAD

Revision 1.1.6.1
Sat Dec 29 14:38:31 2007 UTC (16 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.1: +0 -353 lines
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, 11 months ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.1: +0 -353 lines
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, 11 months ago) by bouyer
Branches: bouyer-xeni386
FILE REMOVED
Changes since revision 1.1: +0 -353 lines
file cpu.c was added on branch bouyer-xeni386 on 2008-01-02 21:50:43 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Dec 29 14:38:31 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: 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.

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>