Changeset 36b01bb2 in mainline for generic/src/mm/tlb.c


Ignore:
Timestamp:
2006-01-24T14:38:29Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa7d9c4
Parents:
0d8d27c
Message:

ia64 ASID management code (not tested).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/mm/tlb.c

    r0d8d27c r36b01bb2  
    5555       
    5656        /*
    57          * TODO: assemble shootdown message.
     57         * TODO: wrap parameters into a message and
     58         * dispatch it to all CPUs excluding this one.
    5859         */
     60       
    5961        tlb_shootdown_ipi_send();
    6062
    61         switch (type) {
    62             case TLB_INVL_ALL:
    63                 tlb_invalidate_all();
    64                 break;
    65             case TLB_INVL_ASID:
    66                 tlb_invalidate_asid(asid);
    67                 break;
    68             case TLB_INVL_PAGES:
    69                 tlb_invalidate_pages(asid, page, cnt);
    70                 break;
    71             default:
    72                 panic("unknown tlb_invalidate_type_t value: %d\n", type);
    73                 break;
    74         }
    75        
    7663busy_wait:     
    7764        for (i = 0; i<config.cpu_count; i++)
     
    9683        spinlock_lock(&tlblock);
    9784        spinlock_unlock(&tlblock);
    98         tlb_invalidate_all();   /* TODO: use valid ASID */
     85        tlb_invalidate_all();   /* TODO: be more finer-grained in what to invalidate */
    9986        CPU->tlb_active = 1;
    10087}
Note: See TracChangeset for help on using the changeset viewer.