Changeset 9651


Ignore:
Timestamp:
Jun 2, 2008, 6:31:55 AM (11 years ago)
Author:
gb
Message:

CommitMemory?: on windows, the region that contains NIL is already mapped,
so just return true.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/win64/lisp-kernel/memory.c

    r8956 r9651  
    222222#endif
    223223#ifdef WINDOWS
     224  if ((start < ((LogicalAddress)nil_value)) &&
     225      (((LogicalAddress)nil_value) < (start+len))) {
     226    /* nil area is in the executable on Windows, do nothing */
     227    return true;
     228  }
    224229  rc = VirtualAlloc(start, len, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
    225230  if (!rc) {
     
    351356
    352357int
    353 MapFile(LogicalAddress addr, natural pos, natural nbytes, int permissions, int fd) {
     358MapFile(LogicalAddress addr, natural pos, natural nbytes, int permissions, int fd)
     359{
    354360#ifdef WINDOWS
    355361#if 0
Note: See TracChangeset for help on using the changeset viewer.