Changeset c7ec94a4 in mainline for genarch/src/mm/as_ht.c


Ignore:
Timestamp:
2006-02-06T14:18:28Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f5935ed
Parents:
214f5bb
Message:

Page hash table architectures now use generic hash table to manage
mappings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/mm/as_ht.c

    r214f5bb rc7ec94a4  
    3434#include <typedefs.h>
    3535#include <memstr.h>
     36#include <adt/hash_table.h>
    3637
    3738static pte_t *ht_create(int flags);
     
    4950 * @param flags Ignored.
    5051 *
    51  * @return Address of global page hash table.
     52 * @return Returns NULL.
    5253 */
    5354pte_t *ht_create(int flags)
    5455{
    55         if (!page_ht) {
    56                 page_ht = (pte_t *) frame_alloc(HT_WIDTH - FRAME_WIDTH, FRAME_KA | FRAME_PANIC);
    57                 memsetb((__address) page_ht, HT_SIZE, 0);
     56        if (flags & FLAG_AS_KERNEL) {
     57                hash_table_create(&page_ht, PAGE_HT_ENTRIES, 2, &ht_operations);
    5858        }
    59         return page_ht;
     59        return NULL;
    6060}
Note: See TracChangeset for help on using the changeset viewer.