Lines Matching full:size
110 * For regions that are NOT the minimum size, this define has no semantics
111 * on ARC MPUv2 as its regions must be power of two size and aligned to their
112 * own size. On ARC MPUv4, region sizes are arbitrary and this just indicates
113 * the required size granularity.
142 * +------------+ <- thread.stack_info.start + thread.stack_info.size
172 * +------------+ <- thread.stack_info.start + thread.stack_info.size
176 #define ARCH_THREAD_STACK_OBJ_ALIGN(size) Z_ARC_MPU_ALIGN argument
178 * so round its size up to the required granularity of the MPU
180 #define ARCH_THREAD_STACK_SIZE_ADJUST(size) \ argument
181 (ROUND_UP((size), Z_ARC_MPU_ALIGN))
183 "improper privilege stack size");
200 * +------------+ <- thread.stack_info.start + thread.stack_info.size
202 #define ARCH_THREAD_STACK_SIZE_ADJUST(size) \ argument
203 Z_POW2_CEIL(ROUND_UP((size), Z_ARC_MPU_ALIGN))
204 #define ARCH_THREAD_STACK_OBJ_ALIGN(size) \ argument
205 ARCH_THREAD_STACK_SIZE_ADJUST(size)
218 * +------------+ <- thread.stack_info.start + thread.stack_info.size
221 #define ARCH_THREAD_STACK_SIZE_ADJUST(size) \ argument
222 (ROUND_UP((size), Z_ARC_MPU_ALIGN))
223 #define ARCH_THREAD_STACK_OBJ_ALIGN(size) Z_ARC_MPU_ALIGN argument
226 "improper privilege stack size");
245 * +------------+ <- thread.stack_info.start + thread.stack_info.size
248 #define ARCH_THREAD_STACK_OBJ_ALIGN(size) Z_ARC_MPU_ALIGN argument
307 #define _ARCH_MEM_PARTITION_ALIGN_CHECK(start, size) \ argument
308 BUILD_ASSERT(IS_BUILTIN_MWDT(size) ? !((size) & ((size) - 1)) : 1, \
309 "partition size must be power of 2"); \
310 BUILD_ASSERT(IS_BUILTIN_MWDT(size) ? (size) >= Z_ARC_MPU_ALIGN : 1, \
311 "partition size must be >= mpu address alignment."); \
312 BUILD_ASSERT(IS_BUILTIN_MWDT(size) ? IS_BUILTIN_MWDT(start) ? \
313 !((uintptr_t)(start) & ((size) - 1)) : 1 : 1, \
314 "partition start address must align with size.")
316 #define _ARCH_MEM_PARTITION_ALIGN_CHECK(start, size) \ argument
317 BUILD_ASSERT(IS_BUILTIN_MWDT(size) ? (size) % Z_ARC_MPU_ALIGN == 0 : 1, \
318 "partition size must align with " STRINGIFY(Z_ARC_MPU_ALIGN)); \
319 BUILD_ASSERT(IS_BUILTIN_MWDT(size) ? (size) >= Z_ARC_MPU_ALIGN : 1, \
320 "partition size must be >= " STRINGIFY(Z_ARC_MPU_ALIGN)); \
326 #define _ARCH_MEM_PARTITION_ALIGN_CHECK(start, size) \ argument
327 BUILD_ASSERT(!((size) & ((size) - 1)), \
328 "partition size must be power of 2"); \
329 BUILD_ASSERT((size) >= Z_ARC_MPU_ALIGN, \
330 "partition size must be >= mpu address alignment."); \
331 BUILD_ASSERT(!((uintptr_t)(start) & ((size) - 1)), \
332 "partition start address must align with size.")
334 #define _ARCH_MEM_PARTITION_ALIGN_CHECK(start, size) \ argument
335 BUILD_ASSERT((size) % Z_ARC_MPU_ALIGN == 0, \
336 "partition size must align with " STRINGIFY(Z_ARC_MPU_ALIGN)); \
337 BUILD_ASSERT((size) >= Z_ARC_MPU_ALIGN, \
338 "partition size must be >= " STRINGIFY(Z_ARC_MPU_ALIGN)); \