Changeset c7ec94a4 in mainline for genarch/src/mm/as_ht.c
- Timestamp:
- 2006-02-06T14:18:28Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f5935ed
- Parents:
- 214f5bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/mm/as_ht.c
r214f5bb rc7ec94a4 34 34 #include <typedefs.h> 35 35 #include <memstr.h> 36 #include <adt/hash_table.h> 36 37 37 38 static pte_t *ht_create(int flags); … … 49 50 * @param flags Ignored. 50 51 * 51 * @return Address of global page hash table.52 * @return Returns NULL. 52 53 */ 53 54 pte_t *ht_create(int flags) 54 55 { 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); 58 58 } 59 return page_ht;59 return NULL; 60 60 }
Note:
See TracChangeset
for help on using the changeset viewer.