Commit Graph

302000 Commits

Author SHA1 Message Date
riastradh 5ef555d76e hppa/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8). 2023-07-11 11:05:09 +00:00
riastradh e000c055ec ddb: Cast pointer to uintptr_t first before db_expr_t. 2023-07-11 11:03:31 +00:00
martin 76dba7a07f Move the definition of ipl_cookie_t out of the kernel-only sections,
some _KMEMUSER applications need it.
2023-07-11 11:02:07 +00:00
riastradh 07938a37a4 arm/cpu.h: Need sys/param.h for COHERENCY_UNIT.
Nix machine/param.h -- not meant to be used directly, pulled in by
sys/param.h.
2023-07-11 11:01:18 +00:00
riastradh 4c783bd478 atari/intr.h: Expose ipl_cookie_t with _KMEMUSER for crash(8). 2023-07-11 10:58:03 +00:00
riastradh 116e826d4c cesfic/intr.h: Expose ipl_cookie_t to userland only with _KMEMUSER.
Probably not necessary but let's be a little more cautious about
this.
2023-07-11 10:55:02 +00:00
riastradh 1a13c0c572 cesfic/intr.h: Expose ipl_cookie_t to userland for crash(8). 2023-07-11 10:47:24 +00:00
riastradh 1522ead6e2 amiga/intr.h: Don't define spl*() functions if !_KERNEL.
This is used by crash(8) now, and what's important is ipl_cookie_t.
2023-07-11 10:44:55 +00:00
riastradh 6f9f802778 linux/idr.h: Need <sys/mutex.h> for kmutex_t. 2023-07-11 10:42:36 +00:00
riastradh 7e975833bc hp300/intr.h: Fix missing includes. 2023-07-11 10:42:26 +00:00
riastradh c878e587ac opencrypto/cryptodev.h: Fix includes.
- Move sys/condvar.h under #ifdef _KERNEL.
- Add some other necessary includes and forward declarations.
- Sort.
2023-07-11 10:42:16 +00:00
riastradh daaf4f270a evbarm/intr.h: Define ipl_cookie_t before including ARM_INTR_IMPL.
Otherwise arm/mutex.h doesn't work, due to a cyclic dependency which
should really be fixed.
2023-07-11 10:42:07 +00:00
riastradh 8e873bfee1 arm/mutex.h: Need machine/intr.h, machine/lock.h.
For ipl_cookie_t and __cpu_simple_lock_t.
2023-07-11 10:41:58 +00:00
riastradh 3e51e50883 sys: Rip <sys/resourcevar.h> out of <uvm/uvm_param.h>.
And thus out of <sys/param.h>, which is exceedingly overused and
fragile and delenda est.

Should fix (some) issues with the recent inclusion of machine/lock.h
in various machine/mutex.h files.
2023-07-11 09:48:56 +00:00
martin d7dc966c96 Include psl.h for ipl_cookie_t if __MUTEX_PRIVATE 2023-07-11 09:34:34 +00:00
mrg ebba80dab5 mknative-gcc for GCC 10.5.0. 2023-07-11 06:05:43 +00:00
skrll 9033c9f805 G/C some #if 0 / #endif code 2023-07-11 05:57:44 +00:00
mrg a0414be6db merge GCC 10.5.0. 2023-07-11 00:40:40 +00:00
mrg 7d4dc15be1 initial import of GCC 10.5.0.
(we plan to import 12.3 soon as well, this is mostly so it can be pulled up
to netbsd-10 branch more easily.)

the list of PR's fixed since 10.4.0 can be found here:

https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=10.5

which includes 3 C, 25 C++, 4 debug, 17 libstdc++, and many others for the
internals.
2023-07-11 00:32:05 +00:00
uwe d412d6c0f7 versioningsyscalls(9): wrap long line in the example 2023-07-10 23:55:13 +00:00
christos db299ea2de regen 2023-07-10 21:08:37 +00:00
christos b5c892239b add memfd_create 2023-07-10 21:08:26 +00:00
rillig 0942285e92 lint: when debugging the parser, write messages on stderr
This way, all messages (regular debug, yacc debug, lint diagnostics)
occur in the correct order.
2023-07-10 19:58:47 +00:00
rillig c8547dff69 lint: merge duplicate code for getting the name of an operator 2023-07-10 19:47:12 +00:00
rillig e33eeb4c92 lint: update debug logging of the parser for Bison 3.8.2
Bison 3.8.2 no longer knows YYPRINT.
2023-07-10 19:04:52 +00:00
rillig ad5b49407c lint: add debug logging for symbol kinds in the parser
An identifier can refer to a variable, type, member, tag or label.
Switching between these namespaces is tightly coupled with the
evaluation order of the grammar rules.
2023-07-10 19:00:33 +00:00
christos eeca3addde remove struct memfd definition 2023-07-10 18:22:31 +00:00
rillig 7c1d8fe381 lint: improve debug output when debugging the grammar parser 2023-07-10 16:20:52 +00:00
christos 63191be3a4 Forgot to commit the expanded userland portion 2023-07-10 15:54:18 +00:00
christos d46449bb48 move the memfd struct to a separate file. Requested by riastradh@ 2023-07-10 15:49:18 +00:00
rillig 099e7d7953 lint: push memory management one layer down
Just as with type_name in lint1, it is more convenient if the
application code does not have to deal with memory management.
2023-07-10 14:13:19 +00:00
rillig 725aa52e69 lint: replce sprintf with snprintf
Even though the sprintf calls were safe, they looked suspicious.

No functional change.
2023-07-10 13:55:55 +00:00
christos ddb76b5593 regen 2023-07-10 13:05:35 +00:00
christos 229b77042f Add new syscalls 2023-07-10 13:05:27 +00:00
rillig fa997e72e1 lint: clean up lint2 2023-07-10 12:40:22 +00:00
rillig e442b1ff9e lint: ensure that untyped grammar rules are listed
Untyped grammar rules are suspicious because they subtly affect the
order in which the grammar actions are performed.  This leads to the
various bugs mentioned in msg_347.c.
2023-07-10 11:46:14 +00:00
rillig b90d1619c8 lint: clean up wchar_t and hash tables 2023-07-10 09:51:30 +00:00
rin 701412968e host-mkdep(1): Add support for -iquote.
Not used yet, but may eventually replace deprecated -I-, both for
GCC and clang.
2023-07-10 08:55:44 +00:00
mrg 88618cdd0b this is not needed (or wanted) for jemalloc 1.0, so make it empty. 2023-07-10 07:59:24 +00:00
rin cca778d211 riscv: Add FDT-based initrd, rndseed, and efirng support.
Can be used from our in-tree bootrisv64.efi.
2023-07-10 07:04:20 +00:00
rin ad888f5e93 fdt(4): Factor out bootargs support from evbarm and riscv. 2023-07-10 07:01:48 +00:00
rin 9b383adc63 Factor out some fdt(4) features from {,evb}arm into dev/fdt.
Now, FDT-based support to efirt, initrd, rndseed, and efirng can be
used from, e.g., riscv.

Mostly from Nick Hudson.

XXX
As Nick comments, there can be some optimizations for fdt_map_range().
efiboot may also be modified to load these objects into aligned PAs.
2023-07-10 07:00:11 +00:00
mrg df0f2e989d add missing sys_memfd.c. 2023-07-10 06:42:33 +00:00
christos 5e697ece84 Regen 2023-07-10 02:37:05 +00:00
christos 7eace3da0c Add memfd_create(2) from GSoC 2023 by Theodore Preduta 2023-07-10 02:31:54 +00:00
riastradh 8d0cdbc342 i915: Fail gracefully, don't panic, with unsupported ggtt views.
Workaround for part of PR kern/56648.

XXX pullup-10
2023-07-09 20:24:06 +00:00
riastradh a41503c83d t_clock_gettime: Avoid signed/unsigned comparison. 2023-07-09 19:19:40 +00:00
riastradh 70ecadb004 ddb: New `show all tstiles' command.
Shows who's waiting for which locks and what the owner is up to.

XXX pullup-10
2023-07-09 17:10:47 +00:00
riastradh 782726166d machine/mutex.h: Sprinkle includes so this can be used by crash(8).
XXX pullup-10
2023-07-09 17:03:09 +00:00
riastradh 3838843af3 sys/rwlock.h: Make this more self-contained for bool.
XXX pullup-10
2023-07-09 16:32:28 +00:00