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