riastradh
ec85059186
entropy(9): Update comment about where entropy_extract is allowed.
...
As of last month, it is forbidden in all hard interrupt context.
2022-05-13 09:40:02 +00:00
riastradh
59f579f5f3
entropy(9): Note rules about how to use entropy_extract output.
2022-05-13 09:39:52 +00:00
riastradh
14db0e2545
x86/pmap: Feed entropy_extract output through nist_hash_drbg.
...
The entropy pool algorithm is NOT designed to provide backtracking
resistance on its own -- it MUST be combined with a PRNG/DRBG that
provides that.
The only reason we use entropy_extract here is that cprng(9) is not
available yet (which in turn is because kmem and other basic kernel
facilities aren't available yet), but nist_hash_drbg doesn't have any
initialization order requirements, so we'll just use it directly.
2022-05-13 09:39:40 +00:00
uwe
8229f4f760
wsfont(4): WSDISPLAYIO_LDFONT requires device opened for writing.
2022-05-12 23:17:42 +00:00
blymn
6bb8042d10
Make clrtoeol match the ncurses behaviour where it seems to make the
...
rest of line foreground. This fixes a display oddity in mutt.
2022-05-12 22:25:38 +00:00
uwe
d5bbf827ba
wsfontload: O_RDONLY is enough to list the fonts with -l
2022-05-12 22:08:55 +00:00
rillig
f95ee9f3cc
lint: merge duplicate grammar rules for __alignof__ expr
...
This allows expressions like '__alignof__(ptr)->member', just as with
'sizeof'.
The upper rule in the grammar was preferred over the lower rule since it
shifted the T_LPAREN instead of reducing unary_expression. Its
implementation invoked undefined behavior if the expression was NULL
since it didn't assign anything to $$.
2022-05-12 20:57:49 +00:00
rillig
c1ebf8f4b6
tests/lint: add more tests for __alignof__
2022-05-12 20:49:21 +00:00
rillig
6ddc1e42c5
lint: add message text to newly added call to gnuism
...
Required by check-msgs.lua.
2022-05-12 20:22:58 +00:00
martin
5c90dc2171
We have 130 shift/reduce conflicts now
2022-05-12 18:47:29 +00:00
christos
4449645d98
gcc allows __alignof__(unary-expression)
2022-05-12 17:31:30 +00:00
msaitoh
486bc7571f
I think MFI_BBU_STATE_LEARN_CYC_REQ is not an error.
2022-05-12 12:05:04 +00:00
msaitoh
eb962e5f56
Use IBBU's data structure for iBBU-09.
2022-05-12 12:04:09 +00:00
msaitoh
ae9b0c8b60
No functional change.
...
- Reduce diff against OpenBSD
- Whitespace fix.
- Sort some defines and structures.
- Add comment.
- KNF.
2022-05-12 12:00:58 +00:00
msaitoh
82a0234b4c
Don't use MFI_PD_LIST_SIZE. Same as OpenBSD. No functional change.
2022-05-12 11:56:29 +00:00
rillig
a59a352eb2
lint: add support for __alignof__ expr, a GCC extension
...
Seen in lib/libc/gmon/gmon.c:153.
2022-05-12 00:28:01 +00:00
rillig
6300d02a63
lint: fix support for __alignof__, add support for __alignof
...
Broken since lex.c 1.129 from yesterday.
2022-05-12 00:18:35 +00:00
rillig
91bf128de4
tests/lint: adjust tests to reflect missing support of __alignof__
...
The change in lex.c 1.129 attempted to add support for __alignof, in
addition to the existing support for __alignof__. It failed by removing
support for __alignof__, while allowing the plain 'alignof' instead.
2022-05-12 00:09:44 +00:00
markd
581fa5e879
Regen
2022-05-11 20:46:47 +00:00
markd
7181af40a8
Add some Broadcom / LSI RAID cards.
2022-05-11 20:44:05 +00:00
bouyer
c268ad12e6
bus_dmamem_unmap() before bus_dmamem_free(), otherwise we may give back meomry
...
which is still (and will stay) mapped.
Fixes one instance of "panic: HYPERVISOR_mmu_update failed" on Xen.
There may be others.
2022-05-11 17:22:20 +00:00
bouyer
f0cf370635
In bootstrap, after switching to a new page table make sure that
...
now-unused memory is unmapped.
2022-05-11 16:22:46 +00:00
christos
5cc3f6153a
gcc also allows __alignof
2022-05-11 15:46:25 +00:00
msaitoh
87f2497bd7
Add support for iBBU-09 to show BBU voltage, current and temp correctly.
2022-05-11 15:30:33 +00:00
msaitoh
f89804ee2b
mfii(4): Set stripe size correctly for BIOCVOL. Same as mfi.c rev. 1.75.
2022-05-11 15:24:45 +00:00
msaitoh
3f57ccbb37
KNF. s/u_quad_t/uint64_t/. No functional change.
2022-05-11 15:20:54 +00:00
andvar
adb5d710d2
fix various typos in comments.
2022-05-11 14:58:00 +00:00
andvar
25fd8e90e3
s/varible/variable/
2022-05-11 13:58:43 +00:00
rin
fbe173fe52
Drop IEEE 802.11 support from ifconfig(8).
...
Reduce ~9KB, and atari builds again for me.
2022-05-11 10:47:10 +00:00
rin
7d0374d5e7
Introduce NOIEEE80211 option, by which IEEE 802.11 support is dropped from
...
ifconfig(8) in crunched binaries. This saves ~9KB for, e.g., m68k.
2022-05-11 10:45:48 +00:00
rin
809f35d114
For atari install disk:
...
- Drop FD support from installboot(8). Reduce ~0.5KB.
- Drop primary boot loaders for FD (2 files, 0.5KB each).
Note that we continue to support these features in base.
OK tsutsui@
2022-05-11 10:36:52 +00:00
rin
4d34c209b6
Make FD support optional (intended for install media).
2022-05-11 10:31:12 +00:00
rin
cf1eaf8770
Refactor install_[sw]d() into install_hd().
...
Shave off ~0.5KB from install floppy, and dedup codes a lot.
Thanks tsutsui@ for kind review!
2022-05-11 10:27:45 +00:00
mlelstv
8ee7e3f6d7
Regen
2022-05-10 15:29:04 +00:00
mlelstv
44c4609b5f
More ids for Prolific Serial Adapters
2022-05-10 15:28:45 +00:00
msaitoh
c0c7e2f972
bioctl(8): Don't print garbage bv_seconds.
...
This bug was added in bioctl.c rev. 1.7.
Before:
Volume Status Size Device/Label Level Stripe
=============================================================
bv_level=5, bv_stripe_size=0
0 Online 5.5T mfi0 RAID 5 64K 65535 seconds
After:
Volume Status Size Device/Label Level Stripe
=============================================================
0 Online 5.5T mfi0 RAID 5 64K
2022-05-10 14:16:25 +00:00
msaitoh
e69a9b995e
mfi(4): Set stripe size correctly for BIOCVOL.
...
Before:
Volume Status Size Device/Label Level Stripe
=============================================================
0 Online 5.5T mfi0 RAID 5 N/A 65535 seconds
After:
Volume Status Size Device/Label Level Stripe
=============================================================
0 Online 5.5T mfi0 RAID 5 64K 65535 seconds
2022-05-10 14:13:37 +00:00
msaitoh
7530af304e
Add comment. bv_stripe_size is used in KB.
2022-05-10 14:13:09 +00:00
uwe
0a751ce1a9
date(1): Use .Dl for one-liners. Same output is generated.
2022-05-10 09:07:57 +00:00
knakahara
1e1068368f
Zeroize the length explicitly when malloc failed. Pointed out by yamaguchi@n.o.
2022-05-10 09:05:03 +00:00
uwe
7638fb4e20
date(1): Fix the offset in previous.
2022-05-10 09:00:39 +00:00
skrll
abcecf9b42
Add aprints
2022-05-10 08:10:28 +00:00
skrll
11f1e5f671
Add a driver for the Apple RTKit based System Management Controller
...
found on M1 SoCs. From OpenBSD.
2022-05-10 08:09:57 +00:00
skrll
33e6c36315
Add a driver for the Apple M1 I2C controller. From OpenBSD.
2022-05-10 08:05:32 +00:00
wiz
fd79d7de09
openssl-1.1.1o out.
2022-05-10 05:41:54 +00:00
wiz
8147634961
date(1): add example for how to get seconds since the Epoch output
2022-05-10 05:37:33 +00:00
gutteridge
192d1919eb
3RDPARTY: note most recent version of pkg_install
2022-05-10 00:54:00 +00:00
gutteridge
a8d88dfa77
man.c: minor KNF
2022-05-10 00:42:00 +00:00
rillig
115b3170bc
indent: clean up control flow, remove Capsicum
...
No functional change.
2022-05-09 21:41:49 +00:00
rillig
58878d4686
make: remove obsolete comment
...
All instances of VarFind that could be replaced with VarFindSubstring
have been replaced.
2022-05-09 21:24:42 +00:00