Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3063d56 in mainline


Ignore:
Timestamp:
2009-12-07T22:39:58Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
63c4e28
Parents:
216cb85
Message:

Do not flush TLB every time a thread is scheduled. Flush TLB only when a new
address space is installed.

Location:
kernel/arch/arm32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/mm/as.h

    r216cb85 r3063d56  
    5454#define as_destructor_arch(as)                  (as != as)
    5555#define as_create_arch(as, flags)               (as != as)
    56 #define as_install_arch(as)
    5756#define as_deinstall_arch(as)
    5857#define as_invalidate_translation_cache(as, page, cnt)
  • kernel/arch/arm32/src/arm32.c

    r216cb85 r3063d56  
    140140        uint8_t *stck;
    141141       
    142         tlb_invalidate_all();
    143142        stck = &THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA];
    144143        supervisor_sp = (uintptr_t) stck;
  • kernel/arch/arm32/src/mm/as.c

    r216cb85 r3063d56  
    3939#include <genarch/mm/asid_fifo.h>
    4040#include <mm/as.h>
     41#include <mm/tlb.h>
    4142#include <arch.h>
    4243
     
    5051}
    5152
     53void as_install_arch(as_t *as)
     54{
     55        tlb_invalidate_all();
     56}
     57
    5258/** @}
    5359 */
Note: See TracChangeset for help on using the changeset viewer.