Commit Graph

161226 Commits

Author SHA1 Message Date
pooka 6c71c22a44 Add "file system console", which is meant eventually to become a
"console" to a file system, i.e. a tool for mounting any file system
image supported by rump and executing various commands on it.
Currently it's just a linear set of calls to ukfs routines and
serves mainly as a simple test program and ukfs usage example.
2007-08-16 19:48:31 +00:00
pooka 71d88cd835 use UKFS_UIOINIT 2007-08-16 19:43:09 +00:00
pooka 55a47971a5 Actually using passed parameters instead of hardcoded ones makes
a macro work better ...
2007-08-16 19:42:50 +00:00
pooka b926b490ec Add routines for pure userspace file system operation
(i.e. no kernel involvement), namely:
* create, mknod, remove, mknod, rmdir, getdents, read, write, and link

Still obviously missing a few, but this is a start (I'm also searching
for the blessed orb of code quality, maybe someone has seen it?).
2007-08-16 19:37:18 +00:00
rjs 86dbc7c35c Explicitly use trapframe64 instead of trapframe. 2007-08-16 18:42:09 +00:00
tls b8360b28b0 Oops. USE_FORT needs to be in Makefile.inc, not Makefile, to cause the
programs in subdirectories here to get -D_FORTIFY_SOURCE.
2007-08-16 18:36:46 +00:00
ad 3611d66f77 cpu_switchto: fix a well dodgy bit of assembly that broke RAS. 2007-08-16 17:00:05 +00:00
thorpej 04377267cc boolean_t -> bool
TRUE -> true
FALSE -> false
2007-08-16 16:28:17 +00:00
pooka 85a8716f91 locking fixes 2007-08-16 16:17:42 +00:00
ad 2639b90e3b One more micro-optimization.. 2007-08-16 14:53:45 +00:00
ad d9adedd764 Trim fat off libpthread internal spinlock operations. Makes a mesurable
improvement across the board.
2007-08-16 13:54:16 +00:00
skrll 8423867fa7 Note new base tag of nick-csl-alignment. 2007-08-16 12:16:08 +00:00
ad b8833ff53f - Reinitialize the absolute minimum when recycling user thread state.
Chops another ~10% off create/join in a loop on i386.
- Disable low level debugging as this is stable. Improves benchmarks
  across the board by a small percentage. Uncontested mutex acquire
  and release in a loop becomes about 8% quicker.
- Minor cleanup.
2007-08-16 12:01:49 +00:00
martin 9247850afb Remove all locking from com_enable_debugport() - it is either called at
attach time, where we don't need further locking, or from comopen(),
where the caller does proper locking already.
2007-08-16 08:56:49 +00:00
agc 4b38cf6082 Use AI_NUMERICSERV as a flag to getaddrinfo() when trying to find the
correct service - allows us to bind to the correct port, and not the
iSCSI control port.

Update version to 20070815, and re-run autoconf and autoheader.
2007-08-16 06:25:16 +00:00
kiyohara 8e7888075a Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html

And import gcq.
http://mail-index.netbsd.org/tech-kern/2007/06/18/0020.html
2007-08-16 03:09:01 +00:00
kiyohara 3f11af6413 Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-16 02:30:22 +00:00
ad 71197327ee Catch up with libpthread changes. 2007-08-16 01:09:50 +00:00
ad 9e28719960 Remove PT_FIXEDSTACKSIZE_LG. 2007-08-16 01:09:34 +00:00
ad ed964af19e Cache thread context for creation instead of setting it up every time.
Speeds create/join loop by about 10-15% on i386.
2007-08-16 00:41:23 +00:00
ad c94f5a91bc Simplify pthread_join(). Knocks about 5% off pthread_create/join in a loop. 2007-08-15 22:48:52 +00:00
pooka 56accd1ffe enable UFS_DIRHASH 2007-08-15 22:22:14 +00:00
pooka cfd4dc8f38 Wrap malloc() so that we catch the kernel arguments (namely M_ZERO)
properly.  It's fairly amusing that this wasn't noticed until now.
2007-08-15 22:13:15 +00:00
ad 399122feeb subr_prf_bitmask.c -> subr_prf2.c 2007-08-15 20:34:48 +00:00
degroote c4abb95a0e Fix possible "packet corruption" which appears on high load 2007-08-15 18:11:14 +00:00
kiyohara 66161689a5 Already called *_free_[rt]x_list() in *_stop(). 2007-08-15 16:58:54 +00:00
pooka ba8f4f0ea5 support VOP_LINK 2007-08-15 16:56:44 +00:00
kiyohara a73632e439 Remove BTUART_DEBUG. 2007-08-15 16:48:31 +00:00
kiyohara b095a2da1f Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
  gcq is Generic Circular Queues.  Used by slhci.
2007-08-15 16:43:10 +00:00
pooka 25a346d4fb Nuke PUFFSLOOKUP_FOO and move to NAMEI_FOO 2007-08-15 14:19:19 +00:00
pooka 37f06f1c57 sysctlfs was moved to base 2007-08-15 14:13:57 +00:00
pooka a7e8116850 regen 2007-08-15 14:08:37 +00:00
pooka a768213636 Autogenerate namei.h from namei.src to get duplicate values for some
less-than-optimally namespaced macros (e.g. LOOKUP -> NAMEI_LOOKUP).
2007-08-15 14:08:11 +00:00
ad e59f9f3e20 proc_free: don't destroy locks until the last LWP is confirmed off the CPU.
This is an ideal candidate for pool_cache.
2007-08-15 12:20:28 +00:00
ad c9bbf87b8f NetBSD 4.99.29 - change ktrace to be LKM friendly. 2007-08-15 12:10:33 +00:00
ad d3675885a8 Regen. 2007-08-15 12:09:12 +00:00
ad df7945cf28 - Update for ktrace changes.
- Mark a few more syscalls MPSAFE.
2007-08-15 12:08:38 +00:00
ad 63c4506184 Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.
2007-08-15 12:07:23 +00:00
skrll 6c8e72c931 Correct scope of nick-csl-alignment. 2007-08-15 10:07:50 +00:00
tnn 51e95e7756 Correct some comments (proc -> lwp conversion) 2007-08-15 09:40:15 +00:00
kiyohara 2db72b9118 * splsoftusb, IPL_SOFTUSB, and IPL_HARDUSB defines in usbdi.h
-> the current names are confusing (didn't change other drivers)
* fix invalid memory access in usbd_transfer (kern/24636)
-> needed for this driver
* fix USB HC detach race condition (kern/32011)
-> main patch needed for this driver, sc_dying changes in other drivers
not necessary but seem right to me

Patch from Matthew Orgass.
  http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-15 04:00:33 +00:00
kiyohara 44c89c7646 Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-15 03:53:08 +00:00
rmind d2142b3188 sys__lwp_suspend: Handle the possible problem when target LWP might exit via
lwp_exit() before suspending.  In such case, LWP might be already freed after
cv_wait_sig() and checking the list of LWPs via lwp_find() is necessary.

Possible problem catched by Andrew Doran.
2007-08-15 02:50:40 +00:00
markd 89d3c65ccd Add agp support for i965Q.
Based on a patch for FreeBSD by Eric Anholt.
OKed on tech-kern some months ago.
2007-08-15 02:26:13 +00:00
joerg 7fb995bb6e Catch up with pkg_install-20070814. 2007-08-14 23:01:05 +00:00
joerg 50c788c748 Import pkg_install-20070814. 2007-08-14 22:59:50 +00:00
uwe 9a34099682 au_setup_ports - don't hide ports->nports++ inside another expression,
especially if that other expression is the right hand side operand of
&& which is short-circuiting.  The effect was that audiorecord(1)
would always fail trying to set recording port with AUDIO_SETINFO.

Tested on wss@pnpbios.  It looks like this problem has been reported
as PR/35239, filed against port-hp700.
2007-08-14 21:34:03 +00:00
agc 6396470148 + re-activate code to set port number in the iSCSI target
+ if the attempt to getaddrinfo() on (host,port) fails, try various
	combinations of (host,service)
+ clean up lint
+ set sess->d when we get traffic in, rather than just at iSCSI login
2007-08-14 18:52:48 +00:00
macallan b5dc000777 fix a logic botch in the headphone wiring setup - what was thought to be
'screamer' specific is actually beige G3 specific.
2007-08-14 16:18:20 +00:00
jnemeth d74976c467 regen 2007-08-14 16:14:21 +00:00