Changeset 9ad03fe in mainline for generic/src/adt/hash_table.c


Ignore:
Timestamp:
2006-03-01T12:58:13Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
03427d0
Parents:
a0d74fd
Message:

ia64 work.
More capable TLB miss handlers.
The ia64 kernel now passes mm/mapping1 test.

Fix generic hash table to properly initialize lists.

Change page_ht() to properly initialize inserted PTE's.
Change format of generic page hash table PTE's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/adt/hash_table.c

    ra0d74fd r9ad03fe  
    4848void hash_table_create(hash_table_t *h, count_t m, count_t max_keys, hash_table_operations_t *op)
    4949{
     50        int i;
     51
    5052        ASSERT(h);
    5153        ASSERT(op && op->hash && op->compare);
     
    5759        }
    5860        memsetb((__address) h->entry, m * sizeof(link_t *), 0);
     61       
     62        for (i = 0; i < m; i++)
     63                list_initialize(&h->entry[i]);
    5964       
    6065        h->entries = m;
Note: See TracChangeset for help on using the changeset viewer.