Changeset 14329


Ignore:
Timestamp:
Oct 5, 2010, 3:08:55 AM (9 years ago)
Author:
gb
Message:

Don't try to file-map a readonly area whose size is 0.

File:
1 edited

Legend:

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

    r14319 r14329  
    214214  switch(sect->code) {
    215215  case AREA_READONLY:
    216     if (!MapFile(pure_space_active,
    217                  pos,
    218                  align_to_power_of_2(mem_size,log2_page_size),
    219                  MEMPROTECT_RX,
    220                  fd)) {
    221       return;
     216    if (mem_size != 0) {
     217      if (!MapFile(pure_space_active,
     218                   pos,
     219                   align_to_power_of_2(mem_size,log2_page_size),
     220                   MEMPROTECT_RX,
     221                   fd)) {
     222        return;
     223      }
    222224    }
    223225    a = new_area(pure_space_active, pure_space_limit, AREA_READONLY);
Note: See TracChangeset for help on using the changeset viewer.