Commit Graph

18567 Commits

Author SHA1 Message Date
jmcneill 5e697dbfa9 Remove support for OMAP based Gumstix platforms.
These changes are to prepare for the removal of arch/arm/omap. Support
for Xscale based Gumstix platforms remains.

(If someone wants to resurrect DuoVero and Pepper platforms, it's best
to do that in the GENERIC kernel using FDT.)
2022-10-29 13:10:25 +00:00
andvar a5139dfcb4 fix RCSID. 2022-10-26 22:13:09 +00:00
andvar 730fdfa601 nix double n, i or g in "ing", in comments and documentation. 2022-10-26 22:09:37 +00:00
msaitoh 69e70e08e8 ifq_drops was changed to use uint64_t. 2022-10-25 00:20:36 +00:00
knakahara b54270a1ae Fix PR kern/57037
Be able to change the behavior sending parameter changing routing messages.
When set net.inet6.ip6.param_rt_msg=0, don't send parameter changing
routing messages.
When set net.inet6.ip6.param_rt_msg=1(default), send parameter changing
routing messages by RTM_NEWADDR.
2022-10-24 01:54:19 +00:00
jschauma db13085398 correct tm_sec range to be [0-60]
The previous range introduced in time.h rev1.14 was supposed to account
for a mystical "double leap second", which ultimately never could exist
and was a mistaken interpretation from an early ISO C standard whereby
the possibility of two leap seconds within a year was erroneously
interpreted to mean that two leap seconds could occur at once.
2022-10-23 15:43:40 +00:00
andvar 0436d5a460 s/rastor/raster/ 2022-10-22 19:50:07 +00:00
christos 7e305bebba Explain when the filters are used. 2022-10-21 18:21:56 +00:00
rin 7342bdeab4 Add "Emoji & Pictographs" character definitions from Unicode 15.0.0
(previously 10.0.0):

http://www.unicode.org/charts/

They are classified as PUNCT, which has been used for characters other
than blank, alphabetic, or digit ones.

Glyph widths are taken from "East Asian Width":

https://www.unicode.org/Public/15.0.0/ucd/EastAsianWidth.txt

Characters of "F" or "W" are classified to SWIDTH2, and others are to
SWIDTH1, as usual. See also:

https://www.unicode.org/reports/tr11/

XXX
It would be really nice if someone could check and update characters in
categories other than Emoji...
2022-10-17 11:20:29 +00:00
andvar c3ad0bdd7e fix various typos in documentation and comments.
mainly in words functionality, functional, function.
2022-10-15 21:53:21 +00:00
riastradh b472ed545b vmem(9): Clarify possible failure modes.
Note that vmem_alloc and vmem_xalloc have failure modes -- failing
with ENOMEM despite VM_SLEEP, or importing or sleeping forever --
that appear to be bugs when align/phase/nocross/minaddr/maxaddr are
specified.
2022-10-15 14:54:21 +00:00
ryo 945c4dec66 - Since the example is for a cpu, use MACHINE_CPU instead of MACHINE_ARCH.
- In some cpu, it is necessary to use GOT to make it a PIE,
  which are too complicated as examples, so MKPIE=no by default.
2022-10-14 19:42:13 +00:00
ryo aef5eb5f59 add more examples 2022-10-14 19:41:18 +00:00
msaitoh fe5c532e4d Add NCT679[89] to the supported list. 2022-10-11 02:54:14 +00:00
msaitoh 06769bc743 amdsmn.4: Now support AMD Family 19h processors. 2022-10-02 09:48:39 +00:00
rillig 899c3c9bdc fix documentation for MKLINT
Since share/mk/bsd.own.mk 1.749 from 2013-08-26, MKLINT defaults to no.
2022-10-01 08:55:45 +00:00
jschauma f2346af53e add PFA (please find attached) 2022-09-26 17:55:35 +00:00
riastradh aa1a600547 curproc(9): Rework man page. 2022-09-22 14:02:24 +00:00
rillig 6c259f3957 fix misspellings of 'available' and nearby typos 2022-09-10 12:14:17 +00:00
pgoyette 15e712c966 Add YMMD 2022-09-09 14:16:16 +00:00
pgoyette 0996b25df1 Update to match recent changes in implementation. 2022-09-07 01:18:32 +00:00
wiz ef7e7fa51d Fix logic error in pktq_set_maxlen() description.
Ok thorpej@
2022-09-05 16:42:59 +00:00
wiz 71775cae4f pkgqueue(9): fix some nits, remove trailing whitespace 2022-09-05 09:18:39 +00:00
thorpej 221afdb85b Document the pktqueue interface. 2022-09-04 21:37:50 +00:00
knakahara 9362ee0dbf Add sysctl entry to control to send routing message for RTM_DYNAMIC.
Some routing daemons require such routing message to keep coherency.

If we want to let kernel send such message, set net.inet.icmp.dynamic_rt_msg=1
for IPv4, net.inet6.icmp6.dynamic_rt_msg=1 for IPv6.
Default(=0) is the same as before, that is, not send such routing message.
2022-08-29 09:14:02 +00:00
riastradh f498c30d4a options(4): Clarify MSGBUFSIZE units: bytes. 2022-08-28 14:29:05 +00:00
hgutch ec184f3bfb Change back various occurrences of \*[Le], \*[Ge] (less/greater equal)
and \*(ua (upwards arrow) to literal "<=", ">=" and "^" whenever
appropriate (e.g., in code examples).
2022-08-28 10:48:15 +00:00
knakahara fb9a6b5142 Add sysctl entry to enable/disable to use path MTU discovery for icmpv6 reflecting.
If we want to use path MTU discovery for icmp reflecting set
net.inet6.icmp6.reflect_pmtu=1.  Default(=0) is the same as before, that is,
use IPV6_MINMTU.
2022-08-22 09:25:55 +00:00
brook 99f61d3fde Create bootable images in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/gzimg.
Release builds for arm platforms create compressed images in
${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/gzimg.  However, in some
cases, e.g., armv7.img.gz, they are not bootable.  Consequently, boot
blocks must be manually installed in the images, which is an extra
barrier for testing systems or adopting NetBSD.  This has prompted
creation of external repositories, e.g., armbsd.org, to host a
collection of bootable images.  However, this does not ease the burden
on developers compiling their own systems; for them, manual
installation of boot blocks is still required.

For arm platforms, etc/etc.evbarm/Makefile.inc contains the commands
used to create system images.  Because installboot(8) can write boot
blocks directly to system images, a loop through possible boards can
create a series of bootable images during the normal build process.

In the case of many arm platforms, installboot(8) uses U-Boot boot
blocks, which are not part of the NetBSD source code.  Developers can,
however, install as many U-Boot boot blocks as desired, either in the
default location of /usr/pkg/share/u-boot or in a set of directories
pointed to by the U-Boot search path, the INSTALLBOOT_UBOOT_PATHS
environment variable.  For each board with an available boot block, a
board-specific bootable image will be created in
${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/gzimg.  If a boot block is
not available, which is the typical situation currently, no additional
image will be created.

This facility creates opportunities to build bootable images for any
number of boards within the scope of a standard release build.
However, that is not required and will not occur without the
intervention of installing U-Boot boot blocks prior to the build.
2022-08-21 15:01:08 +00:00
lukem dac6dcb8de Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC
Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support for extsrc in various tools
   including the options -L ext and -y, and the extsrc sets.
4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc)
5. bsd.own.mk and various Makefiles: remove support for extsrc/,
   EXTSRCSRCDIR, MKEXTSRC.

As proposed on tech-kern and tech-userlevel on 2022-01-07
and followed up on 2022-08-21.
2022-08-21 07:10:03 +00:00
riastradh c920c1ea70 usbnet(9): Clarify how mii functions are used. 2022-08-20 23:50:41 +00:00
riastradh e68ce8c74f mutex(9): Note counterintuitive IPL change releasing spin locks.
No functional change -- documentation only.

Details:

https://mail-index.netbsd.org/tech-kern/2010/11/12/msg009203.html
2022-08-20 14:17:36 +00:00
riastradh a06a044964 usbnet(9): New usbnet_ispromisc(un).
Replaces ifp->if_flags & IFF_PROMISC in multicast filter updates.
2022-08-20 14:08:59 +00:00
skrll 5cc0f8af81 usbd_do_request_async got deleted back in 2013 so remove the commented out
reference to it here.
2022-08-14 19:12:23 +00:00
wiz 68024510e8 Remove Li without effect. 2022-08-13 17:06:55 +00:00
wiz 20da36831f New sentence, new line. 2022-08-13 17:06:38 +00:00
wiz 08b052832f Fix Dd argument. 2022-08-13 17:02:10 +00:00
jandberg c017fe63d1 Update comment about X11 support 2022-08-13 10:53:38 +00:00
riastradh 7ce51081c7 module(9), sysctl(7): Document kern.module.autounload_unsafe. 2022-08-12 15:43:38 +00:00
riastradh 4fd6c3fe81 usbnet(9): Tidy up language about init/rx/tx/stop in man page. 2022-08-12 15:30:41 +00:00
riastradh b377a6075b bus_space(9): Update barrier semantics to match reality and sense.
As proposed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2022/07/16/msg028249.html

tl;dr:
- bus_space_barrier is needed only with prefetchable/cacheable.
- BUS_SPACE_BARRIER_READ is like membar_acquire.
- BUS_SPACE_BARRIER_WRITE is like membar_release.
- READ|WRITE is like membar_sync.
2022-08-12 13:24:37 +00:00
riastradh cc725e3507 viocon(4): New virtio tty driver imported from OpenBSD.
viocon* at virtio?

/dev/ttyVI??

Tested under qemu with:

qemu-system-aarch64 ... \
  -device virtio-serial \
  -chardev socket,path=/tmp/ttyVI00,server=on,wait=off,id=ttyVI00 \
  -device virtconsole,chardev=ttyVI00,name=org.NetBSD.dev.ttyVI00 \
  ...

I updated MAKEDEV.conf to create /dev/ttyVI?? on all ports where it
looks likely to work based on:
(a) having pci or a non-pci virtio attachment,
(b) `qemu-system-$ARCH -M ?' mentioned something resembling the port,
    and
(c) `qemu-system-$ARCH -device virtio-serial' launched without
    complaining about the virtio-serial device.

(Criterion (c) excluded sparc and sparc64.)
2022-08-12 11:15:40 +00:00
knakahara 6fda1d8cb0 Add sysctl entry to improve interconnectivity to some VPN appliances, pointed out by seil-team@IIJ.
If we want to allow different identifier types on IDii and IDir, set
net.key.allow_different_idtype=1.  Default(=0) is the same as before.
2022-08-09 08:03:22 +00:00
riastradh dead83d64a bsd.kmodule.mk: Build modules with KDTRACE_HOOKS if MKDTRACE=yes. 2022-08-07 23:42:09 +00:00
ast 83eeb4a5de Update what has been released by the BSD family during the last
two years; that is, since May 2020 after NetBSD 8.2 was registered
in this file.

Merge some additional information from the FreeBSD and DragonFly
versions that had several updates during this time. Added OpenBSD
and macos release dates for the same interval.

Where some release dates don't match exactly (release vs. announce
date) in the various bsd-family-tree files, assume the respective
flavor to be authoritive for its dates in this file.

Reviewed by: Sergey A. Osokin <osa@NetBSD.org>
2022-08-07 22:43:28 +00:00
riastradh 610f9263f0 sys: Build kernel with -Wno-type-limits.
The type-limits warning is actively harmful because it discourages
writing safe portable overflow detection logic which happens, on some
architectures, to be dead code.
2022-08-03 09:37:36 +00:00
maya 895e74fe94 Enable amdgpu module & firmware on x86
Make it easier to test this one out, add `load amdgpu` before boot netbsd.

XXX there should probably be a drm block in sys/modules/Makefile which
includes aarch64.
2022-07-27 18:29:35 +00:00
pgoyette 2e9e18c305 kern.maxvnodes _can_ be lowered, but not below the number of currently
active vnodes.
2022-07-25 14:46:53 +00:00
riastradh 2578dcd440 bsd.kmodule.mk: Also sync no-address-of-packed-member.
This is not actually a good idea to disable -- it can lead to real
problems -- but let's just make it the same for the kernel build and
module builds.
2022-07-17 14:10:55 +00:00
riastradh 4ab65cda4f bsd.kmodule.mk: Use -Wno-attributes like conf/Makefie.kern.inc. 2022-07-17 13:38:06 +00:00