Ignore:
File:
1 edited

Legend:

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

    r83b6ba9f r9d58539  
    6161#define USER_ADDRESS_SPACE_END      USER_ADDRESS_SPACE_END_ARCH
    6262
     63#ifdef USTACK_ADDRESS_ARCH
     64        #define USTACK_ADDRESS  USTACK_ADDRESS_ARCH
     65#else
     66        #define USTACK_ADDRESS  (USER_ADDRESS_SPACE_END - (STACK_SIZE - 1))
     67#endif
     68
    6369/** Kernel address space. */
    6470#define FLAG_AS_KERNEL  (1 << 0)
     
    6874#define AS_AREA_ATTR_PARTIAL  1  /**< Not fully initialized area. */
    6975
     76/** The page fault was not resolved by as_page_fault(). */
     77#define AS_PF_FAULT  0
     78
    7079/** The page fault was resolved by as_page_fault(). */
    71 #define AS_PF_OK     0
     80#define AS_PF_OK  1
    7281
    7382/** The page fault was caused by memcpy_from_uspace() or memcpy_to_uspace(). */
    74 #define AS_PF_DEFER  1
    75 
    76 /** The page fault was not resolved by as_page_fault(). */
    77 #define AS_PF_FAULT  2
    78 
    79 /** The page fault was not resolved by as_page_fault(). Non-verbose version. */
    80 #define AS_PF_SILENT 3
     83#define AS_PF_DEFER  2
    8184
    8285/** Address space structure.
     
    140143        /** This structure can be deallocated if refcount drops to 0. */
    141144        size_t refcount;
    142         /** True if the area has been ever shared. */
    143         bool shared;
    144 
     145       
    145146        /**
    146147         * B+tree containing complete map of anonymous pages of the shared area.
    147148         */
    148149        btree_t pagemap;
    149 
    150         /** Address space area backend. */
    151         struct mem_backend *backend;
    152         /** Address space area shared data. */
    153         void *backend_shared_data;
    154150} share_info_t;
    155151
     
    176172                uintptr_t base;
    177173                size_t frames;
    178                 bool anonymous;
    179174        };
    180175} mem_backend_data_t;
     
    229224        void (* destroy)(as_area_t *);
    230225
    231         bool (* is_resizable)(as_area_t *);
    232         bool (* is_shareable)(as_area_t *);
    233 
    234226        int (* page_fault)(as_area_t *, uintptr_t, pf_access_t);
    235227        void (* frame_free)(as_area_t *, uintptr_t, uintptr_t);
    236 
    237         bool (* create_shared_data)(as_area_t *);
    238         void (* destroy_shared_data)(void *);
    239228} mem_backend_t;
    240229
Note: See TracChangeset for help on using the changeset viewer.