Rev 1227 | Rev 1238 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1227 | Rev 1235 | ||
|---|---|---|---|
| Line 27... | Line 27... | ||
| 27 | */ |
27 | */ |
| 28 | 28 | ||
| 29 | #ifndef __AS_H__ |
29 | #ifndef __AS_H__ |
| 30 | #define __AS_H__ |
30 | #define __AS_H__ |
| 31 | 31 | ||
| - | 32 | #include <mm/as_arg.h> |
|
| 32 | #include <arch/mm/page.h> |
33 | #include <arch/mm/page.h> |
| 33 | #include <arch/mm/as.h> |
34 | #include <arch/mm/as.h> |
| 34 | #include <arch/mm/asid.h> |
35 | #include <arch/mm/asid.h> |
| 35 | #include <arch/types.h> |
36 | #include <arch/types.h> |
| 36 | #include <typedefs.h> |
37 | #include <typedefs.h> |
| Line 111... | Line 112... | ||
| 111 | 112 | ||
| 112 | extern void as_init(void); |
113 | extern void as_init(void); |
| 113 | extern as_t *as_create(int flags); |
114 | extern as_t *as_create(int flags); |
| 114 | extern as_area_t *as_area_create(as_t *as, int flags, size_t size, __address base); |
115 | extern as_area_t *as_area_create(as_t *as, int flags, size_t size, __address base); |
| 115 | extern __address as_area_resize(as_t *as, __address address, size_t size, int flags); |
116 | extern __address as_area_resize(as_t *as, __address address, size_t size, int flags); |
| - | 117 | int as_area_send(task_id_t id, __address base, size_t size, int flags); |
|
| 116 | extern void as_set_mapping(as_t *as, __address page, __address frame); |
118 | extern void as_set_mapping(as_t *as, __address page, __address frame); |
| 117 | extern int as_page_fault(__address page); |
119 | extern int as_page_fault(__address page); |
| 118 | extern void as_switch(as_t *old, as_t *new); |
120 | extern void as_switch(as_t *old, as_t *new); |
| 119 | extern void as_free(as_t *as); |
121 | extern void as_free(as_t *as); |
| 120 | 122 | ||
| 121 | /* Interface to be implemented by architectures. */ |
123 | /* Interface to be implemented by architectures. */ |
| 122 | #ifndef as_install_arch |
124 | #ifndef as_install_arch |
| 123 | extern void as_install_arch(as_t *as); |
125 | extern void as_install_arch(as_t *as); |
| 124 | #endif /* !def as_install_arch */ |
126 | #endif /* !def as_install_arch */ |
| 125 | 127 | ||
| - | 128 | /* Address space area related syscalls. */ |
|
| - | 129 | extern __native sys_as_area_create(__address address, size_t size, int flags); |
|
| - | 130 | extern __native sys_as_area_resize(__address address, size_t size, int flags); |
|
| - | 131 | extern __native sys_as_area_accept(as_area_acptsnd_arg_t *uspace_accept_arg); |
|
| - | 132 | extern __native sys_as_area_send(as_area_acptsnd_arg_t *uspace_send_arg); |
|
| - | 133 | ||
| 126 | #endif |
134 | #endif |