188470 Commits

Author SHA1 Message Date
tron
ab396280fe Disable stack protection warnings for sources which use dynamically
sized stack buffers.
2010-02-24 12:51:05 +00:00
kiyohara
5401ccaba6 Fix porting miss.
However this change in between #ifdef notyet and #endif.
  Thanks for fukaumi.
2010-02-24 12:29:47 +00:00
tron
00ff80736e Include "bsd.own.mk" before checking "MKDTRACE" to allow setting it
in "/etc/mk.conf".
2010-02-24 12:18:37 +00:00
tron
235f29a8f3 Disable stack protection warnings for "zdb_il.c" which uses a dynamically
sized array on the stack.
2010-02-24 11:56:35 +00:00
pooka
bc1cf39b94 Add -h, which makes output of bytes counts "humanized" (e.g. -bih)
(netstat had -h some 15 years ago, but since then it has been just
a fancy way of calling usage())
2010-02-24 11:00:27 +00:00
tron
2897183305 Fix build of the "dtrace" kernel module. 2010-02-24 10:18:19 +00:00
mrg
321846985a check for TLB_V bit for valid tte entries, not against zero.
KASSERT() the 3rd call to pseg_get() in pmap_page_cache() like the other 2.
2010-02-24 10:11:53 +00:00
mrg
becc426fb8 when handing back page table pages to UVM, flush them from the dcache
on all CPUs.

idea from skrll@, and makes my disk-based SB2000 stable.

tested on U60, SB2000 and SB2500.
2010-02-24 09:49:36 +00:00
wiz
506778b851 New sentence, new line; remove trailing whitespace. 2010-02-24 08:22:58 +00:00
skrll
243d3947d4 s/printf/db_printf/ in a few places. 2010-02-24 06:38:53 +00:00
skrll
6a02363785 Typo in comment 2010-02-24 06:34:55 +00:00
uebayasi
f736e76fa5 uvm_fault_upper_lookup, uvm_fault_upper_neighbor: There is no point to call
pmap_update() without calling pmap_enter().

(Probably calling only once after loop (as done in uvm_fault_lower_lookup())
is enough.  If done so, other threads see entered neighbor pages as reflected
a little latter.)
2010-02-24 06:18:19 +00:00
mrg
d098c87db8 fix MULTIPROCESSOR build for previous. 2010-02-24 06:05:35 +00:00
uebayasi
efa838c11f Minor clean up. 2010-02-24 05:26:28 +00:00
uebayasi
a9659a6dfb Revert a thinko. 2010-02-24 05:00:55 +00:00
mrg
87eb5c0788 move the tlb flush routines into cache.h to avoid machine/pmap.h polution. 2010-02-24 04:48:28 +00:00
uebayasi
3bf5a87956 Slightly clean up uvm_fault() code path after pmap_enter(). Now tasks
needed for page cache are concentrated in own functions (uvm_fault_*_done()).
2010-02-24 04:32:58 +00:00
uebayasi
79440fb3fd Record if "promote" is done in UVMHIST. Do it for "upper" fault too. 2010-02-24 04:20:45 +00:00
uebayasi
b8168569e9 Merge some indirect "lower" fault handlers back. Prompted by rmind@. 2010-02-24 04:18:09 +00:00
mrg
07a4d49e0e - re-introduce sp_tlb_flush_pte() and sp_tlb_flush_all() that call
the right USI/USIII version.
- define tlb_flush_pte() in terms of sp_tlb_flush_pte() for the
  !MULTIPROCESSOR case

this centralises some CPU_IS_USIII_UP() tests.
2010-02-24 01:58:52 +00:00
jym
7bf36164a7 - Use ctob() instead of ptoa() to obtain physical addresses from frame
numbers. Using ptoa() will cast to vaddr_t, which might no be adequate
for architectures where sizeof(paddr_t) > sizeof(vaddr_t) (like i386 PAE).

- small fix inside AGP heuristics to avoid masking high order bits for
systems with more than 4GB.

Reviewed by bouyer@.

See also http://mail-index.netbsd.org/tech-kern/2010/02/22/msg007373.html
2010-02-24 00:01:11 +00:00
mrg
49f69a7e5c oops. don't call sp_tlb_flush_pte_usiii() on USI/USII. 2010-02-23 22:52:21 +00:00
darran
eda764aaf5 DTrace: remove kern_dtrace.c since it is no longer used. (Its functions
are inlined in dtrace_bsd.h).
2010-02-23 22:22:29 +00:00
darran
0311cbad04 DTrace: remove kern_dtrace.c, no longer used 2010-02-23 22:21:25 +00:00
darran
383b7f700b DTrace: Get rid of the KDTRACE_HOOKS ifdefs in the kernel. Replace the
functions with inline function that are empty when KDTRACE_HOOKS is not
defined.
2010-02-23 22:19:27 +00:00
bouyer
d3b2fb89de Move ahci_channel_start() after BSY has cleared (what seems to matter
here is not touching SError while BSY is asserted). Fix random
behavior (serial console corruption/misfunction, misbehavior of USB
controllers, crasy interrupts crashing the Xen hypervisor, ...)
of Intel ESB2 controller with some brand of hitachi drives.
2010-02-23 21:38:36 +00:00
mlelstv
b4d69db7b5 Use correct offset to block number calculations.
Also change access to filesystem blocks to be done by fragment instead
of by physical block. Fragments are the fundamental blocks of the
filesystem.

For a theoretical filesystem that accesses the disk in smaller units
than stored in mp->mnt_fs_bshift, the assumption might be wrong. But
this will also break other subsystems. The value mp->mnt_dev_bshift
which formerly represents the physical sector size is currently only
virtual in NetBSD (always DEV_BSIZE).
2010-02-23 20:51:25 +00:00
drochner
7abc5be2ce adjust INTERP path for NetBSD (needed eg for -static -pie) 2010-02-23 20:42:40 +00:00
mlelstv
6d6d11f709 Replace individual queries for partition information with
new helper function.
Use this information to query physical sector sizes for WAPBL
instead of hardcoded defaults.
No longer limits physical sector sizes to 512 bytes.
2010-02-23 20:41:41 +00:00
drochner
452834f264 misc fixes and improvements:
-call setlocale(LC_CTYPE, "") before nl_langinfo(CODESET) if the
 locale settings is (still) at "C" - otherwise the CODESET doesn't work
-fix the type of the WACS_* symbols -- this needs to be cchar_t*
-add safeguards where the return value of wcwidth() is used for
 loop counters or indexing -- it can be -1
-use more common code in the widechar support case -- in particular
 let the wchar functions do the work even if chtype ones were called
-implement wcursyncup/wsyncup/wsyncdown
-somewhat experimental: allow ACS_* variables to refer to WACS_*
 table entries -- this way, programs using the old chtype using API
 can use UTF8 line drawing on terminals which support UTF8 but not
 ACS switching
-fix some logics bugs in UTF8 recognition and ALTCHARSET handling
2010-02-23 19:48:26 +00:00
dyoung
d2fb16224c Remove unused functions pci_disable_retry() and cardbus_disable_retry(). 2010-02-23 19:28:00 +00:00
jnemeth
c686421e4b PR/42874 - Henning Petersen -- misplaced } 2010-02-23 16:41:01 +00:00
jnemeth
b006902069 PR/42873 - Henning Petersen -- missing ) 2010-02-23 16:35:06 +00:00
pooka
546515e65b * abort correct endpoint in bulk xfers
* actually free memory in the freem method (well, usually stick
  it to the usb freelist, but same thing)
2010-02-23 14:05:04 +00:00
cegger
14bab12404 check for svm feature flags if cpuid function 0x8000000a is available. 2010-02-23 08:46:33 +00:00
skrll
4931e61023 Mark each object as printed as visited and then print.
Fixes PR/42811.

As a side effect the libraries are printed in, imo, a better order.
2010-02-23 08:23:24 +00:00
martti
f5c6a0c8fd Note that the physical interfaces must not have any (IPv4 or IPv6) address
before attaching them to agr.
2010-02-23 07:02:23 +00:00
cegger
71e3b44a06 dtrace kernel hooks
ok darran@
2010-02-23 06:27:40 +00:00
mrg
fb94e19ed4 change print_dtlb() and print_itlb() to take (tlb_size, tlb_selectbits).
for cheetah, print the 3 dtlb's and 2 itlb's.

now "mach dtlb" and "mach itlb" work for cheetah.
2010-02-23 05:32:08 +00:00
mrg
9b94dc89ff add some bits to set to access all the cheetah dtlb/itlb's. 2010-02-23 05:24:50 +00:00
agc
156f140565 fix a bug in verifying memory.
add two examples to the netpgp(1) manual page outlining how to sign
and encrypt via a pipeline, and how to decrypt and verify/cat using a
pipeline.
2010-02-23 01:24:44 +00:00
cegger
6db342e072 include opt_xen.h 2010-02-23 00:23:36 +00:00
pgoyette
3bb3920ad0 Correct calculation and display of SDR DRAM speed. From OpenBSD.
Fixes PR kern/42736
2010-02-23 00:13:06 +00:00
joerg
839c0958b5 PR 36988: ISO C99 mandates that HUGE_VAL, HUGE_VALF, HUGE_VALL and
INFINITY are constant expressions.

Use the GCC builtins if possible to implement them.
2010-02-23 00:03:09 +00:00
jym
7017a033c7 Remove a duplicate entry for PTE_BASE.
While here, introduce PDP_SIZE and PDE_SIZE. They will be used by asm code
to make it more generic (PAE related).
2010-02-22 23:52:17 +00:00
roy
fde317d2b1 libterminfo can now compile a single terminfo description which allows
$TERMINFO to be a terminfo description as well as a file reference.

This enables the user to modify the terminfo description on read-only
media.
2010-02-22 23:05:39 +00:00
mrg
24e08ad36b move {dump,print}_[id]tlb() into a separate file. 2010-02-22 22:28:57 +00:00
skrll
9882ad0204 Deal with PA2.0 cache move-in rules by purging the TLB as well as
flushing/purging the cache.
2010-02-22 21:32:55 +00:00
wiz
1672306ed2 Punctuation nit. 2010-02-22 20:13:01 +00:00
wiz
959f293b16 Use standard section headers and mark up author with An. 2010-02-22 20:12:23 +00:00