Ignore:
File:
1 edited

Legend:

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

    re16e2ba4 rfc47885  
    6565#include <arch/mm/as.h>
    6666#include <arch/mm/asid.h>
    67 #include <arch/istate.h>
    6867#include <typedefs.h>
    6968#include <synch/spinlock.h>
     
    8584#define USER_ADDRESS_SPACE_END      USER_ADDRESS_SPACE_END_ARCH
    8685
    87 #ifdef USTACK_ADDRESS_ARCH
    88         #define USTACK_ADDRESS  USTACK_ADDRESS_ARCH
    89 #else
    90         #define USTACK_ADDRESS  (USER_ADDRESS_SPACE_END - (STACK_SIZE - 1))
    91 #endif
     86#define USTACK_ADDRESS  USTACK_ADDRESS_ARCH
    9287
    9388/** Kernel address space. */
     
    243238/** Address space area backend structure. */
    244239typedef struct mem_backend {
    245         bool (* create)(as_area_t *);
    246         bool (* resize)(as_area_t *, size_t);
    247         void (* share)(as_area_t *);
    248         void (* destroy)(as_area_t *);
    249 
    250240        int (* page_fault)(as_area_t *, uintptr_t, pf_access_t);
    251241        void (* frame_free)(as_area_t *, uintptr_t, uintptr_t);
     242        void (* share)(as_area_t *);
    252243} mem_backend_t;
    253244
     
    255246
    256247extern as_operations_t *as_operations;
    257 extern list_t inactive_as_with_asid_list;
     248extern link_t inactive_as_with_asid_head;
    258249
    259250extern void as_init(void);
     
    307298extern mem_backend_t phys_backend;
    308299
     300/**
     301 * This flags is passed when running the loader, otherwise elf_load()
     302 * would return with a EE_LOADER error code.
     303 *
     304 */
     305#define ELD_F_NONE    0
     306#define ELD_F_LOADER  1
     307
     308extern unsigned int elf_load(elf_header_t *, as_t *, unsigned int);
     309
    309310/* Address space area related syscalls. */
    310311extern sysarg_t sys_as_area_create(uintptr_t, size_t, unsigned int);
     
    312313extern sysarg_t sys_as_area_change_flags(uintptr_t, unsigned int);
    313314extern sysarg_t sys_as_area_destroy(uintptr_t);
    314 extern sysarg_t sys_as_get_unmapped_area(uintptr_t, size_t);
    315315
    316316/* Introspection functions. */
Note: See TracChangeset for help on using the changeset viewer.