diff --git a/include/sys/arch_interface.h b/include/sys/arch_interface.h index b60827c0678..fad6f92762d 100644 --- a/include/sys/arch_interface.h +++ b/include/sys/arch_interface.h @@ -578,6 +578,8 @@ void arch_mem_domain_destroy(struct k_mem_domain *domain); * if the supplied memory buffer spans multiple enabled memory management * regions (even if all such regions permit user access). * + * @warning 0 size buffer has undefined behavior. + * * @param addr start address of the buffer * @param size the size of the buffer * @param write If nonzero, additionally check if the area is writable.