commit | b3c5fe6720ee5156817b5847c9b6648f52cc6d9d | [log] [tgz] |
---|---|---|
author | Maximilian Bachmann <m.bachmann@acontis.com> | Wed Nov 04 10:13:46 2020 +0100 |
committer | Andrew Boie <andrewboie@gmail.com> | Wed Nov 04 14:03:43 2020 -0800 |
tree | da16f000cd7035b1e4efaf79b3590f071fa3c888 | |
parent | 7b7c328f7afd45129b5fd6be0d5288be4225365b [diff] |
kernel: return error instead of misaligned k_thread object k_object_alloc(K_OBJ_THREAD) returns a usable struct k_thread pointer. This pointer is 4 byte aligned. On x86 and x86_64 struct _thread_arch has a member which requires alignment. Since this is currently not supported k_object_alloc(K_OBJ_THREAD) now returns an error instead of a misaligned pointer. Signed-off-by: Maximilian Bachmann <m.bachmann@acontis.com>