Commit Graph

305319 Commits

Author SHA1 Message Date
isaki 4b71250eb0 Fix two problems that the time runs late on virt68k.
- The time between the time the alarm occurred and the time read by
  TIME_* register in the next interrupt handler was not accumulated.
- With the one-shot timer method, once the host time prolongs, the
  guest time will never be able to catch up with the host time again.
New one does:
- The driver maintains its (guest's) time (as sc_alarm_time) and always
  set the next alarm sc_interval_ns after the previous alarm.
- gfrtc_set_alarm() takes an absolute time instead of a relative time
  as the argument.
PR kern/57980.  Confirmed on QEMU.
2024-03-05 11:19:30 +00:00
rillig c4ea73f5bf snprintb: shrink code size, both in source and binary 2024-03-05 07:37:08 +00:00
rillig e572db3830 snprintb: error out on unknown new-style formatting directive 2024-03-04 21:35:28 +00:00
riastradh fa5a04837c certctl(8): Pacify formal POSIX sh syntax.
According to POSIX 2018, the syntax between `then' and `elif' and
`fi' must be a _non-empty_ list of commands:

compound_list    : linebreak term
                 | linebreak term separator
                 ;
...
if_clause        : If compound_list Then compound_list else_part Fi
                 | If compound_list Then compound_list           Fi
                 ;
else_part        : Elif compound_list Then compound_list
                 | Elif compound_list Then compound_list else_part
                 | Else compound_list
                 ;

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02

NetBSD's sh(1) currently doesn't enforce this and allows an empty
sequence of commands, but let's not rely on that nonstandard quirk.

Noted in PR 57997.
2024-03-04 20:37:31 +00:00
christos 900c18e5f0 -DDEBUG is broken for regex.c 2024-03-04 19:52:33 +00:00
christos ab764c6f4a Fix DEBUG build. 2024-03-04 17:10:33 +00:00
macallan 6cd4d7a2ec install stireg.h 2024-03-04 10:19:13 +00:00
mrg 29d939f7c2 audioplay: add -n flag that doesn't write audio data.
this will be used in an upcoming testsuite for the wav parser.
2024-03-04 06:29:35 +00:00
wiz eb860b2bd4 gdb-14.2 is out 2024-03-03 21:05:47 +00:00
thorpej 61c92c317d prom_uses_prom_console() needs to consider ST_DEC_7000, as well. 2024-03-03 19:56:29 +00:00
christos ae8567df4e add one more source file 2024-03-03 19:13:59 +00:00
christos 5d078fb180 new elftoolchain 2024-03-03 17:43:32 +00:00
christos 7301e11f26 Use README to import 2024-03-03 17:41:48 +00:00
christos 345cf9fb81 changes for r4037 2024-03-03 17:37:58 +00:00
christos 5ac3bc719c Merge subversion r4037 2024-03-03 17:37:29 +00:00
rillig 5926386128 lint: clean up string parsing and snprintb check 2024-03-03 16:09:01 +00:00
riastradh 43f394c011 certctl(8): Avoid basename(1).
Saves some time running subprocesses.  Since this is only used for
non-directories (i.e., there's never trailing / on the inputs), it
suffices to delete the longest prefix matching glob `*/' with shell
parameter expansion -- much cheaper than spawning a subprocess.

Shaves off about 1/3 of the time spent in `certctl list' on an
aarch64 VM in qemu.

PR bin/57993
2024-03-03 15:53:55 +00:00
christos 4639c15b67 Import new elftoolchain at SVN-r4037 2024-03-03 14:41:47 +00:00
rillig 3d5fc26390 lint: warn about escaped snprintb directive
Repurpose message 362, as the previous version was redundant since null
bytes in old-style formats are already covered by message 371 (bit
position out of range) and 377 (redundant '\0' at the end).
2024-03-03 13:09:22 +00:00
rillig a8d07ea3d1 lint: fix warning about "empty" single-letter snprintb descriptions 2024-03-03 10:27:18 +00:00
skrll 9893fe95de Reorder the bus_dmamap_sync sync operations
BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD to
 BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE

for consistency.
2024-03-03 10:09:42 +00:00
skrll b6b8c0c03e More KNF (whitespace around binary operators) 2024-03-03 10:02:11 +00:00
riastradh 2c5ae21ccf mozilla-certdata: Fix typo: sprintf, not snprintf, in awk.
Only used during import, and only in case something is wrong anyway
requiring manual intervention, so no change to builds.
2024-03-03 04:35:58 +00:00
riastradh 9c13cd8f3b doc/3RDPARTY: mozilla-certdata is up-to-date. 2024-03-03 04:35:44 +00:00
riastradh 5d9e12cf39 mozilla-certdata: Update set lists. 2024-03-03 04:35:18 +00:00
riastradh feec004683 mozilla-certdata: regen 2024-03-03 04:26:18 +00:00
riastradh 3f4ef73b9e mozilla-certdata: Update reference in Makefile. 2024-03-03 04:24:41 +00:00
riastradh 804a1f3eda mozilla-certdata: Update Mozilla certdata.txt.
nss hg date: 2024-02-12
nss hg revision: c17a3709bdd6e706040ac268a1d2b488c2fab5d8
2024-03-03 04:20:55 +00:00
rillig c9de07fbb0 lint: check for unreachable bits and fields in snprintb formats
While here, clean up a few existing checks.
2024-03-03 00:50:41 +00:00
thorpej 1b34e3658a tlsb -> gbus. No functional change. 2024-03-02 22:58:29 +00:00
thorpej 01e56b5ebb Add the basic framework for the DEC KN7AA ("Ruby") systems -- DEC 7000
and DEC 10000.

This is a work-in-progress, but this should be sufficient for the system
to boot, using the PROM console routines (and then proceed to not find any
devices because we don't yet support the "Laser System Bus").
2024-03-02 20:15:33 +00:00
thorpej e6333d4801 Shuffle GBus-related files into their own directory in preparation for
other GBus attachments.  No functional change here; just minimal editing
to reflect path differences after moving the files.
2024-03-02 19:57:57 +00:00
rillig 1ec17c714c lint: check snprintb formats for overlapping bits and fields 2024-03-02 11:56:37 +00:00
rillig aa5782417b lint: remove custom wrappers around <ctype.h> functions 2024-03-02 09:32:18 +00:00
mlelstv 0ec00ddcf5 Avoid overflow when computing kern.ipc.shmmax. Keep shmmax (bytes) and
shmall (pages) values aligned and use arithmetic everywhere instead
of shifts.
Should fix PR 57979
2024-03-02 08:59:47 +00:00
uwe 0eabe93f0f ofwboot(8): correct previous example 2024-03-02 00:03:20 +00:00
riastradh 24b94ff041 netinet6: Avoid NPD on `ifconfig ifN inet6 ... pltime 0 vltime 0'.
PR kern/53922
2024-03-01 23:50:27 +00:00
uwe a4e8759c9c ofwboot(8): add some practical examples
The system you want to boot into the single user mode is probably the
default installation, so a simple "boot -s" is enough for that.  Don't
be redundant and scary.

Also provide an example that uses full syntax for the kernel name.  It
is confusingly similar to the OFW syntax for boot-device yet
different.  That example also demonstrates how one might test a
different version of ofwboot.
2024-03-01 22:35:56 +00:00
andvar 19aecbc6b0 s/securlevel/securelevel/ in comment. 2024-03-01 22:01:03 +00:00
rillig cee0bfb19b lint: fix misleading initializer for string iterator
The field 'start' marks the start of the previous matching character,
not the current iterator position.

No binary change.
2024-03-01 21:52:48 +00:00
sjg bbd77d9b59 make: update var-scope-local test
Show what VAR value is in environment of target script.
2024-03-01 20:15:59 +00:00
rillig 38c0bdf232 lint: test format strings from snprintb calls
The functions snprintb and snprintb_m are specific to NetBSD, and their
format strings are tricky to get correct.  Provide some assistance in
catching the most common mistakes.
2024-03-01 19:39:28 +00:00
rillig 1234a824fc make: fix type mismatch in lint's strict bool mode (since today) 2024-03-01 17:53:30 +00:00
rillig 448a10168f make: remove test variant for NO_REGEX
The compile-time toggle was removed in var.c 1.1099 from 2024-02-07.
2024-03-01 17:47:05 +00:00
rillig 9e211f3599 tests/lint: remove redundant documentation 2024-03-01 17:22:55 +00:00
rillig befbe528d3 lint: fix type error in strict bool mode (since yesterday) 2024-03-01 17:14:34 +00:00
sjg 5b28ac6c57 make: export target scope values
Pass target scope to Var_ReexportVars so that a target process
will see the correct values in its env.
We must then mark any Global scope variable as unexported
so targets without local value get the Global one.
2024-03-01 16:41:42 +00:00
christos d037437ed7 new sqlite3 2024-03-01 15:49:41 +00:00
christos 90b19e4963 new sqlite 2024-03-01 15:48:24 +00:00
christos b9988867a8 merge conflicts between 3.43.0 and 3.45.1 2024-03-01 15:47:58 +00:00