Commit Graph

287586 Commits

Author SHA1 Message Date
martin
2bec2479f8 Fix copy&pasto in handling of POSIX_SPAWN_RESETIDS in posix_spawn(3) 2021-05-02 10:23:55 +00:00
wiz
f5858a27ff gcc-11.1.0 is out. 2021-05-02 08:18:38 +00:00
rillig
ac598ab1cf fish: remove modulo bias from random number generation
It probably doesn't matter in practice, but omitting this piece of code
always looks like an oversight.
2021-05-01 21:10:57 +00:00
rillig
6a70979a86 cgram: rename local functions
The word 'cleanup' should have been named clean_up all along, but 'done'
is even shorter.

No functional change.
2021-05-01 20:29:23 +00:00
rillig
c6b805dbac caesar: WARNS=6, strict bool mode
The rotation is validated to be nonnegative, therefore use unsigned int
for it.
2021-05-01 20:21:25 +00:00
rillig
ae67c40d79 ktruss: fix typo in comment 2021-05-01 18:07:52 +00:00
jakllsch
905e5ea3f4 fix syntax of latest CHANGES entry 2021-05-01 16:14:35 +00:00
thorpej
a13eceb08c Remove unnecessary interface attributes from "smu". 2021-05-01 15:12:25 +00:00
hannken
9decf88a36 Make sure fdesc_lookup() never returns VNON vnodes.
Should fix PR kern/56130 (fdescfs create nodes with wrong major number)
2021-05-01 15:08:14 +00:00
skrll
513f5635f2 Revert previous 2021-05-01 14:00:57 +00:00
thorpej
3c9602bc22 Make sure preemption is disabled around PMAP_USERRET(); it uses
per-cpu information.

XXX mi_userret() also internally disables preemption.  Should restructure
these to remove redundancies.
2021-05-01 13:23:07 +00:00
rillig
277632d833 tests/lint: add test for __attribute__((nonnull())) 2021-05-01 07:56:20 +00:00
skrll
e0a182239c Fixup some pmap / VM related #defines and code 2021-05-01 07:41:24 +00:00
nia
719c9c8c6e intro.7: add missing entries 2021-05-01 07:41:14 +00:00
rillig
b7fe254f77 lint: support all documented variants of __attribute__((nonnull)) 2021-05-01 07:25:07 +00:00
skrll
6a4a1d7bd5 Fixup kernel linking and provide a linker script with standard sections
and symbols
2021-05-01 07:13:21 +00:00
skrll
b2baafe27f Enable interrupts at the end of cpu_configure 2021-05-01 07:11:12 +00:00
skrll
36a97d5bd4 Quick hack to make this link 2021-05-01 07:10:34 +00:00
skrll
85f6ed222f Provide riscvreg_satp_{read,write} 2021-05-01 07:09:55 +00:00
skrll
81bebf3704 Indent the FCSR_FRM value #defines 2021-05-01 07:09:04 +00:00
skrll
fa49a3b558 Bump MSGBUFSIZE (if not defined)
Provide COHERENCY_UNIT and CACHE_LINE_SIZE

Also provide MAXCPUS
2021-05-01 07:06:54 +00:00
skrll
52a00092ff Provide __CONCAT, __STRING and ___CONCAT 2021-05-01 07:05:07 +00:00
skrll
597f3633c4 Expose pmap_tlb_update_addr to the PMAP_HWPAGEWALKER platforms 2021-05-01 06:56:41 +00:00
skrll
433a060bf4 Sprinkle #ifdef FPE for now 2021-05-01 06:53:08 +00:00
skrll
43a3ad6d87 Trailing whitespace 2021-05-01 06:48:51 +00:00
skrll
7db8e1168d Make paddr_t/psize_t __uint64_t for both 32 and 64 bit ports 2021-05-01 06:45:23 +00:00
christos
45349d1a26 put back nonnull. I meant to just sort it. 2021-05-01 00:08:44 +00:00
rillig
df210e12b5 tests/lint: add very basic tests for GCC __attribute__ 2021-04-30 23:49:36 +00:00
rillig
deeb39e782 compiler_rt: generate symbol table early
These libraries have the special feature that they install both the .a
library as well as the .a.syms that is generated from them.  To avoid
the transformation rule .a.a.syms to apply to the files in ${DESTDIR},
that rule has to be disabled during the installation phase.

If the transformation rule were active during installation, the .a.syms
file in ${DESTDIR} would have more than one possible source file, which
eventually leads to an error during installation since in the command
"install a b c", the last argument must be a directory, not a file.

The installation phase should be as minimal as possible anyway,
therefore move the generation of the .syms files to the build phase.

This hopefully fixes the build for HAVE_LLVM=yes, which has been broken
for several weeks now, at least for the official builds.
2021-04-30 22:48:37 +00:00
christos
d8140e6fb7 Mention resolver change, and fix 2020 entries that should have been 2021 2021-04-30 22:22:49 +00:00
christos
07ef9ed32c add for mipsn64 2021-04-30 21:51:48 +00:00
nia
cb91ad3daa cgdconfig.8: use gpt in examples, it's more versatile for this use case 2021-04-30 21:07:34 +00:00
skrll
b915c72fc6 Make the ddb for pmap / pte information pmap agnostic 2021-04-30 20:07:22 +00:00
christos
3c283926c0 - add nonstring attribute
- allow attributes after labels (for unused)
XXX: split the attributes into function, variable, etc attributes
so that we don't accept all attributes in all places (only where they make
sense)
2021-04-30 19:46:24 +00:00
nia
a0412fee12 zfs: Fix up references to FreeBSD 2021-04-30 18:59:30 +00:00
christos
a2d5970e99 Mention that check-names is now the default. 2021-04-30 16:12:18 +00:00
christos
f07a94a30a Default to check-names for safety. 2021-04-30 16:07:49 +00:00
christos
e0c1582630 merge the i386 and amd64 gdt.h files. 2021-04-30 15:37:05 +00:00
christos
587ca72b71 Add <x86/gdt.h> (we could gc now the <machine/gdt.h> files if we fix the
sources that use them.
2021-04-30 13:55:18 +00:00
christos
1dd1c64bde Merge the x86 gdt function and constant definitions 2021-04-30 13:54:26 +00:00
christos
5231a05ac1 remove hacks. 2021-04-30 13:53:30 +00:00
msaitoh
ab119b16e7 Add missing __KERNEL_RCSID(). 2021-04-30 06:55:32 +00:00
msaitoh
dd53553f71 Add NetBSD RCS IDs. No functional change. 2021-04-30 06:41:36 +00:00
thorpej
786ff44585 If we're enumerating the root bus, skip some well-known nodes that
don't have any useful device child nodes:

	aliases
	options
	openprom
	chosen
	packages

...and also allow machdep additions to this list (XXX which are temporarily
declared here for arm32 until there's a consistent machine/ofw_machdep.h
header file).
2021-04-30 02:34:12 +00:00
thorpej
cdc98f9a4e Driver for the I2C bus used for RAM serial presence detection. This
I2C interface is implemented by bit-banging a couple of GPIO pins on
the Sequoia core logic used in the Shark.

Heavy lifting by Julian Coleman, and minor tweaks and a different
autoconfiguration scheme by me.
2021-04-30 02:24:05 +00:00
thorpej
28b8a327b6 Allow devices to declare themselves an "ofisa_subclass", allowing
that device to beat "ofisa" in match, but then attach an "ofisa"
instance as a logical child at the same OFW node.
2021-04-30 02:13:15 +00:00
thorpej
ed79218b1e - Introduce sequoiaLock() / sequoiaUnlock() functions that hide away
the details of what's going on (disable / restore interrupts), and
  use it consistently.
- Give "sequoia" a device_t in the system device tree, matching on
  the Shark's /vlbus/isa node, acting a subclass of ofisa (an "ofisa"
  will be attached to "sequoia").  This allows us to attach other logical
  device nodes to the "sequoia".
2021-04-30 02:11:37 +00:00
christos
ec468a9acf Bump MAX_USERLDT_SIZE to the max size (wastes some memory). wine needs more
than PAGE_SIZE and fails spuriously.
XXX: Note the duplicate definition hacks. Should really create <x86/gdt.h>,
put the just the constants there and unify them.
This would also avoid the hack in: src/tests/lib/libi386/t_user_ldt.c#46
2021-04-30 01:09:29 +00:00
rillig
c9b39ce704 cgram: in hinting mode, show all correct characters in bold face
For almost solved cryptograms, this makes the punctuation stand out
less, helping to focus on the missing letters.
2021-04-29 20:17:20 +00:00
riastradh
0a8f39d604 Sprinkle __noinline to reduce gigantic stack frames in ALL kernels.
In principle this might just push a real problem around, but this is
unlikely to be a real problem because:

1. The large stack frames are really only in the setup state machine
   message handlers, which run at the top loop of a thread with a
   shallow stack anyway.

2. If these are inlined, gcc might create multiple nonoverlapping
   stack buffers, whereas if not inlined, the stack frames from
   consecutive or alternative procedure calls would overlap anyway.

(I haven't investigated exactly what's going on leading to ~5 KB-byte
stack frames, but this shuts gcc up, at least, and the hypotheses
sound plausible to me!)
2021-04-29 17:55:51 +00:00