Commit Graph

79265 Commits

Author SHA1 Message Date
dsl 37875b24f4 Need to install byte_swap.h and bswap.h needs to include sh3/byte_swap.h. 2006-02-01 20:56:18 +00:00
martin 60dcc21763 Add missing <sys/device.h> include. 2006-02-01 20:55:31 +00:00
martin 058c0e1d60 Do not assume the bootstrap CPU has UPA id 0 - on some machines it hasn't.
Explicitly route all interrupts to the current cpu for now, we'll revisit
this when SMP is working.
Problem spotted and analyzed by Stephan Meisinger, fix inspired by FreeBSD.
2006-02-01 20:21:38 +00:00
bouyer 86110231a4 Check the destination ethernet address when not in promiscous mode.
Fix problem where packets would be duplicated, possibly looping, when
a domU is doing IP routing.
Problem reported and fix tested by Mike M. Volokhov on port-xen

While there, add some __predict_false/true in conditionnals where
appropriate, remove a always-true test, and fix handling of
mbuf shortage.
2006-02-01 19:12:02 +00:00
cube 97047d48dd Properly dispose of cfdata memory when unloading the tap(4) LKM. 2006-02-01 05:51:58 +00:00
cube 9f02c7bd62 Free cfdata memory. The tap LKM might be wrong in that area, to...
Pointed out by Greg Oster.
2006-02-01 05:05:22 +00:00
cube aa933732c0 Free the bufq. Pointed out by yamt@. 2006-02-01 04:30:10 +00:00
cube 6527a45571 Have vnd(4) devices automatically created when the user tries to
configure one.  That removes the compile-time constant that limits the
number of vnds.

Thanks xtraeme@ for testing.
2006-02-01 03:15:33 +00:00
martin 0975a4b449 Make sure error messages (received from the access concentrator) are
zero terminated.
2006-01-31 23:50:15 +00:00
rpaulo 219ca2b318 Replace the comment that came from if_loop.c many years ago by
something that matches reality.
2006-01-31 22:27:15 +00:00
nakayama 2f6d85f32d Fix the new ofwboot boot problem with kernels where .text segment is smaller
than 4MB.

Unless this fix, boot failed with the message as below.

| panic: pmap_kextract: Address 0x1400000 is not from kernel space.
| Data segment is too small?
2006-01-31 20:18:40 +00:00
christos e99d96582e PR/32679: Yves-Emmanuel JUTARD: Add unneeded cast to function to pacify the
compiler.
2006-01-31 17:48:27 +00:00
elad 6a22a76f5c fix tyop.
pr 32678 from yves emmanuel jutard.
2006-01-31 17:19:39 +00:00
christos f0551e03f4 PR/32676: Yves-Emmanuel JUTARD: faithprefix should only be defined with INET6 2006-01-31 17:15:20 +00:00
xtraeme 38f79c01fe The NVidia nForce430 IDE Controller supports Ultra-DMA Mode 6, enable it.
Patch from MASUDA Hideo via tech-kern.
2006-01-31 16:49:26 +00:00
xtraeme 15a891cdcb GENERIC: add ral(4) at uhub.
GENERIC_LAPTOP: add ral(4) at cardbus/pci/uhub.
XEN0: add ral(4) at pci/uhub.
2006-01-31 16:42:09 +00:00
xtraeme da63ffb9a6 Add ral(4) at pci/uhub and atu(4) at uhub. 2006-01-31 16:39:47 +00:00
xtraeme 1d4757bcd5 Add ral(4) at cardbus/pci/uhub and atu(4) at uhub. 2006-01-31 16:38:58 +00:00
is 99ff421490 Implement dealloc() - and implement alloc() in a way that it matches it. 2006-01-31 14:58:28 +00:00
yamt acb669a7cf handle "strange" filesystems like layered filesystems and tmpfs,
where pgo_get returns pages which don't belong to the uobj.
also fix an XXX in uvm_loananon and lock-unlock mismatch in uvm_loanuobj.

PR/28372, PR/32665 (Alan Barrett).
2006-01-31 14:11:25 +00:00
yamt 43ed84382c re-apply uvm_fault.c 1.104. fixes will follow. 2006-01-31 14:05:47 +00:00
yamt f03efb066e uvm_mremap: whitespace. 2006-01-31 14:03:53 +00:00
yamt cab41a8b8a linux_sys_mremap: validate flags. 2006-01-31 14:02:55 +00:00
yamt d9b9d1ddc8 falloc: grab fd_slock when calling fd_unused. 2006-01-31 14:02:10 +00:00
gdt c3a7ca1d6d Change number of vnd to 32 from 4, since many users of XEN0 will need
more.  (One needs to MAKEDEV them, but that can easily be done on a
running system.)
2006-01-31 13:52:16 +00:00
kochi 0cdeab4c58 remove ACPI_DISABLE_ON_POWEROFF option, which was there just for
compatibility of our old driver behavior, which is not necessary.
2006-01-31 09:30:06 +00:00
dsl 28cb02c94f Make the sh3 bswap headers look like all the other ports 2006-01-31 07:58:56 +00:00
dsl 498e318d85 This file only needs to #include sys/bswap.h 2006-01-31 07:51:41 +00:00
dsl 67d47e0290 Change sys/arch/xxx/include/bswap.h to #include machine/byte_swap.h then
sys/bswap.h in order to pick up the MD inline routines and the constant
folding definitions in the right order.
Code can include either sys/bswap.h or machine/bswap.h with the same effect.
2006-01-31 07:49:18 +00:00
gdamore 067008df2a paddr_t should be 64-bits wide to accomodate full R4K 36-bit phys address.
(Alchemy needs it for various system peripherials located above 4GB.)
2006-01-30 23:57:51 +00:00
dsl c88ae1f9ee Move all the stuff that detects bswapxx(constant) into the MI sys/bswap.h
Put the minimum to define the required inline assembler or C into the MD files.
NB: there may be some fallout from this!
2006-01-30 22:46:35 +00:00
dsl 2723c11bd9 Move the definitions of ntohl() and friends into sys/endian.h where they
are defined in terms of bswap32() and bswap16().
This makes the definition be in the same place for all systems regardless
of creed^Wendianness.
2006-01-30 21:52:38 +00:00
yamt 7fcddedf0b revert uvm_fault.c 1.104 for now. see PR/28372, PR/32665. 2006-01-30 11:50:17 +00:00
junyoung ed1116428c ANSI & KNF. 2006-01-30 04:25:44 +00:00
dsl 6f0f9f8763 Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
augustss f1d35de4d5 Use correct return values when polling. 2006-01-29 11:35:11 +00:00
augustss 42d1b78d2c Add more cardbus USB controllers. 2006-01-29 11:32:01 +00:00
jdolecek 8ce024013a fix VLAN_ATTACHED() macro, it was always true due to condition bug
Fixes PR kern/32645 by Pavel Cahyna
2006-01-29 09:57:59 +00:00
jdolecek 0a5be6a731 add cast to compile with AAC_DPRINTF 2006-01-29 09:48:09 +00:00
kochi 9e72fe1e5e adapt for ACPI-CA 20060113 2006-01-29 03:12:22 +00:00
kochi 5d63813b95 Merge ACPI-CA 20060113 2006-01-29 03:11:26 +00:00
kochi 86bf0f2eb2 Merge ACPI-CA 20060113 (new files)
CVg: Committing in .CPI-CA 20060113'
2006-01-29 03:10:55 +00:00
kochi 2564e681ae Merge ACPI-CA 20060113 2006-01-29 03:05:46 +00:00
kochi 13bafec3c5 Import the INTEL ACPI-CA 20060113 2006-01-29 03:02:40 +00:00
kleink 2269235d63 Add support for the AMD8111 RNG; from Nicolas Joly in PR kern/32284. 2006-01-28 23:31:24 +00:00
dsl db0d69832d Improve disk portability between systems.
- Always look for labels in the first two sectors
- Update all existing labels, but only write new labels to netbsd mbr
  partitions, and the first/second sector of disks that don't have an mbr.
Moving disks between systems still sucks bigtime!
- raw patition is either c or d, if d then c is reserved
- max partitions might be 8 or 16, nothing in the label gives the maximum
- endianness
2006-01-28 19:57:07 +00:00
darrenr 5987976cc1 if db_onpanic is -1, do not invoke any ddb functions at all when handling
a panic.  This allows ddb's behaviour on a panic to be controlled via
sysctl rather than just compiling it in/out.
2006-01-28 14:37:31 +00:00
kleink 39963806e0 Since NULL isn't necessarily available, change CMSG_*() to use the
integer constant expression directly instead.

Fixes a problem in the build of rxvt-unicode-7.2, as reported by
Thomas Klausner.
2006-01-28 13:20:18 +00:00
tsutsui 438f912c45 Fix botch on ANSIfy. 2006-01-28 12:00:56 +00:00
darrenr 76f9e99eec Introduce a new style of behaviour for ddb_onpanic == 2.
When set to 0 or 1, behaviour is normal (today)
When set to 2, kernel will display a stack trace and then enter ddb.
2006-01-28 07:23:37 +00:00