Changeset 69146b93 in mainline for kernel/generic/include/mm/as.h


Ignore:
Timestamp:
2012-11-26T19:02:45Z (13 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
04552324
Parents:
5d230a30 (diff), 7462674 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged mainline,1723.

File:
1 edited

Legend:

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

    r5d230a30 r69146b93  
    6565#define USER_ADDRESS_SPACE_END      USER_ADDRESS_SPACE_END_ARCH
    6666
    67 #ifdef USTACK_ADDRESS_ARCH
    68         #define USTACK_ADDRESS  USTACK_ADDRESS_ARCH
    69 #else
    70         #define USTACK_ADDRESS  (USER_ADDRESS_SPACE_END - (STACK_SIZE - 1))
    71 #endif
    72 
    7367/** Kernel address space. */
    7468#define FLAG_AS_KERNEL  (1 << 0)
     
    7872#define AS_AREA_ATTR_PARTIAL  1  /**< Not fully initialized area. */
    7973
     74/** The page fault was resolved by as_page_fault(). */
     75#define AS_PF_OK     0
     76
     77/** The page fault was caused by memcpy_from_uspace() or memcpy_to_uspace(). */
     78#define AS_PF_DEFER  1
     79
    8080/** The page fault was not resolved by as_page_fault(). */
    81 #define AS_PF_FAULT  0
    82 
    83 /** The page fault was resolved by as_page_fault(). */
    84 #define AS_PF_OK  1
    85 
    86 /** The page fault was caused by memcpy_from_uspace() or memcpy_to_uspace(). */
    87 #define AS_PF_DEFER  2
     81#define AS_PF_FAULT  2
     82
     83/** The page fault was not resolved by as_page_fault(). Non-verbose version. */
     84#define AS_PF_SILENT 3
    8885
    8986/** Address space structure.
     
    228225        void (* destroy)(as_area_t *);
    229226
     227        bool (* is_resizable)(as_area_t *);
     228        bool (* is_shareable)(as_area_t *);
     229
    230230        int (* page_fault)(as_area_t *, uintptr_t, pf_access_t);
    231231        void (* frame_free)(as_area_t *, uintptr_t, uintptr_t);
Note: See TracChangeset for help on using the changeset viewer.