Commit Graph

199229 Commits

Author SHA1 Message Date
njoly 9c24a94932 Add missing quotes. 2011-03-21 17:09:09 +00:00
joerg 6133b91485 Update LLVM/clang snapshot. This brings much improved support for
--sysroot and a cross-compiling toolchain.
2011-03-21 16:50:12 +00:00
pooka dc8b381a32 update copyright 2011-03-21 16:41:27 +00:00
pooka 23bbd0e078 Update copyright statements.
no functional change.
2011-03-21 16:41:08 +00:00
pooka 056c4b30fa remove historic test 2011-03-21 15:51:34 +00:00
pooka 20c88ef126 this was moved to usr.bin ages ago 2011-03-21 15:47:53 +00:00
jruoho 3ce23e1c1e Use a better width for the list. 2011-03-21 15:35:21 +00:00
njoly 6f070d3570 Add missing quotes. 2011-03-21 15:04:18 +00:00
tnozaki 80356df9b8 1. fix PR/44455, nonprintable character doesn't show hex-visual
under big endian.
2. ":set octal" with nonprintable character causes nbwcurses move error.
3. moving (big)words by wW/eE/bB can't handle non-ascii characters.
4. toggle uppercase/lowercase by ~ can't handle non-ascii characters.
5. don't feed CHAR_T(=wchar_t) to is* function directly.
   is* funcs with over UCHAR_MAX value may cause undefined behavior.
   some ctype implementation(such as FreeBSD) return unexpected
   result(same result as isw* func).
6. using non-ascii digit character with count/line number of ex/vi
   command may causes unexpeced result.
2011-03-21 14:53:02 +00:00
christos 374ecd4b4c more de-linting. 2011-03-21 12:53:50 +00:00
joerg ad65a463d1 Include bsd.own.mk before making decisions based on mk.conf. 2011-03-21 05:15:18 +00:00
joerg ff53df718a Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.
2011-03-21 05:09:33 +00:00
christos a23ced05b4 fix some lint on i386 2011-03-21 04:52:09 +00:00
jruoho e1897fd6ba Fix xref; security(8) -> security(7). 2011-03-21 04:42:50 +00:00
joerg 97e154c924 --with-clang-resource-dir is no longer needed 2011-03-21 02:10:10 +00:00
mrg 4f892d6c12 enable pci@pryo@mainbus and ebus@mainbus attachments.
pryo still isn't fully working, but i'm able to talk to disk and com
properly.  bge, ohci/ehci, aceride and wm (pcie card) interrupts
are not working yet.
2011-03-20 23:31:36 +00:00
christos 3f17bd0345 import latest 2011-03-20 23:19:35 +00:00
rmind ccfaf6e414 Optimise mutex_onproc() and rw_onproc() by making them O(1), instead
of O(ncpu) for adaptive paths.  Add an LWP destructor, lwp_dtor() with
a comment describing the principle of this barrier.

Reviewed by yamt@ and ad@.
2011-03-20 23:19:16 +00:00
christos a46656e6ee Add ld formats for the unit-tests. 2011-03-20 23:16:07 +00:00
christos 61e56760bc Merge the new gdtoa: Note that the built-in tests fail the same way as with
the old gdtoa.
2011-03-20 23:15:35 +00:00
mrg f4a9b0b1e6 re-add most of the pryo-supporting code, and some general clean up:
- handle setting tsb size in the ptsb via IOMMU_TSBSIZE_IN_PTSB (partly from
  openbsd)
- fix IDB_INFO for systems without a STC that fault on accesses to the
  flush register (like pyro)
- move iommu_reset() to the end of iommu_init()
- use IOMMUREG_WRITE() in a few places
- add a missing membar_lookaside() (from openbsd)
- if pmap_extract() on the flush buffer fails, disable flushing (from openbsd)
- flush the pyro-style iommu when IOMMU_FLUSH_CACHE is set (partly from openbsd)
- clear up a bit of debugging code so it spew a little less (sometimes you will
  get kernel lock spinouts due to long scrolling printfs)
- use __func__ in several places
2011-03-20 21:26:36 +00:00
mrg 371219c783 add pci@pryo@mainbus and ebus@mainbus support. 2011-03-20 20:55:46 +00:00
christos 7ee5629d5b add a stdio neutral getline/getdelim implementation. 2011-03-20 20:48:57 +00:00
mrg 9117b6a117 remove pyro_xir(). we don't have the MD support for it (yet?).
clean up some debug code.  clean up the DPRINTF() code, and expand
the interrupt mapping debug code to match schizo and psycho.
set IOMMU_TSBSIZE_IN_PTSB, and if oberon, IOMMU_FLUSH_CACHE.
disable the STC explicitly.
2011-03-20 20:48:36 +00:00
mrg 817ca0ac3d add a new is_flags member to strut iommu_state. add two flags:
IOMMU_FLUSH_CACHE     - extra flushes needed for some pyro
IOMMU_TSBSIZE_IN_PTSB - different ptsb assignment for pyro

partly from openbsd.
2011-03-20 20:47:10 +00:00
mrg a38cbfb289 enable the tomatillo iocache.
garbage collect struct iommureg_schizo and use struct iommureg2.
2011-03-20 20:43:34 +00:00
mrg bebacd2c9f define 'struct iommureg2', that includes the full set of regs for the
schizo and pyro iommu's.  use these in IOMMUREG().

add back IOMMUREG_READ() and IOMMUREG_WRITE() macros.
2011-03-20 20:42:06 +00:00
mrg f24c5fa4a4 remove unnecessary iommuvar.h and psycho{reg,var}.h includes. 2011-03-20 20:40:22 +00:00
plunky 0e26bab8bd provide more informative error messages 2011-03-20 19:46:13 +00:00
tsutsui 73969d32cf Add usb_dma attribute for DMA capable USB host controllers
and specify that usb_dma attribute to dev/usb/usb_mem.c.

usb_mem.c uses bus_dma(9) for DMA memory allocation,
but non-DMA capable USB host controllers like slhci(4)
doesn't need them at all, and some ports don't bother to
prepare MD bus_dma(9) implementation (yet).

Discussed on current-users
 http://mail-index.NetBSD.org/current-users/2011/03/13/msg015995.html
and usb_dma attribute is suggested by bouyer@.
Tested by kiyohara@ on mmeye with slhci at pcmcia.
2011-03-20 17:54:02 +00:00
tsutsui 56293e3413 Move MALLOC_DEFINE()s from usb_mem.c to usb_subr.c.
usb_mem.c provides functions for DMA memory allocation
that is required by DMA capable host controllers only,
but MALLOC_DEFINE() isn't DMA specific and could be required
by any USB drivers.

Discussed on current-users.
2011-03-20 17:38:11 +00:00
tsutsui 69d595d91e Shrink more options, file-systems and device. 2011-03-20 17:32:19 +00:00
phx e821698c19 More networking options. 2011-03-20 17:10:46 +00:00
jruoho 214b65a53f Now that this is a generic page, clarify the AUTHORS section a little. 2011-03-20 13:07:38 +00:00
phx c04d0174cc Use sysctl-node machdep.prodfamily to decide about the kernel to install and
to fix the console speed in /etc/ttys.
2011-03-20 12:43:40 +00:00
phx f376dd1d49 Added missing devices: usb, sysmon, altq 2011-03-20 12:40:58 +00:00
bouyer 6d537d7313 Fix use-after-free. Discovered by running tests with MALLOC_OPTIONS=J
(should this be the default for tests ?), pointed out by njoly@
2011-03-20 12:36:14 +00:00
hannken fbf9a016fe When extending a file, either by truncating or by writing past EOF make
sure the unallocated remainder of the last page gets zeroed.

Detected by fsx.
2011-03-20 12:21:28 +00:00
bouyer 875bb8e6c3 initialise memory allocated for uquot_user_hash & uquot_group_hash.
Pointed out by Nicolas Joly.
2011-03-20 11:41:24 +00:00
martin 56d78e2532 Add /usr/bin/getopt, it is needed by /usr/mdec/binstall.
Noticed by Jaime Fournier.
2011-03-20 09:04:53 +00:00
ahoka ab7aeea36d Fix markbad command 2011-03-20 06:10:27 +00:00
nonaka cf8c061385 if poll card detect is enabled, don't show "couldn't enable card". 2011-03-20 03:02:48 +00:00
nonaka 40ea0d961b added ld0 for SD/MMC. 2011-03-20 03:00:56 +00:00
phx ddf0053263 The DSM-G600 U-Boot is so restricted that there is no possibility to pass
any bootargs. So we will just do the default multiuser boot from wd0: when
altboot was started together with a Linux initrd image.
2011-03-20 02:07:05 +00:00
christos 3e812ebec1 don't need these and they break the build 2011-03-19 21:26:02 +00:00
hannken d8c44cec40 Remove a vnode reference leak from msdosfs_rename. Release tdvp if either
doscheckpath() or relookup() fails.

Adjust test fs/vfs/t_vnops.c and remove the link count test for msdos.

Fixes PR #44661
2011-03-19 20:05:21 +00:00
phx fcc4672d90 DLink DSM-G600 IDSEL-14 (USB) needs special handling: Pin A is mapped to
EPIC-IRQ 1, but Pin C must be mapped to IRQ 2.
2011-03-19 19:54:02 +00:00
jakllsch 07bc3e6b39 Fix typo, adjust less list address. 2011-03-19 17:12:12 +00:00
christos 185969dd49 from www.netlib.org 2011-03-19 16:26:36 +00:00
jakllsch 5ed27c5e1e Add announce mailing list address for less. This and previous commits changes
prompted by Snader_LB.
2011-03-19 16:10:16 +00:00