258487 Commits

Author SHA1 Message Date
uwe
05df44f648 Fix unsigned wraparound on window size calculations.
This is another instance where tp->rcv_adv - tp->rcv_nxt can wrap
around after successful zero-window probe from the peer.  The first
one was fixed by chs@ in revision 1.112 on 2004-05-08.

While here, CSE and de-obfuscate the code a bit.
2018-05-07 23:42:13 +00:00
christos
e0983e96df Load the struct rusage text, data, and stack fields from the vmspace struct.
Before they were all 0. We update them when we call getrusage() or on
process exit() so that the children rusage is accounted for.
2018-05-07 21:03:45 +00:00
christos
61768d92a9 update maxrss (used to always be 0). Patterned after the OpenBSD changes. 2018-05-07 21:00:14 +00:00
maxv
86243c5040 Fix possible buffer overflow. We need to make sure the inner IPv4 packet
doesn't have options, because we validate only an option-less header.
2018-05-07 19:34:03 +00:00
jmcneill
76e21d1974 Don't sleep with IPL_VM lock held. 2018-05-07 15:03:19 +00:00
jmcneill
6c32e8625c Build fix 2018-05-07 12:58:58 +00:00
maxv
f7de5e97df Clean up, improve a bit, and document m_remove_pkthdr. 2018-05-07 10:53:45 +00:00
maxv
0c71ec6e1e Remove misleading comments. 2018-05-07 10:21:08 +00:00
maxv
45e9b67bb8 Copy some KASSERTs from m_move_pkthdr into m_copy_pkthdr, and reorder the
latter to reduce the diff with the former.
2018-05-07 09:57:37 +00:00
maxv
aba691a3a7 Use m_remove_pkthdr.
ok knakahara@ (for L2TP)
2018-05-07 09:51:02 +00:00
maxv
d9e33aef12 Fix double-free, m_tag_delete_chain is already called by m_free. 2018-05-07 09:41:10 +00:00
maxv
436305f8d3 Remove a dummy reference to XF_IP4, explain briefly why we don't use
ipe4_xformsw, and remove unused includes.
2018-05-07 09:33:51 +00:00
maxv
20668b06aa Remove now unused 'isr', 'skip' and 'protoff' arguments from ipip_output. 2018-05-07 09:25:04 +00:00
maxv
defd3aa31c Remove unused 'mp' argument from all the xf_output functions. Also clean
up xform.h a bit.
2018-05-07 09:16:46 +00:00
maxv
a3d9b92c8d Clarify IPIP: ipe4_xformsw is not allowed to call ipip_output, so replace
the pointer by ipe4_output, which just panics. Group the ipe4_* functions
together. Localify other functions.

ok ozaki-r@
2018-05-07 09:08:06 +00:00
kre
ed050bc6ea Fix usage for rump. Fixes test breakage caused by previous commit. 2018-05-06 20:55:42 +00:00
christos
2ed636d665 grow AF_UNIX receive buffer size 2018-05-06 19:16:36 +00:00
christos
5e984cf5ac add missed patch 2018-05-06 15:14:12 +00:00
christos
f9fbf0f005 fix misapplied patch 2018-05-06 14:46:58 +00:00
sevan
73b9df469c drop redundant repeat-until loop for now. read_request & process_function
functions need further investigation as to why this is not required. In the C
daemon, at the end of main.c this is the exact behaviour that's used.

heads up <wiz> regarding infinite loop.
2018-05-06 14:41:01 +00:00
jmcneill
5a236e5088 POKS IRQ register / bit differ between AXP803 and AXP805/806. Handle these
differences.
2018-05-06 14:25:48 +00:00
kamil
2f1d1558aa Remove an element from struct emul: e_tracesig
e_tracesig used to be implemented for Darwin compat. Nowadays the Darwin
compatiblity layer is gone and there are no other users.

This functionality isn't used where it shall be used in the existing
codebase.

If we want to emulate debugging interfaces in compat layers we would need
to implement that from scratch anyway. We would need to be bug compatible
with other OSes too.

Proposed on tech-kern@.

Welcome to NetBSD 8.99.16!

Sponsored by <The NetBSD Foundation>
2018-05-06 13:40:50 +00:00
jmcneill
3949b50631 Use enable gpio to turn the display on/off 2018-05-06 10:45:32 +00:00
jmcneill
25ced45841 Add backlight node and enable pwm 2018-05-06 10:43:52 +00:00
jmcneill
57e7b6cf9f Add pwm node 2018-05-06 10:43:32 +00:00
jmcneill
b5ef9a1858 Add sunxipwm, pwmbacklight 2018-05-06 10:36:06 +00:00
jmcneill
26f780d3a6 Add driver for Allwinner PWM controller. 2018-05-06 10:34:34 +00:00
jmcneill
a666715956 Rename pwm0 function to pwm for PD22 2018-05-06 10:34:23 +00:00
jmcneill
39f9e242ac Add support for PWM backlights. 2018-05-06 10:33:21 +00:00
jmcneill
2a22daa1c9 Add kernel API for pwm channels. 2018-05-06 10:32:33 +00:00
jmcneill
dcd7c65c0f Pass WSDISPLAYIO_SVIDEO through to pmf 2018-05-06 10:31:10 +00:00
christos
d0831e5d18 don't use pathbuf here; it is intertwined with vfs and gives rump heartburn. 2018-05-06 00:46:09 +00:00
christos
020cb6da2f add an empty stub 2018-05-05 23:42:00 +00:00
christos
a4384cf8f0 don't use stack for name (requested by joerg) 2018-05-05 22:14:45 +00:00
wiz
7b62397da4 Fix tab/macro order. 2018-05-05 21:33:53 +00:00
ryoon
479b0df4f0 Insert a whitespace after comma 2018-05-05 21:16:31 +00:00
christos
badbfd0af3 Document new PF_LOCAL sysctls. 2018-05-05 20:20:43 +00:00
christos
5e7a585374 bump PIPSIZ from 4 to 8K like FreeBSD and provide the same sysctls 2018-05-05 19:58:08 +00:00
christos
a2cf80f283 introduce acpi_device_present() to replace the previous _STA checks. 2018-05-05 17:16:23 +00:00
wiz
c12450727f Remove unnecessary macro. Fix typo. 2018-05-05 16:24:26 +00:00
sevan
5664fb478e Add bozohttpd(3lua) 2018-05-05 13:49:24 +00:00
sevan
b4e0088a5a Add a manual for bozohttpd(3lua) 2018-05-05 13:31:48 +00:00
jmcneill
4c5f1c97df Add A64 thermal sensor node 2018-05-05 13:31:35 +00:00
jmcneill
5b844f9706 Add support for A64 thermal sensor clocks 2018-05-05 13:28:23 +00:00
kre
8880a43f55 Check whether the cgd device selected is available to be
configured,that is, not already in use, before requesting
passwords from the user (or elsewhere).
2018-05-05 11:28:44 +00:00
jmcneill
b27a0699f1 Enable ehci0/ohci0 (attached to left USB port) 2018-05-05 11:16:30 +00:00
jmcneill
ef3d6016c6 Enable mmc1 (SDIO Wi-Fi is attached here) 2018-05-05 11:12:46 +00:00
jmcneill
82e15d7401 No need to read battery capacity warning levels each time the sensor is refreshed 2018-05-05 10:56:40 +00:00
jmcneill
c2f11555e4 Add ACIN and VBUS present sensors 2018-05-05 10:25:59 +00:00
jmcneill
b51511c531 Add sun50ia64rccu 2018-05-05 09:55:38 +00:00