Changeset 2e9eae2 in mainline for generic/src/proc/thread.c


Ignore:
Timestamp:
2006-06-23T16:03:53Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
757551a3
Parents:
a832dd7
Message:

Changed interface of frame_alloc/free to use address of frame instead of the pfn.
This makes it impossible to use >4GB of memory on 32-bit machines, but who cares…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/thread.c

    ra832dd7 r2e9eae2  
    125125{
    126126        thread_t *t = (thread_t *)obj;
    127         pfn_t pfn;
    128127        int status;
    129128
     
    143142#endif 
    144143
    145         pfn = frame_alloc_rc(STACK_FRAMES, FRAME_KA | kmflags,&status);
     144        t->kstack = frame_alloc_rc(STACK_FRAMES, FRAME_KA | kmflags,&status);
    146145        if (status) {
    147146#ifdef ARCH_HAS_FPU
     
    151150                return -1;
    152151        }
    153         t->kstack = (__u8 *)PA2KA(PFN2ADDR(pfn));
    154152
    155153        return 0;
     
    161159        thread_t *t = (thread_t *)obj;
    162160
    163         frame_free(ADDR2PFN(KA2PA(t->kstack)));
     161        frame_free(KA2PA(t->kstack));
    164162#ifdef ARCH_HAS_FPU
    165163        if (t->saved_fpu_context)
Note: See TracChangeset for help on using the changeset viewer.