Changeset 2087

Show
Ignore:
Timestamp:
05/24/10 09:21:47 (2 years ago)
Author:
mwhitworth
Message:

Add to SIB etc.

Location:
Whitix/trunk/arch/i386/kernel
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/arch/i386/kernel/init.c

    r1864 r2087  
    9292int ArchInit() 
    9393{ 
    94         KePrint(KERN_INFO "Whitix x86 v0.2, built on %s at %s\n",__DATE__,__TIME__); 
     94        KePrint(KERN_INFO "Whitix x86 v0.2b, built on %s at %s\n",__DATE__,__TIME__); 
    9595        i386InitMultiBoot(); 
    9696        PhysInit(); 
  • Whitix/trunk/arch/i386/kernel/ints.c

    r1939 r2087  
    124124        if (!funcAddr) 
    125125                return -ENOSYS; 
    126  
    127 //      KePrint("IrqSysCall(%u)\n", index); 
    128126 
    129127        /* Verify stack */ 
  • Whitix/trunk/arch/i386/kernel/sib.c

    r1864 r2087  
    2323        block->seconds = seconds; 
    2424        block->uSeconds = useconds; 
     25} 
     26 
     27void SibUpdateRunningProc(unsigned long nrRunning) 
     28{ 
     29        /* TODO */ 
     30} 
     31 
     32void SibUpdateTotalProc(unsigned long totalNum) 
     33{ 
     34        /* TODO */ 
    2535} 
    2636 
     
    5262        block->seconds = 0; 
    5363        block->uSeconds = 0; 
     64        block->pageSize = 4096; 
     65        strncpy(block->osVersion, "0.21", sizeof("0.21")); 
    5466         
    5567        KePrint("SIB: Set up system information block\n"); 
  • Whitix/trunk/arch/i386/kernel/smp.c

    r1668 r2087  
    6868{ 
    6969        DWORD addr; 
    70         extern DWORD ebdaAddr; 
     70//      extern DWORD ebdaAddr; 
    7171 
    7272        /*  
     
    8888                goto found; 
    8989 
    90         if (ebdaAddr && (addr=SmpDetectStruct(ebdaAddr,0x400))) 
    91                 goto found; 
     90//      if (ebdaAddr && (addr=SmpDetectStruct(ebdaAddr,0x400))) 
     91//              goto found; 
    9292 
    9393        return 0; 
  • Whitix/trunk/arch/i386/kernel/sys.c

    r1840 r2087  
    4747        /* Copy the exit code over to a user accessable page of memory. */ 
    4848        VirtMemMapPage(SYSCALL_STUB_ADDR, PageAlloc()->physAddr, PAGE_PRESENT | PAGE_USER); 
     49                 
    4950        memcpy((void*)SYSCALL_STUB_ADDR, intAddr, intEndAddr - intAddr); 
    5051