Show
Ignore:
Timestamp:
05/20/10 16:05:25 (2 years ago)
Author:
mwhitworth
Message:

Add to TCP/IP stack.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/netchannel/kernel/process.c

    r2084 r2085  
    66#include <i386/process.h> 
    77#include <malloc.h> 
     8#include <event.h> 
    89#include <keobject.h> 
    910#include <user_acc.h> 
    1011#include <print.h> 
     12#include <timer.h> 
    1113#include <fs/icfs.h> 
    1214#include <fs/vfs.h> 
     
    236238 
    237239repeat: 
    238         waitEntry.thread=currThread; 
     240        waitEntry.thread = currThread; 
    239241        WaitAddToQueue(&current->waitQueue, &waitEntry); 
    240         ThrSuspendThread(currThread); 
     242        ThrSuspendThreadInt(currThread); 
    241243        ThrSchedule(); 
     244 
     245        if (EventWaiting(currThread)) 
     246                return -EINTR; 
    242247 
    243248        /* Is it the right one? */ 
     
    361366        MmapProcessRemove(current); 
    362367        LoadReleaseFsContext(); 
     368        TimerProcessRemove(current); 
    363369 
    364370        /* Now get rid of the memory manager - leaving kernel memory pages intact */