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


Default branch: MAIN


Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:50 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.65: +6 -2 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Sync with HEAD

Revision 1.67 / (download) - annotate - [select for diffs], Wed May 8 13:40:16 2019 UTC (4 years, 11 months ago) by isaki
Branch: 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, 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, 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, HEAD
Changes since 1.66: +1 -2 lines
Diff to previous 1.66 (colored)

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) - annotate - [select for diffs], Sat Apr 27 11:58:02 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.66: +1 -2 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

Adapt to audio2.

Revision 1.62.16.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:43 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.62.16.2: +6 -1 lines
Diff to previous 1.62.16.2 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored)

Sync with HEAD

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

Revision 1.66 / (download) - annotate - [select for diffs], Wed Aug 1 09:46:46 2018 UTC (5 years, 8 months ago) by reinoud
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, isaki-audio2-base
Branch point for: isaki-audio2
Changes since 1.65: +6 -1 lines
Diff to previous 1.65 (colored)

Add headers for support functions for  kgdb

Revision 1.62.16.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:46 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.62.16.1: +7 -2 lines
Diff to previous 1.62.16.1 (colored) to branchpoint 1.62 (colored)

Sync with HEAD

Revision 1.65 / (download) - annotate - [select for diffs], Mon Jun 4 19:53:01 2018 UTC (5 years, 10 months ago) by reinoud
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.64: +6 -1 lines
Diff to previous 1.64 (colored)

Enhance the NetBSD/usermode thunk interface

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jun 1 08:04:57 2018 UTC (5 years, 10 months ago) by reinoud
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Pretend we already included the <types.h>

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

Sync with HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Fri May 18 20:24:57 2018 UTC (5 years, 10 months ago) by reinoud
Branch: MAIN
CVS Tags: pgoyette-compat-0521
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

Include OUR types.h and not the machine's. A small step to allow for
crosscompilation.

Revision 1.61.2.1 / (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.61: +2 -2 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

update from HEAD

Revision 1.61.16.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:03 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Sync with HEAD

Revision 1.62 / (download) - annotate - [select for diffs], Fri Feb 6 10:25:13 2015 UTC (9 years, 2 months ago) by prlw1
Branch: 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-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
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Take procfs_machdep.c rev 1.4 one step further and adjust signature of
thunk_getcpuinfo().

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:59 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.34: +120 -7 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

sync with head

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Wed Mar 7 23:44:23 2012 UTC (12 years, 1 month ago) by riz
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.60: +2 -2 lines
Diff to previous 1.60 (colored) next main 1.61 (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.35.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.35.2.3: +2 -2 lines
Diff to previous 1.35.2.3 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

sync to -current

Revision 1.35.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.35.2.2: +2 -2 lines
Diff to previous 1.35.2.2 (colored) to branchpoint 1.35 (colored)

sync to -current

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

sync to latest -current.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Mar 3 21:15:16 2012 UTC (12 years, 1 month ago) by reinoud
Branch: 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
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (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.35.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:33:25 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.35: +118 -6 lines
Diff to previous 1.35 (colored)

merge to -current.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jan 21 19:17:33 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.59: +2 -1 lines
Diff to previous 1.59 (colored)

Add the complement to sigemptyset(), sigfillset()!

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jan 11 12:37:50 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.58: +2 -1 lines
Diff to previous 1.58 (colored)

Add thunk_close()

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

Add thunk_madvise() for memory access hints to the host kernel.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Jan 6 14:11:55 2012 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

support disk images >= 2GB

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jan 5 12:12:58 2012 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored)

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) - annotate - [select for diffs], Tue Jan 3 12:05:01 2012 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.54: +3 -2 lines
Diff to previous 1.54 (colored)

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

Revision 1.54 / (download) - annotate - [select for diffs], Sat Dec 31 21:31:15 2011 UTC (12 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Adjust prototypes.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Dec 30 20:08:00 2011 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.52: +6 -1 lines
Diff to previous 1.52 (colored)

report rfb pointer events

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

add a barrier before copyrows(), and add an RRE based fillrect functino,
use it for eraserows and erasecols

Revision 1.51 / (download) - annotate - [select for diffs], Fri Dec 30 12:54:41 2011 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.50: +3 -1 lines
Diff to previous 1.50 (colored)

support wskbd bell

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

Use the encoding values of the VNC spec and add a copyrect (not used yet)

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

Add RFB type flag to indicate what kind of request is waiting

Revision 1.48 / (download) - annotate - [select for diffs], Fri Dec 30 09:36:01 2011 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.47: +5 -3 lines
Diff to previous 1.47 (colored)

optimize rfb updates by allowing queueing of multiple update messages,
dropping duplicates, and transmitting them in batches

Revision 1.47 / (download) - annotate - [select for diffs], Thu Dec 29 21:22:49 2011 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.46: +45 -4 lines
Diff to previous 1.46 (colored)

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) - annotate - [select for diffs], Mon Dec 26 21:06:42 2011 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.45: +18 -1 lines
Diff to previous 1.45 (colored)

add vaudio(4) audio device driver

Revision 1.45 / (download) - annotate - [select for diffs], Mon Dec 26 12:39:19 2011 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.44: +8 -1 lines
Diff to previous 1.44 (colored)

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) - annotate - [select for diffs], Tue Dec 20 22:48:59 2011 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

on second thought, set machine and machine_arch both from the host and
override module_machine

Revision 1.43 / (download) - annotate - [select for diffs], Tue Dec 20 21:26:37 2011 UTC (12 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored)

set machine_arch to that of the host

Revision 1.42 / (download) - annotate - [select for diffs], Tue Dec 20 15:45:36 2011 UTC (12 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

Use to the MAP_NOSYSCALLS argument to mmap() to allow for NetBSD/usermode to
execute bog-standard native programs.

Revision 1.41 / (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.40: +5 -1 lines
Diff to previous 1.40 (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.40 / (download) - annotate - [select for diffs], Thu Dec 15 01:30:04 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.39: +3 -1 lines
Diff to previous 1.39 (colored)

implement /proc/cpuinfo

Revision 1.39 / (download) - annotate - [select for diffs], Thu Dec 15 01:04:15 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

use write instead of putchar putchar putchar putchar putchar ... for console output

Revision 1.38 / (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.37: +3 -1 lines
Diff to previous 1.37 (colored)

implement cpu idle via sigsuspend

Revision 1.37 / (download) - annotate - [select for diffs], Mon Dec 12 16:39:16 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)

make sure to set O_ASYNC on stdin to enable ttycons "interrupts"

Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 11 22:33:49 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

add thunk_pollchar

Revision 1.35 / (download) - annotate - [select for diffs], Sun Nov 27 21:23:46 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.34: +2 -1 lines
Diff to previous 1.34 (colored)

Add thunk_sigprocmask()

Revision 1.34 / (download) - annotate - [select for diffs], Thu Sep 15 12:23:51 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.33: +3 -1 lines
Diff to previous 1.33 (colored)

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) - annotate - [select for diffs], Wed Sep 14 18:26:24 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

Provide thunk fuction to return the host machine's VM_MIN_ADDRESS

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

Sanitise thunk_makecontext() allowing upto 3 random arguments

Revision 1.31 / (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.30: +3 -3 lines
Diff to previous 1.30 (colored)

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

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

Implement thunk_sigemptyset()

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

Add thunk_sigaddset()

Revision 1.28 / (download) - annotate - [select for diffs], Sun Sep 4 21:08:18 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

implement splraise/spllower

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

Implement thunk_seterrno()

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

-thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
+thunk_makecontext_1(ucontext_t *ucp, void *func, void *arg)

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

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) - annotate - [select for diffs], Sat Sep 3 15:00:28 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Fri Sep 2 16:09:01 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

Revert

Revision 1.22 / (download) - annotate - [select for diffs], Fri Sep 2 14:55:22 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

-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) - annotate - [select for diffs], Thu Sep 1 18:19:00 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Implement thunk_sigaltstack() so an alternative signal stack can be used

Revision 1.20 / (download) - annotate - [select for diffs], Sun Aug 28 21:19:49 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.19: +14 -1 lines
Diff to previous 1.19 (colored)

add thunk_tcgetattr and thunk_tcsetattr

Revision 1.19 / (download) - annotate - [select for diffs], Sun Aug 28 19:37:15 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Add thunk_makecontext_trapframe2go()

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

Add a thunk_atexit() so ucontext() ends can be dealt with as they should

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 25 11:06:29 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.16: +7 -1 lines
Diff to previous 1.16 (colored)

- 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) - annotate - [select for diffs], Wed Aug 24 10:56:45 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

Implement thunk_malloc() and think_free()

Revision 1.15 / (download) - annotate - [select for diffs], Tue Aug 23 21:55:21 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

add a wrapper for signal(3)

Revision 1.14 / (download) - annotate - [select for diffs], Tue Aug 23 17:12:32 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

struct stat also has time_t in it, so we can't use that in the thunk api either

Revision 1.13 / (download) - annotate - [select for diffs], Tue Aug 23 17:00:36 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.12: +7 -2 lines
Diff to previous 1.12 (colored)

more time_t fixes

Revision 1.12 / (download) - annotate - [select for diffs], Tue Aug 23 16:16:26 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

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) - annotate - [select for diffs], Tue Aug 23 16:09:27 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.10: +8 -3 lines
Diff to previous 1.10 (colored)

more host vs. userkernel time_t fixes

Revision 1.10 / (download) - annotate - [select for diffs], Tue Aug 23 14:37:50 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

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) - annotate - [select for diffs], Mon Aug 22 15:30:16 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

Add thunk_munmap() to NetBSD/usermode's thunk

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 21 17:11:59 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

Fix thunk_mkstemp() prototype and add thunk_mprotect()

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 21 15:10:57 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

Add mmap() reachover call in thunk for NetBSD/usermode

Revision 1.6 / (download) - annotate - [select for diffs], Sat Aug 20 20:14:04 2011 UTC (12 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.5: +4 -1 lines
Diff to previous 1.5 (colored)

Create mkstemp() and sbrk() prototypes to NetBSD/usermode's thunk

Revision 1.5 / (download) - annotate - [select for diffs], Sat Aug 13 12:06:23 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

- replace the gettimeofday timecounter with one based on CLOCK_MONOTONIC
- use gettimeofday for TODR clock

Revision 1.4 / (download) - annotate - [select for diffs], Sat Aug 13 10:33:52 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.3: +10 -1 lines
Diff to previous 1.3 (colored)

try to use aio_read/aio_write instead of pread/pwrite

Revision 1.3 / (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.2: +9 -1 lines
Diff to previous 1.2 (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.2 / (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.1: +3 -1 lines
Diff to previous 1.1 (colored)

implement reboot using execv

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 12 00:57:24 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: 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.

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>