Changeset 826

Show
Ignore:
Timestamp:
08/06/08 14:36:24 (4 years ago)
Author:
mwhitworth
Message:

Fix types, add comment and change argBytes test.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/kernel/sys.c

    r626 r826  
    2121#include <module.h> 
    2222#include <i386/virtual.h> 
     23#include <types.h> 
    2324 
    2425struct SysCall sysCallTable[SYSCALL_MAX]; 
     
    4445SYMBOL_EXPORT(SysRegisterRange); 
    4546 
    46 DWORD SysGetCall(DWORD index, DWORD argBytes) 
     47addr_t SysGetCall(DWORD index, DWORD argBytes) 
    4748{ 
    4849        if (index > SYSCALL_MAX) 
    4950                return 0; 
    5051 
    51         if (sysCallTable[index].numBytes != argBytes) 
     52        /* The number of argument bytes past can be greater than the number of bytes 
     53         * needed by the function's parameters; it allows for future compatability. 
     54         */ 
     55          
     56        if (sysCallTable[index].numBytes < argBytes) 
    5257                return 0; 
    5358