Commit Graph

277424 Commits

Author SHA1 Message Date
thorpej
bcd1eb151d Update for proplib(3) API changes. 2020-06-07 00:12:00 +00:00
ad
354b08d238 uvmexp.ncolors being used where uvmexp.colormask wanted 2020-06-06 23:02:25 +00:00
thorpej
aebbed3d12 Update for proplib(3) API changes. 2020-06-06 22:33:23 +00:00
ad
44b8317b39 Correction to previous - set VI_PAGES correctly. 2020-06-06 22:31:40 +00:00
thorpej
bde2909f86 Update for proplib(3) API changes. 2020-06-06 22:28:07 +00:00
ad
3ce4840c59 lwp_exit(): add a warning about (l != curlwp) 2020-06-06 22:26:47 +00:00
ad
b81fe3a293 Adjust previous. In the condvar case the wakeup might already have been
eaten.
2020-06-06 22:23:59 +00:00
thorpej
b1bbd8163d Correct a deprecation warning. 2020-06-06 22:23:31 +00:00
joerg
001816e78d sun2 and vax have no native TLS support, so avoid using modern jemalloc
as it has a couple of nasty race conditions when using TSD.
2020-06-06 22:06:42 +00:00
thorpej
9bc38ca6a6 Don't use deprecated proplib APIs (in the old "basic" test case). 2020-06-06 21:45:07 +00:00
thorpej
a792b8435e Improvements to the problib(3) API:
==> Provide a much more complete set of setters and getters for different
    value types in the prop_array_util(3) and prop_dictionary_util(3)
    functions.

==> Overhaul the prop_data(3), prop_number(3), and prop_string(3) APIs
    to be easier to use and less awkwardly named,  Deprecate the old
    awkward names, and produce link-time warnings when they are referenced.

==> Deprecate mutable prop_data(3) and prop_string(3) objects.  The old
    APIs that support them still exist, but will now produce link-time
    warnings when used.

==> When the new prop_string(3) API is used, strings are internally
    de-duplicated as a memory footprint optimization.

==> Provide a rich set of bounds-checked gettter functions in and a
    corresponding set of convenience setters in the prop_number(3) API.

==> Add a new prop_bool_value(3) function that is equivalent to
    prop_bool_true(3), but aligned with the new "value" routines in
    prop_data(3), prop_string(3), and prop_number(3).
2020-06-06 21:25:59 +00:00
wiz
55eb855c31 Use more markup. 2020-06-06 20:38:00 +00:00
wiz
c65439fe2c Reduce macro arguments. 2020-06-06 20:30:23 +00:00
wiz
5686c270c9 Remove trailing whitespace. 2020-06-06 20:28:42 +00:00
thorpej
319f97df00 Relax the KASSERT() in pcu_discard_all() to allow non-curlwp if it is
in LSIDL state, which can happen if the new LWP is exiting before it's
ever run, e.g. if an error occurs in _lwp_create(2).
2020-06-06 18:13:01 +00:00
thorpej
9dd0cf5370 Add a test case to ensure that _lwp_create() fails with the
expected error code when a bad new-lwp-id pointer is passed.
2020-06-06 18:11:21 +00:00
nia
fcbb6d8f6a FTP 2020-06-06 17:39:35 +00:00
thorpej
30a26bde0a Make libsa's vsnprintf() work as expected when passed a NULL
destinatino buffer.
2020-06-06 15:45:47 +00:00
simonb
c012787efc Increase readability by reducing #ifdef using a macro. 2020-06-06 14:30:44 +00:00
gson
c2d905cb60 Conditionally enable the formerly #if'ed-out code to use the
WRITE_REGION_1 command for writing blocks of data to the device.
This is to address a performance issue where "ifconfig run0 up" would
take as long as 20-30 seconds when using a UHCI or OHCI host
controller due to the large number of control transfers performed by
the driver in combination with the inability of those host controllers
to perform multiple control transfers per USB frame.  Limit the
transfers to 64 bytes as in the corresponding #if'ed-out code in
FreeBSD.  Currently only enabled for mac_ver 0x5390 as it is the only
version tested so far.
2020-06-06 13:53:43 +00:00
tsutsui
c332e97e6f Fix ews4800mips example. Its raw partition is rsd0p, not rsd0c. 2020-06-06 10:22:45 +00:00
skrll
b7d6af89fd KNF 2020-06-06 09:03:59 +00:00
skrll
648bd77418 More __BITS. NFCI. 2020-06-06 08:56:30 +00:00
maxv
0f48bfb53e If the frame is not aligned, leave right away. This place probably needs
to be revisited, because %rbp could easily contain garbage.

Reported-by: syzbot+ecb40cf7f8acc102c29b@syzkaller.appspotmail.com
2020-06-06 07:03:21 +00:00
maxv
502296eab3 kMSan: re-set the orig after pool_cache_get_slow(), using the address of
the caller of pool_cache_get_paddr().

Otherwise the orig is just pool_cache_get_paddr(), and that's not really
useful for debugging.
2020-06-06 06:42:54 +00:00
roy
c3293770af terminfo(5): Numbre -> Number
Thanks to yukonbob
2020-06-05 22:08:10 +00:00
kamil
0d69ea471e Change const unsigned to preprocessor define
Fixes GCC -O0 build with the stack protector.
2020-06-05 21:48:03 +00:00
sevan
b56f55278d IME, SCIM 2020-06-05 19:45:51 +00:00
sjg
39bf2cb2a2 make: add :Or for reverse sort
:Or is more efficient than :O:[-1..1]

Reviewed by: christos
2020-06-05 19:20:46 +00:00
sjg
62b57d3e75 cached_stats: do not conflate stat and lstat
While make uses lstat quite rarely, it does so for reason.
Avoid confusing the results.

Reviewed by: christos
2020-06-05 18:03:59 +00:00
maxv
9259199775 Register eight vHCI buses, and use separate KCOV mailboxes for them. 2020-06-05 17:20:56 +00:00
christos
252a722447 Add support for npfd_flags 2020-06-05 17:10:44 +00:00
christos
481219a259 fix wrong size addition (Andrew Cagney)
XXX: This file is nearly identical with /usr/src/sys/netipsec/key_debug.c
and should be merged.
2020-06-05 15:19:08 +00:00
rin
a3321772bf Check x > 0 *before*, not after, using (x - 1) as index of array. 2020-06-05 12:47:28 +00:00
nia
d06dd93f7d Remove more bogus tests for 64-bit i386 and SuperH.
These are always false.
2020-06-05 11:16:15 +00:00
simonb
5b6317c60e Rework CVMSEG LM usage a litte:
- remove unused LM slots
 - use #defines for defining the size of CVMSEG LM users

XXX: Need to dynamically set CVMMEMCTL[LMEMSZ] during startup so we can
     both adapt to any future increase in CVMSEG LM usage and not waste
     any more L2 that we need to.
XXX: Still need to move general IOBDMA conf to a different (new?) header.
2020-06-05 09:18:35 +00:00
skrll
d78befcef4 Replace calls to usbd_device2interface_handle in u3g_match() and
u3g_attach() with the interface already passed in uiaa->uiaa_iface and
store the interface in sc->sc_iface for later use by u3g_open()/

Also skip Direct IP interfaces in u3g_match() to avoid potential side effects.

PR kern/55330
2020-06-05 08:02:32 +00:00
skrll
6c5683e6b5 Remove duplicated USB_VENDOR_SIERRA USB_PRODUCT_SIERRA_USB305 entry
PR kern/55329
2020-06-05 08:01:49 +00:00
simonb
c8c1c30fc9 Now that we don't zero out the second link in the U-boot bootmem
descripter, use that to configure free memory.
2020-06-05 07:17:38 +00:00
knakahara
f26b5d9d11 Refactor a little and follow new format of "npfctl list".
Fix the below ATF failures.
    - net/if_ipsec/t_ipsec_natt:ipsecif_natt_transport_null
    - net/if_ipsec/t_ipsec_natt:ipsecif_natt_transport_rijndaelcbc
    - net/ipsec/t_ipsec_natt:ipsec_natt_transport_ipv4_null
    - net/ipsec/t_ipsec_natt:ipsec_natt_transport_ipv4_rijndaelcbc

ok'ed by ozaki-r@n.o, thanks.
2020-06-05 03:24:58 +00:00
hkenken
4197c34981 Fix indent. 2020-06-05 02:30:54 +00:00
hkenken
cc80092603 Fix KASSERT 2020-06-05 02:28:10 +00:00
skrll
4d4b2f24d4 Near complete conversion to __BITS 2020-06-04 20:54:37 +00:00
riastradh
7e265cbbd4 Add self-tests for 3des and blowfish too.
Nobody should use these on new disks but it is good to have them so
we don't break decrypting old disks.
2020-06-04 19:54:53 +00:00
riastradh
fa52a6a38d Call clts/stts in fpu_kern_enter/leave so they work. 2020-06-04 19:53:55 +00:00
skrll
74934b7c45 Consistent whitespace. Register defines are <tab> indented. Bits defines
for registers are <tab><space> indented.
2020-06-04 19:50:21 +00:00
simonb
f82533f369 Tidy up some ugly output from mips_page_physload() when a segment starts
and finishes in the same page.
2020-06-04 15:42:31 +00:00
nia
276f012c94 ACAB (worksafe variant) 2020-06-04 14:33:28 +00:00
nia
fbdd61721c ACAB 2020-06-04 14:09:54 +00:00
roy
08dd032c7f dhcpcd: re-obsolete the chroot sub dirs
Ordering matters - dhcpcd needs to be fixed before obsolete for postinstall
2020-06-04 14:08:16 +00:00