Commit Graph

101227 Commits

Author SHA1 Message Date
cegger 46e5d74b06 recognize virtual cpu feature indicating guest state. 2009-08-13 11:27:34 +00:00
cegger 549d6a10af buildfix: if_indexlim is of type size_t 2009-08-13 09:04:03 +00:00
haad 5f6671a94a Allow undescribed, direct ioctls as used by Unix. This capability was removed in BSD, presumably because nothing used it any more.
Third party system software written for Unix (like ZFS) requires this to work without significant modifications.

Ok supremeleader@
2009-08-13 08:57:43 +00:00
matt ab902ee68d Move MID_MACHINE to <mips/mips_param.h> and use local values so we don't
need to include exec_aout.h
2009-08-13 05:15:08 +00:00
matt 69d946c278 Don't include EXEC_AOUT stuff by default. 2009-08-13 03:56:32 +00:00
matt baf57f2df6 #include "opt_execfmt.h" and only compile innards if EXEC_AOUT is defined. 2009-08-13 03:53:13 +00:00
matt a15cb55d9e Fix KASSERT() failure reported by Geoff Wing. 2009-08-13 03:21:03 +00:00
dyoung 94981d88f4 Postpone to a workqueue adding link-local and loopback IPv6 addresses
to an interface.  This keeps the kernel from entering ifp->if_ioctl
recursively, which can deadlock if if_ioctl takes locks.  This will
fix deadlocks & LOCKDEBUG errors in agr(4) (kern/39940) and in
gre(4).
2009-08-13 00:34:04 +00:00
dyoung 7a9941f8e8 Use sysctl(9) to expose to userland each interface transmission
queue's maximum length, current length, and number of drops.  E.g.,

% sysctl net.interfaces.bnx0
net.interfaces.bnx0.sndq.len = 0
net.interfaces.bnx0.sndq.maxlen = 509
net.interfaces.bnx0.sndq.drops = 0

Let userland adjust the maximum queue length.

While I'm here, add a 64-bit generation number, if_index_gen, to
ifnet; the pair [ifp->if_index, ifp->if_index_gen] can serve to
identify an ifnet for the lifetime of the system.  I will use this
in an upcoming change.

Ok matt@.
2009-08-13 00:23:31 +00:00
matt 9b2fb10da6 Nuke a.out support for MIPS. 2009-08-12 23:29:18 +00:00
skrll 89ec5e3d9c Put back random.S. Hi dsl! 2009-08-12 22:49:37 +00:00
dyoung 6c7a849f95 Don't require the gateway address to have room for both an interface
name and address.  Room for an address will do.  This should fix
a regression in 'arp -s ...' on interfaces such as xennet0 with
unusually long names.

I will request a pull-up to netbsd-5.
2009-08-12 22:16:15 +00:00
dsl e46010532d Remove some .c files accidentally left on the .S lines 2009-08-12 21:24:57 +00:00
dsl cfac8834d7 Split the lines that add .c to SRCS from those that add .S
No changes (apart from the order) intended.
2009-08-12 21:20:40 +00:00
dsl 6f5236b423 Use stuff from libc/Makefile to auto-remove .c files if a .S has been added.
Use it to dispose of tne .c files that were already only conditionally
added.
2009-08-12 21:18:42 +00:00
skrll 6213e5fd5f Define HPPA_FLEX_SIZE 2009-08-12 20:10:41 +00:00
macallan c36cf5306b use voyagerfb 2009-08-12 19:39:51 +00:00
macallan 5f495e4be4 add voyagerfb, a driver for the Gdium Liberty 1000's onboard graphics chip 2009-08-12 19:28:00 +00:00
tsutsui c144cf4a36 Fix a botch in the previous rev 1.21:
We have to mask higher bits on NCR register access via bus_space_read_4(9),
as the previous NCR_READ_REG() does.
Problem reported by Erik Bertelsen on port-pmax@.

I tested a different version on 3MIN and I also tested committed version
on gxemul, but 3MAX doesn't have asc_ioasic but asc_tc..
2009-08-12 14:06:13 +00:00
simonb 598bb4aec3 Match the Broadcom BCM5464 PHY. 2009-08-12 13:34:34 +00:00
simonb 7971cd7c5f Regen. 2009-08-12 13:33:42 +00:00
simonb 1bb23ef36e Add Broadcom BCM5464 PHY. 2009-08-12 13:33:02 +00:00
simonb 00bf4c87d7 Remove many magic numbers for addresses and interrupt numbers, and use
constants defined in SiByte/Broadcom standard header files.  Switch from
using offsets for locators to actual addresses.

Tested on a swarm (my rhone is dead, but should be OK there too).
2009-08-12 12:56:29 +00:00
msaitoh 7dc1329052 Add 1000BASE-BX10. 2009-08-12 11:17:17 +00:00
skrll 32444302bd Fix non-DEBUG builds. 2009-08-12 10:03:30 +00:00
skrll c352a1ce0c Remove NOP flushes. pvh_list == NULL. 2009-08-12 07:46:36 +00:00
skrll 3e1a0e3c2d Pull across a fix from OpenBSD, but use PDE_SIZE instead of ~PDE_MASK + 1.
Make sure that if a PDE isn't there, we skip to the start of the address
range covered by the next PDE and not somewhere in the middle.  The old could
have skipped over some valid PTE's causing them to stay behind in the pmap.
Since we would not flush the cache for those pages either this could also
cause memory corruption when dirty cache lines would be written back to
memory at a later stage.
2009-08-12 07:42:36 +00:00
matt 3fbfc25940 If using the N32 ABI, define _BSD_JBSLOT_T as long long. Keep _JBLEN
constant since _BSD_JBSLOT_T will now change in size so _JBLEN doesn't
have to.
2009-08-12 05:12:58 +00:00
bouyer 913cd0a8e6 Fix watchdog code:
- the timer bound constants are in tick, so convert period to tick before
  checking it against the bounds
- for ICH5 or older, fix code that would have always written a 0 period
  to the register.
2009-08-11 17:15:32 +00:00
matt b2a95bab1e Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
2009-08-11 17:04:14 +00:00
matt 4efef68d70 Fix brain fart. physmem was int not long. 2009-08-11 16:27:08 +00:00
matt 6328246ec5 Add back declaration of physmem but use the existing type (long). 2009-08-11 16:07:24 +00:00
simonb 62c3a46af1 Allow console speed to be overriden with "options CONSPEED=xxx".
Default to 115200 (original hard-coded value).
2009-08-11 12:38:24 +00:00
simonb 8ed35a9caa Sync SiByte includes with cfe-1.4.2.
Includes support for bcm1x55 and bcm1x80 chips.
Tested on a BCM1250 board.
2009-08-11 12:34:06 +00:00
haad ced21e5799 Remove physmem definition to uintptr_t from another patch. 2009-08-11 09:16:53 +00:00
matt d67b6305d0 Remove declaration of physmem since uvm_page.c declares it. 2009-08-11 04:46:21 +00:00
cliff 6104be6e13 #ifdef around boot args parsing for now, so won't kill autobooting the gdium 2009-08-11 03:56:34 +00:00
matt 1a88fba588 Use arch/mips/files.bonito 2009-08-11 03:37:26 +00:00
matt 9ca6f3bb04 Fix loongson2 sdcache init. 2009-08-11 02:38:30 +00:00
matt 11fb28275b Use aprint_normal 2009-08-11 02:37:29 +00:00
matt 0afbb53bde Enable DIAGNOSTIC
Add cpu0
2009-08-11 02:36:43 +00:00
matt 94e69ffc25 Disable 2nd PCI Windows @ 8MB 2009-08-11 02:35:15 +00:00
matt 132d224431 Fix mainbus_print and don't pass a NULL name. 2009-08-11 02:32:38 +00:00
matt 54096a5ecc Flush by increasing way, then increasing addr. flush L1 before L2 (even
though according to the specification it should be needed).  Reset
mips_sdcache_size to 0 so we will configure it.
2009-08-11 00:34:29 +00:00
haad b760fc6e71 Add uvm_reclaim_hooks support for reclaiming kernel KVA space and memory.
This is used only by zfs where uvm_reclaim hook is added from arc cache.

Oked ad@.
2009-08-10 23:17:29 +00:00
kiyohara 80d39e70af Remove unused variable powman_ioh.
It is used in GUMSTIX ohci patch.
2009-08-10 23:08:12 +00:00
haad a83da6a90d Enable taskq which was disabled during testing. 2009-08-10 22:55:08 +00:00
haad 614ae6725c Remove strange looking -I entries. 2009-08-10 22:38:59 +00:00
haad 7c0a6ff12f Add _PC_ACL_EXTENDED and _PC_MIN_HOLE_SIZE which are needed by zfs. 2009-08-10 22:29:29 +00:00
plunky 4f6ac13367 reduce the number of KAUTH_DEVICE_BLUETOOTH_SEND/RECV requests
by passing the packet type as an argument rather than having
a different request for each type.

(from a suggestion by mrg)
2009-08-10 20:22:06 +00:00