Changeset 498b201 in mainline


Ignore:
Timestamp:
2008-07-06T20:07:59Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b5a1730
Parents:
5f7a0ef
Message:

The real intention of the previous commit was to put the boundary
on 4 GiB, not 16 GiB.

Location:
kernel/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/frame.h

    r5f7a0ef r498b201  
    6464/** Do not start reclaiming when no free memory. */
    6565#define FRAME_NO_RECLAIM        0x4
    66 /** Do not allocate above 16GiB. */
    67 #define FRAME_LOW_16_GiB        0x8
     66/** Do not allocate above 4 GiB. */
     67#define FRAME_LOW_4_GiB         0x8
    6868
    6969static inline uintptr_t PFN2ADDR(pfn_t frame)
  • kernel/generic/src/mm/frame.c

    r5f7a0ef r498b201  
    266266       
    267267        /* Mask off flags that are not applicable. */
    268         flags &= FRAME_LOW_16_GiB;
     268        flags &= FRAME_LOW_4_GiB;
    269269
    270270        spinlock_lock(&zones.lock);
     
    824824
    825825        /* Mask off flags that are calculated automatically. */
    826         flags &= ~FRAME_LOW_16_GiB;
     826        flags &= ~FRAME_LOW_4_GiB;
    827827        /* Determine calculated flags. */
    828         if (z->base + count < (1ULL << (34 - FRAME_WIDTH)))     /* 16 GiB */
    829                 flags |= FRAME_LOW_16_GiB;
     828        if (z->base + count < (1ULL << (32 - FRAME_WIDTH)))     /* 4 GiB */
     829                flags |= FRAME_LOW_4_GiB;
    830830
    831831        z->flags = flags;
Note: See TracChangeset for help on using the changeset viewer.