Commit Graph

178461 Commits

Author SHA1 Message Date
he
5da54c35c9 Based on input from Eduardo Horvath (eeh@), replace 'stmd' and 'lmd',
which apparently don't exist as instructions, with a sequence of
std / ld instructions.

Also remove the attempted include of ldstm.S which we don't have.
2009-03-08 18:57:12 +00:00
christos
6aff6e783a fix problem with armap_timestamp in deterministic mode. 2009-03-08 16:53:55 +00:00
he
f59a0a82c4 The "disabled target" for ar.1 should be NetBSD_DISABLED_ar.1, not
NetBSD_DISABLED_as.1 :)
2009-03-08 16:38:32 +00:00
he
f0edc036fb Regenerate the ar.1 manual page after the addition of the D flag
as part of the recently added BFD_DETERMINISTIC_OUTPUT feature.

Thanks to perry@ for the nudge.
2009-03-08 16:37:36 +00:00
ad
5e99d26fbe Adjust weight of SIDL down so idle kthreads don't eat up all of the
thread display
2009-03-08 16:26:03 +00:00
ad
4e9e0aa85c printf -> panic so MP panics work correctly 2009-03-08 16:03:31 +00:00
he
9bc0986f89 If this is built for arm, build it for armeb as well, so that
a build of evbarm-eb does not give set list errors.
2009-03-08 15:37:12 +00:00
ad
0458d57a95 use aprint_error 2009-03-08 15:06:56 +00:00
joerg
1b46f9c5df Merge pkg_install-20090307. 2009-03-08 14:53:16 +00:00
joerg
908e85af04 Import pkg_install-20090307: Fix a file descriptor leak in pkg_add. 2009-03-08 14:51:34 +00:00
ad
69f9e17075 Don't bother with file_t::f_iflags any more, as it's not used.
Noted by mrg@.
2009-03-08 12:52:08 +00:00
he
988dfde8cd Regenerate these using tools/binutils/Makefile's mknative-binutils
target after the recent addition of BFD_DETERMINISTIC_OUTPUT to libbfd.
2009-03-08 12:38:51 +00:00
he
91cab67b08 Follow up the powerpc side by using %rN instead of rN for registers. 2009-03-08 12:08:19 +00:00
mrg
e4d97b1066 include <sys/user.h> 2009-03-08 11:41:47 +00:00
mrg
4540375faf include ddb headers *after* sys/types.h or sys/param.h. 2009-03-08 11:40:00 +00:00
dholland
6f470d80f5 fix typo. 2009-03-08 05:38:32 +00:00
tsutsui
981d751aa3 ANSIfy, some KNF, misc cosmetics. 2009-03-08 05:25:30 +00:00
tsutsui
e7b57ea6af Fix typo. 2009-03-08 04:55:22 +00:00
tsutsui
ab42779cdb Note fxp(4) RX hardware checksum support for i82559. 2009-03-08 04:54:56 +00:00
agc
15de39d387 Fix tyop in previous. 2009-03-08 02:07:38 +00:00
reinoud
664af01cd8 Actually lmplement striping as LVM target. OK'd by Adam. 2009-03-07 22:17:18 +00:00
ad
c9affe551e crash(8) 2009-03-07 22:08:19 +00:00
ad
101a9782a2 Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
  are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
  a case of making db_disasm.c/db_trace.c or their equivalent compile
  and work.

- Make more of the "show" commands work, e.g "show uvmexp".
2009-03-07 22:08:07 +00:00
ad
cd6b1c8f08 Make ddb compile and work in userspace. Mostly this is comprised of three
types of changes:

- Add a few new methods to replace stuff like p_find(), CPU_INFO_FOREACH.

- Use db_read_bytes() instead of accessing kernel structures directly,
  and similar changes.

- Add ifdef _KERNEL where the above hasn't been done, and an XXX comment.
2009-03-07 22:02:16 +00:00
ad
09e83b297e Expose more stuff if _KMEMUSER is defined. 2009-03-07 21:59:25 +00:00
ad
5b6c66b01e The XEN2 kernels are no more. 2009-03-07 21:35:10 +00:00
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