Commit Graph

154193 Commits

Author SHA1 Message Date
uwe
0c5111b125 Hide sh5 stuff under #ifdef BFD64, so that we can build with 32-bit
support only.
2006-12-02 01:13:53 +00:00
riz
5a855ffac9 Move more stuff to CHANGES.prev in honor of the rebranch. 2006-12-02 00:50:31 +00:00
riz
711957a279 Welcome to 4.99.5 2006-12-02 00:48:45 +00:00
christos
3254d721de - add kernel frame unwinding support (copied from i386obsd-tdep.c)
- add a nasty hack to recognize elf kernels which do not have a PT_NOTE
  as NetBSD binaries.
2006-12-02 00:46:06 +00:00
dogcow
437f8cc149 make bootxx_msdos fit in 8k again; thanks, __internal_memset_, for spilling
registers all over the place.
2006-12-02 00:38:22 +00:00
martin
9be3ef677b On Christos' request, reinstantiate the packed->__packed__ part of the
backed out change.
2006-12-01 21:36:56 +00:00
martin
035130a4dd Fix PR kern/34202 differently, by aligning the variables "the traditional
way".
2006-12-01 21:23:57 +00:00
martin
d5c3b27938 Back out align(4) for all struct decls - it breaks various things all
over the tree (for example esiop on sparc64 won't boot any more).
2006-12-01 21:11:26 +00:00
drochner
af0d6b7f5e change some commented-out code to use the interrupt descriptor's polling
interval instead of an own (which isn't even defined)
2006-12-01 20:56:42 +00:00
drochner
d395a37b84 -comment out transaction translator support for now, it doesn't do more
than allocating memory, and it does wrongly use the hub's capabilities
 but not the actual setting
-switch a high-speed hub to "multiple TTs" but ignore errors; since
 we don't care whether there is one or multiple this is a "best effort"
 thing
2006-12-01 20:48:50 +00:00
drochner
c7a98882c8 don't specify the interrupt pipe polling interval explicitely; just rely
on the endpoint descriptor
approved by plunky
2006-12-01 20:41:23 +00:00
yamt
30aa8d0c49 yamt-splraiseipl: bebox, sh5 2006-12-01 20:33:10 +00:00
yamt
10cd898fb8 uvm_fault: fix an assertion. PR/35134 from Christos Zoulas.
it can be triggered by minherit as well.
2006-12-01 19:15:22 +00:00
christos
47fd231e41 ansi, minor knf, no functional change. 2006-12-01 18:57:29 +00:00
is
07e04d08c3 Remove an overlapping struct copy from ether_input, which caused address
corruption for incoming netiso packets with recent (at least NetBSD-3 and
later) compilers. This is done in a way that the copy is avoided totally.
Code path tested with tcp+udp/ipv4+ipv6, arp and ISO cltp/clnp.
Visually ok'd by Christos@.
2006-12-01 18:43:40 +00:00
drochner
d6defbabbf pull in more from upstream CVS: nuke on-disk sorting completely
(It didn't work correctly, thanks to Joerg Sonnenberger for the hint.)
2006-12-01 18:21:04 +00:00
drochner
afe5425679 pull patches from upstream CVS:
-unsafe tempfile creation (CVE-2005-3011)
-buffer overflow (CVE-2006-4810)
2006-12-01 16:54:22 +00:00
elad
1e92f4ba9c Trailing whitespace... 2006-12-01 16:13:36 +00:00
elad
a6c2dfb16d Introduce uvm_is_swap_device(), to check if the passed struct vnode * is
used as a swap device or not.

Okay mrg@.
2006-12-01 16:06:09 +00:00
christos
491c94e1fc - remove size check; the init functions do it.
- fix size_t/int confusion
- caddr_t -> void *
2006-12-01 15:52:55 +00:00
pooka
b98361ea36 sauce catchup 2006-12-01 15:31:25 +00:00
he
25e5748c32 Add -Os to CFLAGS, so that the boot code fits within the constraints
again.  Sorry, I've not traced why this fit in the past, or what
changed to make it not fit anymore.
2006-12-01 13:52:46 +00:00
pooka
69dbc08863 update flag names 2006-12-01 12:50:52 +00:00
pooka
0d5746a9ac PUFFSFLAG -> PUFFS_FLAG to be consistent with the kernel 2006-12-01 12:50:06 +00:00
pooka
ca5da47950 prefix kernel flags with PUFFS_KFLAG to have a separate namespace
from the library flags
2006-12-01 12:48:31 +00:00
pooka
465f49d71b build & send implemented operations list to kernel 2006-12-01 12:38:11 +00:00
pooka
74baaf5c7d don't call the fs server for all operations, only those it has told
us that it implements
2006-12-01 12:37:41 +00:00
tsutsui
be41c8c2ea Free resouces on failure in vge_allocmem(). 2006-12-01 11:30:55 +00:00
tsutsui
af1ca0f86d - vge_probe() -> vge_match()
- KNF, unwrap lines
2006-12-01 11:06:59 +00:00
cube
ffb2095341 Now that we have a AHCI driver (thanks a bunch, Manuel!), we can remove the
nonsense quirk that switched operating mode on ICH7 and ICH8.

I removed the obvious candidates for ahcisata(4), and I'll have a closer
look later if there are others to be removed;  ahcisata(4) will take over
handling the device anyway, but there is no reason to keep AHCI devices in
that list.

Along the way, remove the code that tries to put the chip in Enhanced mode,
it makes absolutely no sense to do that, and some BIOSes might not have
prepared the BARs for that, as proven by PR#34885.  If people want to use
all IDE and SATA channels, they have to tell the BIOS.
2006-12-01 10:31:30 +00:00
tls
e1231b8650 Prompt before rolling forward, in interactive mode, so it's possible to fix
the filesystem but not roll forward possibly unwanted changes.
2006-12-01 06:38:39 +00:00
bouyer
93df930ebb It's 3.0Gb/s, not GB/s. Pointed out by Thomas E. Spanjaard. 2006-11-30 23:07:31 +00:00
oster
f654b0f228 Change a bunch of "#if DEBUG" to "#ifdef DEBUG". 2006-11-30 23:01:50 +00:00
christos
c5fe3abeef regen 2006-11-30 22:34:27 +00:00
christos
6137742b24 PR/35163: Christian Groessler: support for Aztech MM Pro 16 III ISA-PNP
sound card
2006-11-30 22:34:01 +00:00
pooka
24f932e907 regen for VOP_FOO_DESCOFFSET change in vnode_if.sh 2006-11-30 21:07:36 +00:00
pooka
d89a0720df Generate preprocessor macros for vop offsets in vfs op descs. And
use these symbols in the desc structures instead of magic numbers.
No functional change, except VOP_FOO_DESCOFFSET macros in vnode_if.h.

wrstuden ok
2006-11-30 21:06:29 +00:00
bouyer
7b4730a29f Add ahcisata(4), a driver for AHCI 1.0 and 1.1 controllers. Tested on the sata
ports of a Intel 63xxESB chipset. Does not support NCQ yet.
2006-11-30 21:01:15 +00:00
dsl
19a3b59fe1 Fix inverted test for presence of lfs commands when writing /etc/fstab 2006-11-30 20:48:13 +00:00
hannken
7d99324122 Enable WDC_CAPABILITY_WIDEREGS. With this change LBA48 operations no
longer wrap at 128GB.
Tested on an "ServerWorks HT-1000 SATA Controller (rev. 0x00)".

Approved by: Manuel Bouyer <bouyer@netbsd.org>
2006-11-30 19:32:37 +00:00
christos
409998ac55 Prevent kernel crashes caused by umass devices that return bogus mode sense
data, such as the "Cooler Master". From Rhialto. While there, clean up some
debugging code and make the offset unsigned.
2006-11-30 17:59:35 +00:00
christos
d048649c18 Add a quirk for Initio drives (from Rhialto) 2006-11-30 17:39:25 +00:00
elad
2f85bad1eb Sync with reality after recent changes. 2006-11-30 16:55:00 +00:00
elad
7a71c77e81 More cleaning... split veriexec_delete() to veriexec_file_delete() to
handle a single entry and veriexec_table_delete() to handle an entire
table. veriexec_convert() now takes a struct vnode *, and made
veriexec_table_lookup() take struct mount * (that's entirely internal
now).

Tested on amd64, built successfully on amd64, i386, sparc, and sparc64.
2006-11-30 16:53:47 +00:00
drochner
263cbcd833 don't specify a polling interval for the interrupt pipe -- that's
what the descriptor is good for
2006-11-30 16:30:33 +00:00
drochner
bdd5b724b5 in the interrupt endpoint descriptor of the simulated root hub, fix the
poll interval: since this is a highspeed device, it should be a "12"
(just for sanity; this stuff is not used by the kernel, only userland
usb exploration code might see it)
2006-11-30 16:25:28 +00:00
christos
d5272d5b35 PR/34202: Dave Huang: Accessing cd device on alpha causes kernel trap
From the PR:
  Since struct scsipi_read_discinfo_data is an odd number of bytes long
  (35 bytes), ti ends up being unaligned. wdc_datain_pio() uses
  bus_space_read_multi_4() to read the response from the drive, and
  since ti is unaligned, it causes an unaligned access fault.

Add __aligned__(4) to all the structures.
2006-11-30 16:23:20 +00:00
christos
8c4a6d7ec4 PR/35151: Christian Groessler: file size reported incorrectly for files > 2GB
on a FAT32 file system on a 64bit host
2006-11-30 15:59:23 +00:00
oster
212a5b65f4 If the user has specified 'root on foo', then skip changing the booted_device
even if we've detected a 'root on raid' autoconfigure.  This change is really
only cosmetic, since setroot() will still do the right thing and honor
the 'root on foo' setting.
2006-11-30 15:12:17 +00:00
elad
3cd8d27403 Return 'error' in veriexec_unmountchk(), not always 0. 2006-11-30 13:42:46 +00:00