Rev 2089 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2089 | Rev 3186 | ||
|---|---|---|---|
| Line 70... | Line 70... | ||
| 70 | */ |
70 | */ |
| 71 | pte_t *ht_create(int flags) |
71 | pte_t *ht_create(int flags) |
| 72 | { |
72 | { |
| 73 | if (flags & FLAG_AS_KERNEL) { |
73 | if (flags & FLAG_AS_KERNEL) { |
| 74 | hash_table_create(&page_ht, PAGE_HT_ENTRIES, 2, &ht_operations); |
74 | hash_table_create(&page_ht, PAGE_HT_ENTRIES, 2, &ht_operations); |
| 75 | mutex_initialize(&page_ht_lock); |
75 | mutex_initialize(&page_ht_lock, MUTEX_PASSIVE); |
| 76 | } |
76 | } |
| 77 | return NULL; |
77 | return NULL; |
| 78 | } |
78 | } |
| 79 | 79 | ||
| 80 | /** Destroy page table. |
80 | /** Destroy page table. |