Subversion Repositories HelenOS

Rev

Rev 2106 | Rev 2465 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2106 Rev 2125
Line 50... Line 50...
50
static void ptl0_destroy(pte_t *page_table);
50
static void ptl0_destroy(pte_t *page_table);
51
 
51
 
52
static void pt_lock(as_t *as, bool lock);
52
static void pt_lock(as_t *as, bool lock);
53
static void pt_unlock(as_t *as, bool unlock);
53
static void pt_unlock(as_t *as, bool unlock);
54
 
54
 
-
 
55
#ifdef __OBJC__
-
 
56
@implementation as_t
-
 
57
 
-
 
58
+ (pte_t *) page_table_create: (int) flags
-
 
59
{
-
 
60
    return ptl0_create(flags);
-
 
61
}
-
 
62
 
-
 
63
+ (void) page_table_destroy: (pte_t *) page_table
-
 
64
{
-
 
65
    ptl0_destroy(page_table);
-
 
66
}
-
 
67
 
-
 
68
- (void) page_table_lock: (bool) _lock
-
 
69
{
-
 
70
    pt_lock(self, _lock);
-
 
71
}
-
 
72
 
-
 
73
- (void) page_table_unlock: (bool) unlock
-
 
74
{
-
 
75
    pt_unlock(self, unlock);
-
 
76
}
-
 
77
 
-
 
78
@end
-
 
79
#else
55
as_operations_t as_pt_operations = {
80
as_operations_t as_pt_operations = {
56
    .page_table_create = ptl0_create,
81
    .page_table_create = ptl0_create,
57
    .page_table_destroy = ptl0_destroy,
82
    .page_table_destroy = ptl0_destroy,
58
    .page_table_lock = pt_lock,
83
    .page_table_lock = pt_lock,
59
    .page_table_unlock = pt_unlock
84
    .page_table_unlock = pt_unlock
60
};
85
};
-
 
86
#endif
61
 
87
 
62
/** Create PTL0.
88
/** Create PTL0.
63
 *
89
 *
64
 * PTL0 of 4-level page table will be created for each address space.
90
 * PTL0 of 4-level page table will be created for each address space.
65
 *
91
 *