Changes in kernel/generic/include/mm/as.h [fc47885:e16e2ba4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/as.h
rfc47885 re16e2ba4 65 65 #include <arch/mm/as.h> 66 66 #include <arch/mm/asid.h> 67 #include <arch/istate.h> 67 68 #include <typedefs.h> 68 69 #include <synch/spinlock.h> … … 84 85 #define USER_ADDRESS_SPACE_END USER_ADDRESS_SPACE_END_ARCH 85 86 86 #define USTACK_ADDRESS USTACK_ADDRESS_ARCH 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 87 92 88 93 /** Kernel address space. */ … … 238 243 /** Address space area backend structure. */ 239 244 typedef 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 240 250 int (* page_fault)(as_area_t *, uintptr_t, pf_access_t); 241 251 void (* frame_free)(as_area_t *, uintptr_t, uintptr_t); 242 void (* share)(as_area_t *);243 252 } mem_backend_t; 244 253 … … 246 255 247 256 extern as_operations_t *as_operations; 248 extern li nk_t inactive_as_with_asid_head;257 extern list_t inactive_as_with_asid_list; 249 258 250 259 extern void as_init(void); … … 298 307 extern mem_backend_t phys_backend; 299 308 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 0306 #define ELD_F_LOADER 1307 308 extern unsigned int elf_load(elf_header_t *, as_t *, unsigned int);309 310 309 /* Address space area related syscalls. */ 311 310 extern sysarg_t sys_as_area_create(uintptr_t, size_t, unsigned int); … … 313 312 extern sysarg_t sys_as_area_change_flags(uintptr_t, unsigned int); 314 313 extern sysarg_t sys_as_area_destroy(uintptr_t); 314 extern sysarg_t sys_as_get_unmapped_area(uintptr_t, size_t); 315 315 316 316 /* Introspection functions. */
Note:
See TracChangeset
for help on using the changeset viewer.