Changeset 266294a9 in mainline for generic/include


Ignore:
Timestamp:
2006-02-05T17:01:03Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c9a08b
Parents:
9b9e385
Message:

Added constructor/destructor calls to SLAB.
Changed allocation of thread_t structure to use SLAB.

Location:
generic/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic/include/mm/slab.h

    r9b9e385 r266294a9  
    7171        size_t size;      /**< Size of SLAB position - align_up(sizeof(obj)) */
    7272        int (*constructor)(void *obj, int kmflag);
    73         void (*destructor)(void *obj);
     73        int (*destructor)(void *obj);
    7474        int flags;        /**< Flags changing behaviour of cache */
    7575
     
    104104                                        size_t align,
    105105                                        int (*constructor)(void *obj, int kmflag),
    106                                         void (*destructor)(void *obj),
     106                                        int (*destructor)(void *obj),
    107107                                        int flags);
    108108extern void slab_cache_destroy(slab_cache_t *cache);
  • generic/include/print.h

    r9b9e385 r266294a9  
    3131
    3232#include <arch/types.h>
     33#include <synch/spinlock.h>
    3334
    3435#define INT8    1
     
    3940extern void printf(const char *fmt, ...);
    4041
     42/* We need this address in spinlock to avoid deadlock in deadlock detection */
     43extern spinlock_t printflock;
     44
    4145#endif
  • generic/include/proc/thread.h

    r9b9e385 r266294a9  
    135135extern void thread_register_call_me(void (* call_me)(void *), void *call_me_with);
    136136extern void thread_print_list(void);
     137extern void thread_destroy(thread_t *t);
    137138
    138139#endif
Note: See TracChangeset for help on using the changeset viewer.