Changeset 53 for trunk/kernel/kern


Ignore:
Timestamp:
Jun 26, 2017, 4:22:00 PM (7 years ago)
Author:
alain
Message:

Compilation OK pout TSAR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/thread.c

    r50 r53  
    8484    // return pointer on new thread descriptor
    8585        if( page == NULL ) return NULL;
    86     else               return (thread_t *)ppm_page2base( page );
     86    else               return (thread_t *)ppm_page2vaddr( page );
    8787
    8888
    8989/////////////////////////////////////////////////////////////////////////////////////
    9090// This static function releases the physical memory for a thread descriptor.
    91 // It can be called by the three functions:
     91// It is called by the three functions:
    9292// - thread_user_create()
    9393// - thread_user_fork()
     
    101101
    102102    req.type  = KMEM_PAGE;
    103     req.ptr   = ppm_base2page( thread );
     103    req.ptr   = ppm_vaddr2page( thread );
    104104    kmem_free( &req );
    105105}
     
    442442    {
    443443            req.type  = KMEM_PAGE;
    444         req.ptr   = ppm_base2page( thread );
     444        req.ptr   = ppm_vaddr2page( thread );
    445445        kmem_free( &req );
    446446        return EINVAL;
Note: See TracChangeset for help on using the changeset viewer.