Commit Graph

257939 Commits

Author SHA1 Message Date
kamil bfd0ff91ec Add a new example kernel module
executor - basic implementation of callout and RUN_ONCE

While there, perform a small cleanup in README.

Patch by <Siddharth Muralee>
Polishing by myself.
2018-04-13 20:30:09 +00:00
maxv 82288565a0 Document "debug" in usage(). 2018-04-13 17:43:37 +00:00
eadler 6bf38be19f [bsd-family-tree] announce OpenBSD 6.3 & DragonFly 5.2.0
ok pgoyette@ maya@
2018-04-13 14:31:35 +00:00
maxv 30cb1ea3c6 Localify global variables, style, and add two XXXs. 2018-04-13 11:32:44 +00:00
nonaka 9bbe99f64c x86: Increase BOOTINFO_MAXSIZE to 8Kib.
Proposed on port-i386 and port-amd64 with no objections:
http://mail-index.netbsd.org/port-i386/2018/04/11/msg003692.html
http://mail-index.netbsd.org/port-amd64/2018/04/11/msg002697.html
2018-04-13 11:24:34 +00:00
maxv be3197e9a4 Add XXX, using a pool would be better than kmem. 2018-04-13 11:19:09 +00:00
maxv 075952503a Release the lock a little earlier. 2018-04-13 11:18:08 +00:00
maxv cbf2d50865 style 2018-04-13 11:01:14 +00:00
msaitoh 52047f5b86 I354 uses an external PHY, so don't use wm_set_eee_i350(). 2018-04-13 09:35:10 +00:00
maxv 10581564f8 Remove duplicate, to better show that this place doesn't make a lot of
sense. The code should probably be removed, it's a leftover from when we
had #ifdef __FreeBSD__.
2018-04-13 09:34:20 +00:00
maxv 0daefb60f1 Improve the check, we want to have len >= udphdr all the time, and not
just when the packet size doesn't match the mbuf size.

Normally that's not a huge problem, since IP6_EXTHDR_GET gets called
earlier, so we can't have

	(ip_len == iphlen + len) && (len < sizeof(struct udphdr))
2018-04-13 09:29:04 +00:00
christos ad48bc87a0 make this narrower by popular request. 2018-04-13 09:21:16 +00:00
maxv c592a19e59 Remove useless comment and style. 2018-04-13 09:00:29 +00:00
maxv 10415a4a7c Add XXX. In fact, it would be better, if all the fragments were offloaded,
to quickly recompute the checksum on the fly, and keep it in the mbuf
header.
2018-04-13 08:55:50 +00:00
maxv b5d40d5d71 Reduce the diff between similar blocks. 2018-04-13 08:47:46 +00:00
maxv 1608160608 Add a KASSERT, we want M_PKTHDR. 2018-04-13 08:44:41 +00:00
maxv 6d38166bdc Reorder a few instructions to clarify. Replace two bcopy by memcpy. 2018-04-13 08:12:51 +00:00
msaitoh c22629023a - ichsmb(4), puc(4): add new devices.
- Add missing comma.
2018-04-13 08:01:23 +00:00
msaitoh 2b1c7ab9e3 Add 300 series chipset support. 2018-04-13 07:57:04 +00:00
maxv c0a82de41e No, fix previous. 2018-04-13 07:36:11 +00:00
maxv 1eccc1fa34 Improve comment. 2018-04-13 07:30:46 +00:00
snj 6e9004b7ce GCC build exceeds the macOS clang default bracket nesting level of 256.
Work around with -fbracket-depth=512.

From potr in PR toolchain/53178.
2018-04-13 06:15:26 +00:00
msaitoh 7cdf643c4a Enable I219 by default. 2018-04-13 06:07:20 +00:00
msaitoh ece422c3fe Enable I219. 2018-04-13 06:04:12 +00:00
khorben 50acbf0399 Correct discrepancy with the Multiboot specification
The VBE mode was missing, and the types of the subsequent VBE members
were also wrong. Nothing in NetBSD's base seems to be using this, and
therefore nothing is expected to break as a result of this fix, or any
binary to change for that matter.
The latest specification (as of today) can be found at:
https://www.gnu.org/software/grub/manual/multiboot/multiboot.html

This was already reported in misc/52366, and addresses part of it.

Patch sent to port-i386@. Build-tested on NetBSD/amd64.
2018-04-13 01:49:47 +00:00
kamil e5c3c7a7c4 Add new example kernel module: sysctl
sysctl - demonstrates adding a sysctl handle dynamically.

Patch by <Siddharth Muralee>
Polishing by myself.
2018-04-13 01:20:27 +00:00
mrg 18eacdc36b fix some more missing depends issues. remove various wrong/old depends.
fixes issues i was able to trigger manually by building specific files.

more for PR#53137.
2018-04-13 01:14:19 +00:00
christos 16b63f9a5b remove now unused crap. 2018-04-12 21:38:59 +00:00
christos 6935db70ac PR/53177: David Binderman: Better error handling 2018-04-12 21:14:53 +00:00
christos e9bf2ea424 ignore the ancient NetBSD emulation tag. 2018-04-12 20:49:08 +00:00
christos d31378f416 There have never been binaries with a checksum tag for NetBSD.
These days the equivalent functionality is provided by the build
id tag. It was incorrect in the first place to overload tag #2
(which used to be the emulation name) with a different meaning, so
actually document the meaning that was once used (because binaries
with that tag exist).

Tag existance noticed by kre@
2018-04-12 20:48:41 +00:00
mrg 64f3b8c383 fix the hard coded depends list for insn-*. i pulled these out
of the generated .d files for a successful build.  i've tested
that at least one recent macppc build failure is fixed with this
change (namely, try building just insn-emit.o in this subdir),
but the pattern should fix anything else left in insn*.

this really should finally fix PR#53137.
2018-04-12 20:44:16 +00:00
christos b5c899a4dd let the modular code load the sysv modules. 2018-04-12 20:43:44 +00:00
christos 93433845a4 If we are modular, allow us to use modules for compat; don't load all the
compat code in.
2018-04-12 20:36:59 +00:00
jdolecek 27e5d69f63 fix year for the tls-maxphys resync 2018-04-12 19:12:25 +00:00
jdolecek 2a81354350 update tls-maxphys 2018-04-12 19:11:35 +00:00
jdolecek 8791a97236 update the NVMe entry; perhaps time to consider good enough and remove from
here?
2018-04-12 19:08:02 +00:00
christos 061fe5a110 provide vectors for the ifconf compat code and ifdatareq compat code. 2018-04-12 18:50:13 +00:00
ragge 7fcbf61b29 Fix bug causing DMA to/from user space fail. Fixes PR#49517.
This bug has been around since 2003.
Thanks to Martin Husemann for providing hardware to debug on!
2018-04-12 18:45:57 +00:00
christos b10d32c2eb disentangle a bit more the compat ioctl code. 2018-04-12 18:44:59 +00:00
nakayama a5e7377adb Handle compatdir first whether making obsolete lists or not, to
make obsolete lists including compat directory (eg. ./usr/lib/i386)
properly.
2018-04-12 11:49:04 +00:00
msaitoh 90c7e05ef2 Add cpu_ucode_intel_verify() to verify microcode image. Currently, we don't
verify extended signatures'checksum. I have no any image which has extended
signature. If an extended signature found, the function shows
"This image has extended signature table." and continue.
2018-04-12 10:30:24 +00:00
msaitoh 58bd2cc30a Read sc_if_flags after taking core lock. Same as if_wm.c rev. 1.418. 2018-04-12 08:03:55 +00:00
maxv 1a305e09db Make 'opts' local to rip_sbappendaddr(). 2018-04-12 07:45:29 +00:00
maxv d735f2faea Synchronize the code between raw_ip6.c<->icmp6.c<->raw_ip.c, so that it is
the same everywhere.
2018-04-12 07:28:10 +00:00
maxv 8a7842d9ec Remove misleading comment; we're just checking the SP, not verifying the
AH/ESP payload. While here style a bit.
2018-04-12 06:49:39 +00:00
ozaki-r 55b7c5b86a Resolve tangled lock dependencies in route.c
This change sweeps remaining lock decisions based on if locked or not by moving
utility functions of rtentry updates from rtsock.c and ensuring holding the
rt_lock.  It also improves the atomicity of a update of a rtentry.
2018-04-12 04:38:13 +00:00
msaitoh 377872ea64 Add PCH_CNP support (I219 with Intel 300 series chipset).
It's required more test, so it's disabled by default.
2018-04-12 03:25:08 +00:00
msaitoh 9c91c4de43 If the extended configration size in the EXTCNFSIZE register is 0, don't
continue.
2018-04-12 03:13:04 +00:00
msaitoh 78e62023db Our PCH_SPT part of wm_nvm_valid_bank_detect_ich8lan() was based on
FreeBSD r287467. After that, they reverted it and committed the different
code in r287762. r287762's bank detect code didn't work for us because our wm
dirver had a problem in flash access. The problem was fixed in if_wm.c rev.
1.567, so we can use the new way now.
2018-04-12 03:09:24 +00:00