Changeset f76fed4 in mainline for generic/include/proc/thread.h


Ignore:
Timestamp:
2006-03-03T00:20:31Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
09c18f7
Parents:
ddcf365
Message:

Added lazy fpu context allocation.

  • threads that don't use fpu, don't get allocated fpu context
  • fpu context alignment on AMD64 nicely disappeared
File:
1 edited

Legend:

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

    rddcf365 rf76fed4  
    4040#include <config.h>
    4141#include <adt/list.h>
     42#include <mm/slab.h>
    4243
    4344#define THREAD_STACK_SIZE       STACK_SIZE
     
    8384        volatile int timeout_pending;           /**< Flag signalling sleep timeout in progress. */
    8485
    85         fpu_context_t saved_fpu_context;
     86        fpu_context_t *saved_fpu_context;
    8687        int fpu_context_exists;
    8788
     
    136137extern void thread_destroy(thread_t *t);
    137138
     139
     140/* Fpu context slab cache */
     141extern slab_cache_t *fpu_context_slab;
     142
    138143#endif
Note: See TracChangeset for help on using the changeset viewer.