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

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

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.