You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ae545eb
Browse filesBrowse the repository at this point in the historyBrowse files
docs: AGENTS.md: document the user/kernel boundary rules
Add a "User/kernel boundary" subsection under Development Standards that
points contributors to src/include/sof/userspace/README.md and states the
requirements for new code: place it in the correct directory tier, cross the
boundary only via a validated syscall, and mark any globals shared with user
threads with a partition marker.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,3 +20,23 @@ This document outlines the rules AI agents must follow when checking out branche
20
20
### Codestyle and Linting
21
21
***Standard:** Use `clangd` instead of `checkpatch` for codestyle verification.
22
22
***Rationale:**`checkpatch` is prone to confusion with assembly and non-standard C; `clangd` provides better integration with IDEs and AI tools and is easier to maintain.
23
+
24
+
### User/kernel boundary
25
+
On PTL and other userspace configurations, audio application logic runs in Zephyr user-space
26
+
while the OS/HAL stays in the kernel. The authoritative model, directory taxonomy, syscall map,
27
+
memory-partition markers and Kconfig hierarchy are documented in
28
+
[`src/include/sof/userspace/README.md`](src/include/sof/userspace/README.md). When adding or
29
+
moving code, follow it:
30
+
31
+
***Place code in the right tier.** OS/HAL/boot/inter-core → a kernel-only directory
0 commit comments