1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-03 06:45:37 -08:00
OpenBSD
Go to file
cheloha 1d970828bc clockintr: switch from callee- to caller-allocated clockintr structs
Currently, clockintr_establish() calls malloc(9) to allocate a
clockintr struct on behalf of the caller.  mpi@ says this behavior is
incompatible with dt(4).  In particular, calling malloc(9) during the
initialization of a PCB outside of dt_pcb_alloc() is (a) awkward and
(b) may conflict with future changes/optimizations to PCB allocation.

To side-step the problem, this patch changes the clockintr subsystem
to use caller-allocated clockintr structs instead of callee-allocated
structs.

clockintr_establish() is named after softintr_establish(), which uses
malloc(9) internally to create softintr objects.  The clockintr subsystem
is no longer using malloc(9), so the "establish" naming is no longer apt.
To avoid confusion, this patch also renames "clockintr_establish" to
"clockintr_bind".

Requested by mpi@.  Tweaked by mpi@.

Thread: https://marc.info/?l=openbsd-tech&m=170597126103504&w=2

ok claudio@ mlarkin@ mpi@
2024-01-24 19:23:38 +00:00
bin Better formatting for pax extended header times 2024-01-20 17:34:50 +00:00
distrib sync 2024-01-22 22:56:41 +00:00
etc Zap trailing space. 2024-01-17 08:26:06 +00:00
games Fix format string warning in robots/score.c 2023-10-10 09:48:06 +00:00
gnu From "Lorenz (xha)" (me(at)xha.li): teach binutils how to assemble 2024-01-15 06:57:07 +00:00
include remove support for syscall(2) -- the "indirection system call" because 2023-12-12 15:30:55 +00:00
lib Avoid a four-byte overread in gcm_ghash_4bit_mmx() on i386 2024-01-24 15:24:28 +00:00
libexec ugly whitespaces 2024-01-22 02:08:31 +00:00
regress Adjust community regress test after the switch to ibuf in bgpd. 2024-01-24 14:51:56 +00:00
sbin Use per connection peerid for control replies 2024-01-24 10:09:07 +00:00
share Add more authers that made significant contributions to the Linux driver. 2024-01-24 14:17:37 +00:00
sys clockintr: switch from callee- to caller-allocated clockintr structs 2024-01-24 19:23:38 +00:00
usr.bin I forgot that chpass(1) and passwd(1) reach-around into libc for 2024-01-22 21:07:09 +00:00
usr.sbin Convert the community parsers to the new ibuf api. 2024-01-24 14:51:11 +00:00
.gitignore Ignore CVS directories for easier git + CVS coexistence. 2023-07-07 15:44:54 +00:00
Makefile minor cranking of libraries exposes a problem, details too long to explain. 2020-04-05 20:14:14 +00:00
Makefile.cross riscv64 is a LP64_ARCH, list it as such. 2021-05-03 00:04:31 +00:00