Subversion Repositories HelenOS-historic

Rev

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

Rev 756 Rev 762
Line 51... Line 51...
51
 * @return Address of global page hash table.
51
 * @return Address of global page hash table.
52
 */
52
 */
53
pte_t *ht_create(int flags)
53
pte_t *ht_create(int flags)
54
{
54
{
55
    if (!page_ht) {
55
    if (!page_ht) {
56
        page_ht = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC, HT_WIDTH - FRAME_WIDTH, NULL);
56
        page_ht = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC, HT_WIDTH - FRAME_WIDTH, NULL, NULL);
57
        memsetb((__address) page_ht, HT_SIZE, 0);
57
        memsetb((__address) page_ht, HT_SIZE, 0);
58
    }
58
    }
59
    return page_ht;
59
    return page_ht;
60
}
60
}