Commit Graph

63536 Commits

Author SHA1 Message Date
thorpej ec678aa9cd Use L1_S_MAPPABLE_P() and L2_L_MAPPABLE_P(). 2003-04-18 23:46:12 +00:00
thorpej 8896997409 Gah, fix *another* typo. 2003-04-18 23:45:50 +00:00
uwe 7b16962da2 Quirk Pilotech CRW-600. 2003-04-18 23:38:18 +00:00
uwe fa83041685 Regen for Pilotech CRW-600. 2003-04-18 23:31:43 +00:00
uwe f700119cc7 Add Pilotech and its CRW-600 6-in-1 USB flash reader. 2003-04-18 23:28:09 +00:00
christos 4e4a4c7bc9 Make the mode of /proc/<pid>/fd dr-x------ 2003-04-18 23:19:24 +00:00
thorpej 21e8a3bc0f Oops, fix typo. 2003-04-18 22:44:54 +00:00
christos cd174e0605 make the copy_statfs_args() function copy all the fields that are not
set by the filesystems. Before my changes, the statfs code depended
on calling it with mp->mnt_stat, and did not explicitly initialize
anything!
2003-04-18 22:44:45 +00:00
thorpej 08330568d0 Define two new macros to test if a mapping is mappable with an L1 Section
mapping or an L2 Large Page mapping.
2003-04-18 22:39:56 +00:00
thorpej 78b1b81e74 Add a comment indicating that the current method of enabling high vectors
requires that the CPU control vector be properly readable.  I believe that
all CPUs that have high vector support have a readable CPU control register,
but if we ever encounter one that does not, then we'll have to adjust this
code.
2003-04-18 22:30:05 +00:00
christos 11cc5eb2c6 Make symlinks for directories that point to the actual directory.
Make symlinks to [kqueue] and [misc] for kqueue and misc fds.
2003-04-18 21:55:35 +00:00
scw 63deb1bd73 Cast __greg_t to/from caddr_t via intptr_t. 2003-04-18 21:07:35 +00:00
scw 9957a9bbe4 Now that UBC no longer creates writable virtual aliases (for PMAP_VIVT),
we no longer need to track mappings added by pmap_kenter_pa() for the
purpose of cache-alias detection.
2003-04-18 20:02:34 +00:00
scw f97e7c222f Need to bump uvmexp.intrs when taking a h/w interrupt. 2003-04-18 19:57:11 +00:00
tsutsui 761db756a1 - remove definitions of SIZE and STRIP which should be defined elsewhere
- use mips/conf/stand.ldscript so that objcopy -O binary works
2003-04-18 19:12:01 +00:00
tsutsui 0b271b64a6 Use LEAF_NOPROFILE(). 2003-04-18 18:52:27 +00:00
tsutsui a34a62065c Revert part of previous. sdstrategy() no longer calls
bounds_check_with_label() for RAW_PART.
2003-04-18 15:57:37 +00:00
yamt 8178e19cb6 fix a use of an uninitialized variable. 2003-04-18 15:19:02 +00:00
scw 98d49ded24 Add support for ARM32_PMAP_NEW and ARM32_NEW_VM_LAYOUT to the iq80321 port. 2003-04-18 12:01:32 +00:00
scw 3fe47173f5 Didn't mean to leave PMAP_DEBUG enabled ... 2003-04-18 11:55:26 +00:00
scw b84e9438dd Enable ARM32_PMAP_NEW on NetBSD/shark. 2003-04-18 11:11:51 +00:00
scw 41a1932e58 Add the generic arm32 bits of the new pmap, contributed by Wasabi Systems.
Some features of the new pmap are:

 - It allows L1 descriptor tables to be shared efficiently between
   multiple processes. A typical "maxusers 32" kernel, where NPROC is set
   to 532, requires 35 L1s. A "maxusers 2" kernel runs quite happily
   with just 4 L1s. This completely solves the problem of running out
   of contiguous physical memory for allocating new L1s at runtime on a
   busy system.

 - Much improved cache/TLB management "smarts". This change ripples
   out to encompass the low-level context switch code, which is also
   much smarter about when to flush the cache/TLB, and when not to.

 - Faster allocation of L2 page tables and associated metadata thanks,
   in part, to the pool_cache enhancements recently contributed to
   NetBSD by Wasabi Systems.

 - Faster VM space teardown due to accurate referenced tracking of L2
   page tables.

 - Better/faster cache-alias tracking.

The new pmap is enabled by adding options ARM32_PMAP_NEW to the kernel
config file, and making the necessary changes to the port-specific
initarm() function. Several ports have already been converted and will
be committed shortly.
2003-04-18 11:08:24 +00:00
scw 9c5cceb804 In arm32_vector_init(), if the vector page is ARM_VECTORS_HIGH, make
sure the CPU_CONTROL_VECRELOC bit is set in the cpu control register
before returning.
2003-04-18 10:51:35 +00:00
scw c8ba6cb1b9 - In the various cpu_setup() functions, check if the vector page
is at ARM_VECTORS_HIGH and set CPU_CONTROL_VECRELOC if so.

- Don't de-ref a NULL args pointer in parse_cpu_options().
2003-04-18 10:45:23 +00:00
jdolecek b7b5aac957 change PROCFS_FILENO() to use 5 bits for 'type', since there are more than
16 types nowadays (i.e. Pfd is 17)
2003-04-18 10:00:19 +00:00
is dc7d5edb51 fix fatal typo 2003-04-18 09:23:17 +00:00
is 4549723d92 iszthreepa() takes a physical address, not a virtual address.
This fixes PR 19175, reported and heavily debugged by Pawel Chwalowski.
2003-04-18 09:18:19 +00:00
scw c6c94cfec3 Make sure _bus_dmamap_load_mbuf() converts cpu-relative addresses
to bus-relative addresses.

Spotted by John Gordon, on port-powerpc@.
2003-04-18 09:16:05 +00:00
explorer 2248468d68 add my 80 GB SATA drive to the quirk table. 2003-04-18 04:32:19 +00:00
thorpej 5a20f4be3c * Add a generic power management event API, defined in <sys/power.h>.
Right now, only power switch state change events are supported.  This
  is a work-in-progress.
* Add support to sysmon for delivering power mangement events to userland.
  Add poll, kqueue, and read entry points to sysmon.
* Adapt ACPI to use the new generic <sys/power.h> event types.

This provides the kernel support for a forthcoming powerd(8) which can
do nice things like gracefully shut the system down when an ACPI power
button is pressed.
2003-04-18 01:31:34 +00:00
simonb 3a00c85d38 Add a KASSERT to make sure that "sizeof(struct mbuf)" is MSIZE.
Extra insurance for Steve Woodford's recent <sys/mbuf.h> patch.
2003-04-18 01:24:20 +00:00
mason d1b448c6e5 From current-users:
On Thu, Apr 17, 2003 at 11:26:26AM -0500, Dave Huang wrote:

> Typo police here :) "whose," not "who's."
2003-04-18 00:35:14 +00:00
thorpej 091e93c002 Bump ramdisk size to 4600 blocks. 2003-04-17 22:57:16 +00:00
salo f35804411a depreceated->deprecated 2003-04-17 22:55:29 +00:00
matt 062bcd3204 acpi.c needs sysmon_power too. 2003-04-17 20:56:29 +00:00
jdolecek f331bb3205 do not show nodes corresponding to directory descriptors for process
in fd/ subdirectory, nor allow lookup/open for the nodes
this fixes PR kern/21187 for good, and also avoids interesting directory
locking issues
2003-04-17 20:50:46 +00:00
jdolecek 884bdfdbaf procfs_readdir(): in Pfd case, only show descriptors of types we want
how to represent (vnodes, fifo, pipes); also use fd_getfile() et al

this avoids annoying EOPNOTSUPP error messages from ls -F and such
2003-04-17 20:33:17 +00:00
jdolecek be4c900d41 procfs_lookup(): use fd_getfile() et al in Pfd case 2003-04-17 20:19:18 +00:00
fvdl 1279513402 Need PAGE_SIZE definition for mptramp.S 2003-04-17 20:00:03 +00:00
thorpej ee5b1a7c61 Protect the definition of offsetof(). 2003-04-17 19:58:57 +00:00
jdolecek ed9a5a7448 use fd_getfile() in procfs_getfp(), and FILE_USE()/FILE_UNUSE() the
returned file descriptor pointer appropriately
2003-04-17 19:04:25 +00:00
fvdl 5b38542fe2 Bump MSIZE to 512. 2003-04-17 18:20:17 +00:00
jdolecek b5bca36101 g/c, it's outdated and the info wouldn't belong here anyway 2003-04-17 18:14:57 +00:00
jdolecek 64b598bf33 make some local arrays/variables static + const 2003-04-17 18:08:28 +00:00
tron 2dcd4d2952 Clear hardware checksum flags before reusing a mbuf for an ICMP reply as
suggested by Enami Tsugutomo. This fixes PR kern/21203 by myself.
2003-04-17 16:57:49 +00:00
jdolecek 9d23bccfba add quirk for Avance Logic USB Audio
provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:43:44 +00:00
jdolecek 8d4a0cf374 regen:
fix handle for Avance Logic (AVANCELOGIC, not ADVANCELOGIC), and add
id for their USB Audio Speaker
provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:41:48 +00:00
jdolecek e566bf6b6e fix handle for Avance Logic (AVANCELOGIC, not ADVANCELOGIC), and add
id for their USB Audio Speaker
provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:41:00 +00:00
jdolecek 5e0c8413f3 uaudio_match_alt_sub(): fix the rate check in UA_SAMP_CONTNUOUS case
to match if UA_SAMP_LO() == UA_SAMP_HI() == rate
problem reported and fix provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:38:02 +00:00
scw d97029d2df Fix a problem first reported by Simon Burge when paddr_t is 64-bits on an
ILP32 platform.

What happens is that the compiler inserts padding in struct mbuf between the
MH_pkthdr and MH_dat members, due to the paddr_t in struct _m_ext.

Unfortunately, the old MLEN/MHLEN macroes fail to take into account this
padding and, thus, wind up making sizeof(struct mbuf) > MSIZE. This causes
mbuf corruption, which eventually leads to all sorts of bogosity on ILP32
platforms with a 64-bit paddr_t.

Thanks to simonb@ and fvdl@ for helping to track down this bug.
2003-04-17 16:15:36 +00:00
fvdl f41a4264a0 Remove some items to save space. 2003-04-17 14:45:33 +00:00
fvdl 41aa5664b5 Add mpt. 2003-04-17 13:32:28 +00:00
fvdl 2807f6e56a A bit of an ugly workaround to avoid a warning for a larger MSIZE.
Shouldn't make a difference in the generated code.
2003-04-17 13:12:39 +00:00
nakayama 72911290d9 Comment fixes from OpenBSD. 2003-04-17 12:58:18 +00:00
fvdl 00abb49877 if 0 out some redundant asserts. 2003-04-17 12:52:21 +00:00
fvdl 097bf36e7f Fix size_t printf formats in DIAGNOSTIC case. 2003-04-17 12:34:25 +00:00
fvdl cf3fb808d7 Fix DIAGNOSTIC link error (switch_error label). 2003-04-17 12:33:49 +00:00
wiz ad311c1708 Replace arm32 with arm ports that include the driver name in their GENERIC
(or any other kernel config, if no GENERIC exists).
Sort.
2003-04-17 11:55:08 +00:00
wiz d75ae2c6f5 no iic, thus no rtc@iic, thus no todclock@rtc. 2003-04-17 11:45:13 +00:00
fvdl 0a98e2c329 Correct the previous commit, getmcontext has no local 'gr' variable like i386. 2003-04-17 09:36:47 +00:00
fvdl 0545901d27 configdirs was changed to an array of u_int8_t, so don't compare values
to 65535.
2003-04-17 09:32:43 +00:00
thorpej b7394dfe47 Adapt to the sysmon_pswitch interface. 2003-04-17 01:34:14 +00:00
thorpej ea45f2ccc1 Oops, remove a debugging define. 2003-04-17 01:26:41 +00:00
thorpej 59ea64b6f0 * Don't do the ACPI_PCI_FIXUP unless it is explicitly enabled in
the kernel config file.  That code makes a total mess of any
  system with multiple PCI busses.
* Rework the way buttons are handled; register them with sysmon,
  and let it take the appropriate action.  This lets us gracefully
  shut down when the power button is pressed.
2003-04-17 01:22:21 +00:00
thorpej b0f79c65ce Start at a power management framework for sysmon. Right now we just
provide some VERY basic support for power/sleep buttons and lid switches;
if someone presses the power button, shut down the system semi-gracefully.

Eventually, we will send events for all types of button/lid events down
to a userland power management daemon, which will be able to define a
separate policy for each button/switch.
2003-04-17 01:02:21 +00:00
nathanw 2362be75a3 cpu_getmcontext: Test for the the presence of FP state in a LWP by
looking for MDP_FPUSED in l->l_md.md_flags, instead of
l->l_addr->u_pcb.pcb_fpcpu being non-NULL. The latter indicates that
FP state is live in the FPU *now*, but doesn't indicate whether there
is any state saved in the PCB.
2003-04-17 00:15:19 +00:00
thorpej 9cac2cc6d1 Add mpt(4). 2003-04-16 23:39:02 +00:00
thorpej e56e76188e Fix a typo. 2003-04-16 23:36:22 +00:00
thorpej f2e804cd79 Add mpt(4). 2003-04-16 23:34:30 +00:00
petrov 62ba316156 rasops32_putchar: don't paint character out of font limits. 2003-04-16 23:28:41 +00:00
thorpej 6f2e904450 Use the standard fixed-sized types on NetBSD. 2003-04-16 23:24:01 +00:00
thorpej 6c29c1f6fb In the polling case, don't call mpt_timeout() twice. 2003-04-16 23:17:30 +00:00
thorpej 98f531d377 mpt_dma_mem_alloc(): If we fail, only destroy request DMA maps that
were actually created.
2003-04-16 23:16:41 +00:00
thorpej 81a8dadfcf Correctly sync the MPT request buffers, and remove BUS_DMA_COHERENT
from the mapping of those buffers.
2003-04-16 23:02:14 +00:00
dsl 60c3e62a42 Add files for 2nd stage boot loader 2003-04-16 22:36:14 +00:00
dsl b10e65e490 Uncomment line that deletes tempory file 2003-04-16 22:34:00 +00:00
dsl 415cb92c98 Add functions needed by new boot code 2003-04-16 22:30:40 +00:00
dsl 2737b135d5 bootxx: bootstrap code - installable by MI installboot.
Loads /boot using filesystem accesses (rather than a list of block numbers)
2003-04-16 22:27:35 +00:00
dsl eb2692a8d2 bootxx: bootstrap code - installable by MI installboot.
Loads /boot using filesystem accesses (rather than a list of block numbers)
2003-04-16 22:16:36 +00:00
thorpej 7e4fd7b547 Device driver for the LSI Logic Fusion-MPT based SCSI and Fibre Channel
adapters.  Currently supports:

* LSI 53c1030 Ultra320 SCSI
* LSI FC909, FC909A, FC919, and FC929 Fibre Channel

Ported from the FreeBSD "mpt" driver, written by Greg Ansley.  Thanks
to Frank van der Linden for testing and some bug finding.

This work was sponsored by Wasabi Systems, Inc.
2003-04-16 22:02:59 +00:00
christos 80ecd573c0 PR/1796: John Kohl: statfs misbehaves under chrooted environments.
- Under chroot it displays only the visible filesystems with appropriate paths.
- The statfs f_mntonname gets adjusted to contain the real path from root.
- While was there, fixed a bug in ext2fs, locking problems with vfs_getfsstat(),
  and factored out some of the vfsop statfs() code to copy_statfs_info(). This
  fixes the problem where some filesystems forgot to set fsid.
- Made coda look more like a normal fs.
2003-04-16 21:44:18 +00:00
dsl c8db3bdc65 Partially reverse previous change.
Reset RTC only if ntp is running or adjtime system call has changed time.
2003-04-16 21:37:37 +00:00
dsl 8a94d0064f Remember if ntp has adjusted clock rate, hardware RTC may be wrong. 2003-04-16 21:35:07 +00:00
dsl 8eefc5d061 Flag that adjtime has happened, hardware RTC might be wrong 2003-04-16 21:34:15 +00:00
nathanw c4921eb479 Remove extra right paren. 2003-04-16 21:08:06 +00:00
is 5a5a2a6da3 make /dev/reload optional (it is implemented for a.out kernels only, at
the moment.)
2003-04-16 20:43:29 +00:00
is cf2e4206b1 make /dev/reload optional. (It is only implemented for a.out kernels at the
moment.)
2003-04-16 20:42:34 +00:00
thorpej ce68b169df * Change the APIs that handle the sync period to work with 100ths of ns,
rather than 10ths of ns.  This is necessary in order to represent
  Ultra320 SCSI.
* Add Ultra320 SCSI to the scsipi_syncparams[] table.

We're not going to bother bumping any version numbers with this change; only
the "hba" driver uses scsipi_sync_period_to_factor(), and the uses of
scsipi_sync_factor_to_period() are all internal to the scsipi code.  Most
things just pass the factor around, which is unchanged by this.

Reviewed by Frank van der Linden.
2003-04-16 20:25:59 +00:00
christos c0d7b8d87a move declaration of getcwd_common and constant to the header file. 2003-04-16 20:00:03 +00:00
dsl 35632a80ac lfs code is built from ufs.c 2003-04-16 19:52:58 +00:00
dsl 01761b17f4 Remove unnecessary caddr_t casts 2003-04-16 19:20:33 +00:00
dsl ab1f41a716 Add definitions (#defined out) to pass the result of the v3.x bios
extended disk information request to the kernel.
Binary compatible with the existing code, disabled because I don't
have a system with a bios that supports the request.
2003-04-16 19:16:42 +00:00
dsl 1c31ec44a3 Don't set the RTC to kernel time during shutdown.
This stops the system RTC drifting if any hardclock ticks were missed (eg
if the system spent any time at the kdb prompt).
The RTC is set whenever the system clock is set, so setting at shutdown
is unnecessary.
2003-04-16 19:07:34 +00:00
dsl fe778b7b70 Remove definition of LIBSA_SUPPORT_UFS2, the source will only build separate
ufsv1 and ufsv2 objects (the merged one was too large for the code that only
supported a single fs type).
2003-04-16 19:03:33 +00:00
petrov 7d83b6157f Comment out debug printf. 2003-04-16 18:53:50 +00:00
dsl 586810c59b Routines to switch between 16bit real and 32bit protected modes 2003-04-16 17:38:43 +00:00
dsl 0c5af93233 Add some debug prints to the memory size code 2003-04-16 15:03:59 +00:00
bouyer aec10dd80c Nake return values from bounds_check_with_label() conform to the man
page: -1 for error, 0 for EOF, 1 otherwise. Inspired by an OpenBSD commit
message, pointed out by Miod Vallat in private mail.
vax/mba/hp.c: check return value <= 0, not < 0 to be concistent with how
other places handle return values from bounds_check_with_label().
2003-04-16 15:00:59 +00:00
dsl cb61d88cb5 Add baud_rate arg to cominit_d 2003-04-16 14:58:32 +00:00
dsl e60ac53619 Modify baud rate handling to make it easier to take it from a variable.
Default to 9600 if the requested baud rate is illegal.
2003-04-16 14:56:55 +00:00
yamt 503590c138 sync a comment with reality. 2003-04-16 14:51:55 +00:00
yamt aa51f25824 ufs_rwXX: cast to unsigned even without FFS_EI to avoid
possible nasty signed vs unsigned problems.
2003-04-16 14:27:03 +00:00
dsl d5b5933e8c remove unused defines 2003-04-16 14:23:11 +00:00
dsl 616c6baa61 Add code to parse V3.x bios disk information.
This should let NetBSD guarantee to tie together the bios disk numbers
with the physical hardware.
#defined out because I don't have a system with a bios that supports it.
2003-04-16 14:22:29 +00:00
yamt 1963d34b78 use bswap32 and bswap64 correctly.
(fs_pendingblocks and fs_pendinginodes)
2003-04-16 14:20:25 +00:00
dsl 621f25533d Add cvs version, delete unused definition 2003-04-16 13:49:21 +00:00
dsl 2ae46742a2 Add prototyps for all the asm bios/dos calls 2003-04-16 13:47:53 +00:00
dsl 4cf0478777 additional support routines for boot code 2003-04-16 13:24:09 +00:00
dsl 1d68743dfc C code now sets length of disk info structure 2003-04-16 12:45:10 +00:00
dsl 7119639d07 used daddr_t for disk block numbers,
add definitions for v2 and v3 disk info structures
2003-04-16 12:43:45 +00:00
dsl fd18f39232 Use daddr_t for disk block numbers,
Set size of extended disk info structure in the C code
2003-04-16 12:41:03 +00:00
wiz 56a51233b4 Make it wsfont/wsfont instead of wsfont/wsmux, just like the other ports. 2003-04-16 09:41:54 +00:00
jdolecek 054da0dc1b make parameter 'name' for db_del_symbol_table() const 2003-04-16 09:00:29 +00:00
dsl b1986a13d0 change 'data' arg of fp_ioctl to 'void *' to match file.h 2003-04-16 08:58:18 +00:00
dsl f1a857b8af change 'data' arg of fo_ioctl to void * to match file.h 2003-04-16 08:56:42 +00:00
fvdl d0152b0231 ffs_reclaim may be called while the dinode pointer in the inode structure
is still NULL (in the case of an error in ffs_vget). Check for this
condition before doing a pool_put.
2003-04-16 07:38:25 +00:00
scw 3e475eb186 From PR port-i386/20464, by Yoshihisa Nakagawa: Match i845G AGP bridge. 2003-04-16 07:37:09 +00:00
darrenr 0b2e3c6317 add missing setting of b_error (thanks Manuel) 2003-04-16 00:07:17 +00:00
augustss 44a844916d Regen. 2003-04-15 23:15:47 +00:00
augustss 155de892db Another VIA device. 2003-04-15 23:15:23 +00:00
augustss b855d8716e Add another VIA CPU-AGP bridge. 2003-04-15 23:13:50 +00:00
tron 78a6a01cac Pullup short mbuf in wm_tx_cksum() instead of dropping it which fixes
PR kern/21190 by myself. Jason R. Thorpe code reviewed the changes.
2003-04-15 22:52:40 +00:00
dsl c327a133c6 Significantly faster memcpy/memmove/bcopy and memset/bzero 2003-04-15 22:49:50 +00:00
dsl 7c8e4cdaea Add interface to boot password checking code that takes password parameter. 2003-04-15 22:26:42 +00:00
rjs c0cc8d30c1 Regen. 2003-04-15 21:43:56 +00:00
rjs dd9495f867 Add ID for ITE IT8152 companion chip. 2003-04-15 21:32:28 +00:00
thorpej b2beaa1fbd wm_tx_cksum(): Set the initial offset correctly for packets using
802.1Q encap.
2003-04-15 21:12:24 +00:00
nathanw ad743e234b Add a missing paren. 2003-04-15 19:14:58 +00:00
darrenr 8dac8843a5 Implement (and document!) "dkctl <dev> badsector .." to `manage' the bad
sector information in the kernel.  Doing this uncovered some shortcomings
that should have been pretty obvious with the code committed prior, addressing
the major kludge with a new struct - disk_bacsecinfo to be passed into
DIOCBSLIST.
2003-04-15 18:27:26 +00:00
dogcow 277607fced fix typos 2003-04-15 17:42:44 +00:00
uwe c7bbfa679e Mark 'ram' MEMORY as allocatable instead of explicitly placing
sections into it.  This also ensures that sections, not mentioned in
the linker script (currenty - link_set_*), end up in the correct
place.  Otherwise kernel panics very early, trying to access link_set
info.
2003-04-15 16:29:12 +00:00
darrenr f4965045a0 Automatically build up a list of bad sectors from failed read operations and
prempt read operations on matching regions with a failure rather than waiting
for the device to return a failure.  The I/O operation must have already failed
MAXRETRIES times before being added to the list - this can generally take up
to 12 seconds.
List is made accessible to userspace via DIOCBSLIST and DIOCBSFLUSH.
2003-04-15 14:11:00 +00:00
dsl 57d5f20055 Add definitions for i386 boot parameters 2003-04-15 13:59:35 +00:00
yamt 0012a58814 fix indent. 2003-04-15 13:51:11 +00:00
yamt 63de87c34b remove line-wrapping that is no longer needed. 2003-04-15 13:48:40 +00:00
skrll ab7df78c6d ANSIfy proc_unstop 2003-04-15 12:11:25 +00:00
perry 5f549c5ea8 Add a quirk for the Tandberg SLR/5
Fix supplied by Rex McMaster in PR kern/13603
2003-04-14 16:18:23 +00:00
rjs 971ce6c243 Remove membase and memsize device config parameters. 2003-04-14 14:20:10 +00:00
rjs 9e4c3aa218 Remove unused structure member variables. 2003-04-14 14:18:41 +00:00
rjs 8704a520e3 Remove unused sa_membase and sa_memsize structure member variables. 2003-04-14 14:16:10 +00:00
dsl 225615a61a avoid calling toupper with posibly -ve value. fixes PR 21171 2003-04-14 11:33:40 +00:00
petrov 488c2452ee clean-up unused definition. 2003-04-14 01:44:06 +00:00
oster 351bc1e187 Remember to close the component if we decide it's not suitable for use
as a hot spare.  Closes PR#20989 by David Brownlee.
2003-04-13 22:07:11 +00:00
augustss 44617bfaa7 Add quirk for Genesys Logic GL641USB. From PR kern/21131. 2003-04-13 20:54:31 +00:00
dsl 6ff706ac19 CONSTCONT should have been CONSTCOND 2003-04-13 09:08:04 +00:00
dsl b757e31c2a Fix error message for 64bit daddr_t 2003-04-13 07:51:30 +00:00
tsutsui dcc0f5a63d Fix typo in printf message. 2003-04-13 04:07:34 +00:00
explorer a09cd2fd46 typo, s/TX4/TX2/ 2003-04-13 01:53:00 +00:00
yamt dcf4c9093f fix a typo in the previous. 2003-04-12 14:41:28 +00:00
yamt 1505b097fa set b_resid correctly. 2003-04-12 14:38:57 +00:00
yamt f8b7159909 unbusy a page after put it on the queue.
fix a panic with UVM_PAGE_TRKOWN when doing swapoff.
2003-04-12 14:36:43 +00:00
yamt 9ad479d8c2 split nfs_doio to nfs_doio_{phys,read,write} to avoid too deep indents. 2003-04-12 14:26:58 +00:00
explorer 38fd615cff add an older pci id for SATA150TX2PLUS, too 2003-04-12 10:41:04 +00:00
fvdl ba400f9233 Don't cache buffers used when finding the superblock, it can lead to
seeing bogus data for the first cg with certain block/frag sizes.
From enami tsugutomo.
2003-04-12 10:35:58 +00:00
fvdl 9e0b0abaa7 Use variables for some cg accesses; makes things more readable and more
similar to FreeBSD. No functional change.
2003-04-12 10:33:17 +00:00
christos 4a09954028 PR/9286: Steven Grunza: Win98 warm boot puts 3c905B in state D3 and causes
ex driver failure
2003-04-12 09:03:25 +00:00
christos 611ca7be61 regen 2003-04-12 08:41:20 +00:00
christos f45b1c425d PR/8754: Andreas Wrede: Add SIIG devices 2003-04-12 08:40:48 +00:00
christos 2d2910a91a PR/21108: Christopher SEKIYA: if_wi_pci.c rev 1.21 is incorrect for PLX-9052 2003-04-12 08:17:45 +00:00
simonb 4dcb48921b Use "options<space><tab>". 2003-04-12 07:39:39 +00:00
yamt 043759a005 - do FILESYNC writes if we're freeing the page or the page doesn't
belong to us.  otherwise, data will be lost on server crash.
- use b_bcount instead of b_bufsize to determine
  how many pages we should deal with.

based on a patch from Chuck Silvers.
discussed on tech-kern.
2003-04-12 06:53:09 +00:00
tsutsui 8d11ba186d Add some delays between 8bit reads of DSTAT and SSTAT0 registers
as per the 53c710 manual. Pointed out by fredette in osiop_gsc.c long ago.
2003-04-12 06:42:38 +00:00
tsutsui 49c64e1d70 Fixes from OpenBSD:
- Fix index bounds checking in save data pointers logic.
- Fix an indent problem and an extra blank space.
2003-04-12 06:11:15 +00:00
christos d1a84b8d3f kill the ASYNCMAP ones1 2003-04-12 05:01:01 +00:00
christos c56f7f428b get rid of the ASYNCMAP ioctls 2003-04-12 05:00:38 +00:00
thorpej 9b3ce45b2a Add two new mbuf routines:
* m_apply(), which applies a function to each mbuf in chain
  starting at a specified offset, for a specified length.
* m_getptr(), which returns a pointer to the mbuf, as well as
  the offset into that mbuf, corresponding to an offset from
  the beginning of an mbuf chain.

From OpenBSD, cleaned up slightly by me.
2003-04-12 02:49:25 +00:00
dogcow 6045dfd329 PR/991: Darren Reed: Add a sysctl (checkinteface) to implement this. This
implementation is taken from FreeBSD, but we default to off.
XXX: We should really do this on a per ifaddr basis as jason suggested.
2003-04-12 00:17:49 +00:00
nathanw ff28c51cc0 Make cpu_getmcontext() run the PC through ras_lookup() so that kernel
getcontext() plus userlevel setcontext() (as used in libpthread) respects
the atomicity of RAS regions.
2003-04-11 22:02:28 +00:00
nathanw 23df4fb463 Use PAGE_SIZE rather than NBPG. 2003-04-11 21:20:45 +00:00
christos 565d9732ff PR/991: Darren Reed: Add a sysctl (checkinteface) to implement this. This
implementation is taken from FreeBSD, but we default to off.
XXX: We should really do this on a per ifaddr basis as jason suggested.
2003-04-11 19:41:37 +00:00
drochner ea7f1bd035 Add a VNDIOF_FORCE flag which forces unconfiguration if the emulated
disk is still in use.
Not for everyday use, but we have to face eg USB flash drives being
unplugged at the wrong time, and this is a way to simulate this without
wearing out the connectors.
2003-04-11 16:11:49 +00:00
drochner 7e56069d9c IPR_VJ -> IRIP_VJ 2003-04-11 14:55:39 +00:00
drochner 93c6f5d089 Rename the IPR_VJ option into IRIP_VJ (as irip(4) told all the time),
create an opt_ header and make the dependency on slcompress.c more exact.
(OK by martin)
2003-04-11 14:45:27 +00:00
fvdl 4cdcaab92d Remove diagnostic ufs_vinit check, this isn't quite the right place for it;
it'll be reinstated elsewhere.
2003-04-11 14:13:28 +00:00
jdc 7a2abff303 Always include (new) cpuconf.h.
From Christopher SEKIYA in PR port-sparc/21093.
2003-04-11 13:55:24 +00:00
jdc eacecff6bb Install (new) cpuconf.h.
From Christopher SEKIYA in PR port-sparc/21093.
2003-04-11 13:54:16 +00:00
dsl 243bb03c7c Explicitly specify both ffsv1 and ffsv2 2003-04-11 11:36:28 +00:00
dsl 4efa73a16e Build ffsv1 and ffsv2 2003-04-11 11:31:44 +00:00
dsl ef32565239 Add externs for ffsv1_xxx and ffsv2_xxx 2003-04-11 11:30:12 +00:00
dsl f671893500 Files to build ffsv1 and ffsv2 versions of ufs.c 2003-04-11 11:28:54 +00:00
dsl af3660bcdb Use common ffs/lfs file ufs.c instead of lfs specific version. 2003-04-11 11:27:06 +00:00
dsl 5a0534abeb Merge in lfs.c, use defines to build ffsv1, ffsv2, lfsv1 or lfsv2.
(removes the ability to build a single ufs.o that supports ffs v1 and v2,
that animal was too large for some of the boot code.)
Use shifts and masks to avoid pulling in 64bit divide.
2003-04-11 11:24:49 +00:00
fvdl 64f0bf8882 Adjust diagnostic check for bad mode field; only the VNON case should
matter. From Enami.
2003-04-11 10:36:33 +00:00
dsl fbf4bd0cfe Put extern definition of bcopy in () to avoid macro expansion when
LIBSA_USE_MEMCPY is defined. Fixes breakage because the return
type of memcpy() is different to that of bcopy.
2003-04-11 10:34:38 +00:00
enami b0715b0b82 Make ffs_cg_swap() works even if same chunk is passed as new and old cg.
This is necessary to prevent newfs from dumping core when it is asked to
create a UFS1 file system of non-native endian.
2003-04-11 10:20:35 +00:00
simonb 0cdf56e3e6 Fix a tyop in a comment. 2003-04-11 06:24:59 +00:00
explorer 07db7d8001 add Promise ATA/150 TX4 id 2003-04-11 02:49:40 +00:00
simonb e200992e30 Use Tungsten T instead of m550. 2003-04-11 01:30:10 +00:00
simonb fe2cc35875 Regen; rename Palm M550 to Tungsten T. 2003-04-11 01:28:18 +00:00
simonb bbd68bc758 Rename Palm M550 to Tungsten T. 2003-04-11 01:25:25 +00:00
christos cf6014f0ed use VREAD instead of VWRITE, this ioctl is used to redirect console output. 2003-04-10 22:35:00 +00:00
christos b9f9db3ca2 Bye Bye UCONSOLE 2003-04-10 22:06:51 +00:00
christos c4d28a0983 PR/732: Matt Green: TIOCCONS should work if the user owns /dev/console. 2003-04-10 22:05:57 +00:00
jdolecek 39a063b681 back to genfs_eopnotsupp() for vop_remove, vop_link, vop_rename,
vop_mkdir, vop_rmdir - it does the right unlocking now
2003-04-10 21:57:26 +00:00
jdolecek 98f212db7d use former genfs_eopnotsupp_rele() as genfs_eopnotsupp(), so that vnodes
are vput()/vrele()d as necessary - some filesystems did use the wrong
one for some ops, and it's just safer to not take the chance

based on suggestion by Bill Studenmund
2003-04-10 21:53:32 +00:00
jdolecek b41f818f25 change some printf()s on easily-triggerable codepaths to dprintf() 2003-04-10 21:37:32 +00:00
atatat a6705f1a3f Remove MAP_NOEXTEND. Its existence in sys/mman.h (which ended before
you read this) was the only reference to it in the entire source tree.
2003-04-10 21:35:20 +00:00
jdolecek 1ac1ffed36 improve genfs_eopnotsupp_rele() so that's usable for vop_rename,
which uses WILLPUT for member which may be NULL
handle correctly dvp == vp case for WILLPUT members, so this works
  for vop_remove, vop_rename

thanks Bill Studenmund for code&comments on this
2003-04-10 21:34:12 +00:00
manu 8cb79c1cc6 typo 2003-04-10 20:57:01 +00:00
jdolecek c157f669ac regen:
'tvp' in vop_rename needs to be vput(), not vrele()d, so adjust the
definition here to match current reality
okayed by Bill Studenmund
2003-04-10 20:38:12 +00:00