Commit Graph

178585 Commits

Author SHA1 Message Date
christos aac5228100 proper way to find objdir. 2009-03-07 20:19:45 +00:00
christos 4dbda5da97 don't enforce maxproc resource limits for root. 2009-03-07 19:23:02 +00:00
he e5e9eb0ed4 Regenerate these using tools/binutils/Makefile's mknative-binutils
target after the recent addition of BFD_DETERMINISTIC_OUTPUT to libbfd.

The list of architectures is not complete, but these were the
ones I had readily-available toolchains for.  The rest will be
dealt with a little later, by me or someone else.
2009-03-07 18:11:47 +00:00
cegger 45e175c9c5 remove Xen2 from the list of kernels to build for a release.
ok bouyer@
2009-03-07 17:28:31 +00:00
mjf 6143761103 Queueing -> Queuing 2009-03-07 17:00:16 +00:00
tsutsui a8ba219be8 Replace incorrect local ether_cmp() function with memcmp(9)
on checking multicast addresses, which is not so critical.
Noticed by FUKAUMI Naoki.
2009-03-07 16:46:25 +00:00
tsutsui cf97a4b35d Add TCPv4/UDPv4 RX hardware checksum support for i82559 and later chips
which don't have EXT_RFA and IPCB support. From hme(4) driver and
FreeBSD's fxp(4). Tested on i82559.

XXX: Probably we should have a common function to parse RX packet headers
XXX: to handle a raw checksum value and share it among hme(4) and gem(4) etc.
2009-03-07 15:03:25 +00:00
mrg 9526e87d38 move a DRM_SPINUNLOCK() to where it will actually be executed. 2009-03-07 05:46:09 +00:00
dyoung 0226a0496e Don't try to write the registers of the NIC to stop it if it is
already powered down.  This change prevents PCI bus exceptions
(indicated by NMI) when, for example, I detach the whole device
tree on a Soekris net4521:

com1: detached
NMI ... going to debugger
Stopped in pid 0.1 (system) at  netbsd:sipcom_stop+0x4d:        pushl   $0
db{0}> continue
NMI ... going to debugger
Stopped in pid 0.1 (system) at  netbsd:sipcom_stop+0x149:       addl    $0x10,%e
sp
db{0}> continue
sip0: detached

(On the AMD Elan SC520, the NMI occurs at the instruction after
the write or, if the write was posted, at either that instruction
or some later one.)
2009-03-07 00:56:04 +00:00
tsutsui ee11921a7a Add an `else' missed in rev 1.49 otherwise RX hardware checksum on hme(4)
is not activated at all. Ok'ed by christos@, tested on macppc.
2009-03-07 00:12:36 +00:00
wiz 24b800a64b Fix spelling. 2009-03-06 23:48:08 +00:00
bouyer dbac012ecf Make it safe to call uhci_init() from a kernel thread with interrupts
enabled:
- don't enable interrupts before calling uhci_run()
- check if the controller's interrupt is enabled in uhci_intr()
The issue is that uhci_run() may tsleep(), uhci_intr1() may be called before
uhci_run() is complete and disable it because it found it halted.

Now a uhci controller can be successfully exported to a NetBSD Xen domU :)
2009-03-06 23:40:50 +00:00
abs 84c870d611 Regenerate after shrinking kernels to fit on floppies 2009-03-06 23:38:41 +00:00
abs 1c76e24a27 Shuffle some things around and comment out some options to try to ensure
we can fit a gzipped SMALL030 on a 720K floppy and FALCON / ATARITT on
1.44MB ones
2009-03-06 23:38:07 +00:00
bouyer b124147487 Don't emulate a cold boot here, this breaks drivers using config_interrupt(). 2009-03-06 23:35:34 +00:00
bouyer 98b47cd2f6 Move a message to debug 2009-03-06 22:02:17 +00:00
christos 29e4b0fb40 eliminate hacky memory allocation that loses on 64 bit archs with alignment
issues.
2009-03-06 21:36:25 +00:00
bouyer d08905dbd4 Unbind the event channel after mapping the interrupt. Otherwise domain0
will share the interrupt with the domU and xen will wait for domain0 to
ack the interrupt too. Now devices that don't share an interrupt with
a device in domain0 works too.
Make sure the same PCI bus isn't published multiple times.
2009-03-06 21:32:17 +00:00
joerg 61c5e0195f Annotate automatic limit of kern.ipc.shmmaxpgs. 2009-03-06 21:28:44 +00:00
joerg f5b0fec0e0 Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
2009-03-06 20:31:46 +00:00
apb 55a5451b03 #include <sys/param.h>, in case it defined MIN and MAX. (Later in this
file, we conditionally define MIN and MAX.)

Including sys/param.h unconditionally like this seems unportable (in
view of the fact that file is built as a host tool), but other parts of
the file sources already include sys/param.h, so this change doesn't
make it worse.

This might fix PR 40539 from Brad Parker.
2009-03-06 19:42:54 +00:00
joerg a219a2be6b Don't build the infokey and info binaries during toolchain builds.
This patches the false branch of the Makefile as the true branch is only
used for cross-compiling of texinfo with the internal build system.
This avoids the termcap dependency as noticed in PR 40810.
2009-03-06 19:28:12 +00:00
apb 09ba0a6ca8 Replace local swap16, swap32, and swap64 inline functions with the
NetBSD conventional bswap16, bswap32, and bswap64 functions or macros.

In a non-tools build, include <sys/types.h> and <machine/bswap.h> to
get definitions of these functions.  In a tools build, rely on the
functions or macros being provided by nbtool_config.h, but don't incluce
<machine/bswap.h> (which might not exist in a cross build).

This should address a problem building on OpenBSD, which has swap16,
swap32, and swap64 macros that conflicted with the local definitions.
The problem was reported by Alexander Bluhm, but this patch is quite
different from the one he suggested.
2009-03-06 19:05:11 +00:00
reed f480b2a774 Spelling fix in some messages.
(Note that this is still English examples even in other language messages.)
2009-03-06 19:05:01 +00:00
apb 6aae635b8d According to Alexander Bluhm in tech-toolchain on 31 Jan 2009, the way
these files use __weak_alias causes build failures under OpenBSD,
because the OpenBSD __weak_alias macro expects the caller to supply a
semicolon, but the NetBSD __weak_alias macro supplies its own semicolon.

Attempt to fix this by avoiding the use of __weak_alias during a tools
build.
2009-03-06 18:15:23 +00:00
hauke f971ff9cd3 Workaround from jmcneill for a panic at shutdown.
Fixes PR kern/40947 and should be pulled up to netbsd-5.
2009-03-06 17:10:41 +00:00
apb 8e2705fefd include <stdint.h> for intptr_t; patch from Alexander Bluhm in
tech-toolchain.
2009-03-06 17:03:48 +00:00
apb 5ebdda3e89 In build.sh and bsd.own.mk, if uname -p fails, or prints "unknown", or
prints something that does not look like an identifier, then use uname
-m instead.  (Cygwin prints "unknown", and OpenBSD prints a long string
containing several spaces; this code should handle both.)
2009-03-06 16:29:40 +00:00
haad 50b5b59cc7 Fix lvm lvrename command. There was bug in dm_dev_lookup where
dm_dev_lookup_name was called with device uuid. Remove dm_dev_t:dk_label is
it not used anymore.
2009-03-06 16:17:29 +00:00
joerg 08d9a1067c Avoid sign comparision issues. 2009-03-06 15:17:56 +00:00
christos 7ef7e1b997 disable PTHREAD_CONCURRENCY until the bugs are fixed. 2009-03-06 14:00:40 +00:00
christos 0c5245cd7e PR/40972: Chris Demetriou: add support to ar for 'deterministic mode' 2009-03-06 13:44:18 +00:00
tteras e3372d2f8f setkey: fix deleteall in Linux
Linux requires SADB_DELETE message to have SPI. So send
a SADB_DELETE message for each matching SA. Trac #284.

From: Gabriel Somlo <somlo@cmu.edu>
2009-03-06 11:45:03 +00:00
cegger 61b1fbae0d add options COMPAT_50 2009-03-06 10:48:27 +00:00
cegger 1bf78a71a6 add options COMPAT_50 2009-03-06 10:37:42 +00:00
cegger 8e35c3d94f add age(4) and atphy(4) 2009-03-06 09:58:14 +00:00
tsutsui 19b9bc7f5d The Intel manual says that ICH and 82562 chips are compatible with 82559,
not 82550, so don't set FXPF_EXT_RFA (available only on 82550/82551)
for those variants.

Tested on Intel PRO/100 VM with 82562EM/EX PHY by ISHII Kimio
on current-users, and should also fix PR kern/40431.
2009-03-06 09:54:02 +00:00
cegger 23d8015c3f Go independent from Xen2 config files 2009-03-06 09:51:02 +00:00
bouyer 68df98430e Note i386PAE domain0 support. 2009-03-05 20:08:36 +00:00
bouyer 33a5d738a9 Add XEN3PAE_DOM0 to the list of kernels to build for a release. 2009-03-05 20:06:13 +00:00
bouyer 233e6fb895 Note XEN3 PCI pass-through support. 2009-03-05 19:58:08 +00:00
bouyer 2c02d488fa Add pciback device to XEN3 dom0 kernels 2009-03-05 19:51:49 +00:00
bouyer 8178950407 - xentools also use pci vendor/product id and subsystem id; export them
via the kernfs file
- EVTCHNOP_bind_pirq wants the legacy IRQ number; so always set the
  legacy IRQ number in the PCI_INTERRUPT_REG.
2009-03-05 19:32:52 +00:00
njoly e4bf6d925f Add missing free() in machdep_diskinfo(). 2009-03-05 15:35:59 +00:00
joerg cc9b628146 Fix markup as hinted by mdoclint. OK wiz. 2009-03-05 14:00:53 +00:00
tsutsui 50dbef0dcb Some KNF. 2009-03-05 13:42:59 +00:00
tsutsui 30b8022325 Remove __P(). 2009-03-05 13:21:44 +00:00
uebayasi c8f1efab53 xc_lowpri: don't truncate `where' from uint64_t to u_int. 2009-03-05 13:18:51 +00:00
tsutsui 4a10dc6ecc Remove __P(). 2009-03-05 13:00:45 +00:00
haad 75fa841288 When setting LV_LIST variable do not use $LV_LIST. 2009-03-05 10:35:43 +00:00