CVS: cvs.openbsd.org: src

2022-12-30 Thread George Koehler
CVSROOT:/cvs
Module name:src
Changes by: gkoeh...@cvs.openbsd.org2022/12/30 22:06:18

Modified files:
sys/arch/macppc/pci: vgafb.c 

Log message:
Look for the first 2 mem regions, ignore the rest

Some macppc nvidia graphics cards have a 3rd mem region, but nv(4)
wants to mmap the 1st and 2nd regions.

ok miod@



CVS: cvs.openbsd.org: src

2022-12-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/12/30 20:36:12

Modified files:
lib/libfido2   : shlib_version 

Log message:
crank libfido2 major version, it depends on libcbor and it just
cranked. ok tb@



CVS: cvs.openbsd.org: src

2022-12-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/12/30 20:35:21

Modified files:
lib/libcbor: Makefile README.md README.openbsd shlib_version 
lib/libcbor/src: allocators.c cbor.c cbor.h 
lib/libcbor/src/cbor: arrays.c arrays.h bytestrings.c 
  bytestrings.h callbacks.c callbacks.h 
  common.c common.h configuration.h 
  configuration.h.in data.h encoding.c 
  encoding.h floats_ctrls.c floats_ctrls.h 
  ints.c ints.h maps.c maps.h 
  serialization.c serialization.h 
  streaming.c streaming.h strings.c 
  strings.h tags.c tags.h 
lib/libcbor/src/cbor/internal: builder_callbacks.c 
   builder_callbacks.h encoders.c 
   encoders.h loaders.c loaders.h 
   memory_utils.c memory_utils.h 
   stack.c stack.h unicode.c 
   unicode.h 
Added files:
lib/libcbor/src/cbor: cbor_export.h 

Log message:
update to upstream libcbor v.0.10.0 and crank major. Also includes
e308674c5d to fix PR259. This release includes a number of memory
leak fixes.

Disable the upsteam custom allocators feature.

Feedback/ok tb@

Thanks also to Pedro Martelletto for pointing out the new release as
well as PR259.



CVS: cvs.openbsd.org: src

2022-12-30 Thread Kenji Aoyama
CVSROOT:/cvs
Module name:src
Changes by: aoy...@cvs.openbsd.org  2022/12/30 19:42:01

Modified files:
sys/arch/luna88k/stand/boot: boot.c 

Log message:
Let luna88k's bootloader pass RB_GOODRANDOM to the kernel.

Current bootloader can pass boothowto information to the kernel.  It
also has the capability to load random seed data from /etc/random.seed
already.  So set RB_GOODRANDOM at the bootloader when loadrandom() has
been finished successfully.

Now the kernel says "random: good seed from bootblocks".

Tested by LUNA-88K2 and nono emulator, "Absolutely!" ok miod@



CVS: cvs.openbsd.org: src

2022-12-30 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2022/12/30 17:48:53

Modified files:
sys/kern   : kern_clockintr.c 

Log message:
sysctl_clockintr: clear "sum" with memset before copyout(9)



CVS: cvs.openbsd.org: src

2022-12-30 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2022/12/30 17:30:21

Modified files:
sys/arch/arm64/include: cpu.h 

Log message:
Add machdep.lidaction to machdep names list.

ok mpi@



CVS: cvs.openbsd.org: src

2022-12-30 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2022/12/30 16:41:45

Modified files:
sys/sys: termios.h 

Log message:
Add TABDLY, TAB0, TAB3 for better source compatibility.
These are XSI extensions but some code seems to expect them.
We don't currently implement TAB1 or TAB2.  Idea from FreeBSD.
OK guenther@ gnezdo@



CVS: cvs.openbsd.org: src

2022-12-30 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/12/30 16:12:12

Modified files:
lib/libc/sys   : getpid.2 

Log message:
add history for getpid(2) and getppid(2)

getpid() appeared (undocumented) in v5.  Between v6 and v7 there is an
extra return value for the parent process ID.

getppid() did not appear in v7, it appeared in 32v libc.  But getppid()
predates 32v.  It seems to have been in earlier USG releases such as
Generic 3 (PG-1C300 Issue 3) as the MERT Release 0 manual references it.

getppid() didn't become a system call until 4.3BSD-Reno

omit most of these details and just mention v5 and 32v

with and ok schwarze@



CVS: cvs.openbsd.org: src

2022-12-30 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2022/12/30 14:21:25

Modified files:
lib/libc/gen   : pause.3 

Log message:
pause.3: miscellaneous rewrites, cleanup

Eliminate some redundant or extraneous pieces from the pause.3 page.
Say the "thread" "blocks", don't say the "process" "pauses".  No need
to enumerate the ways a signal can be delivered.  Add a few relevant
cross-references.

With input from millert@ and schwarze@.

Link: https://marc.info/?l=openbsd-tech=166801212316670=2

ok millert@ schwarze@



CVS: cvs.openbsd.org: src

2022-12-30 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2022/12/30 11:47:45

Modified files:
usr.sbin/accton: accton.c 

Log message:
accton.c: add missing $OpenBSD$ tag



CVS: cvs.openbsd.org: src

2022-12-30 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/12/30 09:49:34

Modified files:
sys/dev/ic : bwfm.c 

Log message:
Do not send (normal) packets before we reach the run state.  Logic copied
from iwm(4), which also looks at the TX_MGMT_ONLY flag.  We don't expect
that flag to be ever set for bwfm(4), but it shouldn't hurt and it keeps
things consistent across drivers.

This fixes issues with suspend/resume (including firmware crashes seen on
the M2 Macbook Air).

ok patrick@, stsp@



CVS: cvs.openbsd.org: src

2022-12-30 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/12/30 07:10:17

Modified files:
sys/dev/pci: if_bwfm_pci.c 

Log message:
Add chip name for new revision of the BCM4378.

ok patrick@