Ignore:
File:
1 edited

Legend:

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

    r7e7b791 ree42e43  
    9191       
    9292        /** Function implementing the thread. */
    93         void (*thread_code)(void *);
     93        void (* thread_code)(void *);
    9494        /** Argument passed to thread_code() function. */
    9595        void *thread_arg;
    9696       
    9797        /**
    98          * From here, the stored context is restored
    99          * when the thread is scheduled.
     98         * From here, the stored context is restored when the thread is
     99         * scheduled.
    100100         */
    101101        context_t saved_context;
    102        
    103         /**
    104          * From here, the stored timeout context
    105          * is restored when sleep times out.
     102        /**
     103         * From here, the stored timeout context is restored when sleep times
     104         * out.
    106105         */
    107106        context_t sleep_timeout_context;
    108        
    109         /**
    110          * From here, the stored interruption context
    111          * is restored when sleep is interrupted.
     107        /**
     108         * From here, the stored interruption context is restored when sleep is
     109         * interrupted.
    112110         */
    113111        context_t sleep_interruption_context;
     
    127125         */
    128126        bool in_copy_from_uspace;
    129        
    130127        /**
    131128         * True if this thread is executing copy_to_uspace().
     
    190187       
    191188#ifdef CONFIG_UDEBUG
    192         /**
    193          * If true, the scheduler will print a stack trace
    194          * to the kernel console upon scheduling this thread.
    195          */
    196         bool btrace;
    197        
    198189        /** Debugging stuff */
    199190        udebug_thread_t udebug;
     
    246237extern bool thread_exists(thread_t *);
    247238
    248 #ifdef CONFIG_UDEBUG
    249 extern void thread_stack_trace(thread_id_t);
    250 #endif
    251 
    252239/** Fpu context slab cache. */
    253240extern slab_cache_t *fpu_context_slab;
    254241
    255242/* Thread syscall prototypes. */
    256 extern sysarg_t sys_thread_create(uspace_arg_t *, char *, size_t,
     243extern unative_t sys_thread_create(uspace_arg_t *, char *, size_t,
    257244    thread_id_t *);
    258 extern sysarg_t sys_thread_exit(int);
    259 extern sysarg_t sys_thread_get_id(thread_id_t *);
    260 extern sysarg_t sys_thread_usleep(uint32_t);
    261 extern sysarg_t sys_thread_udelay(uint32_t);
     245extern unative_t sys_thread_exit(int);
     246extern unative_t sys_thread_get_id(thread_id_t *);
     247extern unative_t sys_thread_usleep(uint32_t);
    262248
    263249#endif
Note: See TracChangeset for help on using the changeset viewer.