255198 Commits

Author SHA1 Message Date
skrll
f7d67b11fb Build fix (really this time) from Harold Gutch 2017-12-14 06:29:15 +00:00
ozaki-r
bbead959c0 Fix a bug that tries to psref_acquire ifa with a psref used before
This fixes ATF tests that started to fail by a recent change to psref.
2017-12-14 05:48:59 +00:00
ozaki-r
5b3be63e24 Protect ifp returned from route_output_get_ifa surely
An ifp returned from route_output_get_ifa was supposed to be protected
by a returned ifa; if the ifa belongs to ifp, holding the ifa prevents
the ifp from being freed. However route_output_get_ifa can return an ifp
to which a returned ifa doesn't belong. So we need to take a reference
to a returning ifp separately.
2017-12-14 05:47:45 +00:00
ozaki-r
5ff08fa39c Reorder some destruction routines in if_detach
- Destroy if_ioctl_lock at the end of the if_detach because it's used in various
  destruction routines
- Move psref_target_destroy after pr_purgeif because we want to use psref in
  pr_purgeif (otherwise destruction procedures can be tricky)
2017-12-14 05:46:54 +00:00
ozaki-r
2b3456ea00 Improve debugging functions
- Make psref_check_duplication check just if a given psref is on the list
  - It checked both psref and target
  - Suggested by riastradh@ some time ago
- Add psref_check_existence that checks a releasing psref is surely on the list
2017-12-14 05:45:55 +00:00
ozaki-r
45c59e4760 Spinkle __noinline to some non-performance-sensitive functions for debugging 2017-12-14 05:43:14 +00:00
sevan
9ec94f184e Add missing words beginning with 'm' from FreeBSD's copy of src/share/dict/web2. 2017-12-14 00:10:34 +00:00
sevan
f780b32b32 Add missing words beginning with 'l' and 'm' from FreeBSD's copy of src/share/dict/web2. 2017-12-13 23:42:04 +00:00
sevan
ae521d6fdc Add missing words beginning with 'h' to 'j' from FreeBSD's copy of src/share/dict/web2. 2017-12-13 22:39:10 +00:00
joerg
e378b48f30 Improve CFLAGS definition for clang. Use more tabs. 2017-12-13 21:52:55 +00:00
jmcneill
388e0209fe Fix regression introduced in r1.2 2017-12-13 21:37:10 +00:00
mlelstv
600397bd19 move offensive quotes per board@ 2017-12-13 21:11:27 +00:00
christos
40d865d4e8 Add bit definitions for flags so that route(8) can use them. 2017-12-13 17:43:10 +00:00
christos
97576db071 Use the definitions from the standard header files and replace homebrew
snprintb with the libutil one.
2017-12-13 17:42:44 +00:00
scole
6c3fadcafc add intr_string() stub for acpi_util.c:acpi_intr_string() so kernel will still compile 2017-12-13 16:50:46 +00:00
bouyer
03d3e06a2f Fixes for physical interrupts on Xen:
- do not cast int * to intr_handle_t *, they're not the same size
- legacy_irq is not always -1 for ioapic interrupts, test pic_type instead
- change irq2port[] to hold (port + 1) so that 0 is an invalid value
- add KASSERTs to make sure vect, port or irq values extracted from arrays are
  valid (or that they are invalid before write)
- for the !ioapic case, we still need to do PHYSDEVOP_ASSIGN_VECTOR and
  bind_pirq_to_evtch().

now XEN3_DOM0 boots again
2017-12-13 16:30:18 +00:00
jmcneill
8fe2aa7e52 Revert compressed uimg change, it is causing problems with overlapping
$kernel_addr_r vs. kernel load address.
2017-12-13 13:52:13 +00:00
mbalmer
366dbdcf2f Note Lua bugfix. 2017-12-13 13:03:23 +00:00
mbalmer
0f9874ac8b Apply a bugfix from lua.org/bugs,html:
lua_pushcclosure should not call the garbage collector when n is zero.
2017-12-13 13:00:14 +00:00
wiz
73ba6ee466 New sentence, new line. Fix xref. Sort SEE ALSO. 2017-12-13 12:12:35 +00:00
skrll
135f9c16fd Fix evbarm build - patch from Harold Gutch on port-arm 2017-12-13 11:37:37 +00:00
uwe
034a499654 Fix typo in flag name. We should probably just use IFFBITS string
that <net/if.h> defines.

PR bin/52815
2017-12-13 11:31:42 +00:00
maya
1db3fb5996 bsd-family-tree: update freebsd rcsid, too.
Reminded by wiz, thanks.
2017-12-13 11:17:54 +00:00
pgoyette
d54ad228bf Fix build for WD_SOFTBADSECT option. PR kern/52814
XXX No clue if this option actually works.  This fix just makes it
XXX compile without error.
2017-12-13 10:24:31 +00:00
maya
c1d8007e52 Catch up with hid.h header location change
Fixes macppc kernels build
2017-12-13 09:46:05 +00:00
rin
d4c8f2d859 Revert rev 1.4: fmtcheck(3) neglect unused trailing arguments as before.
"%d" is a valid format string with default format string "%d %s", etc.
2017-12-13 06:47:04 +00:00
rin
fd569112f9 Revert change made by rev 1.11; now, fmtcheck(3) does not complain about
unused trailing arguments as before.

See also discussion on tech-userland:
http://mail-index.netbsd.org/tech-userlevel/2017/12/07/msg011019.html
2017-12-13 06:43:45 +00:00
knakahara
09da2c224b Update the manual of wbsio(4). Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
2017-12-13 00:32:32 +00:00
knakahara
2f00003c5d Improve the error log message to use product name. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
2017-12-13 00:31:46 +00:00
knakahara
b13537d02d Add an option to enable GPIO function of wbsio. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
2017-12-13 00:29:02 +00:00
knakahara
b317ff9c1b Add Watchdog timer implementation to wbsio(4). Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
2017-12-13 00:27:53 +00:00
knakahara
d1310c7326 Fix NCT6779 gpio pin configuration. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
2017-12-13 00:27:01 +00:00
knakahara
2934f9b4f4 Add wbsio(4) GPIO driver. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
2017-12-13 00:26:06 +00:00
jmcneill
0aeb1999d3 Fix off-by-one in nfdt_physmem KASSERT, and while here bump MAX_PHYSMEM
from 4 to 16.
2017-12-13 00:22:24 +00:00
jmcneill
d02e5c3caf Fix spelling in error message 2017-12-12 21:00:28 +00:00
maya
f5669ed970 sync bsd family tree with freebsd
From Eitan Adler in PR misc/52808.
2017-12-12 18:44:57 +00:00
christos
3fd3ffc3a1 PR/52812: scole_mail: src/tests/kernel/t_timeleft.c doesn't compile with MKRUMP=no
It needs libpthread regardless MKRUMP..
2017-12-12 18:19:45 +00:00
abhinav
b2e12d0489 Add ctype to the NAME section (as this is a man page for ctype)
Remove rest of the names from the NAME section
(These names have their own individual man pages, as such it doesn't make sense
 to have their names in the NAME section in this man page as well. Moreover,
 we have been trying to fix such man pages so that apropos(1)/whatis(1) are
 able to search these man pages. Other examples of such fixed man pages include
 memory(3), string(3) etc.)

ok wiz@
2017-12-12 14:13:52 +00:00
pgoyette
bff1a421fa Remove trailing '&&' from shell script to fix the build.
From a-rin on https://gist.github.com/a-rin/940abb80d45eb7ac75b8110b8466f149
2017-12-12 08:27:32 +00:00
ozaki-r
e0d574e4f8 Fix panic in callout_halt (fix typo)
Reported by wiz@
2017-12-12 06:26:57 +00:00
christos
25f5939496 If we don't have any formatting characters, we are always ok. 2017-12-11 23:19:38 +00:00
wiz
4b01aa4e24 Remove superfluous Pp. 2017-12-11 23:07:49 +00:00
wiz
83ee6d540e Remove comma from one-member enumeration. 2017-12-11 23:06:35 +00:00
pgoyette
1591fbefb5 Use KASSERT to ensure that the newly-added module's name can be found.
XXX Pull-up to -8
2017-12-11 22:00:26 +00:00
christos
c7928288cb Instead of checking for obj existance which can be empty for shuttle-rule
programs, check for .sh sources.
2017-12-11 13:08:47 +00:00
jmcneill
4d9106a6a2 Add missing RPI FDT build goop, from nick. 2017-12-11 11:38:14 +00:00
jmcneill
526dc93d6b Revert previous; L4T's T124 U-Boot does not boot large compressed images. 2017-12-11 11:32:45 +00:00
bouyer
d8ae7995fb Define _COMPONENT and ACPI_MODULE_NAME; fix ACPI_DEBUG kernels 2017-12-11 08:40:45 +00:00
ryo
c2f85cb6e9 As is the case with IPV6_PKTINFO, IP_PKTINFO can be sent without EADDRINUSE
even if the UDP address:port in use is specified.
2017-12-11 05:47:18 +00:00
ozaki-r
cb1c111a7d Wrap if_ioctl_lock with IFNET_* macros (NFC)
Also if_ioctl_lock perhaps needs to be renamed to something because it's now
not just for ioctl...
2017-12-11 03:29:20 +00:00