Changeset 9ad03fe in mainline for genarch/src/mm/page_ht.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
  • genarch/src/mm/page_ht.c

    ra0d74fd r9ad03fe  
    172172                t = (pte_t *) malloc(sizeof(pte_t), FRAME_ATOMIC);
    173173                ASSERT(t != NULL);
    174        
     174
     175                t->g = (flags & PAGE_GLOBAL) != 0;
     176                t->x = (flags & PAGE_EXEC) != 0;
     177                t->w = (flags & PAGE_WRITE) != 0;
     178                t->k = !(flags & PAGE_USER);
     179                t->c = (flags & PAGE_CACHEABLE) != 0;
     180                t->p = !(flags & PAGE_NOT_PRESENT);
     181
     182                t->as = as;
     183                t->page = page;
     184                t->frame = frame;
     185
    175186                hash_table_insert(&page_ht, key, &t->link);
    176187        }
Note: See TracChangeset for help on using the changeset viewer.