From 974d4b512b4203fc2d81c87b5c4bcf99c6084d97 Mon Sep 17 00:00:00 2001 From: Youjie Zheng Date: Thu, 19 Sep 2024 12:26:17 +0845 Subject: [PATCH] [fix] fix align for AxTaskExt --- modules/axtask/src/task_ext.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/axtask/src/task_ext.rs b/modules/axtask/src/task_ext.rs index 322a774057..bacd56d0a0 100644 --- a/modules/axtask/src/task_ext.rs +++ b/modules/axtask/src/task_ext.rs @@ -28,9 +28,9 @@ impl AxTaskExt { /// Returns the expected alignment of the task extended structure. pub fn align() -> usize { extern "C" { - static __AX_TASK_EXT_SIZE: usize; + static __AX_TASK_EXT_ALIGN: usize; } - unsafe { __AX_TASK_EXT_SIZE } + unsafe { __AX_TASK_EXT_ALIGN } } /// Construct an empty task extended structure that contains no data