kernel: Fix typo in macro name
Fixes a typo in the macro ARCH_DYMANIC_OBJ_K_THREAD_ALIGNMENT so that DYMANIC becomes DYNAMIC. Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
This commit is contained in:
parent
77a7615eb2
commit
48f516469a
3 changed files with 8 additions and 8 deletions
|
@ -435,13 +435,13 @@ extern struct task_state_segment _main_tss;
|
||||||
*/
|
*/
|
||||||
#if defined(CONFIG_EAGER_FPU_SHARING) || defined(CONFIG_LAZY_FPU_SHARING)
|
#if defined(CONFIG_EAGER_FPU_SHARING) || defined(CONFIG_LAZY_FPU_SHARING)
|
||||||
#ifdef CONFIG_SSE
|
#ifdef CONFIG_SSE
|
||||||
#define ARCH_DYMANIC_OBJ_K_THREAD_ALIGNMENT 16
|
#define ARCH_DYNAMIC_OBJ_K_THREAD_ALIGNMENT 16
|
||||||
#else
|
#else
|
||||||
#define ARCH_DYMANIC_OBJ_K_THREAD_ALIGNMENT (sizeof(void *))
|
#define ARCH_DYNAMIC_OBJ_K_THREAD_ALIGNMENT (sizeof(void *))
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
/* No special alignment requirements, simply align on pointer size. */
|
/* No special alignment requirements, simply align on pointer size. */
|
||||||
#define ARCH_DYMANIC_OBJ_K_THREAD_ALIGNMENT (sizeof(void *))
|
#define ARCH_DYNAMIC_OBJ_K_THREAD_ALIGNMENT (sizeof(void *))
|
||||||
#endif /* CONFIG_*_FP_SHARING */
|
#endif /* CONFIG_*_FP_SHARING */
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -147,6 +147,6 @@ struct x86_ssf {
|
||||||
/*
|
/*
|
||||||
* Thread object needs to be 16-byte aligned.
|
* Thread object needs to be 16-byte aligned.
|
||||||
*/
|
*/
|
||||||
#define ARCH_DYMANIC_OBJ_K_THREAD_ALIGNMENT 16
|
#define ARCH_DYNAMIC_OBJ_K_THREAD_ALIGNMENT 16
|
||||||
|
|
||||||
#endif /* ZEPHYR_INCLUDE_ARCH_X86_INTEL64_ARCH_H_ */
|
#endif /* ZEPHYR_INCLUDE_ARCH_X86_INTEL64_ARCH_H_ */
|
||||||
|
|
|
@ -124,8 +124,8 @@ uint8_t *z_priv_stack_find(k_thread_stack_t *stack)
|
||||||
* the maximum alignment needed for all kernel objects
|
* the maximum alignment needed for all kernel objects
|
||||||
* (hence the following DYN_OBJ_DATA_ALIGN).
|
* (hence the following DYN_OBJ_DATA_ALIGN).
|
||||||
*/
|
*/
|
||||||
#ifdef ARCH_DYMANIC_OBJ_K_THREAD_ALIGNMENT
|
#ifdef ARCH_DYNAMIC_OBJ_K_THREAD_ALIGNMENT
|
||||||
#define DYN_OBJ_DATA_ALIGN_K_THREAD (ARCH_DYMANIC_OBJ_K_THREAD_ALIGNMENT)
|
#define DYN_OBJ_DATA_ALIGN_K_THREAD (ARCH_DYNAMIC_OBJ_K_THREAD_ALIGNMENT)
|
||||||
#else
|
#else
|
||||||
#define DYN_OBJ_DATA_ALIGN_K_THREAD (sizeof(void *))
|
#define DYN_OBJ_DATA_ALIGN_K_THREAD (sizeof(void *))
|
||||||
#endif
|
#endif
|
||||||
|
@ -187,8 +187,8 @@ static size_t obj_align_get(enum k_objects otype)
|
||||||
|
|
||||||
switch (otype) {
|
switch (otype) {
|
||||||
case K_OBJ_THREAD:
|
case K_OBJ_THREAD:
|
||||||
#ifdef ARCH_DYMANIC_OBJ_K_THREAD_ALIGNMENT
|
#ifdef ARCH_DYNAMIC_OBJ_K_THREAD_ALIGNMENT
|
||||||
ret = ARCH_DYMANIC_OBJ_K_THREAD_ALIGNMENT;
|
ret = ARCH_DYNAMIC_OBJ_K_THREAD_ALIGNMENT;
|
||||||
#else
|
#else
|
||||||
ret = __alignof(struct dyn_obj);
|
ret = __alignof(struct dyn_obj);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue