199240 Commits

Author SHA1 Message Date
enami
df36fea7b7 Don't use #endif where #else is expected. 2011-03-21 23:37:42 +00:00
christos
2b13247b7f pacify lint. 2011-03-21 22:33:46 +00:00
christos
a9f77bad7a Add Emin for the vax. Need to check 2011-03-21 22:33:29 +00:00
rmind
180866861e cpu_need_resched: make AST if no __HAVE_PREEMPTION. Change has no effect
since MP option is mandatory on x86, but makes code more logical.
2011-03-21 22:25:13 +00:00
matt
271ad088e1 Clean up setting ECN bit in TOS. Fixes PR 44742 2011-03-21 20:39:32 +00:00
matt
73d0699457 Fix a bug in onchip_intr_name_lookup 2011-03-21 19:55:04 +00:00
christos
ab9f1e36c8 fix vax typo. 2011-03-21 19:46:41 +00:00
jdc
8856d368c4 Correct "832x624x74".
Update comments.
Reverse iteratiion, so that modes are in established timing order.
2011-03-21 19:34:27 +00:00
jdc
9293120def Clarify vrefresh comment (no functional change) 2011-03-21 19:32:26 +00:00
jdc
3b22b64d85 Regenerate for:
Add EDID established timing modelines for 720x400x70 and 720x400x88
2011-03-21 19:29:54 +00:00
jdc
dd3ad2df66 Add EDID established timing modelines for 720x400x70 and 720x400x88 2011-03-21 19:28:37 +00:00
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