Commit Graph

66221 Commits

Author SHA1 Message Date
itojun cd71ebe2f7 mark security policy that should persist in the system "persistent".
this should prevent recently-reported kernel panic when "spdflush" is issued.
2003-09-22 04:47:43 +00:00
jdolecek 1fda9a87e7 kill unused variable in #ifdef ALTQ part, to make this compile
with ALTQ configured in
2003-09-22 03:29:34 +00:00
thorpej 2f8976d430 Add TWEIO_{ADD,DEL}_UNIT ioctls (used by 3ware management tools). From
FreeBSD.
2003-09-22 01:44:57 +00:00
thorpej b2b05806b3 Add a few additional control bits and opcodes. From FreeBSD. 2003-09-22 01:28:25 +00:00
thorpej 0448a55234 Improve AEN handling:
- Make AENs use the generic code table stuff.
- Add a few more AEN codes (from FreeBSD).
- Correct the context of a few AEN codes (some were listed as
  "unit context" when they're really "port context").
- Add a queue of AENs that management tools in userspace can poll
  (from FreeBSD).
2003-09-22 01:13:02 +00:00
lha 5b649f6771 Implement nanouptime as a function to avoid 'dereferencing type-punned pointer'.
No token after #endif
2003-09-21 20:56:01 +00:00
thorpej 4431e5d2ea Fetch info about the drives during attach, and inject that info
into the msgbuf using aprint_verbose().
2003-09-21 19:46:44 +00:00
matt 1df05a73fe Fix GCC 3.3.1 nits. 2003-09-21 19:33:13 +00:00
thorpej a721d80bc9 Report the status of the logical drive (normal, degraded, etc.) at
attach time.
2003-09-21 19:33:10 +00:00
matt 6bf111a80e Fix GCC 3.3.1 nits. 2003-09-21 19:32:37 +00:00
jdolecek bc83b2f421 make compile after last change (!) 2003-09-21 19:29:10 +00:00
thorpej 21809f0c30 Expose the "param get" functions. 2003-09-21 19:27:27 +00:00
thorpej 291d256789 - Record more information about the array unit, including array
type and stripe depth.
- Report array type and stripe depth when attaching the logical drive.
2003-09-21 19:20:18 +00:00
jdolecek 7cea8a1389 cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
  the owner of descriptor, according to appropriate sematics
  of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
  these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
  properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
  in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
  pass the ioctls down to soo_ioctl() as any other ioctl

change discussed on tech-kern@
2003-09-21 19:16:48 +00:00
thorpej 4cf2e784e2 Add some helper routines to fetch 1, 2, and 4 byte parameter values.
Modeled after code in FreeBSD.
2003-09-21 19:01:05 +00:00
manu 9a42b7a993 Do much more sanity checks when handling entries in the sc_scr array
of struct wsdisplay_softc. Unused entries are NULL, and there were
a lot of places where we did not checked that the caller did not
requested an operation on a NULL entry.

While we are there, one bit of KNFification, and make return code more
consistent by always returning the same code (EINVAL) when a screen
number higer than the maximum is requested.
2003-09-21 18:47:59 +00:00
manu b01f5cf127 Extra sanity checks: all char devices won't have an associated tty. 2003-09-21 18:40:38 +00:00
thorpej 6c5904f215 Add some additional code -> description tables, and add a generic
routine to translate code -> description.  AENs will be converted
to this mechanism in a future commit.

Partially from FreeBSD.
2003-09-21 18:35:31 +00:00
christos 9b18cdecf8 Now that we have siginfo, use it, instead of pretending to have one. 2003-09-21 17:42:23 +00:00
matt a57c218722 Need to remove .comment too. 2003-09-21 15:21:03 +00:00
skd e7e68c0c6d Backed out single step emulation.
Approved by thorpej@netbsd.org.
2003-09-21 15:14:51 +00:00
matt b9d20d131e Fix GCC 3.3.1 nits 2003-09-21 15:12:16 +00:00
matt c280e763ef Adapt to new wdcattach calling conventions. 2003-09-21 15:11:04 +00:00
matt 749adf24a9 Fix GCC 3.3.1 nits. 2003-09-21 15:10:05 +00:00
cl cebad0b338 make compile 2003-09-21 14:41:33 +00:00
nisimura 1e9ce6571c Regen. 2003-09-21 14:27:40 +00:00
nisimura cfb11c4317 Redo, again. 2003-09-21 14:23:21 +00:00
matt f9188e9265 Fix some GCC3.3.1 nits (-ffreestanding, #include <lib/libkern/libkern.h>) 2003-09-21 14:17:13 +00:00
nisimura 7fef26674d Redo the previous fix. 2003-09-21 14:12:09 +00:00
enami a7c2135a0c Correctly resurrect the style in previous. While I'm here, also removed
whitespace at the end of line in comment.
2003-09-21 11:56:40 +00:00
bouyer 0ca58f3790 Ops, remove a line that escaped out of my local tree. 2003-09-21 11:30:43 +00:00
bouyer 9f91a8476e The return value from pciide_mapregs_* are ignored; make them return void.
Re-add support for HPT366 in compat mode.
2003-09-21 11:20:37 +00:00
bouyer c6beeca692 Since we can't detect ghost drives in the wdc back-end, resurect
WDC_CAPABILITY_SINGLE_DRIVE.
2003-09-21 11:14:00 +00:00
nisimura e17ee1fa3b Regen to fix the company name. 2003-09-21 07:59:04 +00:00
nisimura 54daa064f1 Fix the company name. It seems these days the company calls itself
"STMicroelectronics" anyway.
2003-09-21 07:45:13 +00:00
matt 533ad6c08b Fix more GCC 3.3.1 nits. 2003-09-21 06:52:42 +00:00
matt cd3cb3dc0f GCC 3.3.1 fixes (-ffreestanding, #include <lib/libkern/libkern.h>) 2003-09-21 06:28:37 +00:00
matt 2d54fd3a9c Change some type-punning detected by gcc 3.3.1 to (void *). 2003-09-21 00:26:09 +00:00
matt 99c08a490f For GCC 3.3.1, need to remove .comment too. 2003-09-21 00:19:31 +00:00
cl 65a1bc95c2 add MD part of SA/pthread pagefault handling on pc532 2003-09-20 23:44:07 +00:00
cl 6725716f10 add MD part of SA/pthread pagefault handling on mips 2003-09-20 22:50:52 +00:00
enami 893414b366 Make sure the message from pciide_chipen() starts at the beginning of line. 2003-09-20 22:46:02 +00:00
matt 200ff49b87 Use #ifdef _KERNEL_OPT around #include "opt_XXX.h" 2003-09-20 22:28:19 +00:00
matt 70060b7c61 Add multiple inclusion protection. 2003-09-20 22:26:16 +00:00
matt e104d5f8a7 Install <hppa/mcontext.h> 2003-09-20 22:25:40 +00:00
matt 467632cd2a Install <machine/mcontext.h> 2003-09-20 22:25:07 +00:00
bouyer d9ce986b70 Remove the "Register ghost test". It won't work, because on ATA register
of both devices are written, and device 0 will respond for device 1 if
device 1 isn't present. Pointed out by Quentin Garnier.
So the only way to know if device 1 is there or not is to send a command, which
is done later.
Detecting the second device here isn't important and won't speed up the probe.
We just need to know if there is at last one device on the bus.

Fix PR kern/22869 from Julio M. Merino Vidal.
2003-09-20 21:42:47 +00:00
jdolecek d07d321142 if mounted ASYNC, use delayed writes for metadata, which improves performance
of these operations significantly
based on FreeBSD ufs_lookup.c rev. 1.8, by John Dyson
2003-09-20 21:05:53 +00:00
yamt 17f9466183 some comments 2003-09-20 17:51:55 +00:00
cl b15cfcd9be correctly define _W_INT ifdef _KERNEL
- kernels where sizeof(u_short) != sizeof(int) were broken otherwise
2003-09-20 14:59:56 +00:00