Changeset 2a003d5b in mainline for genarch/include/mm/page_ht.h


Ignore:
Timestamp:
2006-01-26T14:13:50Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c2b95d3
Parents:
4a2f4bb
Message:

Page hash table modifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/include/mm/page_ht.h

    r4a2f4bb r2a003d5b  
    3737
    3838#include <mm/page.h>
     39#include <typedefs.h>
     40
     41/** Number of slots in page hash table. */
     42#define HT_ENTRIES                      HT_ENTRIES_ARCH
    3943
    4044/** Hash function.
     
    5761#define HT_COMPARE(page, asid, t)       HT_COMPARE_ARCH(page, asid, t)
    5862
    59 /** Identify empty hash table slots.
     63/** Identify empty page hash table slots.
    6064 *
    6165 * @param t Pointer ro hash table typed pte_t *.
     
    6468 */
    6569#define HT_SLOT_EMPTY(t)                HT_SLOT_EMPTY_ARCH(t)
     70
     71/** Invalidate/empty page hash table slot.
     72 *
     73 * @param t Address of the slot to be invalidated.
     74 */
     75#define HT_INVALIDATE_SLOT(t)           HT_INVALIDATE_SLOT_ARCH(t)
    6676
    6777/** Return next record in collision chain.
     
    90100#define HT_SET_RECORD(t, page, asid, frame, flags)      HT_SET_RECORD_ARCH(t, page, asid, frame, flags)
    91101
     102
    92103extern page_operations_t page_ht_operations;
     104extern spinlock_t page_ht_lock;
     105
     106extern pte_t *page_ht;
     107
     108extern void ht_invalidate_all(void);
    93109
    94110#endif
Note: See TracChangeset for help on using the changeset viewer.