Rev 1735 | Rev 1760 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1735 | Rev 1757 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup genericmm |
29 | /** @addtogroup genericmm |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** |
33 | /** |
34 | * @file |
34 | * @file |
Line 37... | Line 37... | ||
37 | * This file contains address space manipulation functions. |
37 | * This file contains address space manipulation functions. |
38 | * Roughly speaking, this is a higher-level client of |
38 | * Roughly speaking, this is a higher-level client of |
39 | * Virtual Address Translation (VAT) subsystem. |
39 | * Virtual Address Translation (VAT) subsystem. |
40 | * |
40 | * |
41 | * Functionality provided by this file allows one to |
41 | * Functionality provided by this file allows one to |
42 | * create address space and create, resize and share |
42 | * create address spaces and create, resize and share |
43 | * address space areas. |
43 | * address space areas. |
44 | * |
44 | * |
45 | * @see page.c |
45 | * @see page.c |
46 | * |
46 | * |
47 | */ |
47 | */ |
Line 76... | Line 76... | ||
76 | #include <arch/types.h> |
76 | #include <arch/types.h> |
77 | #include <typedefs.h> |
77 | #include <typedefs.h> |
78 | #include <syscall/copy.h> |
78 | #include <syscall/copy.h> |
79 | #include <arch/interrupt.h> |
79 | #include <arch/interrupt.h> |
80 | 80 | ||
- | 81 | /** |
|
- | 82 | * Each architecture decides what functions will be used to carry out |
|
- | 83 | * address space operations such as creating or locking page tables. |
|
- | 84 | */ |
|
81 | as_operations_t *as_operations = NULL; |
85 | as_operations_t *as_operations = NULL; |
82 | 86 | ||
83 | /** This lock protects inactive_as_with_asid_head list. It must be acquired before as_t mutex. */ |
87 | /** This lock protects inactive_as_with_asid_head list. It must be acquired before as_t mutex. */ |
84 | SPINLOCK_INITIALIZE(inactive_as_with_asid_lock); |
88 | SPINLOCK_INITIALIZE(inactive_as_with_asid_lock); |
85 | 89 | ||
Line 1527... | Line 1531... | ||
1527 | __native sys_as_area_destroy(__address address) |
1531 | __native sys_as_area_destroy(__address address) |
1528 | { |
1532 | { |
1529 | return (__native) as_area_destroy(AS, address); |
1533 | return (__native) as_area_destroy(AS, address); |
1530 | } |
1534 | } |
1531 | 1535 | ||
1532 | /** @} |
1536 | /** @} |
1533 | */ |
1537 | */ |
1534 | - |