247050 Commits

Author SHA1 Message Date
cherry
7aac501b66 uvm_extern.h is has both a _KERNEL only, and a non _KERNEL only API.
Since we unconditionally expose the uvm_physseg.h API via uvm_extern.h
right now, and since uvm_physseg.h uses a kernel only datatype, viz
psize_t, we restrict exposure of uvm_physseg.h API exposure to kernel
only.

This is in conformance of its documentation via uvm_hotplug(9) as a
kernel internal API.
2016-12-24 19:21:29 +00:00
cherry
dac5688b8d Conform API use of uvm_hotplug(9) to documented behaviour:
When testing for an invalid uvm_physseg_t,
compare with UVM_PHYSSEG_TYPE_INVALID which is implementation agnostic.
2016-12-24 19:02:16 +00:00
cherry
2e9cf2b5f9 Tell mpc85xx about uvm_hotplug(9)
Should fix the evbppc build breakage.
2016-12-24 18:34:31 +00:00
cherry
3631b5f030 introduce evbppc pmap to the uvm_hotplug(9) API
Should fix build.
2016-12-24 18:07:31 +00:00
christos
ffa88d505d Add to lint flags for MKREPRO 2016-12-24 17:44:22 +00:00
christos
90c8a9f073 Add -R (source filename remapping) for MKREPRO 2016-12-24 17:43:45 +00:00
mlelstv
4eff3f7ab8 another physmem type change 2016-12-24 17:36:59 +00:00
cherry
dfb8e9c033 Use the correct page frame number to steal pages during boot.
Fixes the related sh3 kernel build breakage.
2016-12-24 17:18:00 +00:00
cherry
7a43b153e5 pass the bank handle to uvm_physseg_get_avail_start();
Should fix the acorn26 kernel build.
2016-12-24 17:11:31 +00:00
mlelstv
3ecac0ea7c add missing mutex/cv cleanup to error paths. 2016-12-24 16:39:55 +00:00
abhinav
842412540f Update the description of the -t option to bring it in sync with IEEE 1003.1 -2008.
The .SS field of the datetime argument of -t option can have range from 0 to 60
as per the 1003.1 2008 standard. POSIX has removed all mentions of double leap
seconds, therefore the allowed range of seconds is now [0,60].

Also, add an ENVIRONMENT section, as the interpretation of the datetime
argument in -t option depends on the TZ environment variable.

Add an xref for parsedate(3) in SEE ALSO.

ok wiz@
2016-12-24 15:49:18 +00:00
kamil
60b1976a76 Revert introduction of FIXME_PR_51139
This change introduced ABI incompatible change with older versions shipped
on NetBSD. This back out code that is currently not working correctly due
to TLS-based std::call_once implementation in GNU libstdc++.

Error when starting gnuchash:

/usr/pkg/lib/libwebkitgtk-1.0.so.0: Undefined symbol "_ZSt15__once_callable" (symnum = 1705)

PR 51139

Reported by <wiz>
2016-12-24 15:48:26 +00:00
riastradh
766531b9dd Guarantee no zero-size uao/kmem allocations via ttm.
It may be that all callers guarantee no zero-size ttm objects, but I
can't prove that in five minutes of browsing callers.  Rather than
add a KASSERT, lacking proof, we'll add a warning message so that if
it does happen then it happens noisily, but we'll also prevent the
bad consequences of passing zero into uao_create by rounding up to a
harmless nonzero allocation.

XXX pullup-7
2016-12-24 15:46:50 +00:00
maya
ab54d6b920 as a stopgap fix make all of uvm_physseg.h kernel-only. this file uses
paddr_t which isn't available to userland, breaking builds that use uvm
headers, like devel/libuv on pkgsrc.

pointed out by Carsten Kunze on pkgsrc-users.

ok riastradh
2016-12-24 15:42:05 +00:00
maya
177f6a3a05 don't use systm.h header, it's not available to userland.
as a side effect, this fixes the evbarm64 build, which was failing due
to a declaration of psize_t physmem in systm.h, while psize_t is
kernel-only.

ok riastradh
2016-12-24 15:23:06 +00:00
abhinav
9e3eb1e837 Add a missing .El, which is causing the rest of the text being
rendered indented. Patch provided by fox on IRC.

While there, remove a .Pp before .Bl.
2016-12-24 14:04:10 +00:00
skrll
eeb9bdf31e Call cv_broadcast with interlock held as per condvar(9) 2016-12-24 11:51:33 +00:00
skrll
fac99052c8 Fix VERBOSE_INIT_ARM build 2016-12-24 09:19:23 +00:00
abhinav
93422f00ef Remove xref to signal(7).
As noted by wiz, it is probably not a good idea to mention signal(7) in SEE ALSO
every time a signal name is used in a man page.
2016-12-24 08:26:57 +00:00
wiz
5aed204344 Fix SYNOPSIS. Fix xref. Avoid Xr for itself. 2016-12-24 08:05:47 +00:00
abhinav
d2ed5b2faa Fix a sentence
Make some makrup improvments to make mandoc -Tlint happy
Sort xrefs in SEE ALSO
2016-12-24 07:22:41 +00:00
mrg
e640aa5924 create sysmon nodes, so wdogctl works. 2016-12-24 07:07:06 +00:00
macallan
a8b2582939 avoid accessing condition variables which belong to a scsibus before actually
attaching the scsibus
now my SS20 boots again
2016-12-24 06:04:50 +00:00
kamil
38743855a4 Add new entry in TODO.ptrace
New entry:
 - add ATF tests for SIGCHLD
2016-12-24 05:43:31 +00:00
abhinav
96415509bf Fix a sentence. 2016-12-24 05:40:49 +00:00
abhinav
a4dca42e82 As per C99 the range of values for the %S format specifier is [0,60]
rather than [0,61]. The standard has removed mention of double leap seconds.
The standard has give the following rationale in the time.h man page:

"The range [0,60] seconds allows for positive or negative leap seconds.
The formal definition of UTC does not permit double leap seconds, so all
mention of double leap seconds has been removed, and the range shortened
from the former [0,61] seconds seen in previous versions of POSIX."
2016-12-24 05:33:51 +00:00
wiz
891f77d746 openssh-7.4 out. 2016-12-23 23:17:57 +00:00
christos
41f4de4258 Don't attempt to shorten resolved path names (via realpath) because it could
lead to inconsistencies between different builds.
2016-12-23 21:11:45 +00:00
nat
264caa09e9 Simplify. Handle draining of vc[0] differently.
Addresses PR kern/51710 audio playback works only once.
2016-12-23 21:01:00 +00:00
mrg
75ff26e817 note mips64 n64 binary fixes. 2016-12-23 20:49:02 +00:00
scole
3ac5d95c18 make kernel compilable after recent uvm changes 2016-12-23 17:26:43 +00:00
cherry
b94dbe7b54 balloon(4) can now use uvm_hotplug(9)
Do this.
2016-12-23 17:01:10 +00:00
maya
31a42b23da add SCTP_DEBUG to ALL kernels 2016-12-23 11:27:10 +00:00
maya
4a3120403d Remove extraneous parentheses. no functional change
Appeases clang
2016-12-23 11:11:28 +00:00
maya
90e99e5963 more psize_t physmem fallout. remove conflicting types. 2016-12-23 10:48:12 +00:00
mrg
0537635d0c for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl.  systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
2016-12-23 10:19:57 +00:00
skrll
8e2dc22e79 Fix uvm_page_physget_freelist so that it actually performs the two passes
it mentions.
2016-12-23 09:36:55 +00:00
maya
5aa4cebe72 Use PRIxPSIZE when printing psize_t.
Fixes i386 kernels build.
2016-12-23 09:24:57 +00:00
skrll
1547d2d3eb PRIxPHYSMEM -> PRIxPHYSSEG to fix the build 2016-12-23 09:18:02 +00:00
skrll
b9250ac781 PHYSMEM -> PHYSSEG to fix build 2016-12-23 09:16:46 +00:00
skrll
cee8cc2148 Whitespace 2016-12-23 08:53:56 +00:00
maya
6e0b406276 remove conflicting declarations of physmem. we want it to be psize_t 2016-12-23 08:09:54 +00:00
cherry
a9cac8fa8f Omitted assigning handle return value for the case:
(VM_PHYSSEG_STRAT == VM_PSTRAT_RANDOM)

Fix this.
2016-12-23 07:42:32 +00:00
maya
f08e73106c Remove conflicting declaration of physmem 2016-12-23 07:40:05 +00:00
cherry
3b1622fa3c "Make NetBSD great again!"
Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.
2016-12-23 07:15:27 +00:00
mrg
20c21f9f52 in getpcblist_sysctl() if sysctlnametomib() fails, return NULL and
set *len = 0, rather than bailing.  now "netstat" doesn't give up
early on kernels without INET6.
2016-12-23 06:22:00 +00:00
abhinav
93864c5433 Complete a sentence
and replace full stop with a comma at one place as the sentence wasn't finished
2016-12-23 06:01:41 +00:00
mrg
65d0ad5f99 add the member name to an error string so we know what object failed
while being requested.
2016-12-22 22:41:02 +00:00
kamil
b837326c3b The cgd(4) module requires des and blowfish symbols
This has been exposed with the MODULAR kernel.

kobj_checksyms, 979: [cgd]: linker error: symbol `BF_set_key' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_key_sched' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_ede3_cbc_encrypt' not found
WARNING: module error: unable to affix module `cgd', error 8

Reviewed by <riastradh>
2016-12-22 20:57:33 +00:00
abhinav
6672db53ac Remove trailing comma at the end of the last .Nm entry in the NAME section 2016-12-22 17:39:28 +00:00