Changeset fcd10af in mainline


Ignore:
Timestamp:
2006-04-09T19:08:16Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9857c6
Parents:
a7818c26
Message:

Thread RSE support completion (uspace)

Location:
libc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libc/arch/ia64/include/thread.h

    ra7818c26 rfcd10af  
    3030#define __LIBC__ia64THREAD_H__
    3131
     32#define THREAD_INITIAL_STACK_PAGES_NO 2
     33
    3234/* This structure must be exactly 16 bytes long */
    3335typedef struct {
  • libc/generic/thread.c

    ra7818c26 rfcd10af  
    3636
    3737#include <stdio.h>
     38
     39
     40#ifndef THREAD_INITIAL_STACK_PAGES_NO
     41#define THREAD_INITIAL_STACK_PAGES_NO 1
     42#endif
     43
    3844
    3945extern char _tdata_start;
     
    110116        uspace_arg_t *uarg;
    111117
    112         stack = (char *) malloc(getpagesize());
     118        stack = (char *) malloc(getpagesize()*THREAD_INITIAL_STACK_PAGES_NO);
    113119        if (!stack)
    114120                return -1;
Note: See TracChangeset for help on using the changeset viewer.