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
martin
79eec0c146
Follow FreeBSD's rev 1.18 (by imp):
...
Replace (name) with Henric Vestergaard Draboel since it was clear that
this was just cut N paste and '(name)' doesn't make any sense.
2008-05-12 17:46:08 +00:00
tsutsui
6f98953d90
Remove one more dup line. I should have a cup of coffee before hasty commit..
...
XXX maybe it's better to sort by cai_desc to sync with the Intel docs.
2008-05-12 16:41:15 +00:00
dyoung
3f2ce08bf8
Initialize IPv6 addresses and ifreqs with more rigor. Fixes this
...
bug reported by Matthias Scheler,
# ifconfig sip0 inet6 fdb4:542d:dc11:ec20::1
ifconfig: SIOCAIFADDR_IN6: Invalid argument
# ifconfig sip0 inet6 fdb4:542d:dc11:ec20::1 prefixlen 64
2008-05-12 15:35:50 +00:00
ad
a1ba1eadd5
- Make cpu_number() return MI index, otherwise the pmap cannot work on
...
systems with lapic IDs > X86_MAXPROCS.
- Kill cpu_info[] array and use MI cpu_lookup_byindex().
2008-05-12 14:41:07 +00:00
ad
02ce2ed48b
Don't crash if more than 32 cpus. Hopefully the boot processor will be
...
within the first 32 attached.
2008-05-12 14:29:06 +00:00
ad
a9ee17c54d
Use cpu_index(), not ci_cpuid.
2008-05-12 14:28:22 +00:00
ad
453d5d4dc1
- Complain if unable to reset the lapic ID.
...
- Minor clean up.
2008-05-12 14:19:33 +00:00
ad
fb00930331
Clarify output of 'id' column.
2008-05-12 14:16:04 +00:00
ad
094788ba6d
cpu_hatch: hack around problem with multiple CPUs spinning in i8254_delay.
2008-05-12 11:58:10 +00:00
nisimura
ba7dbc0c82
CAL cache alignment band-aid for BMR register.
2008-05-12 11:56:15 +00:00
mlelstv
17740d28a4
add support for booting a kernel by tftp. Syntax is similar
...
to other systems, e.g.: boot net tftp:netbsd
2008-05-12 11:16:31 +00:00