Changeset d0a0f12 in mainline for genarch/src/mm/asid_fifo.c
- Timestamp:
- 2006-02-10T14:12:57Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0882a9a
- Parents:
- a3eeceb6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/mm/asid_fifo.c
ra3eeceb6 rd0a0f12 33 33 #include <adt/fifo.h> 34 34 35 #define FIFO_STATIC_LIMIT 1024 36 #define FIFO_STATIC (ASIDS_ALLOCABLE<FIFO_STATIC_LIMIT) 35 37 /** 36 38 * FIFO queue containing unassigned ASIDs. 37 39 * Can be only accessed when asidlock is held. 38 40 */ 39 FIFO_INITIALIZE(free_asids, asid_t, ASIDS_ALLOCABLE); 41 #if FIFO_STATIC 42 FIFO_INITIALIZE_STATIC(free_asids, asid_t, ASIDS_ALLOCABLE); 43 #else 44 FIFO_INITIALIZE_DYNAMIC(free_asids, asid_t, ASIDS_ALLOCABLE); 45 #endif 40 46 41 47 /** Initialize data structures for O(1) ASID allocation and deallocation. */ … … 43 49 { 44 50 int i; 45 51 52 #if (!FIFO_STATIC) 53 fifo_create(free_asids); 54 #endif 55 46 56 for (i = 0; i < ASIDS_ALLOCABLE; i++) { 47 57 fifo_push(free_asids, ASID_START + i);
Note:
See TracChangeset
for help on using the changeset viewer.