Changeset 498b201 in mainline
- Timestamp:
- 2008-07-06T20:07:59Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b5a1730
- Parents:
- 5f7a0ef
- Location:
- kernel/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/frame.h
r5f7a0ef r498b201 64 64 /** Do not start reclaiming when no free memory. */ 65 65 #define FRAME_NO_RECLAIM 0x4 66 /** Do not allocate above 16GiB. */67 #define FRAME_LOW_ 16_GiB0x866 /** Do not allocate above 4 GiB. */ 67 #define FRAME_LOW_4_GiB 0x8 68 68 69 69 static inline uintptr_t PFN2ADDR(pfn_t frame) -
kernel/generic/src/mm/frame.c
r5f7a0ef r498b201 266 266 267 267 /* Mask off flags that are not applicable. */ 268 flags &= FRAME_LOW_ 16_GiB;268 flags &= FRAME_LOW_4_GiB; 269 269 270 270 spinlock_lock(&zones.lock); … … 824 824 825 825 /* Mask off flags that are calculated automatically. */ 826 flags &= ~FRAME_LOW_ 16_GiB;826 flags &= ~FRAME_LOW_4_GiB; 827 827 /* Determine calculated flags. */ 828 if (z->base + count < (1ULL << (3 4 - FRAME_WIDTH))) /* 16GiB */829 flags |= FRAME_LOW_ 16_GiB;828 if (z->base + count < (1ULL << (32 - FRAME_WIDTH))) /* 4 GiB */ 829 flags |= FRAME_LOW_4_GiB; 830 830 831 831 z->flags = flags;
Note:
See TracChangeset
for help on using the changeset viewer.