Changeset 8701


Ignore:
Timestamp:
Mar 10, 2008, 12:37:03 PM (11 years ago)
Author:
gb
Message:

ProtectMemory?,UnprotectMemory?: second arg should be "natural", not "int".

Location:
trunk/source/lisp-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/memory.c

    r8547 r8701  
    7676
    7777int
    78 ProtectMemory(LogicalAddress addr, int nbytes)
     78ProtectMemory(LogicalAddress addr, natural nbytes)
    7979{
    8080  int status = mprotect(addr, nbytes, PROT_READ | PROT_EXEC);
     
    8888
    8989int
    90 UnProtectMemory(LogicalAddress addr, int nbytes)
     90UnProtectMemory(LogicalAddress addr, natural nbytes)
    9191{
    9292  return mprotect(addr, nbytes, PROT_READ|PROT_WRITE|PROT_EXEC);
  • trunk/source/lisp-kernel/memprotect.h

    r8408 r8701  
    4646
    4747int
    48 ProtectMemory(LogicalAddress, int);
     48ProtectMemory(LogicalAddress, natural);
    4949
    5050int
    51 UnProtectMemory(LogicalAddress, int);
     51UnProtectMemory(LogicalAddress, natural);
    5252
    5353typedef enum {
Note: See TracChangeset for help on using the changeset viewer.