Commit Graph

305261 Commits

Author SHA1 Message Date
cvs 4e276cc21d Creating branch triaxx-drm 2024-03-03 19:56:30 +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
christos 9ee89622ee Import sqlite-3.45-1 (previous was 3.43.0)
SQLite Release 3.45.1 On 2024-01-30
Prior changes from version 3.45.0 (2024-01-15):

Added the SQLITE_RESULT_SUBTYPE property for application-defined
SQL functions. All application defined SQL functions that invokes
sqlite3_result_subtype() must be registered with this new property.
Failure to do so might cause the call to sqlite3_result_subtype()
to behave as a no-op. Compile with -DSQLITE_STRICT_SUBTYPE=1 to
cause an SQL error to be raised if a function that is not
SQLITE_RESULT_SUBTYPE tries invokes sqlite3_result_subtype(). The
use of -DSQLITE_STRICT_SUBTYPE=1 is a recommended compile-time
option for every application that makes use of subtypes.

Enhancements to the JSON SQL functions:
All JSON functions are rewritten to use a new internal parse tree
format called JSONB. The new parse-tree format is serializable and
hence can be stored in the database to avoid unnecessary re-parsing
whenever the JSON value is used.  New versions of JSON-generating
functions generate binary JSONB instead of JSON text.
The json_valid() function adds an optional second argument that
specifies what it means for the first argument to be "well-formed".
Add the FTS5 tokendata option to the FTS5 virtual table.
The SQLITE_DIRECT_OVERFLOW_READ optimization is now enabled by
default. Disable it at compile-time using -DSQLITE_DIRECT_OVERFLOW_READ=0.

Query planner improvements:
Do not allow the transitive constraint optimization to trick the
query planner into using a range constraint when a better equality
constraint is available. (Forum post 2568d1f6e6.)
The query planner now does a better job of disregarding indexes
that ANALYZE identifies as low-quality. (Forum post 6f0958b03b.)
Increase the default value for SQLITE_MAX_PAGE_COUNT from 1073741824
to 4294967294.

Enhancements to the CLI:
Improvements to the display of UTF-8 content on Windows
Automatically detect playback of ".dump" scripts and make appropriate
changes to settings such as ".dbconfig defensive off" and ".dbconfig
dqs_dll on".

Changes in this specific patch release, version 3.45.1 (2024-01-30):
Restore the JSON BLOB input bug, and promise to support the anomaly
in subsequent releases, for backward compatibility.
Fix the PRAGMA integrity_check command so that it works on read-only
databases that contain FTS3 and FTS5 tables. This resolves an issue
introduced in version 3.44.0 but was undiscovered until after the
3.45.0 release.

Fix issues associated with processing corrupt JSONB inputs:
Prevent exponential runtime when converting a corrupt JSONB into text.
Fix a possible read of one byte past the end of the JSONB blob when
converting a corrupt JSONB into text.
Enhanced testing using jfuzz to prevent any future JSONB problems
such as the above.
Fix a long-standing bug in which a read of a few bytes past the
end of a memory-mapped segment might occur when accessing a craftily
corrupted database using memory-mapped database.
Fix a long-standing bug in which a NULL pointer dereference might
occur in the bytecode engine due to incorrect bytecode being
generated for a class of SQL statements that are deliberately
designed to stress the query planner but which are otherwise
pointless.

[for changes to previous releases see:
https://www.sqlite.org/src/timeline?c=1066602b2b&y=ci]
2024-03-01 14:46:45 +00:00
mrg 04615d5639 check that l_nopreempt (preemption count) doesn't change after callbacks
check that the idle loop, soft interrupt handlers, workqueue, and xcall
callbacks do not modify the preemption count, in most cases, knowing it
should be 0 currently.

this work was originally done by simonb.  cleaned up slightly and some
minor enhancement made by myself, and with discussion with riastradh@.

other callback call sites could check this as well (such as MD interrupt
handlers, or really anything that includes a callback registration.  x86
version to be commited separately.)
2024-03-01 04:32:38 +00:00
andvar dc3781080e Fix couple typos in comments. 2024-02-29 22:02:41 +00:00
andvar 8e32e33049 s/hpcfb_refres_screen/hpcfb_refresh_screen/ in debug message. 2024-02-29 22:01:57 +00:00
rillig 25d30ac62e lint1: remove redundant type table for integer constant suffixes 2024-02-29 21:37:10 +00:00
rillig a15b6e013d snprintb.3: fix typo 2024-02-29 21:08:54 +00:00
rillig 4cf4169998 parsedate.y: remove outdated comment
The number of shift/reduce conflicts has grown to 16.
2024-02-29 20:55:35 +00:00
christos c088a49736 remove std= override from here. It happens on top of the bind tree. 2024-02-29 20:41:52 +00:00