Commit Graph

299213 Commits

Author SHA1 Message Date
skrll afd9eb9651 Typo in comment 2022-12-18 07:53:30 +00:00
macallan 3d0a848e26 add comment to explain why we zero SPRG0 here
NFC
2022-12-18 01:16:05 +00:00
macallan 688f2445ea #ifdef DEBUG the previous change, it seems to cause trouble on qemu which
needs further investigation
2022-12-18 01:10:57 +00:00
kim ca8a79a330 Whitespace police: Line up the version numbers for doc-operating-system-* 2022-12-17 11:51:52 +00:00
mrg 535d9694a5 handle pixman revert. 2022-12-17 09:46:21 +00:00
martin f9bf21ec12 Switch back to FFSv2ea as default for new installations 2022-12-16 19:49:13 +00:00
ryo be4c756b99 tprof_lock is not a spin mutex. use mutex_{enter,exit}(). oops 2022-12-16 17:38:56 +00:00
martin 0498f53817 Welcome to 10.99.1! 2022-12-16 17:35:42 +00:00
martin 1b142bcf55 Add notes about FFS and extended attributes. 2022-12-16 16:58:14 +00:00
msaitoh d4ee246879 Add new "kern.mbuf.nmbclusters_limit" sysctl.
- Used to know the upper limit of nmbclusters.
 - It's read only.
2022-12-16 08:42:55 +00:00
ryo 63a85c5bd2 the "scale" option can be specified in the event name even in "tprof monitor" 2022-12-16 08:02:04 +00:00
ryo 923aefa047 - added 'c' command to tprof-top to show/hide event counter.
- column widths were not calculated correctly and sometimes displayed incorrectly.
- use putp() for terminfo str.
- fix build error with llvm.
2022-12-16 08:00:47 +00:00
ryo 2b54f35cc3 - Add support select(2)/poll(2) on /dev/tprof.
- Changed sampling buffer switching frequency (which is the frequency of tprof_worker()
  calls and also the maximum block time of read(2) of /dev/tprof) from 1sec to 125ms.
  This improve tprof top responsiveness.
- The maximum number of sampling buffers is now adjusted according to the number of CPUs.
  Previously it was fixed at 100 and was insufficient if ncpu was greater than this.

The maximum number of samples per second per CPU is calculated by
"TPROF_MAX_SAMPLES_PER_BUF * (HZ of tprof_worker)".
Therefore, currently, 10000 * (1000/125) = 80000 maximum samplings per CPU.
The actual value will vary slightly from this due to tprof_worker and read(2) timing.
This value may need to be adjusted more in the future.
2022-12-16 07:59:42 +00:00
msaitoh f8bb300ea3 doc: NCT6797D support 2022-12-16 00:05:01 +00:00
msaitoh 5e7dd0391c lm(4): Add Nuvoton NCT6797D support. 2022-12-16 00:02:28 +00:00
martin bd887569a6 PR 57100: in manual mode, we can not ignore existing partitions
completley, as that causes inconsistent internal state.
2022-12-15 20:34:46 +00:00
martin f36c93121c PR 57100: check if we can newfs the proper fstype when adding a new
partition and accepting the default FS type.
2022-12-15 20:21:16 +00:00
martin ec5e52a94f Add an (expert) option to manually edit partitions, inspired by PR 57100. 2022-12-15 15:32:04 +00:00
martin c5acd70fc9 PR 57100: when adding a new partition, update current flags after
the backend has added the partion, so the re-sorting later can
match the new data properly.
2022-12-15 15:29:51 +00:00
martin 6dd7d38aed Temporarily back out rev 1.66 and switch the default FFS type back to
FFSv2 (w/o ea) for the upcoming netbsd-10 branch.
2022-12-15 15:11:44 +00:00
martin c4c8db1541 PR 57100: fix install flag handling for newly added GPT partitions,
fix multiple install flags when updating existing partitions.
2022-12-15 14:54:27 +00:00
skrll 1054e2b1a3 Sprinkle some sorting. NFCI. 2022-12-14 18:59:03 +00:00
macallan a672a0c5e7 if we have the ROM font, make it available to wsdisplay
needs testing on non-macppc
2022-12-14 13:19:04 +00:00
macallan 682c55d7ba Explicitly zero SPRG0 before doing anything else - it's used to store a pointer
to struct cpuinfo, this way we can catch attempts to use it before it's set
up properly
2022-12-14 13:04:24 +00:00
skrll 9561a3fb19 Reduce diff to upstream. NFCI. 2022-12-14 12:31:15 +00:00
skrll e5352417e4 Trailing whitespace 2022-12-14 12:30:01 +00:00
skrll aa8a7d76e2 KNF 2022-12-13 22:25:08 +00:00
jakllsch e9228f6704 Never fib about pin count in GPIOINFO ioctl results. The number of pins
on a controller simply does not change depending on the privileges of
the caller.
2022-12-13 21:50:43 +00:00
jakllsch aa41167b90 If we can't read a pin while listing pins, simply continue on to next
pin rather than abort.
2022-12-13 21:47:36 +00:00
jakllsch 97a0e511c1 fix grammar in comment 2022-12-13 21:29:04 +00:00
jakllsch 735f4cee8d ehci_device_isoc_init() returns errno not usbd_error; remove blank line
in ehci_device_fs_isoc_init() to match ehci_device_isoc_init()
2022-12-13 21:25:10 +00:00
christos b9606fa0cc importdate is no more 2022-12-13 21:16:38 +00:00
jakllsch fe8a41e6b5 "periodic frame list", not "period frame list" in comments 2022-12-13 21:13:16 +00:00
jakllsch 94c854abd8 Add missing whitespace in error message. 2022-12-13 21:11:00 +00:00
christos 93664a940b Handle the case the code originally intended to handle; systems where:
SIZE_MAX < PTRDIFF_MAX
2022-12-13 19:08:42 +00:00
christos da8bb7f219 Remove the importdate hack to make things more similar with the upstream
script.
2022-12-13 18:36:41 +00:00
christos 1790571ce3 preserve the original logic if we don't have MKREPRO_TIMESTAMP, use consistent
version string with other builds.
2022-12-13 18:27:45 +00:00
martin 47ace57a28 When doing reproducible builds, don't import a "run" number in the
ntp tools config version files.
2022-12-13 18:15:29 +00:00
kre f2d4de93b1 POSIX is addint this utility in Issue 8 (whenever it appears). However
they do not specify "long" options (ever).  The --preserve and --foreground
options in this utility had no short form, so they "invented" -p and -f
so only standard form one char options needed to be specified.

Change the opt processing here so -p == --preserve and -f == --foreground
so we support the options POSIX will specify.

No other changes here, just adding those alternates for the options.
2022-12-13 13:25:36 +00:00
skrll e311a492a7 Trailing whitespace 2022-12-13 12:43:32 +00:00
blymn 7c304c7fb1 Default the character width to 1 if wcwidth fails. 2022-12-12 21:14:15 +00:00
jakllsch 9f13cfae40 vsbus vax: sprinkle volatile for register accesses 2022-12-12 18:22:32 +00:00
chs b04cd074cb apply this commit from FreeBSD:
commit 9dda00df7e8f9279a43d92758df6a7e10a9aed95
  Author: Chuck Silvers <chs@FreeBSD.org>
  Date:   Mon Dec 12 08:14:17 2022 -0800

      restore: fix restore of NFS4 ACLs

      Changing the mode bits on a file with an NFS4 ACL results in the
      NFS4 ACL being replaced by one matching the new mode bits being set,
      so when restoring a file with an NFS4 ACL, set the owner/group/mode first
      and then set the NFS4 ACL, so that setting the mode does not throw away
      the ACL that we just set.

      Reviewed by:    mckusick
      Differential Revision:  https://reviews.freebsd.org/D37618
2022-12-12 16:53:30 +00:00
martin 1c03490869 Move the last remaining kernel printf to ofprint. 2022-12-12 13:26:46 +00:00
msaitoh f39fc9703b Use warn() instead of warnx() and simplify. 2022-12-12 05:09:33 +00:00
gutteridge 297f2ebee1 madt.c & mainbus.c: fix build with acpica 20221020
AcpiTbChecksum() was renamed AcpiUtChecksum() during code consolidation.
2022-12-12 01:07:52 +00:00
martin 53a2fe55e3 When generating a script for disklabel(8) do not use the "pretty printed"
file system type names, but the raw ones that disklabel(8) actually
knows about.
2022-12-11 19:32:57 +00:00
oster 1dac77d6f0 Support save/restore of AST levels in the PCB for context switching.
Code written by ragge@ , tested by oster@.
2022-12-11 18:02:40 +00:00
christos 0a3ec37ff4 Update tzcode to 2022g 2022-12-11 17:58:42 +00:00
christos fa7b09b795 Merge in 2022g:
Although tzcode still works with C89, bugs found in recent routine
    maintenance indicate that bitrot has set in and that in practice
    C89 is no longer used to build tzcode.  As it is a maintenance
    burden, support for C89 is planned to be removed soon.  Instead,
    please use compilers compatible with C99, C11, C17, or C23.

    timegm, which tzcode implemented in 1989, will finally be
    standardized 34 years later as part of C23, so timegm is now
    supported even if STD_INSPIRED is not defined.

    Fix bug in zdump's tzalloc emulation on hosts that lack tm_zone.
    (Problem reported by Đoàn Trần Công Danh.)

    Fix bug in zic on hosts where malloc(0) yields NULL on success.
    (Problem reported by Tim McBrayer for AIX 6.1.)

    Fix zic configuration to avoid linkage failures on some platforms.
    (Problems reported by Gilmore Davidson and Igor Ivanov.)

    Work around MS-Windows nmake incompatibility with POSIX.
    (Problem reported by Manuela Friedrich.)

    Port mktime and strftime to debugging platforms where accessing
    uninitialized data has undefined behavior (strftime problem
    reported by Robert Elz).

    Check more carefully for unlikely integer overflows, preferring
    C23 <stdckdint.h> to overflow checking by hand, as the latter has
    had obscure bugs.
2022-12-11 17:57:23 +00:00