Commit Graph

160081 Commits

Author SHA1 Message Date
tsutsui
be8757ef61 Add __attribute__((__packed__)) to all command structures. 2007-07-01 05:17:28 +00:00
rumble
1b3d6b0053 Remove a superfluous pasted structure definition, permitting ALL to
build again.

Caught by Hisashi T Fujinaka.
2007-07-01 01:09:05 +00:00
dsl
168c1071b4 Call fp->f_ops->fo_ioctl() directly (not by sys_ioctl() for LINUX_VT_GETMODE
and LINUX_VT_SETMODE.  One fewer use of the stackgap.
2007-06-30 22:54:33 +00:00
dsl
a1188737bf Use the new CDIOCREADSUBCHANNEL_BUF and CDIOREADTOCENTRIES_BUF ioctls to
avoid copying into the stackgap.
2007-06-30 22:18:17 +00:00
dsl
716dbe1abc The cd ioctl definitions are not condusive to being called from within
the kernel (eg from withthe linux compat code).
Add CDIOCREADSUBCHANNEL_BUF and CDIOREADTOCENTRIES_BUF which are like the
  existing ioctls withoutthe _BUF, except that the data area immediately
  follows the control structure (and is fixed length).
Modify scsipi/cd.c so that it only ever has one 'struct cd_formatted_toc'
  allocated on the stack (maybe this info ought to be in the softc)
  structure since even one 800 byte on-stack buffer isn't overly friendly.
cdplay(1) still seems able to read the track-list of an ATAPI cd.
2007-06-30 22:16:38 +00:00
dsl
477e862d2a Fix inverted check in sys_setgroups(). 2007-06-30 21:31:41 +00:00
tsutsui
8dedfc4041 - avoid possible NULL pointer dereference in error path
- call Debugger() only #ifdef OSIOP_DEBUG
Partially from OpenBSD.
2007-06-30 19:35:08 +00:00
tsutsui
25f9eea68b Use more TAILQ macro. From OpenBSD. 2007-06-30 19:24:30 +00:00
pooka
b013a2d4f9 Include struct componentname declaration in struct namei - it's
usually the more interesting of the two anyway.
2007-06-30 18:55:19 +00:00
pooka
5ac04c46a8 VOP_LOCK() doesn't handle LK_RETRY, call vn_lock() instead 2007-06-30 18:28:15 +00:00
rmind
597004aa18 Fix the C99 restrict keyword with array defintion in prototype problem.
http://mail-index.netbsd.org/tech-userlevel/2007/06/17/0004.html
Closes PR/36451.
2007-06-30 16:36:35 +00:00
pooka
6b0a9db09f Fix logic flaw in KASSERT. Seems like my lkm wasn't compiled with
DIAGNOSTIC ...
2007-06-30 16:28:14 +00:00
dsl
d60a214b3b Remove a load of unnecessary casts now that 'addr' is 'void *'. 2007-06-30 16:00:55 +00:00
rumble
6bb85b28da Additional documentation on extents and some artificial limitations SGI
has introduced (and changed in backwards-incompatible ways) over the years.
2007-06-30 15:56:16 +00:00
dsl
53e0243f27 Changes to sompat socket function to avoid the dreaded stackgap. 2007-06-30 15:31:49 +00:00
dsl
6319443e37 Updates for changes prototype of kauth_cred_set/getgroups(). 2007-06-30 15:27:02 +00:00
tsutsui
b00d562b51 Backout previous; defer bus_dmamap_sync(9) op against data buffer instead.
XXX ews4800mips (which has 128byte L2 cacheline) still has
XXX some problem in sd_read_capacity() on some unclear condition.
2007-06-30 14:56:48 +00:00
tsutsui
8c07627095 Copy SCSI command before bus_dmamap_sync(9) PREREAD ops against
data xfer buffer because command and data buffers might be in
the same cacheline.
2007-06-30 14:32:50 +00:00
tsutsui
8df8a6ae3f Rather than preparing DMA map for SCSI command (which is
less than 16 bytes) of each SCSI command block (acb), just
prepare DMA safe buffer in struct osiop_ds and copy commands
into the buffer on each transfer to save resources and
reduce small and unaligned cache flush ops.

As a side effect, sizeof struct osiop_ds (DMA safe data buffer)
is now 256 bytes (including padding) so it could be more
cacheline friendly on bus_dmamap_sync(9) ops.

Tested on Express5800/230 (arc) and EWS4800/360AD (ews4800mips),
and no visible performance difference on bonnie.
(hppa and mvme68k are untested)
2007-06-30 14:08:58 +00:00
dsl
e99b2da36f Welcome to 4.99.22: Addition of flags parameter to kauth_cred_get/setgroups(). 2007-06-30 13:42:47 +00:00
dsl
4be2514b94 Match updates to kauth_cred_set/getgroups. 2007-06-30 13:34:19 +00:00
dsl
04c196a642 Add a flags parameter to kauth_cred_get/setgroups() so that sys_set/setgroups
can copy directly to/from userspace.
Avoids exposing the implementation of the group list as an array to code
outside kern_auth.c.
compat code and man page need updating.
2007-06-30 13:32:14 +00:00
pooka
5092d42715 print time elapsed between calls 2007-06-30 12:42:25 +00:00
jmcneill
1a446b6f11 Move ral@pci from INSTALL to INSTALL_LARGE, as requested by Manuel Bouyer. 2007-06-30 12:30:34 +00:00
pooka
835b0326c5 Using POOL_INIT here makes no sense, since file systems always have
an init method.  So get rid of it and #ifdef _LKM and just always
init in the init method.  Give malloc types the same treatment.
Makes file systems nicer to work with in linksetless environments
and fixes a few LKM discrepancies.
2007-06-30 09:37:53 +00:00
mlelstv
e044ee54b9 Fix typo that prevents port reset after several retries. 2007-06-30 09:17:45 +00:00
jmcneill
cbc58c76f0 Enable ral@pci by default in the INSTALL kernel. 2007-06-30 03:11:03 +00:00
rumble
e222f53360 When checking for an EFS filesystem just read in the whole superblock,
rather than jump to the hard-coded magic field offset.
2007-06-30 02:05:27 +00:00
rumble
8600ed2bd8 Make mount_efs.8 and svhlabel.8 reference one another. 2007-06-30 01:11:35 +00:00
rumble
dd5b82c6a6 Add missing include. 2007-06-30 00:54:09 +00:00
rumble
98a859360f Superblock magic numbers are #define'd, so use them. 2007-06-29 23:33:05 +00:00
rumble
6912898dc8 Add read-only support for SGI's Extent File System.
Reviewed by pooka@.
2007-06-29 23:30:16 +00:00
kardel
902143c77e ntp 4.2.4p3 (Windows termination fix) is out 2007-06-29 22:40:27 +00:00
kardel
7aff806d2b document in-tree ntp version 4.2.4p2 2007-06-29 22:32:03 +00:00
tsutsui
446e7b7d8c __FUNCTION__ -> __func__ 2007-06-29 16:41:31 +00:00
dmcmahill
096f2d0ee4 Replace "awk" with "${AWK:-awk}".
Needed to be able to cross-build on systems with a feeble awk (SunOS-5.9
for example).  Example error message is:
awk: record `#define CTL_IPPROTO_...' has too many fields
 record number 404
2007-06-29 16:39:51 +00:00
tsutsui
9905ba64da Add options COMPAT_40. 2007-06-29 16:23:29 +00:00
tsutsui
bad1146f72 Fix botch in cnpollc(9) for keyboard devices. 2007-06-29 16:09:04 +00:00
tsutsui
1681c91ced We have to use _splnone() instead of spl0() to enable interrupts on mips
because spl0() is an alias of _spllower(0) and it doesn't set MIPS_SR_INT_IE.

Fixes ews4800mips kernel getting stuck in cpu_idle(9)
after cpu_configure(9) since yamt-idlelwp merge.
(previous mips_idle() implicitly set MIPS_SR_INT_IE
 but new cpu_idle(9) for mips no longer does it)
2007-06-29 16:03:04 +00:00
christos
7b1793900f make this compile without INET6 (Scott Ellis) 2007-06-29 15:53:21 +00:00
pooka
e01e324216 remove redundant KASSERTs 2007-06-29 15:34:59 +00:00
christos
d1ffad0af7 Handle mapped and scoped ipv6 addresses. From Anon Ymous. 2007-06-28 21:11:12 +00:00
christos
681a7e5524 Add functions to do mapped address conversions from FreeBSD. 2007-06-28 21:03:47 +00:00
xtraeme
5cd016ef40 For 586 based National Semiconductor CPUs, use amd_cpu_cacheinfo to
print cache information.

My AMD Geode GX2 500/1W reports good values:

cpu0 at mainbus0: (uniprocessor)
cpu0: National Semiconductor Geode (586-class), 365.26 MHz, id 0x552
cpu0: features 80a13d<FPU,DE,PSE,TSC,MSR,CX8>
cpu0: features 80a13d<PGE,CMOV,MMX>
cpu0: "Geode(TM) Integrated Processor by National Semi"
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: ITLB 8 4 KB entries fully associative
cpu0: DTLB 8 4 KB entries fully associative
2007-06-28 21:02:40 +00:00
bouyer
69219b1efe copy from the right offset when handling root= on the command line.
Pointed out by Pavel Cahyna.
2007-06-28 20:54:47 +00:00
bouyer
6be5ba1e96 Make sure to check for pending interrupts on the final STI. For this
reorganise the IPL vectors a bit so that they can be used from more
places than splllower and doreti.
Include patch from Kazushi Marukawa (fixed to handle pending interrupts),
which should fix the read_psl() == 0 assertion failure reported by
several users.
2007-06-28 20:50:30 +00:00
alc
c82e20912d - add ichlpcib to XEN2 config file
- few cosmetics

tested with XEN2 and XEN3 kernel
ok bouyer@
2007-06-28 20:07:00 +00:00
joerg
12929bba43 - When compiling nbinstall for the tool chain, use the target strip
and not /usr/bin/strip. This makes nbinstall usable for
  cross-compiling in pkgsrc.
- Fix a typo in a comment.
- Fix strip() in the context of (v)fork:
  - Build the argument string first using asprintf (simpler) and
    avoid leaking memory from the child in the parent.
  - Don't use warn in the child, as stdio should be avoided.

OK christos@, tested on Solaris by dmcmahill@.
2007-06-28 19:05:55 +00:00
christos
9bba04122f Set the mib appropriately depending on the socket address family.
From (Matthias Drochner).
2007-06-28 18:47:17 +00:00
nonaka
e02b41111a cpu_reboot():
- fix data write-back to hard disk is failed when reboot/halt.
2007-06-28 16:07:12 +00:00