Commit Graph

62985 Commits

Author SHA1 Message Date
thorpej d3f30fc625 We use 8K VM pages on Sun4U, so make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK
into compile-time constants.
2003-04-01 16:05:30 +00:00
thorpej 43e759e5ac Use PAGE_SIZE rather than NBPG. 2003-04-01 15:47:48 +00:00
thorpej 50659edcb7 Make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK a compile-time constant on Sun2. 2003-04-01 15:33:48 +00:00
thorpej 3b9d583516 Use PAGE_SIZE rather than NBPG. 2003-04-01 15:23:07 +00:00
thorpej 1411d9951f Use PAGE_SIZE rather than NBPG.
XXX Except in one place, which will require more work.
2003-04-01 15:22:53 +00:00
thorpej e9f0a43d28 Use PAGE_SIZE rather than NBPG. 2003-04-01 15:14:20 +00:00
thorpej d071d9a8d0 Use PAGE_SIZE rather than NBPG. 2003-04-01 15:02:05 +00:00
yamt 0296b9ddb2 add assertions and a debug check. 2003-04-01 14:58:43 +00:00
thorpej d46b766d7d Use PAGE_SIZE rather than NBPG. 2003-04-01 14:45:09 +00:00
he bca180fc42 Remove what appears to be a spurious brace. 2003-04-01 14:32:09 +00:00
yamt 418bd96252 lfs_strategy is used only for read. 2003-04-01 14:31:50 +00:00
he da63355bc0 Undo the last; adding the quad arithmetic caused the boot code to
overflow.  Instead do as the mvme68k port, and use 32-bit daddr_t here.
2003-04-01 14:27:43 +00:00
he 369a9dc367 Adapt to daddr_t being bumped to 64 bits. This required us to add
div/mod quad operations to libsa, and adjusting a pair of format specifiers.
2003-04-01 13:31:23 +00:00
yamt 4f8b9f357f add an assertion. 2003-04-01 11:59:03 +00:00
scw e7e825f881 Remove some obsolete checks for __GNUC__ < 3. 2003-04-01 10:27:17 +00:00
scw 99e0368bfe Add PMAP_CACHE_VIVT, since the I$ is virtually indexed/tagged. 2003-04-01 10:25:09 +00:00
scw a7bc0a349e Some tweaks to reduce the effect of rounding errors in tmu_microtime()
and the calculation of the delay() constant.
2003-04-01 10:23:30 +00:00
jdolecek b79183a11f g/c smb_smb_nomux(), use KASSERT() instead - if we get here with
process != iod, it's netsmb/smbfs code error
2003-04-01 08:35:42 +00:00
dogcow 5ee791c103 bring into conformance with RFC 3514 2003-04-01 07:39:47 +00:00
igy e7735eb5b9 add comment for VR4181 2003-04-01 02:45:34 +00:00
igy 775eee3514 correcting register definition for VR4181 2003-04-01 02:33:51 +00:00
thorpej 3faec1e02a Use PAGE_SIZE rather than NBPG. 2003-04-01 02:17:17 +00:00
thorpej f8d3a59131 Use PAGE_SIZE rather than NBPG.
XXX Except for one place, which will require more work.
2003-04-01 02:15:45 +00:00
thorpej 89a25a097c Use PAGE_SIZE rather than NBPG. 2003-04-01 02:13:53 +00:00
thorpej 52d8769e0b Use PAGE_SIZE rather than NBPG. 2003-04-01 02:01:43 +00:00
thorpej d58deb08c2 Use PAGE_SIZE rather than NBPG.
XXX Except in one place which will require more work.
2003-04-01 01:58:14 +00:00
thorpej 24ab4adb9c Use PAGE_SIZE rather than NBPG. 2003-04-01 01:53:40 +00:00
thorpej f4a068d5c2 Use PAGE_SIZE rather than NBPG. 2003-04-01 01:43:29 +00:00
thorpej c53de7dd38 * Use PAGE_SIZE rather than NBPG.
* Use malloc()/free(), rather than MALLOC()/FREE(), since the page size
  might not be a compile-time constant.
2003-04-01 01:41:39 +00:00
itojun a81c2be8be avoid mbuf leak in redirect header option attachment. more complete
fix to come.  from kame
2003-03-31 23:55:46 +00:00
thorpej e48b2dc368 Make PAGE_SIZE a constant on acorn26. 2003-03-31 21:30:56 +00:00
augustss a302bab585 Add an option to disable fast back-to-back transfers since this
breaks certain hardware combinations.
2003-03-31 21:04:40 +00:00
fvdl e80c0648b1 The modified flag must be cleared before the last sbupdate call in
unmount, because ffs_flushfiles or softdep_flushfiles may have
modified the filesystem (despite VFS_SYNC having been called first).
2003-03-31 21:02:12 +00:00
jdolecek 6e5e05ca45 run iod at splnet, to eliminate race agains receive upcall wakeup,
so that iod wouldn't pause when the reply comes fast enough
to catch iod between smb_iod_recvall() and tsleep()

this gives nice performance boost for workloads with many synchronously
submitted transactions, like ls -lR

iod now doesn't need to wakeup periodically, so don't use any timeout
for its tsleep(); also use higher priority PSOCK instead of PWAIT
2003-03-31 20:59:35 +00:00
thorpej a8b54dc6f5 Use <arm/proc.h>. 2003-03-31 19:53:25 +00:00
chris d19c70cbe2 Fix for PR arm/17971. Used patch as provided
Compiled, but no hardware to test on.
2003-03-31 19:52:35 +00:00
jdolecek cd8e491e95 sprinkle const qualifiers to const stuff 2003-03-31 18:47:58 +00:00
jdolecek dc859b2165 do recursive lock in smb_co_gone() - this code could be invoked
on error returns paths with parent still locked, which would
cause 'locking against myself' panic with nonrecursive lock

fixes problem where invalid share name would cause a panic
via smb_sm_lookup() -> smb_share_put()

many thanks to Matthias Drochner for pointing out easy way how to
trigger this problem
2003-03-31 18:24:58 +00:00
yamt 1f94d18621 rename fvdl_debug to NFS_DEBUG_COMMIT.
ok'ed by fvdl.
2003-03-31 14:47:03 +00:00
yamt 0d3c7b7285 adapt to file interlock. 2003-03-31 14:43:59 +00:00
elric 00a9b3965c Removed some debugging printfs that made it into the tree. 2003-03-31 08:45:08 +00:00
perry 5afd6ce206 revert for now -- cancelled seems to be used more often than canceled 2003-03-31 03:35:02 +00:00
perry 29c5490e43 again, for consistency, cancelled->canceled (I fear the flames) 2003-03-31 03:26:34 +00:00
perry 253eea8c49 For consistency, initialise->initialize.
(No it isn't anti-UK bias -- just trying to keep the whole system to
one consistent spelling.)
2003-03-31 03:23:38 +00:00
rafal 0adc6315a0 Oops, make sure to re-enable the IP32 watchdog correctly, else we end up
getting random reboots after returning from DDB.
2003-03-31 00:56:53 +00:00
jdolecek 3f1816bf46 sprinkle some const qualifiers 2003-03-30 19:20:37 +00:00
jdolecek 95aaf6bde8 use callout for request timeout, so that it could expire independantly
of iod calling smb_iod_sendall()
g/c now unneeded request timeout expire check from smb_iod_sendall()

make it possible to override default request timeout - set timeout
value in smb_rq_init() to default value, caller can adjust the value
before calling smb_iod_sendrq(); value <=0  means no timeout
2003-03-30 11:58:17 +00:00
jdolecek 349bcca42d whitespace fixes
do not inline smb_iod_rqprocessed()
make smb_iod_sendall(), smb_iod_recvall() 'return' void - the return value
  was always ignored
smb_iod_recvall(): turn an programming error condition check to KASSERT()
smb_iod_main(): g/c unused 'error' local
smb_iod_thread(): iod_p is assigned in smb_iod_create(), so just KASSERT()
  it's correct here
2003-03-30 11:27:45 +00:00
jdolecek 3cac807cc4 whitespace KNF 2003-03-30 09:44:28 +00:00
tsutsui 71446bc717 Use 32bit daddr_t. 2003-03-30 08:52:23 +00:00
tsutsui 361715b6e1 Sync with news68k/disksubr.c rev 1.11-1.13:
- Fix -Wsign-compare warnings.
- Drop trailing white space.
- Since current sdstrategy() calls bounds_check_with_label() implicitly,
  allow overwriting disklabel for RAW_PART in bounds_check_with_label().
- Also allow overwriting disklabel even for !RAW_PART if securelevel == 0
  so that installboot(8) can write bootblock against 'a' partition.
- labelsector is at top of RAW_PART, not 'a' partition.
2003-03-30 08:42:00 +00:00
tsutsui 3917373a21 - Since current sdstrategy() calls bounds_check_with_label() implicitly,
allow overwriting disklabel for RAW_PART in bounds_check_with_label().
- Also allow overwriting disklabel even for !RAW_PART if securelevel == 0
  so that installboot(8) can write bootblock against 'a' partition.
- labelsector is at top of RAW_PART, not 'a' partition.
2003-03-30 08:37:16 +00:00
tsutsui b1b52ec626 Use 32bit daddr_t. 2003-03-30 08:01:13 +00:00
isaki 5f88fc57fa Make it compilable.
see http://mail-index.netbsd.org/source-changes/2003/03/26/0009.html
2003-03-30 07:58:03 +00:00
toshii ba612a905f Use MaxPacketSize for setting up isochronous pipe for recording.
This fixes dropping samples.
2003-03-30 04:47:13 +00:00
matt 374319260c Don't free chqueue since it's no longer malloc'ed. 2003-03-30 02:06:29 +00:00
kristerw 820df2464a Remove unneeded cast that prevents PC_REGS from being used as lvalue. 2003-03-30 02:03:12 +00:00
kristerw c3b2957983 #include "opt_kgdb.h" 2003-03-30 01:20:13 +00:00
provos cb0252af40 avoid a panic due to recent changes in kern_fork.c; prepare for lwp by
keeping messages independent of the process itself
2003-03-30 00:40:05 +00:00
thorpej 7f9b4b1a1c Add some braces to make a block of code a bit easier to read. 2003-03-30 00:28:19 +00:00
kristerw 6a6ff92fd5 Revert last change (dependance on divdi3.c, moddi3.c, and qdivrem.c) and
use 32bit daddr_t instead, as suggested by Izumi Tsutsui.
2003-03-30 00:17:28 +00:00
wiz 0acfa3bb9e Consistently spell occurrence with two rs. 2003-03-29 22:48:37 +00:00
thorpej 7a3fa51b7f Garbage-collect the DYNAMIC_CRC_TABLE stuff. The table it computed
was incompatible with the new CRC code, and it is largely unnecessary
now, since the static table is so much smaller.

Fixes PR kern/20935.
2003-03-29 22:25:25 +00:00
scw ec17fb4b99 Fix bus_space_read_region_N() to work as advertised. 2003-03-29 22:07:14 +00:00
jdolecek 32657d0d79 remove incorrect DEBUG check of recursive lock in smb_co_lock() - the check
incorrectly bombed when the exclusive lock was help by different process
(*yuck*)

lockmgr() checks for 'locking against myself' type of locking problems itself,
so no need to do any additional checks
2003-03-29 21:42:44 +00:00
jdc 6df227f447 Regenerate.
(Add support for USRobotics Wireless Access PCI adapter (model 132415).)
2003-03-29 20:56:54 +00:00
jdc 8e265123d8 Add support for USRobotics Wireless Access PCI adapter (model 132415).
From Sergio Jimenez in PR kern/20642.
2003-03-29 20:49:03 +00:00
matt 6c8a4d2615 Make this compile again. 2003-03-29 20:15:31 +00:00
matt 6a15c68f5d Make sure to turn on the speed knobs in HID0 on the 745x. 2003-03-29 18:18:54 +00:00
matt 2c37db6aec Allow oea_batinit to be called with either the MMU on or off.
(don't reset the BATs if the MMU is off).
2003-03-29 18:09:59 +00:00
matt b3715c2f6a Add 7450 LRSTK and FOLD bits. 2003-03-29 18:08:42 +00:00
perry 3942053914 regen 2003-03-29 16:48:02 +00:00
perry c0eb24419a support Corega PCCL-11 -- from Christopher SEKIYA in PR 20932 2003-03-29 16:47:27 +00:00
he f8cb6d60a7 Allow this file to be included if either of audio, midi or midibus
is non-zero (earlier only allowed it if audio was non-zero).  Fixes
build problem seen on the prep port.
2003-03-29 13:57:43 +00:00
manu fd94bf9486 First work on notifications. Not really working for now. 2003-03-29 11:04:08 +00:00
bsh 347085b57d put options XSCALE_CACHE_WRITE_THROUGH into opt_cpuoptions.h.
add XSCALE_CACHE_WRITE_BACK.
2003-03-29 07:59:41 +00:00
bsh 105db01dcd for Intel PXA2[15][05] processors, select write-back/write-through
cache based on CPU id.  write-through on PXA2[15]0 B2 stepping and
earlier. write-back on C0 and C1 stepping (a.k.a PXA2[15]5 A0)

options XSCALE_CACHE_WRITE_{THROUGH,BACK} can override it.

for other XScale CPUs than PXA2xx, XSCALE_CACHE_WRITE_THROUGH works
same as before.
2003-03-29 07:58:16 +00:00
dyoung 243f751604 Support so-called "PLX" bridge for wi(4). From FreeBSD via Simon
Burge. Simon writes,

"Here's the patch that Grant and I have been using on a combinations of
architectures and both NetBSD 1.6 and -current.

"This is based on FreeBSD - look for
        /* We have to do a magic PLX poke to enable interrupts */
in
        http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/wi/if_wi_pci.c
2003-03-29 03:25:22 +00:00
fvdl 691b2fa7db The checkpoint loop always used (multiples of) lfs_sepb as the number
of segments to mark. However, this may be much more than lfs_nseg.

Originally this wasn't a big problem, since only the structures in the
diskblock were changed, but nowadays there's a mirror of the segflags
in the in-core superblock. This problem caused the code to walk
way past the end of that allocated area, causing memory corruption
in other kernel structures. So, use lfs_nseg as the maximum, as it should be.

While here, simplify the loop; it had become an obfuscated piece of
code overtime.
2003-03-28 22:39:42 +00:00
he 8cd91d8236 Commit a workaround for PR toolchain/20924, so that this compiles again.
When/if the PR is fixed, this change should probably be reverted.
2003-03-28 20:25:40 +00:00
he b218b0c7c5 Compensate for the change of type for io_netif by adding a cast so
that this compiles again.
2003-03-28 18:16:59 +00:00
yamt 9fe1125599 reply FSINFO rtmax and wtmax for DGRAM properly. 2003-03-28 15:24:58 +00:00
yamt b44d2a5667 i forgot to check this in with the previous (reply ENAMETOOLONG properly). 2003-03-28 15:13:35 +00:00
he cb89d3a368 Initialize the two new members of consdev (cn_halt, cn_flush) to NULL so
that this compiles again.
2003-03-28 14:10:56 +00:00
perry 935d1a04e3 Fix PR/20903 for real.
Identical patches supplied by:
Masuda Hideo <h-masuda@ootani.nagata.kobe.jp>
Christopher SEKIYA <wileyc@rezrov.net>
2003-03-28 13:58:40 +00:00
yamt 2d45e41adb reply ENAMETOOLONG properly instead of discarding request as BADRPC.
my own PR20791.
2003-03-28 13:05:47 +00:00
yamt 8a890efe2b if rsize was explicitly specified by mount_nfs,
prefer it to rtpref from nfsd.  the same for wsize and wtpref.

ok'ed by fvdl.
2003-03-28 12:33:17 +00:00
he 85b87f244e Initialize the new members of consdev (cn_halt, cn_flush) to NULL so
that this compiles again.
2003-03-28 10:45:40 +00:00
scw ea960960c0 We need to preserve SSR/SPC when switching ASIDs as we could be called
while handling a TLB miss (via the pmap_pte_spill() function), in which
case SSR/SPC are live.
2003-03-28 09:48:07 +00:00
perseant 3f7016035a Add a sleeper count, to prevent the cleaner from panicing the kernel
when the filesystem is unmounted, relocking the Ifile when its lock is
draining.  (We can't use vfs_busy() since the process is sleeping for a
good long time.)  Clean up / organize lfs.h, while I'm here.

In lfs_update_single, assert that disk addresses are either negative, or
are still positive when converted to int32_t, to prevent recurrence of a
negative/positive block problem.
2003-03-28 08:03:38 +00:00
he fd386b5a4d Initialize new members (cn_halt and cn_flush) in consdev to NULL to
allow this to compile again.
2003-03-28 07:10:35 +00:00
scw 7fdeb41460 Fix for previous: frob SR, not SSR. 2003-03-27 20:21:27 +00:00
perry 964bf1e7f5 ifdef out something dependent on PCI_VENDOR_COREGA for now. 2003-03-27 20:09:07 +00:00
jdolecek 7337bd06a3 nfs_kqfilter(): add the knote to v_klist only if guaranteed to return success 2003-03-27 19:58:26 +00:00
mycroft 15e5d9ec58 Add a couple of byte-wide variants that weren't implemented -- I guess because
nobody else has a byte-accessible bus.
2003-03-27 19:46:14 +00:00
mycroft 49f94a02b4 Remove references to variables that aren't used here. 2003-03-27 19:42:30 +00:00
drochner b6a21881e2 allow loading the bootloader via MOP 2003-03-27 19:40:42 +00:00
drochner ba0f309a91 Before checking the (Intel specific) SCR_T4 register, make
sure the chip implements 100T4 (in BMSR).
The 82562 (which doesn't implement 100T4) has the SCR_T4 bit
(always?) set, which led to wrong media status reports.
approved by thorpej
2003-03-27 19:36:49 +00:00
jdolecek 5fe02453b5 put back nmaxproc check mistakely changed in rev.1.132
checking against nprocs is wrong in any case btw - we do allow
maxproc higher than number of current processes, it would just mean
no new process could be started until number of processes would
be lower than the new limit
2003-03-27 18:34:18 +00:00
christos e950c1ac8f PR/20844: Iain Hibbert: PPP Compressors cannot be loaded as LKM 2003-03-27 17:50:06 +00:00