Andrey A. Chernov
f510e1c2ec
Originally BSD return EINVAL for l_len < 0, but now POSIX wants it too,
...
so implement POSIX l_len < 0 handling.
2001-08-23 15:40:30 +00:00
Andrey A. Chernov
bbf6984cec
Cosmetique: correct English in comments
...
non-cosmetique: add missing break; - original code was broken here
2001-08-23 14:45:31 +00:00
Andrey A. Chernov
6d24c65d96
Cosmetique: correct English in comments
...
Pointed by: bde
2001-08-23 14:41:39 +00:00
Andrey A. Chernov
6c3f4fef64
Even better move: suppose that server is able to handle SEEK_END,
...
so check arguments for all but not SEEK_END case, leaving SEEK_END
handling for server
2001-08-23 14:21:26 +00:00
Andrey A. Chernov
e018907ed4
Apparently SEEK_END locking not supported by NFS. Previous variant
...
returns EINVAL in that case, change it to EOPNOTSUPP.
2001-08-23 14:09:16 +00:00
Andrey A. Chernov
b82f5b624c
Cosmetique: more <sys/*> into one group, separate include families by
...
blank line
2001-08-23 13:51:17 +00:00
Andrey A. Chernov
fb2f187058
Move <machine/*> after <sys/*>
...
Pointed by: bde
2001-08-23 13:27:58 +00:00
Andrey A. Chernov
b44af710d3
Move <machine/*> after <sys/*>
...
Pointed by: bde
2001-08-23 13:21:17 +00:00
Andrey A. Chernov
4b207d9868
Move <machine/*> after <sys/*>
...
Add missing fdrop() before EOVERFLOW
Pointed by: bde
2001-08-23 13:19:32 +00:00
Cameron Grant
4132a3b206
the feederchain builder is currently broken for recording channels. disable
...
it until it is fixed. this limits recording to native formats and speeds
only.
2001-08-23 12:27:27 +00:00
Cameron Grant
334326a17f
handle bogus values passed to SOUND_PCM_WRITE_CHANNELS/SNDCTL_DSP_CHANNELS
...
ioctls better- if 0 is passed, return the current setting. if 1 or 2 are
passed, behave accordingly. treat values >2 as 2.
PR: kern/29964
2001-08-23 12:21:12 +00:00
Cameron Grant
48875621e1
make the 4dwave nx chip work
...
Submitted by: Philippe Anel <xigh@noos.fr>
2001-08-23 12:02:29 +00:00
Cameron Grant
92f39b2c05
MFS: make SNDCTL_DSP_SETTRIGGER work
2001-08-23 11:58:38 +00:00
Cameron Grant
1662598f0c
MFS: allow multiple opens of mixer devices
2001-08-23 11:56:07 +00:00
Cameron Grant
67b1dce3bc
many changes:
...
* add new channels to the end of the list so channels used in order of
addition
* de-globalise definition of struct snddev_info and provide accessor
functions where necessary.
* move the $FreeBSD$ tag in each .c file into a macro and allow the
/dev/sndstat handler to display these when set to maximum verbosity to aid
debugging.
* allow each device to register its own sndstat handler to reduce the amount
of groping sndstat must do in foreign structs.
2001-08-23 11:30:52 +00:00
Andrey A. Chernov
4779017439
adv. lock:
...
copy EOVERFLOW handling code from main variant
fix type of 'size' arg
2001-08-23 08:54:22 +00:00
Andrey A. Chernov
e9d095afdc
adv. lock:
...
detect off_t overflow _before_ it occurse and return EOVERFLOW instead of
EINVAL
2001-08-23 08:20:21 +00:00
Andrey A. Chernov
69cc1d0d7f
Detect off_t EOVERFLOW of start/end offsets calculations for adv. lock,
...
as POSIX require.
2001-08-23 07:42:40 +00:00
Nick Sayer
499147571e
Oops. The new pci_ids array should be static.
2001-08-23 03:06:16 +00:00
Peter Wemm
85ceedd60f
Fix a #endif misplacement in 1.231 due to misapplied patch
...
Pointy hat to: peter
2001-08-23 01:50:31 +00:00
Peter Wemm
66875a2aff
Fix a comment error that was fixed in the pc98 version. hw.maxmem is
...
really hw.physmem.
2001-08-23 01:49:12 +00:00
Peter Wemm
520f648f42
Merge i386/machdep.c rev 1.474: dont overextend %cs. (finally, it doesn't
...
conflict with unmerged changes)
2001-08-23 01:47:26 +00:00
Peter Wemm
2ddb1aff19
Merge i386/machdep.c rev 1.469: whitespace changes to fit 80 columns
...
Forgotten by: jhb
2001-08-23 01:46:23 +00:00
Peter Wemm
2fb7d2e4c2
Merge i386/machdep.c rev 1.468: make breakpoint/trace interrupt instead
...
of trap gates
Forgotten by: bde
2001-08-23 01:43:38 +00:00
Peter Wemm
10abeae984
Merge 386/machdep.c rev 1.467: fix bugs/miscalculations
...
Forgotten by: iwasaki
2001-08-23 01:42:21 +00:00
Peter Wemm
b65110f80b
Identical to i386/machdep.c rev 1.473: move submap initialization to MI.
2001-08-23 01:36:54 +00:00
Peter Wemm
60e562536f
Merge i386/machdep.c rev 1.472: Fix bug in physmem_est and maxbcache
...
calculation
Forgotten by: dillon
2001-08-23 01:34:35 +00:00
Peter Wemm
748e7247a1
Merge i386/machdep.c rev 1.470. Limit KVM for buffer cache etc.
...
Forgotten by: dillon
2001-08-23 01:30:51 +00:00
Peter Wemm
9f9360003f
Dont add UPAGES to the %cs segment limit. There is nothing there except
...
page tables.
2001-08-23 01:25:21 +00:00
Peter Wemm
1ef4734b8a
Do not printf when we get called as a result of a pci shared interrupt,
...
and add a comment to that effect.
2001-08-23 01:16:10 +00:00
Peter Wemm
dae6dcff3f
Revert part of the last commit, as suggested by Nick. This is expected,
...
it is part of the way PCI shared interrupts work.
2001-08-23 01:12:35 +00:00
Peter Wemm
3b703181e3
Dont compile in SSE fxsave/fxrstor instructions if CPU_ENABLE_SSE isn't
...
active.
2001-08-23 01:03:56 +00:00
Nick Sayer
84031c85e5
Add support for the Netgear MA301 PCI adapter for the MA401.
...
It appears that a number of PrismII card vendors seem to be doing the
same thing (that is, using the same PCI bridge chip) to support PCI,
but each with their own vendor/product ID. So rather than cut-n-paste
another if statement into the probe routine, it's probably better to
provide support for a table. Adding new devices will be a lot easier
that way.
2001-08-23 00:57:40 +00:00
Thomas Moestl
040ef07af8
Regenerate from syscalls.master using the new makesyscalls.sh revision.
2001-08-22 23:27:20 +00:00
Thomas Moestl
a4189a088b
Add padding before each element of the syscall argument structures in
...
sysproto.h in addition to the existing padding afterwards.
This is needed to support big-endian architectures like sparc64.
Reviewed by: bde
Tested on alpha by: jhb
2001-08-22 23:22:47 +00:00
Alexander Langer
b8c526df70
Fix a simple typo I just happened to find.
2001-08-22 19:12:24 +00:00
Matthew Dillon
0cf5e0ebd6
Remove the code that limited the buffer_map to 1/2 the size of the
...
kernel_map. maxbcache takes care of this now and the 1/2 limit can
interfere with testing.
Suggested by: bde
2001-08-22 18:10:37 +00:00
Mitsuru IWASAKI
e4e9098988
Move CR4.PGE enabling code after paging is enabled via CR0.PG based on
...
the description (2.5. CONTROL REGISTERS) of Intel developer's manual at:
ftp://download.intel.com/design/PentiumII/manuals/24319202.pdf
Reviewed by: peter, bde, tlambert2@mindspring.com
Pointed-out by: "Shin'ya Kumabuchi" <kumabu@t3.rim.or.jp>
MFC after: 1 week
2001-08-22 15:41:43 +00:00
Peter Wemm
94ad1d3eb7
OK, now I am scared of pxeldr. It had /boot/loader appended onto
...
the end of it and decoded the headers.
Submitted by: jhb
2001-08-22 08:02:01 +00:00
Peter Wemm
1408f3e993
Make these depend on the usb module so they can use its symbols if they
...
are loaded as seperate .ko files
2001-08-22 05:33:57 +00:00
Peter Wemm
89ea00a7d8
Generate an ELF /boot/loader instead of fake a.out. The fake a.out wrapper
...
did not work with old a.out-only bootblocks anyway. :-(
2001-08-22 05:29:25 +00:00
Matthew Dillon
219d632c15
Move most of the kernel submap initialization code, including the
...
timeout callwheel and buffer cache, out of the platform specific areas
and into the machine independant area. i386 and alpha adjusted here.
Other cpus can be fixed piecemeal.
Reviewed by: freebsd-smp, jake
2001-08-22 04:07:27 +00:00
Matthew Dillon
0b76df7146
KASSERT if vm_page_t->wire_count overflows.
2001-08-22 04:01:56 +00:00
Ian Dowse
7dfb550e0c
When compressing directory blocks, the dirhash code didn't check
...
that the directory entry was in use before attempting to find it
in the hash structures to change its offset. Normally, unused
entries do not need to be moved, but fsck can leave behind some
unused entries that do. A dirhash sanity panic resulted when the
entry to be moved was not found. Add a check that stops entries
with d_ino == 0 from being passed to ufsdirhash_move().
2001-08-22 01:35:17 +00:00
Mike Silbersack
b0e3ad758b
Much delayed but now present: RFC 1948 style sequence numbers
...
In order to ensure security and functionality, RFC 1948 style
initial sequence number generation has been implemented. Barring
any major crypographic breakthroughs, this algorithm should be
unbreakable. In addition, the problems with TIME_WAIT recycling
which affect our currently used algorithm are not present.
Reviewed by: jesper
2001-08-22 00:58:16 +00:00
Peter Wemm
3d6fde76ed
Introduce two new sysctl's.. vm.kvm_size and vm.kvm_free. These are
...
purely informational and can give some advance indications of tuning
problems. These are i386 only for now as it seems that the i386 is
the only one suffering kvm pressure.
2001-08-22 00:50:46 +00:00
John Baldwin
61e9650010
Clear db_active in boot() so that one can call the boot function (as well
...
as use the panic command) w/o having to manually clear db_active first
to avoid the db_error() in mi_switch().
2001-08-21 23:29:40 +00:00
John Baldwin
3a9e0f5bd1
Push down Giant some in trap_pfault() so we don't grab Giant around
...
trap_fatal() to make restarting from panic's slightly easier. Before if
one did 'w 0 0' in ddb, the longjmp in ddb inside of trap_fatal() would
result in Giant being held (or recursed one level deeper) which led to
problems later on. You can now drop to teh debugger, do 'w 0 0', and
continue w/o a problem.
2001-08-21 23:15:25 +00:00
John Baldwin
b285782b29
Release the sched_lock before bombing out in mi_switch() via db_error().
...
This makes things slightly easier if you call a function that calls
mi_switch() as it keeps the locking before and after closer.
2001-08-21 23:10:37 +00:00
John Baldwin
1a5333c37c
Allow one to restart from a panic in DDB by clearing the panicstr
...
variable to NULL. Note that since panic() is marked with __dead2, this
has somewhat unpredictable results at best.
2001-08-21 22:55:20 +00:00