Commit Graph

169925 Commits

Author SHA1 Message Date
christos 5b61e403a2 don't play with timevals directly, use the macros. From OpenBSD 2008-05-13 22:16:27 +00:00
dyoung e6c098fa6e rtinit() should pass RTM_ADD to ifa->ifa_rtrequest instead of cmd,
after all.
2008-05-13 20:49:33 +00:00
dyoung e78c6441d1 Cosmetic; reduce excessive parenthesization. 2008-05-13 20:40:33 +00:00
mjf cedc21b1f9 Do not dereference this->intr if it's NULL. 2008-05-13 20:21:19 +00:00
dyoung 9efe814c6c In rtinit(), when cmd == RTM_ADD, pass cmd instead of RTM_ADD to
ifa->ifa_rtrequest(), in preparation for handling rtinit(RTM_CHANGE)
in the RTM_ADD branch.
2008-05-13 20:21:09 +00:00
ad 62118300c8 intr_string: don't bother printing the legacy irq number when using the
ioapic. It's confusing.
2008-05-13 20:19:26 +00:00
dyoung 4dbd129d42 Simplify the RT_DPRINTF() calls. 2008-05-13 20:18:11 +00:00
dyoung 2d716f631f Replace a call to rtrequest() with single dst, mask, gateway
arguments, with a call to rtrequest1() with the rt_addrinfo those
single arguments come from.  No functional change intended.
2008-05-13 20:16:30 +00:00
jmcneill 8981ea449c Remove BUGS section as hardware volume buttons are now supported. 2008-05-13 20:04:28 +00:00
jmcneill e8535e3b85 Hook hardware volume buttons into pmf. 2008-05-13 19:24:06 +00:00
dyoung 518ccec3d5 bzero -> memset, bcopy -> memcpy. 2008-05-13 18:24:01 +00:00
dyoung 76766729c4 Use an AF_LINK socket to add/delete/get link-layer addresses. 2008-05-13 18:10:17 +00:00
dyoung 2f604e903b Let us call ioctl(SIOC[ADG]LIFADDR) with a link-layer address on
an AF_LINK socket, only, to be consistent with SIOC[ADG]LIFADDR
behavior on AF_INET and AF_INET6 sockets.  Let us create AF_LINK
sockets for this purpose.  Note that most operations on AF_LINK
sockets are not implemented.
2008-05-13 18:09:22 +00:00
dyoung 6f1527c315 Delete unreachable SIOCSIFADDR/AF_LINK case. 2008-05-13 17:58:52 +00:00
dyoung ec34b3825c Change bzero() to memset(), non-overlapping bcopy() to memcpy().
Remove unnecessary casts to struct route *.
2008-05-13 17:53:52 +00:00
dyoung 0f58320be0 Cosmetic: use __arraycount(). s/0/NULL/ where appropriate. Pass
"null" instead of 0 to printf %s.  Remove superfluous parentheses
in return statements.  Compare pointers with NULL instead of "testing
truth."
2008-05-13 17:51:26 +00:00
dyoung e77c76146a Build af_link.c. Should fix 'build.sh release' failures. 2008-05-13 15:53:27 +00:00
tnn 88a92b676a Change a couple of stray selwakeup references to selnotify.
Also fix typo.
2008-05-13 15:52:51 +00:00
christos e3ec2bf190 Add ppc bits; untested 2008-05-13 15:35:40 +00:00
tsutsui d4fd069bec Use WARNS=2, which just works. 2008-05-13 15:27:30 +00:00
tsutsui 269bbddf81 Remove complete items (multi function PCI interrupts, zs on Qube2700). 2008-05-13 15:06:40 +00:00
joerg 816cef7d46 Restore the behaviour intended by rev 1.51 with the patch I actually
send out for testing. The wrong version ended up in the commit.
Original description:
Don't use the legacy interrupt when deciding how to route IOAPIC pins.
On some modern systems not all devices have the PCI interrupt line
set, typically the cardbus bridge is affected and it would result in
different interrupt vectors used for the same IOAPIC pin.
To allow this, simplify the code by checking for an existing match first
and only allocate a new entry if that doesn't exist. For the IOAPIC case
don't bother with the reserveration on the primary CPU for ISA
interrupts, just use them.
2008-05-13 14:29:17 +00:00
tsutsui e04f8f6085 On netboot specify only FS_OPS(nfs) explicitly for file_system[] fs_ops.
Trying block device fs_ops like ext2fs on netboot could be problematic
on some conditions since not all libsa functions handle errors properly.
2008-05-13 14:26:20 +00:00
tsutsui 416b7a7683 Remove an unused extern declaration. 2008-05-13 14:20:58 +00:00
ad 6cd3bc13e5 PR port-amd64/38478 (panic on boot when attaching cpu17)
Don't 'sti' before returning from an interrupt that is masked in software.
We could recurse and burn stack.
2008-05-13 14:12:31 +00:00
ad ef159c840a PR kern/35296 option PIC_DELAY not use 2008-05-13 13:43:47 +00:00
wiz 4c5d505382 Fix typos. 2008-05-13 12:46:14 +00:00
ad 5128f21c03 Back out 1.50 until the assumptions about NUM_LEGACY_IRQS are removed.
Until then there are not enough free interrupt sources on UP systems.
(Sorry Joerg.)
2008-05-13 12:14:06 +00:00
ad cefdd6012a In panic, we busy wait if another CPU is already panicking. Don't spl0(),
because we could recurse and run off the end of the stack. Pointed out by
chs@.
2008-05-13 11:54:45 +00:00
ad 25eae6f894 AMD and IDT/VIA strings were swapped. 2008-05-13 11:22:15 +00:00
rjs a05db5ae83 Regen. 2008-05-13 10:44:02 +00:00
rjs a82c71d83a Add SIS 756 Host Bridge. 2008-05-13 10:43:21 +00:00
wiz b766901d20 Bump date; punctuation improvements. 2008-05-13 09:33:36 +00:00
wiz d9ba6548dc cvs-1.11.23 out. 2008-05-13 09:31:19 +00:00
wiz 3f812bdc84 Bump date for previous. 2008-05-13 09:31:06 +00:00
yamt c27d8958e0 sys_ptrace: fix a locking botch. PR/38649 from Martin Husemann. 2008-05-13 09:16:11 +00:00
simonb 2fd5130380 mnt_data is a pointer, set it to NULL not 0 when we're finished with it. 2008-05-13 08:31:12 +00:00
simonb 03a48736d2 Use the correct malloc type when free()ing the ptyfs mount structure.
Fixes the "free 2: inuse 0, probable double free" panic when using ptyfs
and KMEMSTATS.
2008-05-13 05:36:43 +00:00
ad d3b40a28c7 - lapic_map: if we have an APIC MSR, ignore the supplied address and ask the
hardware where it is mapped. At least one ACPI implementation seems to lie
  about the physical address of the lapic.

- lapic_initclocks: be paranoid and issue an EOI.
2008-05-12 23:46:01 +00:00
dyoung 3361a66d0a Per discussion at
<http://mail-index.netbsd.org/tech-net/2008/04/08/msg000371.html>,
let us add, delete, and activate link-layer addresses with ifconfig:

# ifconfig sip0 link 02:00:00:00:00:01                   [add address]
# ifconfig sip0 link 02:00:00:00:00:02                   [add address]
# ifconfig sip0 link 02:00:00:00:00:02 active            [activate address]
# ifconfig sip0 link 02:00:00:00:00:01 delete            [remove address]
2008-05-12 22:06:13 +00:00
dyoung af8202a3c2 Apply the right copyright notice. 2008-05-12 22:01:32 +00:00
dyoung 85a29f7ecc Fix link-layer address parsing. Add debug statements.
Cosmetic: fix copyright whitespace.
2008-05-12 21:54:51 +00:00
dyoung 8c56a7ef60 Cosmetic: fix copyright whitespace. 2008-05-12 21:53:32 +00:00
dyoung cd86d94cd8 We cannot create an AF_LINK socket. If AF_LINK is requested, create
an AF_INET socket, instead.
2008-05-12 21:52:29 +00:00
jnemeth c93b478e9f add support for drvctl properties 2008-05-12 21:39:56 +00:00
dyoung 47bfdf8c0e Make prototype and definition of in_alias() agree: it's static. 2008-05-12 20:59:13 +00:00
dyoung b312223d4e Retire in6_addreq and in6_ridreq, which we do not use in the
commit_address() regime.
2008-05-12 20:58:16 +00:00
martin 3e3aaf429b Remove quirks for fixed or removed parts of the tree.
Add C++/C99 comments.
2008-05-12 20:24:42 +00:00
ad ce85d1b2a3 Some defs to describe the IA32_APIC_BASE MSR. 2008-05-12 18:36:20 +00:00
he 80dcfefbc7 Bump SYMTAB_SPACE so that it fits again. 2008-05-12 18:28:20 +00:00