Commit Graph

178570 Commits

Author SHA1 Message Date
mrg b0c8dd2fc3 add clientwin.c, needed by newer packages. 2009-03-09 07:07:19 +00:00
nonaka 89a2df757d fix compile failure when PGALLOC_VERBOSE is defined. 2009-03-09 07:00:26 +00:00
apb a599e86f4b Add "-", "_", and "A-Z" to the set of allowed characters in the
result from `uname -p`.  We already have a platform with an underline
("x86_64"), and the other chars seem harmless.
2009-03-09 06:25:51 +00:00
mrg d2ea53a056 include <stdbool.h> if not _KERNEL, and don't include kauth.h if _KERNEL.
now crash builds on i386.
2009-03-09 06:07:05 +00:00
dholland 265bf6cfdf sprintf -> snprintf 2009-03-09 04:38:39 +00:00
tnozaki c7281b0c86 fix static linking setlocale(3) problem, reported by Aran Clauson
at current-users, thanks a lot!
2009-03-09 02:22:25 +00:00
tron ffbff10ba1 Use larger buffer for sending and receiving a file descriptor over a
UNIX domain socket, based on an example program by Michael van Elst.
This fixes support for using milters (Sendmail Mail Filters) with
Postfix under at least NetBSD/amd64.
2009-03-08 21:52:10 +00:00
christos ea6a01a6c4 consistency in password prompt setting code (and with ssh) 2009-03-08 19:38:03 +00:00
christos df54e2033e remove obsolete comment. 2009-03-08 19:17:11 +00:00
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