Rev 1851 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1851 | Rev 2007 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | /** Initialize data structures for O(1) ASID allocation and deallocation. */ |
61 | /** Initialize data structures for O(1) ASID allocation and deallocation. */ |
62 | void asid_fifo_init(void) |
62 | void asid_fifo_init(void) |
63 | { |
63 | { |
64 | int i; |
64 | int i; |
65 | 65 | ||
66 | #if (!FIFO_STATIC) |
66 | #if (!FIFO_STATIC) |
67 | fifo_create(free_asids); |
67 | fifo_create(free_asids); |
68 | #endif |
68 | #endif |
69 | 69 | ||
70 | for (i = 0; i < ASIDS_ALLOCABLE; i++) { |
70 | for (i = 0; i < ASIDS_ALLOCABLE; i++) { |
71 | fifo_push(free_asids, ASID_START + i); |
71 | fifo_push(free_asids, ASID_START + i); |
72 | } |
72 | } |
73 | } |
73 | } |