Commit Graph

97642 Commits

Author SHA1 Message Date
ume
0d32624afa Catch a few places where NULL (pointer) was used where 0 (integer) was
expected (fix build).
2003-12-23 11:01:17 +00:00
trhodes
6386f14785 /etc/rc.serial -> /etc/rc.d/serial. 2003-12-23 07:16:38 +00:00
wpaul
0124fb9201 Re-do the handling of ndis_buffers. The NDIS_BUFFER structure is
supposed to be opaque to the driver, however it is exposed through
several macros which expect certain behavior. In my original
implementation, I used the mappedsystemva member of the structure
to hold a pointer to the buffer and bytecount to hold the length.
It turns out you must use the startva pointer to point to the
page containing the start of the buffer and set byteoffset to
the offset within the page where the buffer starts. So, for a buffer
with address 'baseva,' startva is baseva & ~(PAGE_SIZE -1) and
byteoffset is baseva & (PAGE_SIZE -1). We have to maintain this
convention everywhere that ndis_buffers are used.

Fortunately, Microsoft defines some macros for initializing and
manipulating NDIS_BUFFER structures in ntddk.h. I adapted some
of them for use here and used them where appropriate.

This fixes the discrepancy I observed between how RX'ed packet sizes
were being reported in the Broadcom wireless driver and the sample
ethernet drivers that I've tested. This should also help the
Intel Centrino wireless driver work.

Also try to properly initialize the 802.11 BSS and IBSS channels.
(Sadly, the channel value is meaningless since there's no way
in the existing NDIS API to get/set the channel, but this should
take care of any 'invalid channel (NULL)' messages printed on
the console.
2003-12-23 04:08:22 +00:00
peter
3dbd07f78b Regen (should be a NOP except for rcsid) 2003-12-23 04:07:47 +00:00
peter
484e516ec5 GC unused namespc column. 2003-12-23 04:07:22 +00:00
peter
292307bc7e Regen (should be a NOP except for rcsid changes) 2003-12-23 03:55:06 +00:00
peter
2c212b66a8 GC unused third namespace column. 2003-12-23 03:54:40 +00:00
peter
f3dea55dce GC unused namespace column. Unwrap some long lines that now fit. 2003-12-23 03:53:21 +00:00
peter
dd34332283 Regen - this should be essentially a NOP, except for rcsid changes. 2003-12-23 03:52:14 +00:00
peter
f21441eea8 Remove namespc column and attempt to un-fold some of the longer lines
that now fit.
2003-12-23 03:51:36 +00:00
peter
b22e0a8bdb Remove the namespace column from the syscalls tables. We don't actually
use it, if we ever did.  They have been been VERY poorly maintained for
some time, possibly because they were a NOP.  FWIW, This brings our table
formats back closer to the other *BSD's.
2003-12-23 03:50:43 +00:00
peter
f1ccf1f116 Regen 2003-12-23 03:21:49 +00:00
peter
8e61c82753 freebsd32_fstat(2) is now MPSAFE 2003-12-23 03:21:06 +00:00
peter
86e6535014 Rather than screw around with the (unsafe) stackgap, call vn_stat/fo_stat
directly for stat/fstat/lstat syscall emulation.  It turns out not only
safer, but the code is smaller this way too.
2003-12-23 03:20:49 +00:00
peter
bc7e0929dc Regen 2003-12-23 02:48:58 +00:00
peter
52ce8e2199 Eliminate stackgap usage for the (woefully incomplete) path translations
since it isn't needed here anymore.
Use standard open(2)/access(2) and chflags(2) syscalls now.
2003-12-23 02:48:11 +00:00
peter
ea41a37386 Forced commit; previous commit also included:
- eliminate a malloc()/snprintf()/free() in the native exec(2) case and
  in the easy emulation environments.
- Allow the brand emul_path (ie: /compat/xxx) to be NULL rather than
  needing it to be an empty string that is always referenced.
2003-12-23 02:45:24 +00:00
peter
d2892b0634 Add an additional field to the elf brandinfo structure to support
quicker exec-time replacement of the elf interpreter on an emulation
environment where an entire /compat/* tree isn't really warranted.
2003-12-23 02:42:39 +00:00
peter
f0bdb04cd5 Add a reminder note about removing the amd64 test here once the gcc33 port
has been updated.
2003-12-23 02:38:55 +00:00
peter
6ef2d701eb Catch a few places where NULL (pointer) was used where 0 (integer) was
expected.
2003-12-23 02:36:43 +00:00
peter
d9a6c65ed6 Don peril sensitive sunglasses and set NULL to an actual pointer type,
but *only* for the kernel.  We can do this because the kernel is not a
standard C application environment.  This would have stopped the recent
mtx_* arg NULL/MTX_DEF mixups from going unnoticed for so long.
2003-12-23 02:34:25 +00:00
peter
2b8ab2a585 Don't use NULL (pointer) when we're testing for a count of 0 (integer). 2003-12-23 02:29:46 +00:00
peter
25fba0a424 Don't use NULL (pointer) when we mean 0 (integer) for the number of ticks
in msleep.
2003-12-23 02:28:42 +00:00
trhodes
c104c24681 Remove the Minolta item, it already exists in the uscanner(4) manual page.
Noticed by:	simon
2003-12-22 23:20:58 +00:00
trhodes
f69e2953c2 Update the supported device list.
Discussed with:	sanpei
2003-12-22 23:01:25 +00:00
emax
2201d815c3 Fix a couple of stylistic issues
Reviewed by: imp (mentor), ru
Approved by: imp (mentor)
2003-12-22 22:50:21 +00:00
simon
857cf0e5b9 Add Epson Perfection 1250 and Minolta 5400 to the list of supported
devices.
2003-12-22 20:23:43 +00:00
sanpei
6fee821b59 resort device list 2003-12-22 19:58:27 +00:00
shiba
3ba8feff54 Fixed incomplete initialization in some ohci controllers with
broken BIOS. Separate ohci_controller_init() from ohci_init(),
and call ohci_controller_init() at resume process once more.

Discussed on [bsd-nomads:16737] - [bsd-nomads:16746].

Submitted by Hiroyuki Aizu <eyes@navi.org> [bsd-nomads:16741]
2003-12-22 15:40:10 +00:00
scottl
de38cc5906 Put the em and vx drivers back into the kernel so that the mfsroot stops
overflowing.  We are one again on the brink of the floppies having major
overflow problems.
2003-12-22 15:19:45 +00:00
shiba
3b5529300c Enable support for DEVICE_SUSPEND, DEVICE_RESUME and DEVICE_SHUTDOWN
methods for USB devices in the same way of uhci driver. But this change
is not complete because some ohci controlers are not initialized completely.
So "kernel: usb0: 1 scheduling overruns" interrupt will generate many times.

This change will be same one in PR kern/60099.

Discussed on [bsd-nomads:16737] - [bsd-nomads:16746].
2003-12-22 15:18:46 +00:00
tjr
2e890675b4 Make oldsize in smbfs_getattr() 64 bits wide instead of 32 to avoid
truncation when files are larger than 4GB.
2003-12-22 12:33:31 +00:00
wpaul
3dc5c3edfe Some minor touchups:
In NdisQueryBuffer() and NdisQueryBufferSafe(), the vaddr argument is
optional, so test it before trying to dereference it.

Also correct NdisGetFirstBufferFromPacket()/NdisGetFirstBufferFromPacketSafe():
we need to use nb_mappedsystemva from the buffer, not nb_systemva.
2003-12-22 10:22:57 +00:00
wpaul
ae1a951c1c Now that I finally have power back, implement a couple more NDIS API
routines: NdisUnchainBufferAtBack(), NdisGetFirstBufferFromPacketSafe()
and NdisGetFirstBufferFromPacket(). This should bring us a little
closer to getting the Intel centrino wireless NIC to work.

Note: I have not actually tested these additions since I don't
have a driver that calls them, however they're pretty simple, and
one of them is taken pretty much directly from the Windows ndis.h
header file, so I'm fairly confident they work, but disclaimers
apply.
2003-12-22 08:24:32 +00:00
imp
00a8f5aa4f Fix typo in ENE CB710 description. It isn't a 720. 2003-12-22 06:09:35 +00:00
imp
cf8062fd1e Add more bridges, based on reading the pccbb.c file. 2003-12-22 06:08:14 +00:00
kan
88f60cec95 Fix ASM_OUTPUT_LABELREF to deal with TSL model prefixes GCC
started to use internally. They need to be stripped before
the name of the label or symbol is printed.
2003-12-22 04:27:17 +00:00
suz
58d1eaabe4 fixed a bug that 'ip6addrctl delete' command does not work
obtained from: KAME
2003-12-22 03:13:50 +00:00
suz
c18b32a5c0 fixed a bug that IPv6 routing header does not work properly if specified from userland application
reviewed by: ume
2003-12-22 03:12:13 +00:00
alc
ce44c14b4d - Create an unmapped guard page to trap access to vm_page_array[-1].
This guard page would have trapped the problems with the MFC of the PAE
   support to RELENG_4 at an earlier point in the sequence of events.

Submitted by:	tegge
2003-12-22 02:04:08 +00:00
alc
532ae03841 - Significantly reduce the number of preallocated pv entries in
pmap_init().  Such a large preallocation is unnecessary and wastes
   nearly eight megabytes of kernel virtual address space per gigabyte
   of managed physical memory.
 - Increase UMA_BOOT_PAGES by two.  This enables the removal of
   pmap_pv_allocf().  (Note: this function was only used during
   initialization, specifically, after pmap_init() but before
   pmap_init2().  During pmap_init2(), a new allocator is installed.)
2003-12-22 01:01:32 +00:00
grog
a5c79dac09 Explain what all this is about. 2003-12-22 00:01:53 +00:00
scottl
b138e4dfc8 Teach the Fixit environment how to deal with a dynamic root. Symlink
/libexec to /mnt2/libexec, and execute /mnt2/rescue/ldconfig to add
the /mnt2/lib and /mnt2/usr/lib library directories.  Thanks to John Baldwin
for working to track this down.

Submitted by:	jhb
2003-12-21 17:16:44 +00:00
rushani
3026482cba Fix a typo.
Submitted by:	Lukas Ertl <l.ertl@univie.ac.at>
PR:		docs/60469
2003-12-21 14:30:26 +00:00
rushani
4b2e10dda6 Correct URI to USB specs.
Submitted by:	Lukas Ertl <l.ertl@univie.ac.at>
PR:		docs/60457
2003-12-21 14:30:23 +00:00
jeff
5a9452451f - Cleanup some garbage left by KSE. There is still much garbage left to be
removed, see the 110 instances of "XXXKSE" in src/sys for examples.
2003-12-21 13:47:42 +00:00
grehan
97c52522b2 - Add ':' as a separator between the OpenFirmware device space and
the file path. Commonly used on Macs e.g. "hd:9".
- Update the ofw_setcurrdev routine to match libstand setenv prototype

Not objected to by: sparc64
2003-12-21 12:38:25 +00:00
grehan
2504e68699 Make __elfN(ofw_loadfile) match parameter declaration for file_format
in boot/common/bootstrap.h. Having a 32-bit size when a 64-bit param
is declared wreaks havoc on PPC.

Not objected to by: sparc64
2003-12-21 12:27:01 +00:00
grehan
a787f1c4da Only print out an error if returned data size is < 0. A value of 0
happens almost every time at the end of a file when using NFS.

No objection by: sparc64
2003-12-21 12:19:38 +00:00
grehan
849ffb38ee Use daddr_t instead of u_long for byte offset in strategy
routine to avoid >4G truncation on 32-bit systems.

no objection by: sparc64
2003-12-21 12:16:58 +00:00