Skip to content

Commit ea8930b

Browse files
teburdstephanosio
authored andcommitted
rtio: Cleanup the various define macros
Reworks the zephyr macros and pools to be objects in their own right. Each pool can be statically defined with a Z_ private macro. The objects can then be initialized with an rtio instance statically. This cleans up a lot of code that was otherwise doing little bits of management around allocation/freeing and reduces the scope those functions has to the data it needs. This should enable sharing the pools of sqe, cqe, and mem blocks among rtio instances in a future improvement easily. Signed-off-by: Tom Burdick <[email protected]>
1 parent d41c182 commit ea8930b

File tree

6 files changed

+237
-158
lines changed

6 files changed

+237
-158
lines changed

include/zephyr/linker/common-ram.ld

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,13 @@
111111
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
112112
#endif /* CONFIG_USB_DEVICE_BOS */
113113

114-
115114
#if defined(CONFIG_RTIO)
116115
ITERABLE_SECTION_RAM(rtio, 4)
117116
ITERABLE_SECTION_RAM(rtio_iodev, 4)
118117
ITERABLE_SECTION_RAM(rtio_sqe_pool, 4)
119118
ITERABLE_SECTION_RAM(rtio_cqe_pool, 4)
120119
#endif /* CONFIG_RTIO */
121120

122-
123121
#ifdef CONFIG_USERSPACE
124122
_static_kernel_objects_end = .;
125123
#endif

0 commit comments

Comments
 (0)