Changeset 68965ec5 in mainline


Ignore:
Timestamp:
2006-05-14T15:26:47Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7c23af9
Parents:
b1b723e
Message:

ppc32: TLB manipulation stub

Location:
arch/ppc32/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/src/dummy.s

    rb1b723e r68965ec5  
    3232.global userspace
    3333.global sys_tls_set
    34 .global tlb_invalidate_all
    3534.global tlb_invalidate_asid
    3635.global tlb_invalidate_pages
    37 
    38 tlb_invalidate_all:
    39         b tlb_invalidate_all
    4036
    4137tlb_invalidate_asid:
  • arch/ppc32/src/mm/tlb.c

    rb1b723e r68965ec5  
    233233
    234234
     235void tlb_invalidate_all(void)
     236{
     237        ipl_t ipl;
     238
     239        ipl = interrupts_disable();
     240        memsetb((__address) phte, 1 << PHT_BITS, 0);
     241        interrupts_restore(ipl);
     242}
     243
     244
    235245/** Print contents of Page Hash Table. */
    236246void tlb_print(void)
  • arch/ppc32/src/proc/scheduler.c

    rb1b723e r68965ec5  
    4141void before_thread_runs_arch(void)
    4242{
     43        tlb_invalidate_all();
    4344        asm volatile (
    4445                "mtsprg0 %0\n"
Note: See TracChangeset for help on using the changeset viewer.