Ignore:
Timestamp:
2023-02-07T16:49:43Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
78acbc72
Parents:
1eaead4
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-14 14:08:42)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-07 16:49:43)
Message:

Avoid separate allocation for FPU context

With _Alignas, we can encode alignment in the type itself and
include it directly as a member of thread_t, thus removing
the need for a separate allocation.

The alignment requirement is never more than 16 bytes,
so this adds only minimal extra padding to the structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/proc/thread.h

    r1eaead4 r0366d09d  
    151151        link_t joiner_link;
    152152
    153         fpu_context_t *saved_fpu_context;
     153#ifdef CONFIG_FPU
     154        fpu_context_t fpu_context;
     155#endif
    154156        bool fpu_context_exists;
    155157
Note: See TracChangeset for help on using the changeset viewer.