Commit Graph

181177 Commits

Author SHA1 Message Date
ad d991fcb3b6 More changes to improve kern_descrip.c.
- Avoid atomics in more places.
- Remove the per-descriptor mutex, and just use filedesc_t::fd_lock.
  It was only being used to synchronize close, and in any case we needed
  to take fd_lock to free the descriptor slot.
- Optimize certain paths for the <NDFDFILE case.
- Sprinkle more comments and assertions.
- Cache more stuff in filedesc_t.
- Fix numerous minor bugs spotted along the way.
- Restructure how the open files array is maintained, for clarity and so
  that we can eliminate the membar_consumer() call in fd_getfile().  This is
  mostly syntactic sugar; the main functional change is that fd_nfiles now
  lives alongside the open file array.

Some measurements with libmicro:

- simple file syscalls are like close() are between 1 to 10% faster.
- some nice improvements, e.g. poll(1000) which is ~50% faster.
2009-05-24 21:41:25 +00:00
mlelstv 13573078f8 Removed old Amiga-specific "sicallback" software interrupts and replaced
them by MI softints. Approved by "is".

Also drop mptr.h from set.
2009-05-24 20:53:22 +00:00
dholland d8016deb30 whitespace 2009-05-24 20:43:09 +00:00
dholland ad04eda0f2 KNF: fix formatting of preprocessor directives 2009-05-24 20:39:43 +00:00
he 45932f91e5 Apply fix borrowed from i386: Fix const issue (cast const pointers
to "const uint8_t *" instead of "caddr_t").
2009-05-24 20:35:41 +00:00
christos 39ac8a1e03 - prevent recursive error calls fatal -> die -> cleanup -> sys_cleanup -> cf* ->
fatal/error etc.
- prefix all the errors with __func__.
This allows me to unplug my 3G modem and have pppd exit correctly.
2009-05-24 20:31:25 +00:00
mlelstv 57f2ff1bb6 <sys/syscallargs.h> requires <sys/sched.h> to define cpuset_t. 2009-05-24 20:10:50 +00:00
dholland bf0917b6ae ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
2009-05-24 19:18:44 +00:00
wiz 9d12d16c67 Put DESCRIPTION before HARDWARE. New sentence, new line. 2009-05-24 19:06:45 +00:00
he 237687b934 Copy build fix from i386: Fix const issues (cast const pointers
to "const uint8_t *" instead of "caddr_t").
2009-05-24 18:29:03 +00:00
dholland 783505aca4 KNF. No change to .o file. 2009-05-24 18:22:27 +00:00
nisimura 2dc9cefd00 - detect FTDI chiptype from bcdDevice field to determine the number of
channels.
- now capable of quad channel FT4232H.
- mention FT232BM, FT232R, FT2232D, FT2232H and FT4232H chip models.
2009-05-24 16:32:58 +00:00
nisimura 44dbe1e84c - detect FTDI chiptype from bcdDevice field to determine the number of
channels.
- tested on 232BM, 232RL and 2232D chips.
- now capable of quad channel FT4232H.
- minor format nit and legacy title comment removal.
- non UART type bit stream (!= ucom) support is under planning.
2009-05-24 16:24:25 +00:00
skrll f55e04e7f7 Remove a bunch of garbage from previous. 2009-05-24 15:27:08 +00:00
ad 193d553767 Split out kobj structures so crash/ddb can get at them. 2009-05-24 15:00:24 +00:00
ad 27695c89cb ddb: don't try to stat builtin modules. 2009-05-24 14:54:17 +00:00
nonaka b822210843 SDHC card was able to be used. 2009-05-24 12:59:54 +00:00
ad 7d20bf2a9e Bus scans can make it appear as if the system has paused, so
twiddle constantly while config_interrupts() jobs are running.
2009-05-24 12:27:50 +00:00
skrll 93a4f7c66c Kill '$' in exported symbols. 2009-05-24 09:17:59 +00:00
skrll fae01d956c G/C DTRAP 2009-05-24 09:13:37 +00:00
skrll f06013108d u_intNN_t -> uintNN_t
"same" code before and after.
2009-05-24 06:53:34 +00:00
ginsbach c9e7e3b144 Document getdate(3) addition and adding %s to strptime(3). 2009-05-24 02:36:57 +00:00
ginsbach 48dc241150 Crank date for previous. 2009-05-24 02:30:17 +00:00
ginsbach 98fa92ea04 Add %s to strptime(3) to make symmetric with strftime(3). 2009-05-24 02:25:43 +00:00
ad 63e35cb9ab Create /dev/zfs and /dev/zpool/. 2009-05-23 22:29:14 +00:00
wiz 81ea280bf2 Sort options in SYNOPSIS. 2009-05-23 20:26:18 +00:00
he c411502583 After the change from "struct device *" to "device_t", we now depend
on the definitions from <sys/device.h>, so include it here.
2009-05-23 19:11:19 +00:00
christos 7966578116 remove stray comma, from anon ymous. 2009-05-23 18:57:25 +00:00
ad 46205038ea 5.99.12 struct lwp changes for timecounter detachment 2009-05-23 18:28:26 +00:00
ad 3cb7a24bec Make descriptor access and file allocation cheaper in many cases,
mostly by avoiding a bunch of atomic operations.
2009-05-23 18:28:05 +00:00
ad f0545a5e5b - Add lwp_pctr(), get an LWP's preemption/ctxsw counter.
- Fix a preemption bug in CURCPU_IDLE_P() that can lead to a bogus
  assertion failure on DEBUG kernels.
- Fix MP/preemption races with timecounter detachment.
2009-05-23 18:21:20 +00:00
ad fc7505ae27 Broken assertion. 2009-05-23 18:19:19 +00:00
mjf 27cb8d0e73 After a recent WARNS= bump on ld.elf_so it fails to build on hppa,
complaining that we're "discarding qualifier from pointer target
type".

Use const char * instead of caddr_t to avoid the warning and get
distribution building on hppa again.
2009-05-23 17:50:34 +00:00
ad 2fc2b08001 - Add lwp_pctr(), get an LWP's preemption/ctxsw counter.
- Fix a preemption bug in CURCPU_IDLE_P() that can lead to a bogus
  assertion failure on DEBUG kernels.
- Fix MP/preemption races with timecounter detachment.
2009-05-23 17:08:04 +00:00
ad a742b7d3d8 - Cosmetic change to previous.
- Add a comment.
2009-05-23 15:59:30 +00:00
ad d4b01cb0fb - Fix a race between umount()/mount() and nfssvc().
- Toss netexport state on nfsserver module unload.
2009-05-23 15:31:21 +00:00
ad cb95ab6e35 Fix a crash observed when trying to load a corrupted ELF image. 2009-05-23 15:13:57 +00:00
ad abc14f1bc4 Fix a crash when unloading nfsserver module. 2009-05-23 14:45:18 +00:00
ad 7839123ed3 Remove pointless error check. 2009-05-23 14:44:56 +00:00
stacktic 9cdc17cae0 Fixed strvisx usage (ok Christos@) 2009-05-23 14:43:36 +00:00
skrll 8edb76ef42 More help for mjf's machine. 2009-05-23 13:39:54 +00:00
mrg 4157d76654 fix a new -Wsign-compare bug. 2009-05-23 08:26:26 +00:00
mrg ff1dab193c normalise the previous 2009-05-23 07:12:39 +00:00
mrg 069a73b46b note bozohttpd update 2009-05-23 07:11:52 +00:00
mrg 67eebf838c fix a merge botch in previous 2009-05-23 06:45:28 +00:00
christos 6a9b5acd29 print the proper client address (ryo shimizu) 2009-05-23 03:24:51 +00:00
mrg c6e75af28a merge bozohttpd 20090522 2009-05-23 02:26:03 +00:00
mrg 36a7970f3c import bozohttpd 20090522, which has these changes:
o  close more leaking file descriptors for CGI and daemon mode
	o  add subdirs for build "debug" and "small" versions
	o  clean up a bad merge / duplicate code
	o  make mmap() usage portable, fixes linux & ranges: support
	o  document the -f option
	o  daemon mode now serves 6 files per child
2009-05-23 02:21:19 +00:00
martin c131490c29 Use the new Elf_SOff (signed offset) type to fix a few signed/unsigned
problems.
2009-05-22 21:47:46 +00:00
martin 9628a349dd Add a signed offset type 2009-05-22 21:44:50 +00:00