Changeset d0485c6 in mainline for kernel/generic/include/mm/page.h


Ignore:
Timestamp:
2006-12-01T22:10:40Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3d76996
Parents:
7bf7ef7
Message:

Introduce page colors. So far, only sparc64 uses correct page color bits. Other architectures have a dummy define
specifying zero bits for a page color.

There is a new check of page color in as_area_share(). Because of lack of support for this in the userspace, the
check has been #ifef'ed out.

File:
1 edited

Legend:

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

    r7bf7ef7 rd0485c6  
    6767#define PAGE_GLOBAL             (1<<PAGE_GLOBAL_SHIFT)
    6868
     69
     70/**
     71 * Macro for computing page color.
     72 */
     73#define PAGE_COLOR(va)          (((va) >> PAGE_WIDTH) & ((1 << PAGE_COLOR_BITS) - 1))
     74
    6975/** Page fault access type. */
    7076enum pf_access {
Note: See TracChangeset for help on using the changeset viewer.