The NetBSD Project

CVS log for src/sys/arch/usermode/include/thunk.h

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:50 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +6 -2 lines
Sync with HEAD

Revision 1.67: download - view: text, markup, annotated - select for diffs
Wed May 8 13:40:16 2019 UTC (7 years, 6 months ago) by isaki
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-9-base, netbsd-9-5-RELEASE, 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, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, 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, HEAD
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +1 -2 lines
Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly.  Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism.  The encoding/channels/frequency
  conversions are completely handled in the upper layer.  So the hard-
  ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
  - Obsoletes query_encoding and add query_format instead.
  - Obsoletes set_params and add set_format instead.
  - Remove drain, setfd, mappage.
  - The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c         -> dev/audio/audio.c (rewritten)
- dev/audiovar.h      -> dev/audio/audiovar.h
- dev/audio_dai.h     -> dev/audio/audio_dai.h
- dev/audio_if.h      -> dev/audio/audio_if.h
- dev/audiobell.c     -> dev/audio/audiobell.c
- dev/audiobellvar.h  -> dev/audio/audiobellvar.h
- dev/mulaw.[ch]      -> dev/audio/mulaw.[ch] + dev/audio/alaw.c

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 27 11:58:02 2019 UTC (7 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +1 -2 lines
Adapt to audio2.

Revision 1.62.16.3: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:43 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.62.16.2: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.16.2: +6 -1 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed Aug 1 09:46:46 2018 UTC (8 years, 3 months ago) by reinoud
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, isaki-audio2-base
Branch point for: isaki-audio2
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -1 lines
Add headers for support functions for  kgdb

Revision 1.62.16.2: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:46 2018 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.62.16.1: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.16.1: +7 -2 lines
Sync with HEAD

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Jun 4 19:53:01 2018 UTC (8 years, 5 months ago) by reinoud
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +6 -1 lines
Enhance the NetBSD/usermode thunk interface

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Jun 1 08:04:57 2018 UTC (8 years, 5 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -2 lines
Pretend we already included the <types.h>

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

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri May 18 20:24:57 2018 UTC (8 years, 6 months ago) by reinoud
Branches: MAIN
CVS tags: pgoyette-compat-0521
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -2 lines
Include OUR types.h and not the machine's. A small step to allow for
crosscompilation.

Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:47 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +2 -2 lines
update from HEAD

Revision 1.61.16.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:03 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +2 -2 lines
Sync with HEAD

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Feb 6 10:25:13 2015 UTC (11 years, 9 months ago) by prlw1
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, 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, 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, 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, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -2 lines
Take procfs_machdep.c rev 1.4 one step further and adjust signature of
thunk_getcpuinfo().

Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:59 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +120 -7 lines
sync with head

Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 7 23:44:23 2012 UTC (14 years, 8 months ago) by riz
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.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +2 -2 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.35.2.4: download - view: text, markup, annotated - select for diffs
Tue Mar 6 18:26:39 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.35.2.3: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.2.3: +2 -2 lines
sync to -current

Revision 1.35.2.3: download - view: text, markup, annotated - select for diffs
Tue Mar 6 09:56:10 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.35.2.2: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.2.2: +2 -2 lines
sync to -current

Revision 1.35.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 4 00:46:14 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.35.2.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.2.1: +2 -2 lines
sync to latest -current.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Mar 3 21:15:16 2012 UTC (14 years, 8 months ago) by reinoud
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -2 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.35.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:33:25 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +118 -6 lines
merge to -current.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Jan 21 19:17:33 2012 UTC (14 years, 9 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.59: preferred, colored
Changes since revision 1.59: +2 -1 lines
Add the complement to sigemptyset(), sigfillset()!

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Jan 11 12:37:50 2012 UTC (14 years, 10 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -1 lines
Add thunk_close()

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Jan 10 12:04:56 2012 UTC (14 years, 10 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +10 -1 lines
Add thunk_madvise() for memory access hints to the host kernel.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Jan 6 14:11:55 2012 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -2 lines
support disk images >= 2GB

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Jan 5 12:12:58 2012 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -2 lines
Get rid of MAP_NOSYSCALLS usage; now this relies on a separate kmod that
you can get here: http://www.netbsd.org/~jmcneill/syscallemu.tar

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

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Dec 31 21:31:15 2011 UTC (14 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
Adjust prototypes.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Dec 30 20:08:00 2011 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +6 -1 lines
report rfb pointer events

Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Dec 30 14:20:34 2011 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -2 lines
add a barrier before copyrows(), and add an RRE based fillrect functino,
use it for eraserows and erasecols

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Dec 30 12:54:41 2011 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -1 lines
support wskbd bell

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Dec 30 12:07:33 2011 UTC (14 years, 10 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +5 -3 lines
Use the encoding values of the VNC spec and add a copyrect (not used yet)

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Dec 30 11:32:57 2011 UTC (14 years, 10 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +10 -2 lines
Add RFB type flag to indicate what kind of request is waiting

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Dec 30 09:36:01 2011 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -3 lines
optimize rfb updates by allowing queueing of multiple update messages,
dropping duplicates, and transmitting them in batches

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Dec 29 21:22:49 2011 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +45 -4 lines
Replace the SDL based genfb driver with a wsdisplay and wskbd driver that
implements the VNC (RFB) protocol.

To enable the VNC server, add 'vnc=640x480,5900' to the kernel command line
(where 640x480 is the desired fb resolution and 5900 is the TCP port).

Screenshot of it here: http://www.netbsd.org/~jmcneill/usermode.tiff

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Dec 26 21:06:42 2011 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +18 -1 lines
add vaudio(4) audio device driver

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Dec 26 12:39:19 2011 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +8 -1 lines
first cut at networking support for usermode, doesn't fully work yet but
enough to get an address with dhcp and answer arps

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Dec 20 22:48:59 2011 UTC (14 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -2 lines
on second thought, set machine and machine_arch both from the host and
override module_machine

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Dec 20 21:26:37 2011 UTC (14 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -1 lines
set machine_arch to that of the host

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Dec 20 15:45:36 2011 UTC (14 years, 11 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -1 lines
Use to the MAP_NOSYSCALLS argument to mmap() to allow for NetBSD/usermode to
execute bog-standard native programs.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Dec 15 03:42:32 2011 UTC (14 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -1 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.40: download - view: text, markup, annotated - select for diffs
Thu Dec 15 01:30:04 2011 UTC (14 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -1 lines
implement /proc/cpuinfo

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Dec 15 01:04:15 2011 UTC (14 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -1 lines
use write instead of putchar putchar putchar putchar putchar ... for console output

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

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Dec 12 16:39:16 2011 UTC (14 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -1 lines
make sure to set O_ASYNC on stdin to enable ttycons "interrupts"

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Dec 11 22:33:49 2011 UTC (14 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -1 lines
add thunk_pollchar

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Nov 27 21:23:46 2011 UTC (14 years, 11 months ago) by reinoud
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -1 lines
Add thunk_sigprocmask()

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Sep 15 12:23:51 2011 UTC (15 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.33: preferred, colored
Changes since revision 1.33: +3 -1 lines
Implement a dprintf_debug() analog to aprint_debug() but printing it to stderr
using vdprintf() to bypass the kernel buffer. It is currently printing only on
the -x boot flag but might get a more specific one since its quite verbose!

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Sep 14 18:26:24 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -1 lines
Provide thunk fuction to return the host machine's VM_MIN_ADDRESS

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Sep 9 20:04:43 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
Sanitise thunk_makecontext() allowing upto 3 random arguments

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

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Sep 5 12:04:03 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -1 lines
Implement thunk_sigemptyset()

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Sep 5 11:09:38 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -1 lines
Add thunk_sigaddset()

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Sep 4 21:08:18 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -1 lines
implement splraise/spllower

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Sep 4 20:46:58 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -1 lines
Implement thunk_seterrno()

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Sep 4 20:15:57 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
-thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
+thunk_makecontext_1(ucontext_t *ucp, void *func, void *arg)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Sep 3 18:42:13 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +13 -2 lines
Let NetBSD/usermode build & link on a Linux host:
 - Need to add options CPU_HOST=i386 or CPU_HOST=amd64 for membar & atomic_ops
 - Don't use MAP_* and PROT_* with thunk API since the kernel and host
   might not be the same; add THUNK_MAP_* and THUNK_PROT_* and translate them
 - Add thunk_posix_memalign
 - allocate mem_uvm with thunk_posix_memalign instead of thunk_malloc
 - Fix thunk_mmap callers to always pass either THUNK_MAP_PRIVATE or
   THUNK_MAP_SHARED
 - mkstemp on Linux requires exactly 6 "X" characters at the end of the
   template string, so add an X

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

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Sep 2 16:09:01 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -1 lines
Revert

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Sep 2 14:55:22 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
-thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
+thunk_makecontext_1(ucontext_t *ucp, void (*func)(void), void *arg)

Create a more general prototype for makecontext() with one variable.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Sep 1 18:19:00 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -1 lines
Implement thunk_sigaltstack() so an alternative signal stack can be used

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Aug 28 21:19:49 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +14 -1 lines
add thunk_tcgetattr and thunk_tcsetattr

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Aug 28 19:37:15 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -1 lines
Add thunk_makecontext_trapframe2go()

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Aug 27 21:14:15 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -1 lines
Add a thunk_atexit() so ucontext() ends can be dealt with as they should

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Aug 25 11:06:29 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -1 lines
- build thunk code with warnings
- add option SDL which pulls in thunk_sdl code and links the kernel to libSDL
- add an experimental framebuffer driver based on thunk_sdl, enable with:
    options SDL
    genfb* at mainbus?
    wsdisplay* at genfb?
    options WS_KERNEL_FG=WSCOL_GREEN
    options WSEMUL_VT100
- reserve a major # for wsdisplay
- add thunk_getenv()

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Aug 24 10:56:45 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -2 lines
Implement thunk_malloc() and think_free()

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Aug 23 21:55:21 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -1 lines
add a wrapper for signal(3)

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Aug 23 17:12:32 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
struct stat also has time_t in it, so we can't use that in the thunk api either

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Aug 23 17:00:36 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +7 -2 lines
more time_t fixes

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Aug 23 16:16:26 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -1 lines
unlink pmap backing file immediately after opening it, so we don't leave
a bunch of 128MB turds sitting around in /tmp

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Aug 23 16:09:27 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +8 -3 lines
more host vs. userkernel time_t fixes

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Aug 23 14:37:50 2011 UTC (15 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
host and userkernel timespec might differ in size (because of time_t) so
instead of thunk_clock_getres() filling in a timespec, use instead
thunk_clock_getres_monotonic() that returns the resolution as a long

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Aug 22 15:30:16 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -1 lines
Add thunk_munmap() to NetBSD/usermode's thunk

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Aug 21 17:11:59 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -2 lines
Fix thunk_mkstemp() prototype and add thunk_mprotect()

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Aug 21 15:10:57 2011 UTC (15 years, 2 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -1 lines
Add mmap() reachover call in thunk for NetBSD/usermode

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Aug 20 20:14:04 2011 UTC (15 years, 3 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -1 lines
Create mkstemp() and sbrk() prototypes to NetBSD/usermode's thunk

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Aug 13 12:06:23 2011 UTC (15 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -1 lines
- replace the gettimeofday timecounter with one based on CLOCK_MONOTONIC
- use gettimeofday for TODR clock

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Aug 13 10:33:52 2011 UTC (15 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +10 -1 lines
try to use aio_read/aio_write instead of pread/pwrite

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Aug 12 12:59:13 2011 UTC (15 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -1 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.2: download - view: text, markup, annotated - select for diffs
Fri Aug 12 11:37:04 2011 UTC (15 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -1 lines
implement reboot using execv

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Aug 12 00:57:24 2011 UTC (15 years, 3 months ago) by jmcneill
Branches: MAIN
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.

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>