Commit Graph

66073 Commits

Author SHA1 Message Date
itojun
782cbb14c5 2^n hash table is better in the kernel. advise by perry@netbsd 2003-09-14 07:30:32 +00:00
christos
32d14d8273 ZA -> ZB 2003-09-14 07:01:19 +00:00
christos
235d749e3b handle deferred signal delivery with siginfo. struct sigctx changed, so
bump to ZB.
2003-09-14 07:00:44 +00:00
christos
9970fc6a83 handle siginfo for deferred signals. Allocate a ksiginfo pool, and store
the information there.
TODO:
1. since timer stuff gets called from an interrupt context, we could
   preallocate ksiginfo_t's from the pool, so we don't need a kmem
   pool.
2. probably the sa signal delivery syscall can be changed to take
   a ksiginfo_t so we can use only one pool.
3. maybe when we add realtime signal support, add a resource limit
   on the number of ksiginfo_t's a process can allocate.
2003-09-14 06:59:13 +00:00
christos
24045725fc set the sigval in the setitimer case. 2003-09-14 06:56:22 +00:00
itojun
d669285a77 use prime number to hash SPI 2003-09-14 03:11:31 +00:00
dyoung
6e8d0b71c8 Insert RCSIDs. 2003-09-14 01:14:54 +00:00
christos
35a41eaf06 enable SI_TIMER notification. 2003-09-13 22:39:18 +00:00
christos
86226ab757 fix for non-objdir build. reported by tron. 2003-09-13 22:25:47 +00:00
itojun
71c96a2bb4 correct ru_a/ru_b setup for 20bit case 2003-09-13 21:32:59 +00:00
christos
0c73068f06 regen 2003-09-13 18:44:49 +00:00
christos
2cfe0b047e add __HAVE_SIGINFO 2003-09-13 18:44:30 +00:00
erh
1f5fff1c1c PR# standards/16143: hide struct uio from userland behind a __UIO_EXPOSE
ifdef.  Define this when building ipf, since it shares code between the
kernel and userland and uses struct uio.
2003-09-13 16:59:29 +00:00
manu
755716d281 Darwin's I/O reverse the mouse's Y axis. 2003-09-13 16:35:47 +00:00
manu
08f5f5b835 Bugfix: notifications sent by iohidsystem kernel threads are to be
hnalded as mmessages coming from the kernel, since the threas has
no p->p_emuldata
2003-09-13 16:07:44 +00:00
jdolecek
88157947ee actually remove p_dupfd from struct proc (oops) 2003-09-13 15:55:29 +00:00
mycroft
10675507e9 Don't be silent if there is no media present. 2003-09-13 15:49:04 +00:00
christos
4148967f74 provide siginfo_t in for SIGCHLD 2003-09-13 15:32:40 +00:00
kleink
ffc3f24ba3 Remove pointless inclusion of <sys/cdefs.h> (a pre-ANSI-KNF leftover). 2003-09-13 15:28:36 +00:00
kleink
decf23e1e4 Per 1003.1-2001 XSI, make available ucontext_t (via <sys/ucontext.h>). 2003-09-13 14:45:44 +00:00
mycroft
953ba0b251 Make sure the "raw partition" can always be opened again. 2003-09-13 14:44:50 +00:00
chris
27dc577349 Tidy up a couple of bits to avoid duplication within the switch. 2003-09-13 14:31:34 +00:00
bouyer
ff7554f54c make sure to not get flags which are for internal use only from the on-disk
superblock.
Proposed in http://mail-index.netbsd.org/tech-kern/2003/09/06/0005.html
2003-09-13 14:09:15 +00:00
kleink
ec9e5f7276 Remove spurious whitespace. 2003-09-13 13:54:30 +00:00
bouyer
5e33ea894e Commit changes proposed in
http://mail-index.netbsd.org/tech-kern/2003/09/06/0001.html
http://mail-index.netbsd.org/tech-kern/2003/09/06/0006.html
to avoid compat problems with old ffsv1 by reuse of the old FS_SWAPPED
value for FS_FLAGS_UPDATED, and use of new, larger fields:
- Don't use FS_FLAGS_UPDATED to see if we need to update new fields from
  old fields in ffsv1 case.
- when writing back the superblock, copy back the flags to the old location
  if only old flags are set (FS_FLAGS_UPDATED won't be set in this case)
  in ffsv1 case.
2003-09-13 13:47:04 +00:00
chris
cfb7a98211 Add COMPAT_16 to most arm based kernels. Mainly in preperation for doing
SA_SIGINFO work.
2003-09-13 13:30:01 +00:00
simonb
90fc39f5b8 Make some variables unsigned since that's the type of parameter they're
passed as to other functions.
2003-09-13 12:31:35 +00:00
jdolecek
a8cd2ca54c regen - fix description of one Intel PRO/100 VM variant, as reported
by Lars Heidieker on current-users@
2003-09-13 12:17:18 +00:00
simonb
a4852d80fc Remove an unreachable return statement (and fix a whitespace nit). 2003-09-13 12:17:12 +00:00
jdolecek
3a6c7eacfc fix description of Intel PRO/100 VM Network Controller with 82562ET/EZ PHY
don't activate any quirks for VM_6 variant
problem reported by Lars Heidieker on current-users

also don't activate any quirks for VM_3 - VM_5 variants, neither
VE_2 - VE_4, in anticipation that the more modern variants don't need
the quirks
2003-09-13 12:13:29 +00:00
simonb
f7e3330a08 Remove a variable that is assigned to but not used. 2003-09-13 11:12:06 +00:00
jdolecek
6dcd3a676c Bump version to 1.6ZA - struct proc and struct lwp changes
Deja vu ...
2003-09-13 08:55:09 +00:00
jdolecek
a034152027 move dupfd from struct proc to struct lwp - it's per-LWP, not per-process; we
use curlwp where the lwp is not directly available, i.e. in device open
routines

briefly discussed on tech-kern
2003-09-13 08:32:10 +00:00
jdolecek
ce8305a84c g/c #if 0'ed code 2003-09-13 08:22:51 +00:00
jdolecek
69150f5b25 ptyname[] must not be static, the contents are modified later in the routine 2003-09-13 08:15:25 +00:00
manu
11d6605f3f Sync between parent and child in iohdisystem thread so that the child has
time to get its parmeteres before the parent throw them away
2003-09-13 07:56:54 +00:00
jdolecek
5b8709f378 move l_ctxlink in struct definition to 'zero' region visually too, to
make it more clear that l_ctxlink _is_ zeroed
2003-09-13 07:56:03 +00:00
mycroft
09e452d82a Do the quirk initialization earlier. 2003-09-13 03:18:13 +00:00
mycroft
96b1a8d146 Arrange for the SCSI device to be target 0, and us to be the highest target
number.  This will make my life easier later...
2003-09-13 03:16:49 +00:00
christos
280bbfe466 Set si_code for T_PROTFLT|T_USER. Pointed out by enamicode. 2003-09-12 23:20:26 +00:00
mycroft
ec14ab4b89 The Ricoh power hackery is not reliable -- many cards just do not have the
voltage sense wired.  So, disable it and force the card to 5V by default.
Also, recode the hack to use the "direct Vcc" feature of the chip, letting
it manage the voltage directly, as this is supported on both the 296 and
396.
2003-09-12 22:09:04 +00:00
mycroft
509e3d9fce Set SCSIPI_CHAN_NOSETTLE. 2003-09-12 19:02:30 +00:00
tsutsui
14b42ecf3b Use common mips generic software interrupt routines. 2003-09-12 17:55:40 +00:00
christos
51d8c27c8d pick up the right sigreturn symbol. we could have #define __HAVE_SIGINFO
instead too.
2003-09-12 16:51:04 +00:00
mycroft
af0c320925 Some devices really want INQUIRY to be the first command they receive. Also,
the result of the extra TEST UNIT READY was being ignored anyway.  So, I wrote
it, I nuke it.
2003-09-12 16:39:25 +00:00
christos
d91e004306 add missing path. 2003-09-12 16:29:09 +00:00
mycroft
8b05b0c1d3 In usbd_setup_pipe(), check the return value from usbd_clear_endpoint_stall(). 2003-09-12 16:22:57 +00:00
mycroft
af7e1b8144 Tweak a debugging printf(). 2003-09-12 16:18:08 +00:00
tsutsui
f9325594bb Remove a redundant function declaration. 2003-09-12 15:29:48 +00:00
chs
c5e2454205 handle pmap_procwr() on kernel procs (MIPS1).
needed for new signal trampoline stuff.
2003-09-12 15:29:16 +00:00